Register Members List Search Today's Posts Mark Forums Read

Reply
 
Article Options
[TIP] Bandwidth savings tip
ironlogik
Join Date: Feb 2003
Posts: 5

by ironlogik ironlogik is offline 16 Dec 2004

For those of us with big boards, and with avatars enabled, here is a small piece of code I added to my postbit (in my case postbit_legacy) template, which makes it so that guests do not see avatars.

FIND:
------
<if condition="$show['avatar']">

ABOVE ADD:
------------
<if condition="is_member_of($bbuserinfo, 1)">
&nbsp;
<else />

THEN FIND (couple lines down):
-------------------------------
</div>
</if>

BELOW ADD:
-------------
</if>

thats it... simple yet effective.
Views: 3661
Reply With Quote
Comments
  #2  
Old 22 Dec 2004, 05:22
BamaStangGuy's Avatar
BamaStangGuy BamaStangGuy is offline
 
Join Date: Mar 2004
Real name: Brent Wilson
Very cool
Reply With Quote
  #3  
Old 22 Dec 2004, 15:13
Infopro Infopro is offline
 
Join Date: May 2003
Thumbs up

Nice. Thanks.

In my postbit if I add the </if> where you suggest it hides all data on left.
Adding the </if> just after;

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

It works great.
Reply With Quote
  #4  
Old 29 Dec 2004, 06:05
deathemperor's Avatar
deathemperor deathemperor is offline
 
Join Date: Jul 2003
Real name: Lucius Hunk
and if you have avatar categories, make all the images hosted in other servers so that the main forum is faster and lighter
Reply With Quote
  #5  
Old 05 Sep 2009, 05:51
abdobasha2004's Avatar
abdobasha2004 abdobasha2004 is offline
 
Join Date: Aug 2008
u can just wrap the code in <if condition="$show['member']"></if>

to be :

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #6  
Old 09 Sep 2009, 00:10
abdobasha2004's Avatar
abdobasha2004 abdobasha2004 is offline
 
Join Date: Aug 2008
I even developed a better looking and band width saving one :
Find and replace :

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

with :

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

this will :
1- for members show avatars as normal
2- for visitors show avatars in first post only

like it?

Last edited by abdobasha2004; 09 Sep 2009 at 00:17.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Article Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 10:03.

Layout Options | Width: Wide Color: