Thread: Profile Enhancements - vBulletin 4.0 for postbit_legacy is the work of.
View Single Post
  #9  
Old 08-31-2010, 04:23 PM
Eazy1 Eazy1 is offline
 
Join Date: Jun 2009
Location: Washington
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Love this mod... I installed it on a test style before rolling out to the full site and I'm having some issues.



Award, and gamer ids don't have a background. I know the templates for the postbits need to be editted for each addon, I just don't know what changes to make.... here's what I've got so far:



Postbit template for YetAnotherAwardSystem "MazdasNW Moderator" Badge:
Code:
<!-- show awards -->
<if condition="$post[showuserawards]">
<br />
<fieldset><legend><a href="member.php?u=$post[userid]&tab=myawards" title="$vbphrase[more_awards]">$vbphrase[award_showcase]</a></legend>
	<div class="awards_showcase_awarddisplay">$post[userawards]</div>
	<div class="awards_showcase_infodisplay">
		<a href="member.php?u=$post[userid]&tab=myawards" title="$vbphrase[more_awards]">$vbphrase[total_awards]</a>: $post[num_awards]
		<if condition="$vboptions[aw_points]"><br />
			<a href="member.php?u=$post[userid]&tab=myawards" title="$vbphrase[more_awards]">$vbphrase[total_points]</a>: $post[total_points]
		</if>
	</div>
</fieldset>
<br />
</if>
<!-- /show awards -->
and "GamerCards in User Profile and Postbit" is the last one not working....
Code:
<vb:if condition="$gamerid['gamertag'] OR $gamerid['psnid'] OR $gamerid['xfireid'] OR $gamerid['steamid'] OR $gamerid['wiicode']">
<!-- Gamer IDs -->
<dl class="userinfo_extra">
	<dt>{vb:rawphrase bc_gamercards_title}</dt>
	<dd>
	<br />
	<vb:if condition="$gamerid['gamertag']">
		<a href="javascript://" onclick="openWindow('gamercard.php?do=xboxlive&amp;u={vb:raw post.userid}',440,345); return false;"><img src="{vb:stylevar imgdir_misc}/gamericons/xboxlive.png" alt="{vb:rawphrase bc_gamercards_postbit_gamertag}: {vb:raw gamerid.gamertag}" /></a>
	</vb:if>
	<vb:if condition="$gamerid['psnid']">
		<vb:if condition="$euversion">		
		<a href="javascript://" onclick="openWindow('gamercard.php?do=psn&amp;u={vb:raw post.userid}',600,170); return false;"><img src="{vb:stylevar imgdir_misc}/gamericons/psn.png" alt="{vb:rawphrase bc_gamercards_postbit_psnid}: {vb:raw gamerid.psnid}" /></a>
		<vb:else />
		<a href="javascript://" onclick="openWindow('gamercard.php?do=psn&amp;u={vb:raw post.userid}',300,200); return false;"><img src="{vb:stylevar imgdir_misc}/gamericons/psn.png" alt="{vb:rawphrase bc_gamercards_postbit_psnid}: {vb:raw gamerid.psnid}" /></a>	
		</vb:if>		
	</vb:if>
	<vb:if condition="$gamerid['xfireid']">
		<a href="javascript://" onclick="openWindow('gamercard.php?do=xfire&amp;u={vb:raw post.userid}',480,235); return false;"><img src="{vb:stylevar imgdir_misc}/gamericons/xfire.png" alt="{vb:rawphrase bc_gamercards_postbit_xfireid}: {vb:raw gamerid.xfireid}" /></a>
	</vb:if>
	<vb:if condition="$gamerid['steamid']">
		<a href="javascript://" onclick="openWindow('gamercard.php?do=steam&amp;u={vb:raw post.userid}',330,364); return false;"><img src="{vb:stylevar imgdir_misc}/gamericons/steam.png" alt="{vb:rawphrase bc_gamercards_postbit_steamid}: {vb:raw gamerid.steamid}" /></a>
	</vb:if>
	<vb:if condition="$gamerid['wiicode']">
		<img src="{vb:stylevar imgdir_misc}/gamericons/wii.png" alt="{vb:rawphrase bc_gamercards_postbit_wiicode}: {vb:raw gamerid.wiicode}" />
	</vb:if>
	</dd>		
</dl>
<!-- / Gamer IDs -->
</vb:if>
Thanks!
Attached Images
File Type: jpg postbitlegacy.jpg (51.9 KB, 0 views)
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01475 seconds
  • Memory Usage 1,805KB
  • Queries Executed 12 (?)
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
  • (2)bbcode_code
  • (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_attachment
  • (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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete