The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Hiding Title and or Main Logo From Guests

View previous topic View next topic Go down

In progress Hiding Title and or Main Logo From Guests

Post by KaizerMK on March 9th 2013, 3:00 am

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 March 9th 2013, 3:05 am; edited 1 time in total

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™ on March 9th 2013, 3:02 am

Hi,

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



Attention!
- Please provide your forum URL at all times.
- When the issue is solved, please mark it as solved.



Sir Chivas™
Support Moderator
Support Moderator

Male Posts : 6783
Reputation : 430
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 on March 9th 2013, 3:04 am

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.

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™ on March 9th 2013, 3:05 am

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



Attention!
- Please provide your forum URL at all times.
- When the issue is solved, please mark it as solved.



Sir Chivas™
Support Moderator
Support Moderator

Male Posts : 6783
Reputation : 430
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 on March 9th 2013, 3:08 am

there is no option for that

main logo is viewable to all

zenzo
Forumember

Posts : 464
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 on March 9th 2013, 3:46 am

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?

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™ on March 9th 2013, 3:49 am

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



Attention!
- Please provide your forum URL at all times.
- When the issue is solved, please mark it as solved.



Sir Chivas™
Support Moderator
Support Moderator

Male Posts : 6783
Reputation : 430
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 on March 9th 2013, 3:53 am

Alright. Thanks guys for taking the time to try to help.

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™ on March 9th 2013, 4:00 am

Reopened ~ answer will be provided.



Attention!
- Please provide your forum URL at all times.
- When the issue is solved, please mark it as solved.



Sir Chivas™
Support Moderator
Support Moderator

Male Posts : 6783
Reputation : 430
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 on March 9th 2013, 5:17 am

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
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 on March 9th 2013, 10:07 am

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

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 on March 9th 2013, 6:36 pm

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
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 on March 10th 2013, 12:41 am

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.

KaizerMK
Forumember

Male Posts : 28
Reputation : 1
Language : English

http://crown.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


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