Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Sports Team Icons v2.3 for vbBux / vbPlaza Details »»
Sports Team Icons v2.3 for vbBux / vbPlaza
Version: 2.3, by caimakale caimakale is offline
Developer Last Online: Jul 2018 Show Printable Version Email this Page

Version: 3.5.5 Rating:
Released: 02-23-2006 Last Update: 08-22-2006 Installs: 79
DB Changes Uses Plugins Template Edits
Additional Files  
No support by the author.

Sports Team Icons v2.3 for vbBux / vbPlaza


About This Addon:
This allows you to purchase icons of your favorite sports team and display them in your users postbit. Currently only MLB, NBA, NFL, NHL, NASCAR, Premier League, NCAA, MLS, & FIFA World Cup 2006 icons are available for purchase. This hack adds a new category for sports teams. In the new category are the different leagues that are currently available to purchase. By default I have enabled the "Can Change Always" portion so all of your "bandwagon" fans can come back and change their icon depending on who their favorite team is that week. To remove teams, they will need to go back into the store where they purchased the icon and select remove to remove the icon, it is up to you to decide if you want to allow a refund. To add extra icons to a certain sport (maybe some old school logos) just name the logo in the same manner as the current ones and upload to that leagues folder. It's that easy thanks to the great coding of CMX.

Pre-requisites:
***You must have vbBux / vbPlaza version 1.5.7 or higher installed in order for this to work!***

Installation & Upgrade Instructions:
  1. Upload all the files in the Upload folder to your website.
  2. Import the .xml file using the Plugin System located in your AdminCP.
  3. Perform the required template changes below.

Required Template Changes:
Postbit & Postbit Legacy

Find:

Code:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
Below it add:

Code:
				<if condition="$show['sports_icons']"><div>$post[sportsicons]</div><br /></if>
You can change the category settings for this addon in AdminCP >> vbPlaza Options >> Manage Categories >> Sports Teams. You can change the item settings for this addon in AdminCP >> vbPlaza Options >> Manage Options >> Sports Team section, just pick the league you want to edit. Make sure you set your usergroup permissions for this. If you uninstall vbPlaza / vbBux for any reason you will need to re-install this addon as well.

v1.1 Changes:
  1. Added NASCAR store item - Thanks LadyJo for the icons!
  2. Changed the icon names - Make sure you delete the MLB, NBA, NFL, & NHL folders in the /images directory before uploading this. If you don't you will have every icon available in your store twice!
  3. Updated the postbit/postbit legacy code - Make sure you update the code in your postbit/postbit legacy with the new code above.

v1.2 Changes:
  1. Added Premier League store item - Thanks Gizmo5h1t3 for the help with this!
  2. Changed the icon names (Again) - Make sure you delete the MLB, NBA, NFL, NHL, & NASCAR folders in the /images directory before uploading this. If you don't you will have every icon available in your store twice!
  3. Added code to strip underscores and hyphens when displaying the team name in the store drop down and when hovering over the icon in the postbit. Now 3-Dale_Earnhardt.gif will show up like 3 - Dale Earnhardt. Follow the example of the names if you have added your own custom icons to certains sports. Only use the underscore (_) and hyphen (-) along with the letters and numbers. Do not use spaces.
  4. Changed postbit code - Make sure you edit your postbit template with the new code. I did this so when future updates come out, you don't have to keep editing your postbits. If you don't like the sport you can simply disable it in vbPlaza Options >> Manage Options. Once there find the sport and go disable it.
  5. Fixed problem with templates not being cached.
  6. I cleaned up the code and a few other things that I can't think of right now!

v2.0 Changes:
  1. Upgraded to work with vbplaza 1.5.0+
  2. Added NCAA store item - Great work with the icons lordofgun!
  3. Changed the postbit/postbit legacy code - I know I said no more template updates, but this one is kinda out of my control. This change should prevent any further updates to templates.

v2.1 Changes:
  1. Added MLS store item - Thanks for the icons The Ottoman!

v2.2 Changes:
  1. Added FIFA World Cup 2006 store item - Thanks for the icons soulface!

