Only visible--->Users
+5
h4ckerz
Honor
Japorized
ankillien
Kiekeboe
9 posters
Page 1 of 1
Only visible--->Users
What was the code in the templates witch made the part between it only visible for users?
I mean a code like this one:
<!-- BEGIN switch_legend -->
<!-- END switch_legend -->
Thanx!
I mean a code like this one:
<!-- BEGIN switch_legend -->
<!-- END switch_legend -->
Thanx!
Re: Only visible--->Users
Hello,
Do you want something that is visible only to he logged in users and not to the guests?
Do you want something that is visible only to he logged in users and not to the guests?
ankillien- Energetic
- Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL
Re: Only visible--->Users
Try this.
- Code:
<!-- BEGIN switch_user_logged_in>
CONTENT HERE
<!-- END switch_user_logged_in>
Re: Only visible--->Users
Hey I just tried this code for a chatbox I put in myself - it hides it from everyone, including members =/
Re: Only visible--->Users
It's not THE chatbox, it's a Chatango one. It's a different one. It's on the bottom of every page.
The code worked - except that it also hid it from the online users as well as the guests.
Running a PHPBB2 forum.
The code worked - except that it also hid it from the online users as well as the guests.
Running a PHPBB2 forum.
Re: Only visible--->Users
Johnson5756 wrote:Try this.
- Code:
<!-- BEGIN switch_user_logged_in>
CONTENT HERE
<!-- END switch_user_logged_in>
Where you put the code?
h4ckerz- New Member
- Posts : 14
Reputation : 0
Language : ENGLISH
Re: Only visible--->Users
In my overall_footer, where my chatbox code is.
Edit:
The chatbox code went where "Content goes here" was. This made it disappear from both the guest's sight as well as the members - even us admin.
Edit:
The chatbox code went where "Content goes here" was. This made it disappear from both the guest's sight as well as the members - even us admin.
Re: Only visible--->Users
Hello,
Can you prove a screenshot please?
Also, the URL of your forum, and the code & location in which you put it in.
Honor wrote:Hey I just tried this code for a chatbox I put in myself - it hides it from everyone, including members =/
Can you prove a screenshot please?
Also, the URL of your forum, and the code & location in which you put it in.
Darren1- Helper
- Posts : 11853
Reputation : 566
Language : English
Re: Only visible--->Users
---> Normal chatbox, viewed as admin
----> Coding for chatbox, placed in Templates>General>Overall_Footer
----> Added the code:
<!-- BEGIN switch_user_logged_in>
CONTENT HERE
<!-- END switch_user_logged_in>
-----> Still logged in as admin, but now chatbox is invisible. (Published, not the preview)
http://blueplanet.road2us.com
Re: Only visible--->Users
I can see it perfectly without being logged in. Have you taken the code out temporarily?
itsEricIndustries- Forumember
- Posts : 35
Reputation : 0
Language : English
Re: Only visible--->Users
Okay. I'm not sure what the problem is, I was just wondering.
itsEricIndustries- Forumember
- Posts : 35
Reputation : 0
Language : English
Re: Only visible--->Users
Hello,
Could you provide me with the code that you are using?
Also, do you want it on the bottom of every single page, or only the index?
Could you provide me with the code that you are using?
Also, do you want it on the bottom of every single page, or only the index?
Darren1- Helper
- Posts : 11853
Reputation : 566
Language : English
Re: Only visible--->Users
- Code:
<center><br><b><u>Enjoy the Chat!</u></b><br>Ask a Question ~ Drop a Tag ~ Get to Know Your Fellow Gamers<br><object width="800" height="600" id="obj_1277926756990"><param name="movie" value="http://bpchatter.chatango.com/group"/><param name="wmode" value="transparent"/><param name="AllowScriptAccess" VALUE="always"/><param name="AllowNetworking" VALUE="all"/><param name="AllowFullScreen" VALUE="true"/><param name="flashvars" value="cid=1277926756990&c=FFFFFF&d=6699FF&e=000000&g=FFFFFF&h=000000&j=FFFFFF&k=CCCCCC&l=000000&m=0066FF&n=FFFFFF&p=12&q=999999&s=1&v=0&w=0"/><embed id="emb_1277926756990" src="http://bpchatter.chatango.com/group" width="800" height="600" wmode="transparent" allowScriptAccess="always" allowNetworking="all" type="application/x-shockwave-flash" allowFullScreen="true" flashvars="cid=1277926756990&c=FFFFFF&d=6699FF&e=000000&g=FFFFFF&h=000000&j=FFFFFF&k=CCCCCC&l=000000&m=0066FF&n=FFFFFF&p=12&q=999999&s=1&v=0&w=0"></embed></object><br>Observe Forum Rules ~ No Spamming ~ Leave RL at the Banner<br></center><br>
Yes every single page (works when i put it in the forum overall_footer)
Re: Only visible--->Users
The BEGIN/END tag thingies are missing the "--" part of the ending. Try this, I tested it and it worked for me:
- Code:
<!-- BEGIN switch_user_logged_in -->
<center><br><b><u>Enjoy the Chat!</u></b><br>Ask a Question ~ Drop a Tag ~ Get to Know Your Fellow Gamers<br><object width="800" height="600" id="obj_1277926756990"><param name="movie" value="http://bpchatter.chatango.com/group"/><param name="wmode" value="transparent"/><param name="AllowScriptAccess" VALUE="always"/><param name="AllowNetworking" VALUE="all"/><param name="AllowFullScreen" VALUE="true"/><param name="flashvars" value="cid=1277926756990&c=FFFFFF&d=6699FF&e=000000&g=FFFFFF&h=000000&j=FFFFFF&k=CCCCCC&l=000000&m=0066FF&n=FFFFFF&p=12&q=999999&s=1&v=0&w=0"/><embed id="emb_1277926756990" src="http://bpchatter.chatango.com/group" width="800" height="600" wmode="transparent" allowScriptAccess="always" allowNetworking="all" type="application/x-shockwave-flash" allowFullScreen="true" flashvars="cid=1277926756990&c=FFFFFF&d=6699FF&e=000000&g=FFFFFF&h=000000&j=FFFFFF&k=CCCCCC&l=000000&m=0066FF&n=FFFFFF&p=12&q=999999&s=1&v=0&w=0"></embed></object><br>Observe Forum Rules ~ No Spamming ~ Leave RL at the Banner<br></center><br>
<!-- END switch_user_logged_in -->
Re: Only visible--->Users
Indeed that code does work, thanks for that Marvso
Marvso, do you mean a guest only message?
Ifso, my tutorial will help => https://help.forumotion.com/tricks-tips-f32/guest-message-phpbb2-and-punbb-only-t35641.htm
Marvso, do you mean a guest only message?
Ifso, my tutorial will help => https://help.forumotion.com/tricks-tips-f32/guest-message-phpbb2-and-punbb-only-t35641.htm
Darren1- Helper
- Posts : 11853
Reputation : 566
Language : English
Re: Only visible--->Users
Glad you got what you wanted, Honor. Nice work guys. For those without template editing (Invision, Phpbb3) You can show content to guests only like this... Place this script in "site description"
Add your content like this: [ Homepage example ] Add to: Admin Panel»Display»Homepage»Generalities»Message content
You can change both ID's titled: guests1 to whatever you want. |
Since the issue appears to be resolved, RoNothis topic is closed. |
General rules Tricks & Tips FAQ listing | For founders who lost their passwords About support requests by PM Announcements & Updates |
Similar topics
» Making forum visible only to registered users
» Customized toolbar not visible for guest users(un registered users) - Help me plzz
» Help me: Want visible related topic both Registered users & Guest users.
» Making users visible
» HTML page visible only for logged users.
» Customized toolbar not visible for guest users(un registered users) - Help me plzz
» Help me: Want visible related topic both Registered users & Guest users.
» Making users visible
» HTML page visible only for logged users.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum