View Single Post
  #254  
Old 09-28-2008, 11:01 AM
pnosko31 pnosko31 is offline
 
Join Date: May 2006
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got it working with 3.7

just have to do this.....


open plugins/vbplaza_postbit_imicons.php

above
Code:
?>
add

Code:
				// Make sure the store is on
				if ($vbulletin->options['vbplaza_enabled'] == 1)
				{ 
					// Set it to show the icons
					$show['sports_icons'] = true;
					
					// Lets find and show the mlb icon
					if ($userinfo['mlb_icon'] != '')
					{
						$mlb .= "<img src=\"images/mlb/$userinfo[mlb_icon].gif\" alt=\"" . $userinfo[mlb_icon] = preg_replace(array ("/_/", "/-/"), array ("&nbsp;", "&nbsp;-&nbsp;"), $userinfo[mlb_icon]) . "\" border=\"0\"> \n";
					}
				
					// Lets find and show the nba icon
					if ($userinfo['nba_icon'] != '')
					{
						$nba .= "<img src=\"images/nba/$userinfo[nba_icon].gif\" alt=\"" . $userinfo[nba_icon] = preg_replace(array ("/_/", "/-/"), array ("&nbsp;", "&nbsp;-&nbsp;"), $userinfo[nba_icon]) . "\" border=\"0\"> \n";
					}
				
					// Lets find and show the nfl icon
					if ($userinfo['nfl_icon'] != '')
					{
						$nfl .= "<img src=\"images/nfl/$userinfo[nfl_icon].gif\" alt=\"" . $userinfo[nfl_icon] = preg_replace(array ("/_/", "/-/"), array ("&nbsp;", "&nbsp;-&nbsp;"), $userinfo[nfl_icon]) . "\" border=\"0\"> \n";
					}
				
					// Lets find and show the nhl icon
					if ($userinfo['nhl_icon'] != '')
					{
						$nhl .= "<img src=\"images/nhl/$userinfo[nhl_icon].gif\" alt=\"" . $userinfo[nhl_icon] = preg_replace(array ("/_/", "/-/"), array ("&nbsp;", "&nbsp;-&nbsp;"), $userinfo[nhl_icon]) . "\" border=\"0\"> \n";
					}
				
					// Lets find and show the nascar icon
					if ($userinfo['nascar_icon'] != '')
					{
						$nascar .= "<img src=\"images/nascar/$userinfo[nascar_icon].gif\" alt=\"" . $userinfo[nascar_icon] = preg_replace(array ("/_/", "/-/"), array ("&nbsp;", "&nbsp;-&nbsp;"), $userinfo[nascar_icon]) . "\" border=\"0\"> \n";
					}
				
					// Lets find and show the premier icon
					if ($userinfo['premier_icon'] != '')
					{
						$premier .= "<img src=\"images/premier/$userinfo[premier_icon].gif\" alt=\"" . $userinfo[premier_icon] = preg_replace(array ("/_/", "/-/"), array ("&nbsp;", "&nbsp;-&nbsp;"), $userinfo[premier_icon]) . "\" border=\"0\"> \n";
					}
					
					// Lets find and show the ncaa icon
					if ($userinfo['ncaa_icon'] != '')
					{
						$ncaa .= "<img src=\"images/ncaa/$userinfo[ncaa_icon].gif\" alt=\"" . $userinfo[ncaa_icon] = preg_replace(array ("/_/", "/-/"), array ("&nbsp;", "&nbsp;-&nbsp;"), $userinfo[ncaa_icon]) . "\" border=\"0\"> \n";
					}
					
					// Lets find and show the mls icon
					if ($userinfo['mls_icon'] != '')
					{
						$mls .= "<img src=\"images/mls/$userinfo[mls_icon].gif\" alt=\"" . $userinfo[mls_icon] = preg_replace(array ("/_/", "/-/"), array ("&nbsp;", "&nbsp;-&nbsp;"), $userinfo[mls_icon]) . "\" border=\"0\"> \n";
					}
					
					// Lets find and show the fifa icon
					if ($userinfo['fifa_icon'] != '')
					{
						$fifa .= "<img src=\"images/fifa/$userinfo[fifa_icon].gif\" alt=\"" . $userinfo[fifa_icon] = preg_replace(array ("/_/", "/-/"), array ("&nbsp;", "&nbsp;-&nbsp;"), $userinfo[fifa_icon]) . "\" border=\"0\"> \n";
					}
					
					// Time to show the icons
					$userinfo['sportsicons'] .= $mlb . $nba . $nfl . $nhl . $ncaa . $nascar . $premier . $mls . $fifa;
					}
if you are not using vbbux
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01759 seconds
  • Memory Usage 1,786KB
  • 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
  • (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_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