Welcome Guest [Log In] [Register]
We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Multiquote (on) Multiquote (off)
Add Reply
Shoutbox problem? (ASK); help!
Topic Started: Jul 5 2009, 07:46 PM (855 Views)
tyo
Member
[ * ]
hi,
i'm a newbie, i have a problem with my shoubox.
My page is locate here http://s1.zetaboards.com/man1bdg/site/
and i used chatango.com for the shoutbox.
I put the shoutbox on the "above the board".

question:
How if i wanted the shoutbox can be show only with the members who have to login?
How if i wanted the shoutbox only show in the index page and portal page?


anyone please help...
thanks
Offline Profile Quote Post Goto Top
 
Brandon
Member Avatar


This question appears to be about ZetaBoards support. It's now been moved to the appropriate ZetaBoards support section. Thank you.
Offline Profile Quote Post Goto Top
 
Deleted User
Deleted User

tyo
Jul 5 2009, 07:46 PM
hi,
i'm a newbie, i have a problem with my shoubox.
My page is locate here http://s1.zetaboards.com/man1bdg/site/
and i used chatango.com for the shoutbox.
I put the shoutbox on the "above the board".

question:
How if i wanted the shoutbox can be show only with the members who have to login?
How if i wanted the shoutbox only show in the index page and portal page?


anyone please help...
thanks
Member Only Code http://support.zetaboards.com/topic/426/1/

Index Only Code http://support.zetaboards.com/topic/422/1/

However if someone has javascript disabled these can be circumvented.

The only other was to have the shoutbox and only have it available and visible to members is to open a new forum, paste the shoutbox code into the Forum description box and then set the permissions for that folder excluding guest permission masks
Quote Post Goto Top
 
C0smic1
Member
[ * ]

Using the codes from the below URLs you can do this easily.
http://support.zetaboards.com/topic/426/1/
http://support.zetaboards.com/topic/422/1/

For your convenience, this is what you should do:

Code: HTML
 
<div class="indexonly">

<div class="memberonly">

PUT SHOUTBOX HERE!!!!

</div>
<script type="text/javascript">
<!--
if(document.getElementById('top_info').innerHTML.match('Register')){document.write('<style>.memberonly \{display:none;\}</style>');}
//
-->
</script>

</div>
<script>
if(!location.href.match('/index')){document.write('<style>.indexonly\{display:none;\}</style>');}
</script>


Full credit to my two sources for making that code.
peteh
Jul 5 2009, 08:28 PM
tyo
Jul 5 2009, 07:46 PM
hi,
i'm a newbie, i have a problem with my shoubox.
My page is locate here http://s1.zetaboards.com/man1bdg/site/
and i used chatango.com for the shoutbox.
I put the shoutbox on the "above the board".

question:
How if i wanted the shoutbox can be show only with the members who have to login?
How if i wanted the shoutbox only show in the index page and portal page?


anyone please help...
thanks
Member Only Code http://support.zetaboards.com/topic/426/1/

Index Only Code http://support.zetaboards.com/topic/422/1/

However if someone has javascript disabled these can be circumvented.

The only other was to have the shoutbox and only have it available and visible to members is to open a new forum, paste the shoutbox code into the Forum description box and then set the permissions for that folder excluding guest permission masks
It can also be done by placing it on a webpage with an undisclosed url that can only be accessed via a redirect forum. And you beat me to it on giving the codes :(
Edited by C0smic1, Jul 5 2009, 08:30 PM.
Offline Profile Quote Post Goto Top
 
Deleted User
Deleted User

The only problem with using a redirect forum is that the shoutbox would not appear in the index so you would not see it refreshing when you go to the index which you would if it were in the Board Template or in the Forum Description Box
Quote Post Goto Top
 
tyo
Member
[ * ]
thanks.. its work..

hm... i have question, how if i wanted combine? memberonly and indexonly?
Offline Profile Quote Post Goto Top
 
Mwr247
Member Avatar
Cęsaris Salutis!
[ *  *  *  * ]
Hmm, those codes look familiar... ;)

Tyo, using the code example C0smic1 provided above, you should be able to combine the 2. Basically, you just surround one of the div tags with the other.
Offline Profile Quote Post Goto Top
 
tyo
Member
[ * ]
ups sorry i don't seeing the code which gived by C0smic1
thats the code which combine the two of my question..
and its work...


thanks a lot C0smic1
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · ZetaBoards Support · Next Topic »
Add Reply