Thread: Show Thread Enhancements - YouTube Video Avatars for specified usergroups
View Single Post
  #16  
Old 06-26-2007, 08:00 AM
PoetJA-1975's Avatar
PoetJA-1975 PoetJA-1975 is offline
 
Join Date: Sep 2006
Location: Meh...
Posts: 1,218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Postbit below 4x4 Mecca - thanx very much
Question: Would make a difference in the code if you have default avatar selected to show?
Thanx again -

Jacquii.

Quote:
<!-- user info -->
<table cellpadding="0" cellspacing="$stylevar[cellpadding]" border="0" width="100%">
<tr>
<if condition="$show['avatar']">
<!-- check for staff -->
<if condition="in_array($post[usergroupid], array(5,6,7))">
<!-- I am staff so do this -->
<td class="alt2">

<table cellpadding="4" cellspacing="0" border="0" width="190" height="120" align="center" background="images/$post[username]_avatar.gif" nowrap="nowrap" no-repeat>
<tr>
<td width="46%">&nbsp;</td>
<td><img src="$post[avatarurl]" height="70" width="70" align="center"></td>
</tr>
</table>
</td>
<else />
<!-- I am not staff so do this -->
<td class="alt2">
<a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
</td>
</if>
</if>
<td nowrap="nowrap">
<fieldset class="fieldset">
<legend><font face="Arial Black">Member Information</font></legend>
<div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
$post[onlinestatus]
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]
</if>
</div>
<if condition="$post[field9] != ''"><div class="smallfont">
Real Name: <strong>$post[field9]</strong>
</div></if>
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
<if condition="$post['rank']"><div class="smallfont" align="center">$post[rank]</div></if>
<if condition="!empty($post[mood])">
<div class="smallfont" align="center">
$vbphrase[my_mood]: <img src="images/mood/$post[mood].gif" border="0" />
</if></div>

<if condition="$thread[postusername]==$post[username]"><div class="smallfont" align="center">
<img src="$stylevar[imgdir_misc]/tstarter.gif" alt="This Member Is The Original Thread Starter" border="0" /></div>
</if></fieldset>
</td>
<td width="100%">&nbsp;</td>
<td valign="top" nowrap="nowrap">
<div class="smallfont">
$post[crowns]$post[champtext]
<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
<if condition="$show['last_seen_online']"><div>$vbphrase[last_seen_online]: $post[lastseen_date] $post[lastseen_time]</div></if>
<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>

<!-- Local Date and Time in Post -->
<if condition="$post[userid]">
<div class="smallfont" align="left">
$vbphrase[bf2_local_time]: $post[localtime]
</div>
</if>
<!-- Local Date and Time in Post -->

<div>
$vbphrase[posts]: <a href="search.php?$session[sessionurl]do=finduser&amp;u=$post[userid]" rel="nofollow">$post[posts]</a> $vbphrase[threads]: <a href="search.php?$session[sessionurl]do=process&amp;showposts=0&amp;starteronly=1&amp;e xactname=1&amp;searchuser=$post[username]" rel="nofollow">$post[threads]</a>
</div>
<div class="smallfont">
<if condition="$post['age']">$vbphrase[age]: <if condition="$show[member]">$post[age]<else />$vbphrase[peterska2_private]</if></if> </if> <if condition="$post['zodiac_sign']">$post[zodiac_sign]</if><if condition="$post[field8]">$vbphrase[gender] <img src="$stylevar[imgdir_misc]/$post[field8].gif" alt="$post[field8]" />
<if condition="$post[field6] != ''">
Country: <img src="images/flags/$post[field6].gif" title="$post[field6]" align="center">
</div></if>
<div class="smallfont">
<if condition="$show['reppower']">
<div>$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower] @ $post[reputation]</span></div>
</if>
<if condition="$show['reputation']">
<div style="padding-bottom:2px"><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div>
</if>
</div>
<div><if condition="$show[member]">$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon] <if condition="$show['homepage']"><a href="$post[homepage]" target="_blank" dir="ltr"><img src="images/misc/userhome.gif" alt="Member's Website" border="0" /></a></if><if condition="$post[field11]">
<!-- Myspace button -->
<a href="http://www.myspace.com/$post[field11]" target="_blank">
<img src="images/misc/myspace.png" border="0" title="View My MySpace"></a>
<!-- / Myspace button -->
</if><else />$vbphrase[peterska2_im_is_private]</if>

</if></div>
<!-- show awards -->
<if condition="$post[showuserawards]">
<fieldset><legend><a href="member.php?u=$post[userid]#award" title="$vbphrase[more_awards]">$vbphrase[award_showcase]</a></legend>
<div>
$post[userawards]
<br>
<a href="member.php?u=$post[userid]#award" title="$vbphrase[more_awards]">$vbphrase[total_awards]</a>: $post[num_awards]
</div>
<if condition="$show['iprof_rating']">
<div>
<if condition="$show['who_rated_member']"><a href="#" onclick="who_rated_member($post[userid]); return false;">$vbphrase[iprof_rating]</a><else />$vbphrase[iprof_rating]</if>:
<a href="$vboptions[bburl]/member.php?$session[sessionurl]u=$post[userid]&amp;nojs=1#goto_memberrating" title="<phrase 1="$post[iprof_votenum]" 2="$post[iprof_voteavg]">$vbphrase[iprof_user_rating_x_votes_y_average]</phrase>"><if condition="$post['iprof_rating']"><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_$post[iprof_rating].gif" border="0" alt="<phrase 1="$post[iprof_votenum]" 2="$post[iprof_voteavg]">$vbphrase[iprof_user_rating_x_votes_y_average]</phrase>" /><else />$vbphrase[iprof_not_rated]</if></a>
</div>
</if>

</fieldset>
</if>
<!-- /show awards -->


<if condition="$show['infraction']">
<div class="smallfont" padding-top:2px">
$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div>
</div>
</if>
</td>
</tr>
</table>
<!-- / user info -->
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01256 seconds
  • Memory Usage 1,815KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete