| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
Markas
Joined: 04 Oct 2007 Posts: 17
|
Posted: 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 it would really save my traffic  |
|
|
| Back to top |
|
 |
|
 |
HB phpBB SEO Team

Joined: 16 Oct 2006 Posts: 829
|
Posted: 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 |
|
 |
Markas
Joined: 04 Oct 2007 Posts: 17
|
Posted: 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 so it would save my traffic, believe me  |
|
|
| Back to top |
|
 |
HB phpBB SEO Team

Joined: 16 Oct 2006 Posts: 829
|
Posted: 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 |
|
 |
Markas
Joined: 04 Oct 2007 Posts: 17
|
Posted: 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!!
 |
|
|
| Back to top |
|
 |
HB phpBB SEO Team

Joined: 16 Oct 2006 Posts: 829
|
Posted: 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 |
|
 |
|
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |