|
Post by Dragon on Jan 4, 2012 22:15:22 GMT -8
Is there no way to specialize it like with the resize ? Make it 700 main page and 900 on all other pages... ?
No other options?
|
|
|
Post by Wormopolis on Jan 5, 2012 0:12:18 GMT -8
the main page has 2 different sized images remember because you had it on the board tables as well as the info center and login box
|
|
|
Post by Dragon on Jan 5, 2012 10:31:42 GMT -8
? what I remember is 1 size image because it stretched the board area to 900px....
Is there no way to set the board area head/base as 700 and set the rest to 900 ?
|
|
|
Post by Wormopolis on Jan 6, 2012 17:22:56 GMT -8
do you really need head/base on the board tables at 700px? because to do it its going to involve modding subdevo's code and you are going to have to ask him to do it since I cant decrypt the optimization he put on it.
|
|
|
Post by Dragon on Jan 6, 2012 23:59:01 GMT -8
I'd prefer it and certainly think it would look better. but is it required? No. If getting a set of head base images for the 700px table isnt possible without subs modding (since sub has been on vacation and has no timeline to return.... ), can we get it so we can have the head/base images under global footer for the normal tables at 900px without affecting the main page ?
|
|
|
Post by Dragon on Jan 7, 2012 14:50:34 GMT -8
Your sure that we cant have a code to put up head/base images for 700px tables and a different set images for 900px tables? Like a secondary code to do that without using subs.... ?
|
|
|
Post by Dragon on Jan 7, 2012 14:57:24 GMT -8
cloudiantest.proboards.com/index.cgiI added the regular code we had under global footer with 900xp images then added the 700px to main footer. As far as I can tell its working like we want it to, with the exception that theres a second copy of the code there.... What do you think of it ? If we can remove parts of the main footer code with the 700px head/base images until only the parts modding the head/base area remain then the code should work even better. Is that possible do you think ?
|
|
|
Post by Wormopolis on Jan 8, 2012 21:59:26 GMT -8
its going to have to look at what the table size is before adding the head/base.
|
|
|
Post by Dragon on Jan 9, 2012 12:01:05 GMT -8
It seems to be working with the main footer part added in..... unless you see an error ?
Anyway we can shorten that snippet ?
|
|
|
Post by Wormopolis on Jan 13, 2012 17:20:50 GMT -8
snippet?
|
|
|
Post by Dragon on Jan 14, 2012 16:44:44 GMT -8
<script type="text/javascript"> <!-- /* ProBoard Forum Customize v1.0 by SubDevo */ /* Global Footer - Please leave this header intact. Do not repost. */ /* [url]http://interoceandesigns.proboards.com[/url] or [url]http://lsdp.proboards.com[/url] */
var resizeForum=[1,700]; // Resize Forum? 1=Yes, 0=No , Forum width. var outerBorder=[0]; // Outer Table Borders? 1=Yes, 0=No, Border Color. var pdivH=25; // Post Divider Height. var cdivH=25; // Category Divider Height. var sdivH=25; // Sticky/Thread Divider Height. var head="http://img713.imageshack.us/img713/2309/cpheadimage70030.png"; var base="http://img15.imageshack.us/img15/9785/cpbaseimage70030.png"; var stickyImg=""; var normImg=""; var catClass="titlebg"; // Class of Category Name Cell. var aClass="titlebg"; // Annnouncement Divider Background class. var aHeight=10; // Announcement Divider Height. var qrCustom=0; // Quick Reply Customize? 1=Yes, 0=No. var qrMess=""; // Replace "Message:" with this Text. var qrWidth=631; // Desired Width (Default is 631) var qrHeight=227; // Desired Height (Default is 87)
// DO NOT EDIT BELOW var tb=document.getElementsByTagName("table"); var rTb=0; var pLoc=location.href; var rLoc=document.title; var splitType=0; var ssT=""; if(pb_action=="home"){splitType=1; ssT=/<b>Forum\sName/i; pdivH=cdivH;} else if(pb_action=="boardindex"){splitType=2; ssT=/\[Search\sThis/; pdivH=sdivH;} else if(pb_action=="display"){splitType=3; ssT=/<b>(Author|Poll)/i;} stickyImg=cI(stickyImg); normImg=cI(normImg); var po = document.getElementsByName("action"); if(po&& !(navigator.appName.match(/microsoft/i))){po=document.getElementsByTagName("input"); for(var x=0;x<po.length;x++){if(po[x].value==" Submit Vote "){splitType=0; break;}} } function cI(h){var m=(h.match(/^http:\/\//i))?h:head; return m;} if(!document.ammForm&&splitType){ var sDiv=document.createElement("div"); var nDiv=sDiv.cloneNode(false); sDiv.style.height=pdivH+"px"; nDiv.align="center"; var tbA=""; var stickySplit=0; var tbN=""; var nT=""; var te=(splitType==3)?1:0; for(var x=0;x<tb.length;x++){ with(tb[x]){if(cellPadding==4&&width=="100%"&&rows[te].innerHTML.match(ssT)){break;}} } if(tb[x]){ with(tb[x-2].rows[0]){ if(splitType==2&&innerHTML.match(/Sub-Boards/)){firstChild.className = catClass;}} tb[x-1].style.backgroundColor="transparent"; tb[x].className="bordercolor"; tbA=tb[x]; var tbP=tbA.parentNode; var nTop=tb[x].rows[te].cloneNode(true); tr=tbA.rows; }else{splitType=0;} if(splitType==1){ x=1; while(tr[x+1]){ if(tr[x].cells.length==1){ makeTable(); with(nTop.firstChild){className=catClass; innerHTML=tr[x].firstChild.innerHTML;} aD(nT,nTop,1); } x++; while(tr[x]&&tr[x].cells.length==5){nT.appendChild(tr[x]);} if(tr[x]&&tr[x].innerHTML.match(/markallb/i)){tr[x].firstChild.align="center"; nT.appendChild(tr[x]);} aD(tbP,tbN,1); if(tr[x+1]){doDiv(tbP);} } x++; rTb=1; }else if(splitType==2&& !tbA.innerHTML.match(/no\smessages/i)){ stickySplit=1; var gotSticky=0; for(x=2;x<tr.length;x++){ makeTable(); if(x==2){ aD(nT,tr[1]); while(tr[x]&&(tr[x].firstChild.innerHTML.match(/sticky/i)||(tr[x].cells.length==1))){ var tC=tr[x].cells; if(tC&&tC.length==1){with(tC[0]){className=aClass; height=aHeight+"px";}} nT.appendChild(tr[x]); gotSticky++; } if(gotSticky){aD(tbP,tbN,1); doDiv(tbP);continue;} }else{x--; aD(nT,tr[0],1); aD(nT,tr[1],1); while(tr[x]){nT.appendChild(tr[x]);} aD(tbP,tbN,1); if(!tr[x]){break;} } } rTb=1; var pDiv=document.createElement("div"); var tbM=tbP.parentNode.parentNode.parentNode; with(pDiv){align="center"; innerHTML='<img src="'+stickyImg+'" />';} if(stickyImg.match(/^http:\/\//i)&& gotSticky){tbM.parentNode.insertBefore(pDiv,tbM);} }else if(splitType==3){ var rC=0; var nx=2; for(x=1;x<tr.length;x++){ makeTable(); if(x==1){ if(tr[x].innerHTML.match(/poll\sq/i)){x=3; nx=4; aD(nT,tr[1],1); aD(nT,tr[2],1);}else{continue;} }else{ if(x==nx){aD(nT,tr[0],1);aD(nT,tr[nx-1],1);} aD(nT,tr[x],1); while(tr[x+1]&&tr[x+1].innerHTML.match(/\[Search\sThis|Admin\sFunctions:/)){nT.appendChild(tr[x+1]); rC=1;} } aD(tbP,tbN,1); if(rC){break;}else{doDiv(tbP);} } rTb=1; } if(rTb){tbP.removeChild(tbA);} } var m=/<img/i; var mb="bordercolor"; for(x=0;x<tb.length;x++){ with(tb[x]){ if(resizeForum[0]&&width=="92%"){width=resizeForum[1]+"px";} if(outerBorder[0]&&width=="100%"&&cellSpacing=="1"&& !parentNode.nodeName.match(/font/i)){style.border= "1px solid #"+outerBorder[1];} if(style.display!="none"&&className==mb&&width=="100%"&&cellPadding=="0"){ var tDiv=previousSibling; var nSib=nextSibling; if(!(tDiv&&tDiv.nodeName.match(/div/i)&&tDiv.innerHTML.match(m) )){makeDiv(head,tb[x]);} if(!(nSib&&nSib.nodeName.match(/div/i)&&nSib.innerHTML.match(m) )){makeDiv(base,nSib);} } } } if(qrCustom){ var td=document.getElementsByName("message")[0]; if(td&& !(document.searchForm||document.postForm||pLoc.match(/=emailall/i))){ with(td.style){height=qrHeight, width=qrWidth;} td.parentNode.insertBefore(document.createElement("br"), td.nextSibling); var qrP=td.parentNode; var qb=qrP.parentNode.parentNode.parentNode.parentNode.parentNode; qb.rows[1].align="center"; qb.rows[0].cells[0].align="center"; qrP.parentNode.firstChild.data=qrMess; var nFont= document.createElement("font"); nFont.innerHTML='<input name="nextaction" type="hidden" value="post"><input type="submit" accesskey="p" value="Preview" onclick="qrP.nextaction.value=\'preview\'; return true;" /> <input type="reset" value="Reset" accesskey="r" onClick="reset">'; qrP.insertBefore(nFont,qrP.lastChild); qrP.removeChild(qrP.lastChild); } } function makeDiv(dSrc,nTb){ if(!dSrc.match(/^http:\/\//i)){return;} var nDiv=document.createElement("div"); with(nDiv){align="center"; innerHTML='<img src="'+dSrc+'" />';} (nTb)? nTb.parentNode.insertBefore(nDiv,nTb): tb[x].parentNode.appendChild(nDiv); } function makeTable(){ tbN=tbA.cloneNode(false); tbN.appendChild(tbA.firstChild.cloneNode(false)); nT=tbN.firstChild; } function aD(aN,aS,tf){aN.appendChild(aS.cloneNode(tf));} function doDiv(sT){ for(var i=0;i<3;i++){ var sD=((i==1)?sDiv:nDiv).cloneNode(false); var hI=(stickySplit&&normImg)?normImg:head; if(i!=1){hI=(i)?hI:base; sD.innerHTML='<img src="'+hI+'" />';} if(hI.match(/^http:\/\//i)||i==1){sT.appendChild(sD);} } } //--> </script>
We only need the head and base variables not the entire code. If we shortened it down to just what we needed from the snippet it might work better/easier....
As far as I can tell having the main footer copy for both that code and navbar hasnt caused any errors.
|
|