v2.3 Changes:
  1. Updated to work with vbPlaza version 1.5.7+.

***Thanks to CMX_CMGSCCC for the amazing vbBux / vbPlaza hack!
***Thanks to lordofgun for the suggestions regarding this hack and the NCAA icons!
***Thanks to LadyJo for the NASCAR Icons!
***Thanks to Gizmo5h1t3 for the Premier League info!
***Thanks to The Ottoman for the MLS icons!
***Thanks to soulface for the FIFA World Cup 2006 icons!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #82  
Old 03-04-2006, 07:43 AM
caimakale's Avatar
caimakale caimakale is offline
 
Join Date: Nov 2004
Posts: 325
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MorrisMcD
Mine is showing the images as linking to (example) cincinati reds but the file name is cincinati_reds... so they are broken. when I renames it to cincinnati reds with a space it worked

Oh.. And just fyi.. Its cinciNNati
I am not following on your first example.

I renamed the mlb image...that's what I get for working on this at 2:30 AM. At least I spelled it right with the Bengals.
Reply With Quote
  #83  
Old 03-04-2006, 07:53 AM
MorrisMcD's Avatar
MorrisMcD MorrisMcD is offline
 
Join Date: Nov 2003
Location: Cincinnati, Ohio
Posts: 415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by caimakale
I am not following on your first example.

I renamed the mlb image...that's what I get for working on this at 2:30 AM. At least I spelled it right with the Bengals.

lol

I noticed you spelled it right on the Bengals..

Well.. The images are broken for me.. So I check the location.. It is like nfl/cincinnati%20bengals.jpg....

However, the file is named nfl/cincinnati_bengals.jpg

I renamed the image to cincinnati bengals.jpg and THEN it works fine.. Any idea why or is this just a mess up on your part? Maybe its my system but that is what I am gettin
Reply With Quote
  #84  
Old 03-04-2006, 08:01 AM
Gizmo5h1t3's Avatar
Gizmo5h1t3 Gizmo5h1t3 is offline
 
Join Date: Aug 2005
Location: ROCHDALE LANCS UK
Posts: 650
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

problem...

installed the 1.2...works fine

except for this..

deleted all the images before i upgraded....and now, i have a red x where i had chicago bulls before....its not removed the sports icon i had....

so now i have a red x, and manchester united showing....lol

also im getting the %20 thing mentioned above in the filename
Reply With Quote
  #85  
Old 03-04-2006, 08:09 AM
MorrisMcD's Avatar
MorrisMcD MorrisMcD is offline
 
Join Date: Nov 2003
Location: Cincinnati, Ohio
Posts: 415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Gizmo5h1t3
problem...

installed the 1.2...works fine

except for this..

deleted all the images before i upgraded....and now, i have a red x where i had chicago bulls before....its not removed the sports icon i had....

so now i have a red x, and manchester united showing....lol

also im getting the %20 thing mentioned above in the filename
Either we need to rename the phrases to point to cincinnati_bengals or rename the file itself from cincinnati_bengals to cincinnati bengals (for example)

I wager he is whipping something up right now But that will temp fix it for you.. Renaming the files is easiest as long as your host will allow filenames with spaces.. If not.. Just put the %20 in there instead of the _
Reply With Quote
  #86  
Old 03-04-2006, 08:13 AM
caimakale's Avatar
caimakale caimakale is offline
 
Join Date: Nov 2004
Posts: 325
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MorrisMcD
lol

I noticed you spelled it right on the Bengals..

Well.. The images are broken for me.. So I check the location.. It is like nfl/cincinnati%20bengals.jpg....

However, the file is named nfl/cincinnati_bengals.jpg

I renamed the image to cincinnati bengals.jpg and THEN it works fine.. Any idea why or is this just a mess up on your part? Maybe its my system but that is what I am gettin
Quote:
Originally Posted by Gizmo5h1t3
problem...

installed the 1.2...works fine

except for this..

deleted all the images before i upgraded....and now, i have a red x where i had chicago bulls before....its not removed the sports icon i had....

