Dubz
The Little Designer
Posts: 91
|
Post by Dubz on Oct 22, 2006 18:05:14 GMT 1
hey guys i see you got some real nice forum out here and i got a problem. i'm making a forum ( thelegends1.proboards80.com/index.cgi) but when i'm guest i see (Hello, guest. Please login or register to use the Forum.) and when i'm logged in i see (Hello undefined. ,You have 1 Messages, 1 are new.) why this (undefined) is it normal that it is like that can you guys help ?
|
|
|
Post by 0 on Oct 22, 2006 18:18:54 GMT 1
Hey man. Well you have a nice looking forum yourself. I guess you are using a skin? from one of the proboards design sites. Well in that skin is a code. This code adds a PM script under your banner. Well obviously there is a conflict between codes somewhere and it isnt working. I looked at the script and it looks right so if it isnt working correctly then best to remove it. I think this code will be in your global header. <script language="JavaScript" type="text/JavaScript"> var td = document.getElementsByTagName('TD'); if(td[2].innerHTML.match(/Hello!, (.+?), you/i)){ var User = RegExp.$1 } if(td[2].innerHTML.match(/action=pm">(\d+)\s/i)) { var Total = RegExp.$1 } if(td[2].innerHTML.match(/, (\d+)\ is new./i)){ var New = RegExp.$1 } if(td[2].innerHTML.match(/guest/i)){ td[5].innerHTML+='<br />Hello, guest. Please <a href="/index.cgi?action=login">login</a> or <a href="/index.cgi?action=register">register</a> to use the Forum.'; } if(td[2].innerHTML.match(/Hey,/i)){ td[5].innerHTML+='<br />Hello '+User+'. <a href="/index.cgi?action=pm">,You have '+Total+' Messages</a>, '+New+' are new.'; } document.getElementsByTagName('td')[2].style.display='none'; document.getElementsByTagName('font')[1].style.display='none'; </script>
Remove it and problem will be solved.
|
|
Dubz
The Little Designer
Posts: 91
|
Post by Dubz on Oct 22, 2006 18:22:56 GMT 1
ok ill try ;D thx for your FAST help!! Cya
|
|
|
Post by 0 on Oct 22, 2006 18:34:34 GMT 1
No worries m8. Hoff wars atm so Im not too busy.
I learnt quite alot about proboards. Easy if you know what you are looking for. Just not everything shows up on the page source though. Lucky that code did.
Most codes are copyrighted so we cant share them here but I can point you to a few good coding sites if you are interested.
|
|
Dubz
The Little Designer
Posts: 91
|
Post by Dubz on Oct 22, 2006 18:49:02 GMT 1
sure !! thx mate i like to learn more about coding (forum,html,php,...) Diablo the little designer
|
|
|
Post by 0 on Oct 22, 2006 18:58:48 GMT 1
|
|
Dubz
The Little Designer
Posts: 91
|
Post by Dubz on Oct 22, 2006 19:02:12 GMT 1
haha thx m8
|
|