|
Post by SMB on Jun 3, 2005 1:56:30 GMT -5
<script> document.getElementsByTagName('td')[2].style.display='none'; </script> Hi, I tried the above code to get rid of the Hey you message, but I need a code that will let folks know when they get a pm and will also allow them to access and review former messages. I love having a logo that is centered. Now I just need a way for folks to get their pms. Thank you so much! This message board is awesome! Susan
|
|
|
Post by g0alieb0y on Jun 3, 2005 5:41:53 GMT -5
ok, i'll see what i can do!
|
|
|
Post by g0alieb0y on Jun 3, 2005 6:07:22 GMT -5
|
|
|
Post by SMB on Jun 3, 2005 9:39:33 GMT -5
Looks good to me. How do I adjust it for my board?
|
|
|
Post by g0alieb0y on Jun 3, 2005 10:08:06 GMT -5
i dont think that you have to do anything
|
|
|
Post by g0alieb0y on Jun 3, 2005 10:28:16 GMT -5
|
|
|
Post by SMB on Jun 3, 2005 10:54:44 GMT -5
I tried the following code:
<script type="text/javascript"> <!-- //Oni PM Bar v1.0 //Code Created By Himura TD = document.getElementsByTagName('TD') TD[2].style.display="none" TB = document.getElementsByTagName('Table')[0].insertRow(2) InCell = TB.insertCell(-1) InCell.align='center' InCell.className='catbg' if(TD[2].innerHTML.match(/Hey, (.+?), you /i)){ CurName = RegExp.$1} if(TD[2].innerHTML.match(/0 are new/i)){InCell.innerHTML+="["+CurName+"] - [<a href='index.cgi?action=im'>No New Messages</a>]" }else if(TD[2].innerHTML.match(/1 is new/i)){InCell.innerHTML+="["+CurName+"] - [<a href='index.cgi?action=im'>1 New Message</a>]"}else if(TD[2].innerHTML.match(/Guest/i)){ InCell.innerHTML+="[Guest] - [<a href='index.cgi?action=login'>Login</a>] [<a href='index.cgi?action=register'>Register</a>]"}else{InCell.innerHTML+="["+CurName+"] - [<a href='index.cgi?action=im'>You Have New Messages</a>]"}//--></script>
It appears on my site ok, but when I click on messages, I get this error message:
error message: Invalid addModule call.
It is probably something I am not doing quite right.
Thank you for your patience.
|
|
|
Post by g0alieb0y on Jun 3, 2005 10:57:33 GMT -5
huh? well maybe you should try the other code i posted above EDIT: never mind!. Can i have a link to your site?
|
|
|
Post by SMB on Jun 3, 2005 11:02:53 GMT -5
|
|
|
Post by g0alieb0y on Jun 3, 2005 11:06:48 GMT -5
well, unfortunately i have to go really soon. but i see what the problem is. I'll try to see-- doh! i know the problem! your on V4! thats a v3 code! lol!! ok, i'll make some PM center codes for V4 lol
|
|
|
Post by SMB on Jun 3, 2005 11:11:18 GMT -5
Thank you so much. I am in no hurry. Thanks for all of your help. ;D
Susan
|
|
|
Post by SMB on Jun 3, 2005 23:57:09 GMT -5
Hi, I got this upgraded code from someone at proboards. It did the trick. <script type="text/javascript"> <!-- //Oni PM Bar v1.0 //Code Created By Himura TD = document.getElementsByTagName('TD') TD[2].style.display="none" TB = document.getElementsByTagName('Table')[0].insertRow(2) InCell = TB.insertCell(-1) InCell.align='center' InCell.className='catbg' if(TD[2].innerHTML.match(/Hey, (.+?), you /i)){ CurName = RegExp.$1} if(TD[2].innerHTML.match(/0 are new/i)){InCell.innerHTML+="["+CurName+"] - [<a href='index.cgi?action=pm'>No New Messages</a>]" }else if(TD[2].innerHTML.match(/1 is new/i)){InCell.innerHTML+="["+CurName+"] - [<a href='index.cgi?action=pm'>1 New Message</a>]"}else if(TD[2].innerHTML.match(/Guest/i)){ InCell.innerHTML+="[Guest] - [<a href='index.cgi?action=login'>Login</a>] [<a href='index.cgi?action=register'>Register</a>]"}else{InCell.innerHTML+="["+CurName+"] - [<a href='index.cgi?action=pm'>You Have New Messages</a>]"}//--></script>
|
|