signatures and avatars not visible for guests and bots

Discussions about the phpBB3 Forum. How to get the best from this powerful script.
Note that there is no official support for phpBB3 here, a place to share more than to ask for.

Moderator: Moderators

signatures and avatars not visible for guests and bots

Postby Markas » Sat Oct 06, 2007 3:21 pm

signatures and avatars not visible for guests and bots

how to make it? please help :) it would really save my traffic ;)
Markas
 
Posts: 17
Joined: Thu Oct 04, 2007 9:21 am

Advertisement

Postby HB » Sat Oct 06, 2007 6:49 pm

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: Select all
<!-- 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: Select all
<!-- 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
HB
phpBB SEO Team
phpBB SEO Team
 
Posts: 1510
Joined: Mon Oct 16, 2006 2:25 am

Postby Markas » Sat Oct 06, 2007 11:06 pm

If avatar is uploaded in your forum, it means that every single guest can see it :) so it would save my traffic, believe me ;)
Markas
 
Posts: 17
Joined: Thu Oct 04, 2007 9:21 am

Postby HB » Sun Oct 07, 2007 1:32 am

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
HB
phpBB SEO Team
phpBB SEO Team
 
Posts: 1510
Joined: Mon Oct 16, 2006 2:25 am

Postby Markas » Wed Oct 10, 2007 7:04 pm

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: Select all
<!-- 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: Select all
<!-- 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!!
:roll:
Markas
 
Posts: 17
Joined: Thu Oct 04, 2007 9:21 am

Postby HB » Thu Oct 11, 2007 4:19 am

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

Code: Select all
<!-- IF S_USER_LOGGED_IN -->
...
<!-- ENDIF -->
Dan Kehn
HB
phpBB SEO Team
phpBB SEO Team
 
Posts: 1510
Joined: Mon Oct 16, 2006 2:25 am


Return to phpBB Forum

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 11 guests