frogdude
TRu Member
frogdude.proboards104.com
Posts: 211
|
Post by frogdude on Dec 3, 2007 12:45:02 GMT -5
hello, i recently installed tysons kracked skull skin, but the menu bar loads then disappears. the board is frogdude.proboards104.com can you help me fix this major prob, because i cant click any of the buttons to undo it?
|
|
|
Post by Wrighty on Dec 3, 2007 12:55:19 GMT -5
browser?
it's there for me.
|
|
|
Post by Wrighty on Dec 3, 2007 12:55:46 GMT -5
do you mean the pm bar or menu bar?
|
|
frogdude
TRu Member
frogdude.proboards104.com
Posts: 211
|
Post by frogdude on Dec 3, 2007 13:26:08 GMT -5
menu and pm
IE
|
|
|
Post by Wrighty on Dec 3, 2007 14:20:45 GMT -5
replace:
<script type="text/javascript"> <!-- /* new/no new pms in nav tree - ross http://support.proboards.com */ var td = document.getElementsByTagName('td'); if(pb_username != 'Guest') { for(i=0; i<td.length; i++) { if(td.item(i).width == '100%' && td.item(i).vAlign == 'top' && td.item(i).parentNode.parentNode.parentNode.className == '') { var navHolder = document.createElement('div'); while(td.item(i).firstChild.nextSibling.nodeName.match(/^(a|br|font|#text)$/i)) { navHolder.appendChild(td.item(i).firstChild.nextSibling) } var pmTable = '<table width="100%" cellPadding="2"><tr><td width="60%" vAlign="bottom">'; pmTable += navHolder.innerHTML; pmTable += '</td><td width="40%" align="right" vAlign="bottom"><a href="?action=pm">'; td.item(2).innerHTML.match(/ (\d+) (are|is) new./) pmTable += (RegExp.$1 != '0')? RegExp.$1+' New Private Message'+((RegExp.$2 == 'are')?'s':'') : 'No New Private Messages'; pmTable += '</a></td></tr></table>'; navHolder.innerHTML = pmTable; td.item(i).replaceChild(navHolder, td.item(i).firstChild) break; } } } //--> %<br/><script> /*W-Theatre Created By Wrighty Do Not RIP, Repost or Claim As Your Own! v1*/ var d = document.getElementsByTagName('td') d[5].firstChild.innerHTML+="<a href=index.cgi?action=theatre><img src=http://i13.tinypic.com/8fvixvm.png border=0></a>"; if(location.href.match(/action=theatre/i)){ for(i=0;i<d.length;i++){ if(d[i].innerHTML.match(/An Error Has Occurred/)){ d[i].innerHTML=d[i].innerHTML.replace(/An Error Has Occurred/,'W-Theatre'); document.title =document.title.replace(/An Error Has Occurred/,'W-Theatre'); } if(d[i].innerHTML.match(/Invalid addModule call./)){ d[i].innerHTML=d[i].innerHTML.replace(/Invalid addModule call./,wt); } } }
</script>
with:
<script type="text/javascript"> <!-- /* new/no new pms in nav tree - ross http://support.proboards.com */ var td = document.getElementsByTagName('td'); if(pb_username != 'Guest') { for(i=0; i<td.length; i++) { if(td.item(i).width == '100%' && td.item(i).vAlign == 'top' && td.item(i).parentNode.parentNode.parentNode.className == '') { var navHolder = document.createElement('div'); while(td.item(i).firstChild.nextSibling.nodeName.match(/^(a|br|font|#text)$/i)) { navHolder.appendChild(td.item(i).firstChild.nextSibling) } var pmTable = '<table width="100%" cellPadding="2"><tr><td width="60%" vAlign="bottom">'; pmTable += navHolder.innerHTML; pmTable += '</td><td width="40%" align="right" vAlign="bottom"><a href="?action=pm">'; td.item(2).innerHTML.match(/ (\d+) (are|is) new./) pmTable += (RegExp.$1 != '0')? RegExp.$1+' New Private Message'+((RegExp.$2 == 'are')?'s':'') : 'No New Private Messages'; pmTable += '</a></td></tr></table>'; navHolder.innerHTML = pmTable; td.item(i).replaceChild(navHolder, td.item(i).firstChild) break; } } } //--> </script>
<script> /*W-Theatre Created By Wrighty Do Not RIP, Repost or Claim As Your Own! v1*/ var d = document.getElementsByTagName('td') d[5].firstChild.innerHTML+="<a href=index.cgi?action=theatre><img src=http://i13.tinypic.com/8fvixvm.png border=0></a>"; if(location.href.match(/action=theatre/i)){ for(i=0;i<d.length;i++){ if(d[i].innerHTML.match(/An Error Has Occurred/)){ d[i].innerHTML=d[i].innerHTML.replace(/An Error Has Occurred/,'W-Theatre'); document.title =document.title.replace(/An Error Has Occurred/,'W-Theatre'); } if(d[i].innerHTML.match(/Invalid addModule call./)){ d[i].innerHTML=d[i].innerHTML.replace(/Invalid addModule call./,wt); } } }
</script>
If they are in different H/F then let me know.
|
|
frogdude
TRu Member
frogdude.proboards104.com
Posts: 211
|
Post by frogdude on Dec 3, 2007 18:00:43 GMT -5
like i said before, i cant get to my admin page, can someone get me a link?
|
|
|
Post by Spike on Dec 3, 2007 18:25:24 GMT -5
|
|
frogdude
TRu Member
frogdude.proboards104.com
Posts: 211
|
Post by frogdude on Dec 3, 2007 18:31:21 GMT -5
ok thanks, ill get it changed,
and...do i put the top in instead of the bottom, or the other way around?
|
|
|
Post by Spike on Dec 3, 2007 21:52:11 GMT -5
Wrighty stated that you replace where ever the old code was so just place them in the same spot as where the old code was...
|
|
frogdude
TRu Member
frogdude.proboards104.com
Posts: 211
|
Post by frogdude on Dec 4, 2007 12:11:07 GMT -5
the theater is in the main, and the pm bar is in the global
and i added the /script tag, and deleted the %, so if that was a problem, just let me know
EDIT: i just found out that since i changed some things, it only doesnt showup on the index page, all the other pages show it.
|
|
frogdude
TRu Member
frogdude.proboards104.com
Posts: 211
|
Post by frogdude on Dec 4, 2007 12:23:40 GMT -5
oh, and i just figured something else out, sry to double post!
i think these two may be comflicting
<script type="text/javascript"> /* Kracked Skull PM Bar Copyright Russell Barnard */ td = document.getElementsByTagName("td") pmRow = document.getElementsByTagName("table")[0].insertRow(1).insertCell(0); if(td[2].innerHTML.match(/pm"\>(.+?) messages<\/a/)){ pmTot = RegExp.$1 } else if(td[2].innerHTML.match(/come Guest/)){ pmTot = "N/A"; } if(td[2].innerHTML.match(/, 0 are new/)){ pmNum = "0"; } else if(td[2].innerHTML.match(/, 1 is new/)){ pmNum = "1"; } else if(td[2].innerHTML.match(/a\>, (.+?) are new/) && !td[2].innerHTML.match(/, 0 are/)){ pmNum = RegExp.$1; } else if(td[2].innerHTML.match(/come Guest/)){ pmNum = "N/A"; } if(pmNum == "0"){ msg = "No New Messages";//img for no new pms }else if(pmNum=="1"){ msg = "One New Message";//img for 1 new pm }else{ msg = "Several New Messages";//img for multiple new pms } pmRow.className = "titlebg"; pmRow.align = "left"; pmRow.width = "760"; pmRow.height = "25"; if(pb_username != "Guest"){ pmRow.innerHTML = "<div style='float: right;'>Inbox: New: <a href='/index.cgi?action=pm'>"+pmNum+"</a> Total: <a href='/index.cgi?action=pm'>"+pmTot+"</a></div>"+pb_displayname+", You Have "+msg+" <a href='/index.cgi?action=pm'>Inbox</a> · <a href='/index.cgi?action=pm&view=2'>Outbox</a> · <a href='/index.cgi?action=pmprefs'>Preferences</a> · <a href='/index.cgi?action=modifyprofile&user="+pb_username+"'>Modify Profile</a>"; } else { pmRow.innerHTML = "Hello Guest please <a href='/index.cgi?action=login'><b>login</b></a> or <a href='/index.cgi?action=register'><b>register</b></a>." } </script>
and <script type="text/javascript"> <!-- /* new/no new pms in nav tree - ross http://support.proboards.com */ var td = document.getElementsByTagName('td'); if(pb_username != 'Guest') { for(i=0; i<td.length; i++) { if(td.item(i).width == '100%' && td.item(i).vAlign == 'top' && td.item(i).parentNode.parentNode.parentNode.className == '') { var navHolder = document.createElement('div'); while(td.item(i).firstChild.nextSibling.nodeName.match(/^(a|br|font|#text)$/i)) { navHolder.appendChild(td.item(i).firstChild.nextSibling) } var pmTable = '<table width="100%" cellPadding="2"><tr><td width="60%" vAlign="bottom">'; pmTable += navHolder.innerHTML; pmTable += '</td><td width="40%" align="right" vAlign="bottom"><a href="?action=pm">'; td.item(2).innerHTML.match(/ (\d+) (are|is) new./) pmTable += (RegExp.$1 != '0')? RegExp.$1+' New Private Message'+((RegExp.$2 == 'are')?'s':'') : 'No New Private Messages'; pmTable += '</a></td></tr></table>'; navHolder.innerHTML = pmTable; td.item(i).replaceChild(navHolder, td.item(i).firstChild) break; } } } //--> </script>
|
|
|
Post by Wrighty on Dec 4, 2007 12:45:32 GMT -5
ok change the pm bar code to this
<script type="text/javascript"> /* Kracked Skull PM Bar Copyright Russell Barnard */ td = document.getElementsByTagName("td") pmRow = document.getElementsByTagName("table")[0].insertRow(1).insertCell(0);
if(td[2].innerHTML.match(/action=pm">(\d+)\s/i)) { var pmTot = RegExp.$1 } if(td[2].innerHTML.match(/, (\d+)\ (are|is) new./i)){ var pmNum = RegExp.$1 } if(pmNum == "0"){ msg = "No New Messages"; }else if(pmNum=="1"){ msg = "One New Message"; }else{ msg = "Several New Messages"; } pmRow.className = "titlebg"; pmRow.align = "left"; pmRow.width = "760"; pmRow.height = "25"; if(pb_username != "Guest"){ pmRow.innerHTML = "<div style='float: right;padding-right: 5px;'>Inbox: New: <a href='/index.cgi?action=pm'>"+pmNum+"</a> Total: <a href='/index.cgi?action=pm'>"+pmTot+"</a></div><div style='padding-left: 5px;'>"+pb_displayname+", You Have "+msg+" <a href='/index.cgi?action=pm'>Inbox</a> · <a href='/index.cgi?action=pm&view=2'>Outbox</a> · <a href='/index.cgi?action=pmprefs'>Preferences</a> · <a href='/index.cgi?action=modifyprofile&user="+pb_username+"'>Modify Profile</a></div>"; } else { pmRow.innerHTML = "<div style='padding-left: 5px;'>Hello Guest please <a href='/index.cgi?action=login'><b>login</b></a> or <a href='/index.cgi?action=register'><b>register</b></a></div>" } </script>
|
|
frogdude
TRu Member
frogdude.proboards104.com
Posts: 211
|
Post by frogdude on Dec 4, 2007 13:35:56 GMT -5
do i delete the other one?
|
|
|
Post by Wrighty on Dec 4, 2007 13:56:37 GMT -5
yes, just replace it with the new one.
|
|
|
Post by Wrighty on Dec 4, 2007 15:35:56 GMT -5
yes remove the Ross One!
|
|