Version: 2.3, by caimakale
Developer Last Online: Jul 2018
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:
Upload all the files in the Upload folder to your website.
Import the .xml file using the Plugin System located in your AdminCP.
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:
Added NASCAR store item - Thanks LadyJo for the icons!
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!
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:
Added Premier League store item - Thanks Gizmo5h1t3 for the help with this!
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!
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.
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.
Fixed problem with templates not being cached.
I cleaned up the code and a few other things that I can't think of right now!
v2.0 Changes:
Upgraded to work with vbplaza 1.5.0+
Added NCAA store item - Great work with the icons lordofgun!
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:
Added MLS store item - Thanks for the icons The Ottoman!
v2.2 Changes:
Added FIFA World Cup 2006 store item - Thanks for the icons soulface!
v2.3 Changes:
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.
Sorry that was my bad....I have mine showing up above the gifts and ribbons so when I looked at yours and didn't see anything there I assumed a template problem.
The problem you have is you upgraded from version 1.1. All of the icons went through a renaming process in 1.2. If you didn't change the "Can Change Always" setting for the sports icons, you can go back and purchase the steelers icon in the store again at no cost.
I renamed the icons to the full team name in 1.2, for example Pittsburgh_Steelers. There is code to strip the _ from the name in the store drop down box as well as in the alt tag when you hover over it. If you want to change it manually in the database, you will need to go the the user table and edit it in your row. Change it from Steelers to Pittsburgh_Steelers. Repurchasing it in the store is the easier option though.
Sorry that was my bad....I have mine showing up above the gifts and ribbons so when I looked at yours and didn't see anything there I assumed a template problem.
The problem you have is you upgraded from version 1.1. All of the icons went through a renaming process in 1.2. If you didn't change the "Can Change Always" setting for the sports icons, you can go back and purchase the steelers icon in the store again at no cost.
I renamed the icons to the full team name in 1.2, for example Pittsburgh_Steelers. There is code to strip the _ from the name in the store drop down box as well as in the alt tag when you hover over it. If you want to change it manually in the database, you will need to go the the user table and edit it in your row. Change it from Steelers to Pittsburgh_Steelers. Repurchasing it in the store is the easier option though.
Just a little quicker than me.
I'll just have them repurchase them. Thanks...bunches.
The upgrade script searches for previous versions and if one exists it renames the column names in the user table leaving all past purchases in place. It then deletes the sports category and items, and then reinstalls them with the new info.
So none of your prior purchases exist anymore? It must have been because it was disabled. I will double check the code just in case.
It then upgrades accordingly depending on the version you have installed.
Oh crap.. It didnt keep purchases
I still have my bengal and reds logos but they must be linked through the old images.. What you think I need to do now?
I still have my bengal and reds logos but they must be linked through the old images.. What you think I need to do now?
It looks like it worked ok on your site. If your icons are still showing up then all is well. You can check your database to verify if it worked. Check your user table, and look and see if the columns were changed from estore_mlb, estore_nba, etc.. to mlb_icon, nba_icon, etc...
They will be in a future upgrade. I wanted to change a couple thing with them (resize, make backgrounds transparent, etc...) and didn't have time to do it before rolling this out. I wanted to get people upgraded first.
If you are going to redo the F1 icons I can send you the original full size images if you want, they may be easier to work with.
I uninstalled this and then reinstalled it on the new VBux setup and the Items are not available in IE for me plus if I load Firefox, only the NCAA logos are available. All are stocked and have the proper permissions for buying.