Danny
Posts Too Much
Formerly Schnooble
Posts: 332
|
Post by Danny on Apr 21, 2007 20:40:06 GMT
yeah il make a code when im home as im at my mates party and pretty wasted.
|
|
Danny
Posts Too Much
Formerly Schnooble
Posts: 332
|
Post by Danny on Apr 22, 2007 20:17:54 GMT
right replace the javascript section I give you with this again sorry about the code being wierd im still experimenting with DOM <script type="text/javascript"> <!--
document.body.innerHTML.match(/hey, .*, you have <.*>(.*) messages?.*?, (\d+,\d+|\d+) (are|is) new/i); var totalPms = RegExp.$1 var newPms = RegExp.$2 var pmTotal = document.createTextNode("Total Pm\'s: "+totalPms); var pmNew = document.createTextNode("New Pm\'s: "+newPms); var inbox = document.createElement("a"); inbox.href ='/index.cgi?action=pm&view=1'; inbox.appendChild(document.createTextNode("Inbox")); var outbox = document.createElement("a"); outbox.href ='/index.cgi?action=pm&view=2'; outbox.appendChild(document.createTextNode("Outbox")); var send = document.createElement("a"); send.href ='/index.cgi?action=pmsend'; send.appendChild(document.createTextNode("New Message")); var login = document.createElement("a"); login.href ='/index.cgi?action=login'; login.appendChild(document.createTextNode("Login")); var reg = document.createElement("a"); reg.href ='/index.cgi?action=register'; reg.appendChild(document.createTextNode("Register")); if(pb_username == 'Guest'){ document.getElementById("pm").appendChild(login); document.getElementById("pm").appendChild(document.createElement("br")); document.getElementById("pm").appendChild(reg); }else{ document.getElementById("pm").appendChild(pmTotal); document.getElementById("pm").appendChild(document.createElement("br")); document.getElementById("pm").appendChild(document.createTextNode("-----------------")); document.getElementById("pm").appendChild(document.createElement("br")); document.getElementById("pm").appendChild(pmNew); document.getElementById("pm").appendChild(document.createElement("br")); document.getElementById("pm").appendChild(document.createTextNode("-----------------")); document.getElementById("pm").appendChild(document.createElement("br")); document.getElementById("pm").appendChild(inbox); document.getElementById("pm").appendChild(document.createElement("br")); document.getElementById("pm").appendChild(document.createTextNode("-----------------")); document.getElementById("pm").appendChild(document.createElement("br")); document.getElementById("pm").appendChild(outbox); document.getElementById("pm").appendChild(document.createElement("br")); document.getElementById("pm").appendChild(document.createTextNode("-----------------")); document.getElementById("pm").appendChild(document.createElement("br")); document.getElementById("pm").appendChild(send); }
//--> </script>
|
|
erika
New Member
Posts: 24
|
Post by erika on Apr 22, 2007 23:36:40 GMT
Thanks a lot Danny for the code!
Is it possible Danny to put the "LOGIN" ______________________________ Username: Create New Account Password: Forgot Your Password?
Stay logged in for: 6 hours ______________________________
instead of "login" and "register"!
|
|
Danny
Posts Too Much
Formerly Schnooble
Posts: 332
|
Post by Danny on Apr 23, 2007 11:15:35 GMT
im not sure. it may be against the proboards TOS. you should ask on Support
|
|
erika
New Member
Posts: 24
|
Post by erika on Apr 25, 2007 12:37:19 GMT
Me too I'm not sure! Sorry Danny I'll ask you again the complete code?
Hello Guest! ----------------- Please login ---------------- or register ----------------
and
Hello User ---------------- you have --------------- Total Pm: 30 ----------------- New Pm: 0 ----------------- Inbox ----------------- Outbox ----------------- New message
Thanks again
|
|
Danny
Posts Too Much
Formerly Schnooble
Posts: 332
|
Post by Danny on Apr 25, 2007 15:57:34 GMT
<script type="text/javascript"> <!--
document.body.innerHTML.match(/hey, .*, you have <.*>(.*) messages?.*?, (\d+,\d+|\d+) (are|is) new/i); var totalPms = RegExp.$1 var newPms = RegExp.$2 var pmTotal = document.createTextNode("Total Pm\'s: "+totalPms); var pmNew = document.createTextNode("New Pm\'s: "+newPms); var inbox = document.createElement("a"); inbox.href ='/index.cgi?action=pm&view=1'; inbox.appendChild(document.createTextNode("Inbox")); var outbox = document.createElement("a"); outbox.href ='/index.cgi?action=pm&view=2'; outbox.appendChild(document.createTextNode("Outbox")); var send = document.createElement("a"); send.href ='/index.cgi?action=pmsend'; send.appendChild(document.createTextNode("New Message")); var login = document.createElement("a"); login.href ='/index.cgi?action=login'; login.appendChild(document.createTextNode("Login")); var reg = document.createElement("a"); reg.href ='/index.cgi?action=register'; reg.appendChild(document.createTextNode("Register")); if(pb_username == 'Guest'){ document.getElementById("pm").appendChild(document.createTextNode("Hello "+pb_displayname)); document.getElementById("pm").appendChild(document.createElement("br")); document.getElementById("pm").appendChild(document.createTextNode("-----------------")); document.getElementById("pm").appendChild(document.createElement("br")); document.getElementById("pm").appendChild(login); document.getElementById("pm").appendChild(document.createElement("br")); document.getElementById("pm").appendChild(document.createTextNode("-----------------")); document.getElementById("pm").appendChild(document.createElement("br")); document.getElementById("pm").appendChild(reg); }else{ document.getElementById("pm").appendChild(document.createTextNode("Hello "+pb_displayname)); document.getElementById("pm").appendChild(document.createElement("br")); document.getElementById("pm").appendChild(document.createTextNode("-----------------")); document.getElementById("pm").appendChild(document.createElement("br")); document.getElementById("pm").appendChild(pmTotal); document.getElementById("pm").appendChild(document.createElement("br")); document.getElementById("pm").appendChild(document.createTextNode("-----------------")); document.getElementById("pm").appendChild(document.createElement("br")); document.getElementById("pm").appendChild(pmNew); document.getElementById("pm").appendChild(document.createElement("br")); document.getElementById("pm").appendChild(document.createTextNode("-----------------")); document.getElementById("pm").appendChild(document.createElement("br")); document.getElementById("pm").appendChild(inbox); document.getElementById("pm").appendChild(document.createElement("br")); document.getElementById("pm").appendChild(document.createTextNode("-----------------")); document.getElementById("pm").appendChild(document.createElement("br")); document.getElementById("pm").appendChild(outbox); document.getElementById("pm").appendChild(document.createElement("br")); document.getElementById("pm").appendChild(document.createTextNode("-----------------")); document.getElementById("pm").appendChild(document.createElement("br")); document.getElementById("pm").appendChild(send); }
//--> </script>
|
|
erika
New Member
Posts: 24
|
Post by erika on Apr 25, 2007 17:05:57 GMT
Thanks Danny! How can I replace "Vizitor" at least of "Guest"?
|
|
Danny
Posts Too Much
Formerly Schnooble
Posts: 332
|
Post by Danny on Apr 25, 2007 21:01:07 GMT
If what you want is the Hello guest changing to hello Visitor use this.
<script type="text/javascript"> <!--
document.body.innerHTML.match(/hey, .*, you have <.*>(.*) messages?.*?, (\d+,\d+|\d+) (are|is) new/i); var totalPms = RegExp.$1 var newPms = RegExp.$2 var pmTotal = document.createTextNode("Total Pm\'s: "+totalPms); var pmNew = document.createTextNode("New Pm\'s: "+newPms); var inbox = document.createElement("a"); inbox.href ='/index.cgi?action=pm&view=1'; inbox.appendChild(document.createTextNode("Inbox")); var outbox = document.createElement("a"); outbox.href ='/index.cgi?action=pm&view=2'; outbox.appendChild(document.createTextNode("Outbox")); var send = document.createElement("a"); send.href ='/index.cgi?action=pmsend'; send.appendChild(document.createTextNode("New Message")); var login = document.createElement("a"); login.href ='/index.cgi?action=login'; login.appendChild(document.createTextNode("Login")); var reg = document.createElement("a"); reg.href ='/index.cgi?action=register'; reg.appendChild(document.createTextNode("Register")); if(pb_username == 'Guest'){ document.getElementById("pm").appendChild(document.createTextNode("Hello Visitor")); document.getElementById("pm").appendChild(document.createElement("br")); document.getElementById("pm").appendChild(document.createTextNode("-----------------")); document.getElementById("pm").appendChild(document.createElement("br")); document.getElementById("pm").appendChild(login); document.getElementById("pm").appendChild(document.createElement("br")); document.getElementById("pm").appendChild(document.createTextNode("-----------------")); document.getElementById("pm").appendChild(document.createElement("br")); document.getElementById("pm").appendChild(reg); }else{ document.getElementById("pm").appendChild(document.createTextNode("Hello "+pb_displayname)); document.getElementById("pm").appendChild(document.createElement("br")); document.getElementById("pm").appendChild(document.createTextNode("-----------------")); document.getElementById("pm").appendChild(document.createElement("br")); document.getElementById("pm").appendChild(pmTotal); document.getElementById("pm").appendChild(document.createElement("br")); document.getElementById("pm").appendChild(document.createTextNode("-----------------")); document.getElementById("pm").appendChild(document.createElement("br")); document.getElementById("pm").appendChild(pmNew); document.getElementById("pm").appendChild(document.createElement("br")); document.getElementById("pm").appendChild(document.createTextNode("-----------------")); document.getElementById("pm").appendChild(document.createElement("br")); document.getElementById("pm").appendChild(inbox); document.getElementById("pm").appendChild(document.createElement("br")); document.getElementById("pm").appendChild(document.createTextNode("-----------------")); document.getElementById("pm").appendChild(document.createElement("br")); document.getElementById("pm").appendChild(outbox); document.getElementById("pm").appendChild(document.createElement("br")); document.getElementById("pm").appendChild(document.createTextNode("-----------------")); document.getElementById("pm").appendChild(document.createElement("br")); document.getElementById("pm").appendChild(send); }
//--> </script>
|
|
erika
New Member
Posts: 24
|
Post by erika on Apr 26, 2007 13:05:47 GMT
Thanks a lot Danny ! Bye
|
|
Danny
Posts Too Much
Formerly Schnooble
Posts: 332
|
Post by Danny on Apr 26, 2007 14:49:20 GMT
no problem
|
|
erika
New Member
Posts: 24
|
Post by erika on Apr 27, 2007 20:44:32 GMT
Danny Is it possible to have some of the info center in the left side menu?
example: "Users Online"
Today's Birthdays
|
|
Danny
Posts Too Much
Formerly Schnooble
Posts: 332
|
Post by Danny on Apr 27, 2007 23:50:24 GMT
it is possible but I still suck at coding. youd be best asking in code requests for this one and maybe dre or ross can help you
|
|
erika
New Member
Posts: 24
|
Post by erika on Apr 28, 2007 12:41:42 GMT
Thanks Danny
|
|
erika
New Member
Posts: 24
|
Post by erika on May 5, 2007 14:30:57 GMT
Thanks a lot Danny for the code! Is it possible Danny to put the "LOGIN" ______________________________ Username: Create New Account Password: Forgot Your Password? Stay logged in for: 6 hours ______________________________ instead of "login" and "register"! Hi Danny. My friend asked in support for that and they sayed me that it's ok! She said that I need to do it myself! support.proboards.com/index.cgi?board=coderequests&action=display&n=1&thread=1177331396&page=1#1178307635And I have done it! Here is the code <table bgcolor="7EB4CD" width="164" border="0" cellspacing="1" cellpadding="0"> <tr><td><div align="center"><font class="block-title"><strong>Login</strong></font></div></td> </tr><tr bgcolor="7EB4CD"> <tr><td align="center" class="windowbg2"> <table border="0" color="0C6EAC" class="bordercolor" width="100%" cellspacing="0" cellpadding="0" valign="center"> <tr> </tr> <tr> <td align="center" class="windowbg2"> <table cellpadding="4" cellspacing="1" border="1" width="100%"> <tr> <td width="100%" class="windowbg" bgcolor="15172D"><font size="1"><form action="/index.cgi" method="post" name="loginform" onSubmit="disable(this)"><input type="hidden" name="action" value="login2"><center><table width="50" cellpadding="0" cellspacing="3" border="0"><tr><td width="55">User:</td><td width="50"><input type="text" name="username" size="11" tabindex="1" maxlength="8"/></td> </tr> <tr> <td width="55">Pass:</td><td width="55"><input type="password" name="password" size="11" tabindex="2"/></td> </tr> <tr> <td width="50">Login for::</td><td width="55"><select name="minutes" tabindex="3"><option value="15">15 minutes</option><option value="30">30 minutes</option><option value="60">1 hour</option><option value="120">2 hours</option><option value="240">4 hours</option><option value="360" selected="1">6 hours</option><option value="220">12 hours</option><option value="1440">1 day</option><option value="10080">1 week</option><option value="-1">Forever</option></select></td><td width="50"></td></tr><tr><td width="55"></td><td width="55"><input type="submit" value="Login" tabindex="4"/></td> <td width="100"></td> </tr></form> </table></center></font> <a href="/index.cgi?action=register">Create New Account</a> <br> <a href="/index.cgi?action=forgotpassword">Forgot Your Password?</a> </td> </tr> </table> </td> </tr> </table> </td></tr> <tr><td class="catbg" height="18" align="center"> <font size="2" class="cattext"> </font></td></tr></table> I need your Help! Can you connect me with the last PM that you have done for me! Thanks Danny
|
|
Danny
Posts Too Much
Formerly Schnooble
Posts: 332
|
Post by Danny on May 5, 2007 20:58:47 GMT
connect you with the last pm ?
|
|