Hiding Title and or Main Logo From Guests
4 posters
Page 1 of 1
Hiding Title and or Main Logo From Guests
Hey guys,
Is it possible to hide the main logo and title of a forum from guests and if so how?
My site uses phpBB2.
Thanks in advance.
Is it possible to hide the main logo and title of a forum from guests and if so how?
My site uses phpBB2.
Thanks in advance.
Last edited by KaizerMK on Sat 9 Mar 2013 - 3:05; edited 1 time in total
Re: Hiding Title and or Main Logo From Guests
Hi,
I don't think you're able to hide the main logo or the title of the forum from guest, mate.
I don't think you're able to hide the main logo or the title of the forum from guest, mate.
Sir Chivas™- Helper
- Posts : 6964
Reputation : 457
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||
Re: Hiding Title and or Main Logo From Guests
The title I could understand, but it would be nice to at least be able to hide the main logo from guests.
Now is it just not possible at all, or is it not possible for phpBB2?
And thank you for your answer.
Now is it just not possible at all, or is it not possible for phpBB2?
And thank you for your answer.
Re: Hiding Title and or Main Logo From Guests
I believe that it isn't possible at all. I haven't seen this in any of the forums.
Sir Chivas™- Helper
- Posts : 6964
Reputation : 457
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||
Re: Hiding Title and or Main Logo From Guests
there is no option for that
main logo is viewable to all
main logo is viewable to all
zenzo- Forumember
- Posts : 564
Reputation : 13
Language : english,tagalog
Location : philippines
Re: Hiding Title and or Main Logo From Guests
Hmmm, would it be possible to have a different main logo display to guests than to members or have a different main logo display depending on what group a person was in?
Re: Hiding Title and or Main Logo From Guests
I don't think that would be possible. I may be wrong, you can may try creating JS, but I'm useless when it comes to JS. Just wait and see if anybody else replies
Sir Chivas™- Helper
- Posts : 6964
Reputation : 457
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||
Re: Hiding Title and or Main Logo From Guests
Alright. Thanks guys for taking the time to try to help.
Re: Hiding Title and or Main Logo From Guests
Reopened ~ answer will be provided.
Sir Chivas™- Helper
- Posts : 6964
Reputation : 457
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||
Re: Hiding Title and or Main Logo From Guests
Thank you CJ11!
Ok for those of whom do not know, phpBB2 and punBB have template editing. So this is possible for both. 1. We can hide our normal header and title to logged out users, and 2. We can give those logged out users a different look. How do we do this though? Easy
1. go to ACP>DISPLAY>TEMPLATES>GENERAL>OVERALL_HEADER
2. Find these >>>
Then wrap them in this---
<!-- BEGIN switch_user_logged_in -->
<!-- END switch_user_logged_in -->
So like this
These are php comments. Which help us out a lot !
Next find this
And do the same wrap it in the php comments
So like this
So now you are probably wondering how to get a guest look and feel? Do the following for the logo
1. Get rid of the PHP Placeholders for the img src then insert the other url (anything wrapped in curly brackets { } )
Hope this little piece helped you out
Ok for those of whom do not know, phpBB2 and punBB have template editing. So this is possible for both. 1. We can hide our normal header and title to logged out users, and 2. We can give those logged out users a different look. How do we do this though? Easy
1. go to ACP>DISPLAY>TEMPLATES>GENERAL>OVERALL_HEADER
2. Find these >>>
- Code:
<!-- BEGIN switch_h1 -->
<div id="pun-title">{switch_h1.MAIN_SITENAME}</div>
<!-- END switch_h1 -->
<!-- BEGIN switch_desc -->
<p id="pun-desc">{switch_desc.SITE_DESCRIPTION}</p>
<!-- END switch_desc -->
Then wrap them in this---
<!-- BEGIN switch_user_logged_in -->
<!-- END switch_user_logged_in -->
So like this
- Code:
<!-- BEGIN switch_user_logged_in -->
<!-- BEGIN switch_h1 -->
<div id="pun-title">{switch_h1.MAIN_SITENAME}</div>
<!-- END switch_h1 -->
<!-- BEGIN switch_desc -->
<p id="pun-desc">{switch_desc.SITE_DESCRIPTION}</p>
<!-- END switch_desc -->
<!-- END switch_user_logged_in -->
These are php comments. Which help us out a lot !
Next find this
- Code:
<a href="{U_INDEX}" id="pun-logo"><img src="{LOGO}" alt="{L_INDEX}" /></a>
And do the same wrap it in the php comments
So like this
- Code:
<!-- BEGIN switch_user_logged_in -->
<a href="{U_INDEX}" id="pun-logo"><img src="{LOGO}" alt="{L_INDEX}" /></a>
<!-- END switch_user_logged_in -->
So now you are probably wondering how to get a guest look and feel? Do the following for the logo
1. Get rid of the PHP Placeholders for the img src then insert the other url (anything wrapped in curly brackets { } )
- Code:
<!-- BEGIN switch_user_logged_in -->
<a href="{U_INDEX}" id="pun-logo"><img src="http://www.imagehosting.com/newlogo.png" alt="{L_INDEX}" /></a>
<!-- END switch_user_logged_in -->
Hope this little piece helped you out
Re: Hiding Title and or Main Logo From Guests
Thank you for your answer. I feel one step closer to accomplishing my goal.
Thing is, my code doesn't look quite like that. Still, where it looked close to what you have, I tried to wrap it in the lines you provided and it made my logo disappeared period. Logged in or not.
Here is what my code looks like:
<!-- BEGIN switch_logo_left -->
<td><a href="{U_INDEX}"><img src="{LOGO}" id="i_logo" border="0" alt="{L_INDEX}" vspace="1" /></a></td>
<!-- END switch_logo_left -->
<td align="center" width="100%" valign="middle">
<!-- BEGIN switch_logo_center -->
<a href="{U_INDEX}"><img src="{LOGO}" id="i_logo" border="0" alt="{L_INDEX}" vspace="1" /></a>
<br />
<!-- END switch_logo_center -->
<div class="maintitle">{MAIN_SITENAME}</div>
<br />
<span class="gen">{SITE_DESCRIPTION}<br /> </span>
</td>
<!-- BEGIN switch_logo_right -->
<td><a href="{U_INDEX}"><img src="{LOGO}" id="i_logo" border="0" alt="{L_INDEX}" vspace="1" /></a></td>
<!-- END switch_logo_right -->
Thing is, my code doesn't look quite like that. Still, where it looked close to what you have, I tried to wrap it in the lines you provided and it made my logo disappeared period. Logged in or not.
Here is what my code looks like:
<!-- BEGIN switch_logo_left -->
<td><a href="{U_INDEX}"><img src="{LOGO}" id="i_logo" border="0" alt="{L_INDEX}" vspace="1" /></a></td>
<!-- END switch_logo_left -->
<td align="center" width="100%" valign="middle">
<!-- BEGIN switch_logo_center -->
<a href="{U_INDEX}"><img src="{LOGO}" id="i_logo" border="0" alt="{L_INDEX}" vspace="1" /></a>
<br />
<!-- END switch_logo_center -->
<div class="maintitle">{MAIN_SITENAME}</div>
<br />
<span class="gen">{SITE_DESCRIPTION}<br /> </span>
</td>
<!-- BEGIN switch_logo_right -->
<td><a href="{U_INDEX}"><img src="{LOGO}" id="i_logo" border="0" alt="{L_INDEX}" vspace="1" /></a></td>
<!-- END switch_logo_right -->
Re: Hiding Title and or Main Logo From Guests
Ok as I forgot I have a very heavily modified template as I got rid of a lot of the deficiencies of forumotions such as tables and what not. Anyways here is what yours should look like...
If that doesn't work you may need to wrap each individual inner php comment. This I mean like so...
- Code:
<!-- BEGIN switch_user_logged_in -->
<!-- BEGIN switch_logo_left -->
<td><a href="{U_INDEX}"><img src="{LOGO}" id="i_logo" border="0" alt="{L_INDEX}" vspace="1" /></a></td>
<!-- END switch_logo_left -->
<td align="center" width="100%" valign="middle">
<!-- BEGIN switch_logo_center -->
<a href="{U_INDEX}"><img src="{LOGO}" id="i_logo" border="0" alt="{L_INDEX}" vspace="1" /></a>
<br />
<!-- END switch_logo_center -->
<div class="maintitle">{MAIN_SITENAME}</div>
<br />
<span class="gen">{SITE_DESCRIPTION}<br /> </span>
</td>
<!-- BEGIN switch_logo_right -->
<td><a href="{U_INDEX}"><img src="{LOGO}" id="i_logo" border="0" alt="{L_INDEX}" vspace="1" /></a></td>
<!-- END switch_logo_right -->
<!-- END switch_user_logged_in -->
If that doesn't work you may need to wrap each individual inner php comment. This I mean like so...
- Code:
<!-- BEGIN switch_logo_right -->
<!-- BEGIN switch_user_logged_in -->
<td><a href="{U_INDEX}"><img src="{LOGO}" id="i_logo" border="0" alt="{L_INDEX}" vspace="1" /></a></td>
<!-- END switch_logo_right -->
<!-- END switch_user_logged_in -->
Re: Hiding Title and or Main Logo From Guests
Both of those ways was how I tried it before I posted. All it does is make my main logo disappear period to where no one can see it whether they are logged in or not.
Similar topics
» Hiding logo from guests
» Hiding the main logo(on pages other than the front page)
» main LOGO and Private messages logo dissapeard too!
» Hiding subforums from main page
» Hiding Statistics From Guests
» Hiding the main logo(on pages other than the front page)
» main LOGO and Private messages logo dissapeard too!
» Hiding subforums from main page
» Hiding Statistics From Guests
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum