|
Post by doctorkitty on Sept 25, 2005 19:35:18 GMT
omg your doing it wrong then :\ let me refrase the code for you: put your saybox username where it says username ok, i did use this code above... and it hide it COMPLETELY.... nobody could see the saybox...even members...
|
|
|
Post by Fredy on Sept 25, 2005 21:18:21 GMT
you put your saybox username where it says username right?
|
|
|
Post by doctorkitty on Sept 25, 2005 21:25:03 GMT
you put your saybox username where it says username right? yes i did.
|
|
|
Post by doctorkitty on Sept 25, 2005 21:51:22 GMT
i'm using an invision board if it can help to understand the problem....
|
|
|
Post by Fredy on Sept 25, 2005 22:32:07 GMT
that does solve the problem. the code for proboards wonm't work on invision
|
|
|
Post by Renegade on Sept 25, 2005 22:49:24 GMT
i'm using an invision board if it can help to understand the problem.... The code for Invision boards can be found here
|
|
|
Post by doctorkitty on Sept 26, 2005 0:35:59 GMT
thanks a lot for your help
|
|
rook
New Member
Posts: 38
|
Post by rook on Mar 16, 2006 23:14:19 GMT
In order to hide your saybox from guests on your proboard, add the following code to the top of your headers <script> var username = 0; getUser= document.getElementsByTagName('A'); for (a=0;a<getUser.length;a++){ if (getUser[a].href.indexOf('action=viewprofile') != -1){ username = getUser[a].href; }} if (username==0) document.write('<style>#shoutbox {display: none;}</style>'); </script> Add your usual saybox code as follows: <div id="shoutbox"> SAYBOX CODE </div> does the saybox have to be in the headers? and which headers?
|
|
|
Post by Fredy on Mar 21, 2006 21:55:57 GMT
no. the saybox itself just has to be between the div code. BUT, the first code must go in headers.
which headers? it depends where you put your saybox. if you put saybox in main, put code in main. if you put saybox in global, put code in global. gotta make sure they are together.
|
|
|
Post by ~LindaV on Oct 25, 2006 0:47:28 GMT
If I hide the SayBox from non-members, does that mean members have to be signed into the forum to see it as well?
Thanks, Linda
|
|
|
Post by Ron on Oct 25, 2006 6:38:07 GMT
If I hide the SayBox from non-members, does that mean members have to be signed into the forum to see it as well? Thanks, Linda Yep, using this code you'll have to be signed into the forum to see the SayBox.
|
|
|
Post by ~LindaV on Oct 25, 2006 12:24:39 GMT
Ok. Thanks for responding.
|
|
|
Post by sosuagal on Feb 7, 2007 13:51:49 GMT
Thanks for this code- it is awesome- I am a new member and wanted to keep lurkers from using my saybox...this is great!
|
|
eln82
New Member
Posts: 5
|
Post by eln82 on Apr 12, 2007 11:32:07 GMT
Thanks for the code.
I've used it and its not stoping guests from seeing the shoutbox and it now says "no user by that name exists" at the top of the page. I placed the code in the main header and changed the USERNAME to the saybox username.
Any ideas?
Thanks
|
|
|
Post by Ron on Apr 13, 2007 3:57:17 GMT
Thanks for the code. I've used it and its not stoping guests from seeing the shoutbox and it now says "no user by that name exists" at the top of the page. I placed the code in the main header and changed the USERNAME to the saybox username. Any ideas? Thanks Hi, Please try the updated code in the first post. Ron
|
|