The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Hiding Title and or Main Logo From Guests

4 posters

Go down

In progress Hiding Title and or Main Logo From Guests

Post by KaizerMK Sat 9 Mar 2013 - 3:00

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.


Last edited by KaizerMK on Sat 9 Mar 2013 - 3:05; edited 1 time in total
avatar
KaizerMK
Forumember

Male Posts : 28
Reputation : 1
Language : English

http://crown.forumotion.com/

Back to top Go down

In progress Re: Hiding Title and or Main Logo From Guests

Post by Sir Chivas™ Sat 9 Mar 2013 - 3:02

Hi,

I don't think you're able to hide the main logo or the title of the forum from guest, mate. :/
Sir Chivas™
Sir Chivas™
Helper
Helper

Male Posts : 6964
Reputation : 457
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||

Back to top Go down

In progress Re: Hiding Title and or Main Logo From Guests

Post by KaizerMK Sat 9 Mar 2013 - 3:04

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.
avatar
KaizerMK
Forumember

Male Posts : 28
Reputation : 1
Language : English

http://crown.forumotion.com/

Back to top Go down

In progress Re: Hiding Title and or Main Logo From Guests

Post by Sir Chivas™ Sat 9 Mar 2013 - 3:05

I believe that it isn't possible at all. I haven't seen this in any of the forums.
Sir Chivas™
Sir Chivas™
Helper
Helper

Male Posts : 6964
Reputation : 457
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||

Back to top Go down

In progress Re: Hiding Title and or Main Logo From Guests

Post by zenzo Sat 9 Mar 2013 - 3:08

there is no option for that

main logo is viewable to all
zenzo
zenzo
Forumember

Posts : 564
Reputation : 13
Language : english,tagalog
Location : philippines

Back to top Go down

In progress Re: Hiding Title and or Main Logo From Guests

Post by KaizerMK Sat 9 Mar 2013 - 3:46

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?
avatar
KaizerMK
Forumember

Male Posts : 28
Reputation : 1
Language : English

http://crown.forumotion.com/

Back to top Go down

In progress Re: Hiding Title and or Main Logo From Guests

Post by Sir Chivas™ Sat 9 Mar 2013 - 3:49

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™
Sir Chivas™
Helper
Helper

Male Posts : 6964
Reputation : 457
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||

Back to top Go down

In progress Re: Hiding Title and or Main Logo From Guests

Post by KaizerMK Sat 9 Mar 2013 - 3:53

Alright. Thanks guys for taking the time to try to help.
avatar
KaizerMK
Forumember

Male Posts : 28
Reputation : 1
Language : English

http://crown.forumotion.com/

Back to top Go down

In progress Re: Hiding Title and or Main Logo From Guests

Post by Sir Chivas™ Sat 9 Mar 2013 - 4:00

Reopened ~ answer will be provided.
Sir Chivas™
Sir Chivas™
Helper
Helper

Male Posts : 6964
Reputation : 457
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||

Back to top Go down

In progress Re: Hiding Title and or Main Logo From Guests

Post by nextlevelgaming Sat 9 Mar 2013 - 5:17

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 >>>

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 -->
That is all you need, make sure it is directly below the first logo. Same goes for the title and description Smile

Hope this little piece helped you out
nextlevelgaming
nextlevelgaming
Forumember

Male Posts : 989
Reputation : 38
Language : English|CSS|HTML5|javascript|
Location : New York

http://www.easybbtutorials.forumotion.com

Back to top Go down

In progress Re: Hiding Title and or Main Logo From Guests

Post by KaizerMK Sat 9 Mar 2013 - 10:07

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 -->
avatar
KaizerMK
Forumember

Male Posts : 28
Reputation : 1
Language : English

http://crown.forumotion.com/

Back to top Go down

In progress Re: Hiding Title and or Main Logo From Guests

Post by nextlevelgaming Sat 9 Mar 2013 - 18:36

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...


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 -->
nextlevelgaming
nextlevelgaming
Forumember

Male Posts : 989
Reputation : 38
Language : English|CSS|HTML5|javascript|
Location : New York

http://www.easybbtutorials.forumotion.com

Back to top Go down

In progress Re: Hiding Title and or Main Logo From Guests

Post by KaizerMK Sun 10 Mar 2013 - 0:41

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.
avatar
KaizerMK
Forumember

Male Posts : 28
Reputation : 1
Language : English

http://crown.forumotion.com/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum