phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
signatures and avatars not visible for guests and bots

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 Forum
::  
Author Message
Markas



Joined: 04 Oct 2007
Posts: 17

signatures and avatars not visible for guests and botsPosted: Sat Oct 06, 2007 3:21 pm    Post subject: signatures and avatars not visible for guests and bots

signatures and avatars not visible for guests and bots

how to make it? please help Smile it would really save my traffic Wink
Back to top
HB
phpBB SEO Team
phpBB SEO Team


Joined: 16 Oct 2006
Posts: 829

signatures and avatars not visible for guests and botsPosted: Sat Oct 06, 2007 6:49 pm    Post subject: Re: signatures and avatars not visible for guests and bots

Not sure how it would save significant bandwidth, but you can bracket HTML you don't want shown in your viewtopic_body.tpl file with this:

Code:
<!-- BEGIN switch_user_logged_in -->
...html only shown to logged in members ...
<!-- END switch_user_logged_in -->


For example, this would hide signatures from guests:

Code:
<!-- BEGIN switch_user_logged_in -->
         <tr>
            <td class="{postrow.ROW_CLASS}" valign="bottom"><span class="postbody">{postrow.SIGNATURE}</span></td>
         </tr>
<!-- END switch_user_logged_in -->

_________________
Dan Kehn
Back to top
Visit poster's website
Markas



Joined: 04 Oct 2007
Posts: 17

signatures and avatars not visible for guests and botsPosted: Sat Oct 06, 2007 11:06 pm    Post subject: Re: signatures and avatars not visible for guests and bots

If avatar is uploaded in your forum, it means that every single guest can see it Smile so it would save my traffic, believe me Wink
Back to top
HB
phpBB SEO Team
phpBB SEO Team


Joined: 16 Oct 2006
Posts: 829

signatures and avatars not visible for guests and botsPosted: Sun Oct 07, 2007 1:32 am    Post subject: Re: signatures and avatars not visible for guests and bots

I am still skeptical. Browsers cache those icons and they're not that big anyway. The hits on the SQL database are a more likely culprit for performance issues than the web server falling behind on static images. If you are that tight for bandwidth that you're trying to save on avatars, I would consider another host.

_________________
Dan Kehn
Back to top
Visit poster's website
Markas



Joined: 04 Oct 2007
Posts: 17

signatures and avatars not visible for guests and botsPosted: Wed Oct 10, 2007 7:04 pm    Post subject: Re: signatures and avatars not visible for guests and bots

HB wrote:
Not sure how it would save significant bandwidth, but you can bracket HTML you don't want shown in your viewtopic_body.tpl file with this:

Code:
<!-- BEGIN switch_user_logged_in -->
...html only shown to logged in members ...
<!-- END switch_user_logged_in -->


For example, this would hide signatures from guests:

Code:
<!-- BEGIN switch_user_logged_in -->
         <tr>
            <td class="{postrow.ROW_CLASS}" valign="bottom"><span class="postbody">{postrow.SIGNATURE}</span></td>
         </tr>
<!-- END switch_user_logged_in -->


does this work with phpbb3? because I tried it, but when I add this code, the avatars and signatures does not appear for members too... not only for guests!!
Rolling Eyes
Back to top
HB
phpBB SEO Team
phpBB SEO Team


Joined: 16 Oct 2006
Posts: 829

signatures and avatars not visible for guests and botsPosted: Thu Oct 11, 2007 4:19 am    Post subject: Re: signatures and avatars not visible for guests and bots

I haven't tried it. My guess it you can substitute the blocks with the V3 style blocks:

Code:
<!-- IF S_USER_LOGGED_IN -->
...
<!-- ENDIF -->

_________________
Dan Kehn
Back to top
Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 Forum
Page 1 of 1

Navigation Similar Topics

Jump to: