vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Sports Team Icons v2.3 for vbBux / vbPlaza (https://vborg.vbsupport.ru/showthread.php?t=108771)

caimakale 02-23-2006 10:00 PM

Sports Team Icons v2.3 for vbBux / vbPlaza
 
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!

caimakale 02-24-2006 07:28 AM

If anybody has any small nascar .gifs with transparent backgrounds (the drivers car numbers) let me know and I will add nascar to this.

Or if anybody has any other sports they want added let me know and I will work it into the hack (it will be helpful if you have the icons already).

Detomah 02-24-2006 08:48 AM

Quote:

Originally Posted by caimakale
Or if anybody has any other sports they want added let me know and I will work it into the hack (it will be helpful if you have the icons already).

I would seriously like British Football teams, but you've requested that we already have the icons for them if possible, so i'm going to try and get hold of them before requesting it properly.

Sooner95 02-24-2006 11:25 AM

very cool. Thx!

dirtycrow 02-24-2006 12:35 PM

error: Fatal error: Call to undefined function: estore_action_check_for_flood() in /home/XXX/public_html/forums/estore/action.nhl.php on line 181

CMX_CMGSCCC 02-24-2006 01:20 PM

Quote:

Originally Posted by dirtycrow
error: Fatal error: Call to undefined function: estore_action_check_for_flood() in /home/XXX/public_html/forums/estore/action.nhl.php on line 181

U need to update to the latest version of eBux/eStore. This function that is missing was added to the latest build v1.2.0

ALSO: Nice addon :)

-CMX

3z3k3l 02-24-2006 01:31 PM

Great Idea, can't wait to test it out.

dirtycrow 02-24-2006 01:40 PM

Quote:

Originally Posted by CMX_CMGSCCC
U need to update to the latest version of eBux/eStore. This function that is missing was added to the latest build v1.2.0

ALSO: Nice addon :)

-CMX

done, thank you!

dirtycrow 02-24-2006 01:53 PM

awesome add on! thank you!

caimakale 02-24-2006 02:53 PM

Just an FYI,

I am considering an update to this where you can place larger icons in the signature area and/or keep the ones in the post bit. It will be fairly easy and will only require slight modifications to make it work.

Does anybody have an interest in something like this?

Reeve of shinra 02-24-2006 02:57 PM

Very nice addon! Great work!

Sooner95 02-24-2006 03:19 PM

Quote:

Originally Posted by caimakale
Just an FYI,

I am considering an update to this where you can place larger icons in the signature area and/or keep the ones in the post bit. It will be fairly easy and will only require slight modifications to make it work.

Does anybody have an interest in something like this?

I use the postbit, and what I did was re locate the Teams and Gifts over to the left side under the user title. The postbit top section was getting bit fat with all the stuff on the right side.

Stangsta 02-24-2006 03:47 PM

NICE!! Can you add NASCAR?

LadyJo 02-24-2006 03:51 PM

I can work on nascar transparent gifs.. how big or small do they need to be??

Sooner95 02-24-2006 04:23 PM

the gift sizes are 15x15 pixels, so probably somewhere in that neighborhood..

caimakale 02-24-2006 04:36 PM

Quote:

Originally Posted by LadyJo
I can work on nascar transparent gifs.. how big or small do they need to be??

The ones in this hack are 25 x 25. Even being that small some of them are hard to recognize...That's why I didn't go 15 x 15 like the ribbons and gifts.

If I do the ones in the signature I will probably make them approx 45 x 45 give or take a few pixels.

Gizmo5h1t3 02-24-2006 04:45 PM

installed this in the hope theres an update with english and scottish footy teams to add soon...lol

nice addition m8

ImportPassion 02-24-2006 04:49 PM

FYI, u should update the image names to contain no spaces, not a good thing on Linux, but any filenames for web files should not have spaces.

Kyderoy 02-24-2006 05:39 PM

Do I have to remove my avator before I can see my team?

caimakale 02-24-2006 05:41 PM

Quote:

Originally Posted by 7thgenCivic.Com
FYI, u should update the image names to contain no spaces, not a good thing on Linux, but any filenames for web files should not have spaces.

I thought about that but wanted to see if it caused any problems. In my testing on 3 different browsers everything was fine. But I don't have linux installed right now so I couldn't test on any other OS.

Maybe I will change everything to the team name. i.e. - Giants instead of New York Giants. I think most people will know that if you are buying something from the NFL that the Giants are from New York and not from San Francisco like the MLB team.

Look for it in a future update, hopefully with some new sports.

caimakale 02-24-2006 05:42 PM

Quote:

Originally Posted by Kyderoy
Do I have to remove my avator before I can see my team?

No, you don't have to remove anything. Just upload the files, import the product .xml file and then make the necessary change to your postbit/postbit legacy template.

Kyderoy 02-24-2006 05:44 PM

I did and I don't see the team I purchased

caimakale 02-24-2006 05:46 PM

Quote:

Originally Posted by Kyderoy
I did and I don't see the team I purchased

What league did you purchase from?

PM me your postbit or postbit legacy template. (whichever one you use)

Kyderoy 02-24-2006 05:50 PM

Just sent a pm

dirtycrow 02-24-2006 06:21 PM

omg, NCAA college teams are a must have!

caimakale 02-24-2006 06:35 PM

Quote:

Originally Posted by dirtycrow
omg, NCAA college teams are a must have!

Heh, I thought of those, and talked with lordofgun about them. There are alot of colleges once you start talking all the different conferences. I guess rather than doing ncaa football or ncaa basketball (since they are the same anyways ;)) I could sort them into NCAA conferences.

LadyJo 02-24-2006 07:14 PM

ok I have 18 drivers numbers done, how do you want me to get them to you.

I made the 25x 25 or 25 X ? but no more than 25 pixels and they are transparent gif files.

lordofgun 02-24-2006 09:43 PM

Quote:

Originally Posted by LadyJo
ok I have 18 drivers numbers done, how do you want me to get them to you.

I made the 25x 25 or 25 X ? but no more than 25 pixels and they are transparent gif files.

nice! Can't wait to see 'em!

Fantastic job, caimakale!

MorrisMcD 02-25-2006 12:37 AM

Quote:

Originally Posted by caimakale
Heh, I thought of those, and talked with lordofgun about them. There are alot of colleges once you start talking all the different conferences. I guess rather than doing ncaa football or ncaa basketball (since they are the same anyways ;)) I could sort them into NCAA conferences.


There ARE a lot of colleges yes.. lol

But it would be sweet to still have all the major Football and Basketball schools..

:cough: Ohio State Buckeyes, UC Bearcats :cough:

;)

Awesome hack man!!! Props to you

caimakale 02-25-2006 01:18 AM

All of the purchases from v1.0 won't show up with v1.1 but if you left the can change always and have version 1.2.1 of eStore installed, they can go back in the store and repurchase the team they want and it won't charge them anything and will restore the icon to their postbit.

LadyJo 02-25-2006 02:58 AM

*** if ......you want.. I can work on some of the major colleges for icons just the simple logo which could be used for either collegiate sport. Let me know, this could take me a few days but if you want to add it , Id be happy to help.

oh yeah, and youre more than welcome.

lordofgun 02-25-2006 03:44 AM

Here are a couple more NASCAR logos...

MorrisMcD 02-25-2006 03:55 AM

I have a couple nascar fans that would like those.. Personally I find it boring though :D

With the college one, I might suggest sectioning them out.. Having a drop down menu with that many options could get messy

caimakale 02-25-2006 03:57 AM

Quote:

Originally Posted by LadyJo
*** if ......you want.. I can work on some of the major colleges for icons just the simple logo which could be used for either collegiate sport. Let me know, this could take me a few days but if you want to add it , Id be happy to help.



oh yeah, and youre more than welcome.

Anything anybody wants to add to this sports wise I am definitely open to it. If people don't like it they can simply disable the option. Or I can simply start making each sport a seperate addon to this one. Maybe even add some hooks to make things easier. This hack is still young and has alot of possibilities.

The only problem I have is collecting and editing the icons as needed. If you have a sport, email me the icons (pm me when you have them and I will send you my email address). If you have a different icon pack that you like and want to share (for example the NFL), make them 25 x 25 and post them in a thread and I will link to them in the release post with a brief description. I say this because some people like the team icons on yahoo sports. If somebody takes them and makes them smaller and posts them, I will do whats mentioned above.

LadyJo 02-25-2006 05:26 AM

Edited*** because Im an idiot and didnt upload everything

installed seemlessly, works great.

caimakale 02-25-2006 05:38 AM

Quote:

Originally Posted by LadyJo
getting this error

Warning: main(./estore/action.mlb.php): failed to open stream: No such file or directory in /estore.php on line 373

Fatal error: main(): Failed opening required './estore/action.mlb.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mywomen/public_html/forums/estore.php on line 373

Do any of the other store actions work?

Are you using v1.1 or v1.0? If it is v1.1 did v1.0 work ok?

caimakale 02-25-2006 05:42 AM

Quote:

Originally Posted by lordofgun
Here are a couple more NASCAR logos...

I added this to the icon folder and they will be a part of future versions.

LadyJo 02-25-2006 05:44 AM

caimakale,
the email i last sent had quite a few more icons, in them did you get that email??

and I edited the error post above, it was all my fault..lol

caimakale 02-25-2006 05:45 AM

Quote:

Originally Posted by LadyJo
caimakale,
the email i last sent had quite a few more icons, in them did you get that email??

I didn't...I only received one email from you so far. I checked my bulk mail folder and it isn't in there either.

MissKalunji 02-26-2006 02:17 AM

works perfectly!


All times are GMT. The time now is 06:37 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01410 seconds
  • Memory Usage 1,842KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete