jsay
Not New Member
Posts: 8
jsay said 0 great things
|
Post by jsay on Mar 15, 2011 16:26:22 GMT -8
i know i have need lots of help since i ahev joined hopefully this is my last request for a while ok so there is actully 2 things i looked in your code data base and cant seem to find your pm center code can you give it 2 me or give me a link to it i would love that. and other thing is i dont know if this is possible but i need to chancge were it seys post on the mp to posting points. if you could tell me how i would appreate it lots.
|
|
|
Post by Wormopolis on Mar 15, 2011 21:00:23 GMT -8
The PM code was never really published. I never thought anyone would want it. It was more an experiment in trying something different. I used a marquee to slide over the text when it opened. I guess I can give it to you, but please dont go reposting it anywhere.
global header
<script type="text/javascript"> <!-- // PM drop down script - By Wormopolis // DO NOT REPOST - keep header intact // use by permission only
function PM_drop() { if (PMcheck.innerHTML.match(/(\d+) (are|is) new/)) { msg3= (RegExp.$1==1 ? "" : "s"); if (RegExp.$1>0) { msg2=" "+RegExp.$1+" NEW"; } else { msg2=" NO NEW"; } }
document.getElementById('PM_cell').innerHTML='<table width="100%" align="center" vAlign="middle" style="background-color:000000;" id="PM_tableB"><tr height="50"><td width="40%" valign="middle"><marquee height="15" direction="right" behavior="slide" id="PM_marq1"><center>You have<br>'+msg2+' message'+msg3+'</center></marquee></td><td valign="middle" width="15%"><marquee height="15" direction="up" behavior="slide" id="PM_marq2"><center><a href="?action=pm">Inbox</a></center></marquee></td><td valign="middle" width="15%"><marquee height="15" direction="up" behavior="slide" id="PM_marq3"><center><a href="?action=pm&view=2">Outbox</a></center></marquee></td><td valign="middle" width="15%"><marquee height="15" direction="up" behavior="slide" id="PM_marq4"><center><a href="?action=pmprefs">Prefs</a></center></marquee></td><td valign="middle" width="15%"><marquee height="15" direction="up" behavior="slide" id="PM_marq5"><center><a href="?action=pmsend">Send</a></center></marquee></td></tr><table>';
}
var PM_HTML='<table width="100%" align="center" style="background-color:000000; background-repeat: repeat-x; background-position: center; cursor:pointer;" id="PM_tableA"><tr><td id="PM_strt" onclick="PM_drop()"><center><font size=3>PM CENTER</font><span id="msg1"></span></center></td></tr></table>'; if (pb_username!="Guest") { WT_table=document.getElementsByTagName('table')[0]; nwRow=WT_table.insertRow(-1); nwCl=nwRow.insertCell(0); nwCl.innerHTML=PM_HTML; nwCl.id="PM_cell"; var PMcheck=document.getElementsByTagName('td')[2].getElementsByTagName('font')[0]; if (PMcheck.innerHTML.match(/(\d+) (are|is) new/)) { if (RegExp.$1>0) { document.getElementById('msg1').innerHTML=" -NEW MESSAGES"; document.getElementById('PM_tableA').style.backgroundImage="url(http://i197.photobucket.com/albums/aa250/WORMOPOLIS/sqigline_e0.gif)"; } } } //--> </script>
it needs to run BEFORE any remodelling has been done to the welcome table or it wont work right
you will probably want to change the image in this line document.getElementById('PM_tableA').style.backgroundImage="url(http://i197.photobucket.com/albums/aa250/WORMOPOLIS/sqigline_e0.gif)";
to something more suited to your forum. a little red worm wiggling by wont really make sense on a ROTC forum.
as for the code to change posts to "posting points"
bottom of global footer
<script type="text/javascript"> <!-- // change posts to posting points
for (tds=document.getElementsByTagName('td'), tt=0; tt<tds.length; tt++) { if (tds[tt].className.match(/windowbg/) && tds[tt].width=='20%' && tds[tt].vAlign=='top' && tds[tt].innerHTML.match(/Posts:/)) { tds[tt].innerHTML=tds[tt].innerHTML.replace(/Posts:/,'Posting Points:'); } } //--> </script>
since a lot of codes look for "posts" in that cell, it would be wise to put this code underneath all the gf codes.
I dont mind you making requests. I dont really have a limit. If I feel overwhelmed, I just dont work on them. Im currently the only one filling requests here, and unless someone else swings by, I get to them as I can. I have a few projects in progress currently, so sometimes smaller codes are a refreshing break.
|
|
jsay
Not New Member
Posts: 8
jsay said 0 great things
|
Post by jsay on Mar 16, 2011 18:26:48 GMT -8
tyvm this helps a lot
|
|