so now i have a red x, and manchester united showing....lol

also im getting the %20 thing mentioned above in the filename
I did this intentionally. As pointed out earlier in the thread have a file named Chicago Bulls.gif isn't web compliant. So I renamed it to Chicago_Bulls.gif. Then I added code to find _ and replace it with a space. When you see this type of thing, that is what I was referring to when I say you will need to go back into the store and repurchase your icon. If you left it set to "Can Change Always" then it shouldn't charge your users to go back and make these changes. Otherwise you will need to go through your database and add an _ to all names where there is a space for the teams and the nascar names would need even more work.

Going back and purchasing them again will be the easiest way to fix it. Try it and let me know how it works out for you.
Reply With Quote
  #87  
Old 03-04-2006, 08:16 AM
caimakale's Avatar
caimakale caimakale is offline
 
Join Date: Nov 2004
Posts: 325
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MorrisMcD
Either we need to rename the phrases to point to cincinnati_bengals or rename the file itself from cincinnati_bengals to cincinnati bengals (for example)

I wager he is whipping something up right now But that will temp fix it for you.. Renaming the files is easiest as long as your host will allow filenames with spaces.. If not.. Just put the %20 in there instead of the _
The problem with spaces is your linux users (or almost any user that isn't on windows) will have problems. Make sure the icons are set to "Can Change Always" in AdminCP >> eStore Options >> Manage Options. Go into each sport and make sure they are set to can change always. It is set to this by default, so if you haven't changed the settings then you should be ok to move on to the next step.

Then instruct your users to back and repurchase their icon for free to fix it. If you renamed files to include spaces, change it back or you may run into problems in the future.
Reply With Quote
  #88  
Old 03-04-2006, 08:19 AM
MorrisMcD's Avatar
MorrisMcD MorrisMcD is offline
 
Join Date: Nov 2003
Location: Cincinnati, Ohio
Posts: 415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by caimakale
I did this intentionally. As pointed out earlier in the thread have a file named Chicago Bulls.gif isn't web compliant. So I renamed it to Chicago_Bulls.gif. Then I added code to find _ and replace it with a space. When you see this type of thing, that is what I was referring to when I say you will need to go back into the store and repurchase your icon. If you left it set to "Can Change Always" then it shouldn't charge your users to go back and make these changes. Otherwise you will need to go through your database and add an _ to all names where there is a space for the teams and the nascar names would need even more work.

Going back and purchasing them again will be the easiest way to fix it. Try it and let me know how it works out for you.
Yup

That worked for me... I know not MANY people have bought these... Which table/field is this in the database? I may fix it for the few users that bought it
Reply With Quote
  #89  
Old 03-04-2006, 08:22 AM
caimakale's Avatar
caimakale caimakale is offline
 
Join Date: Nov 2004
Posts: 325
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MorrisMcD
Yup

That worked for me... I know not MANY people have bought these... Which table/field is this in the database? I may fix it for the few users that bought it
It's in the users table. Each sport has it's own column...estore_mlb, estore_nba, estore_nfl, ... you get the picture.
Reply With Quote
  #90  
Old 03-04-2006, 08:22 AM
caimakale's Avatar
caimakale caimakale is offline
 
Join Date: Nov 2004
Posts: 325
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If it would be easier I can add code to completely erase the teams that have been purchased. But then your users would have to purchase them again.

I didn't add it to this because as long as you have it set to can change always, then they can go change it for free if they have purchased it once....even if the names don't match up and only have a red x showing...just go back to the store and purchase your team agian.
Reply With Quote
  #91  
Old 03-04-2006, 08:27 AM
MorrisMcD's Avatar
MorrisMcD MorrisMcD is offline
 
Join Date: Nov 2003
Location: Cincinnati, Ohio
Posts: 415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by caimakale
It's in the users table. Each sport has it's own column...estore_mlb, estore_nba, estore_nfl, ... you get the picture.
Gotcha!!! Thanks!
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 10:55 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07028 seconds
  • Memory Usage 2,332KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (9)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete