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

Reply
 
Thread Tools
North American Sports Team Icons Details »»
North American Sports Team Icons
Version: 1.1, by Tune Tune is offline
Developer Last Online: Apr 2016 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.8.4 Rating:
Released: 09-30-2009 Last Update: 10-11-2009 Installs: 43
Template Edits Auto-Templates
Code Changes Additional Files  
No support by the author.

Want to show off the pride of your favorite sports team and allow your members to do the same?

This mod creates such a feature on your site.

Your members can select up to 3 teams they root for or support. This will show up in the postbit area on the forum.

Whether it's the NFL, MLB, NBA, NHL, or NCAA, we have it covered. You can add your own custom images as well or add to the list already provided.

It's an easy little add on with big results.

Step By Step Installation:

1) Upload the entire "teams" folder in your forumname.com/images/folder.

2) Go to your admincp->User Profile Fields->Add New User Profile Field.

3) For the Profile Field Type pick the 4th selection from the dropdown list.
The name of it is "Single-Selection Menu". Now press continue.

4) On the new page, fill out this information :
Title: My Favorite Sports Team
Description: Select your favorite team from the NFL, MLB, NBA, NHL, or NCAA.
Options: (Copy and paste in the options box, the list below. Copy it exactly as it is,
and keep in mind that each team must appear on a separate line)

LIST OF TEAMS IN FILE

Set Default: None
Display Order: Don't change this. Only thing you have to do, is to WRITE DOWN the number(ID) given in the "Display Order" field.
You will need it later on during this installation.!!!
Field Required: No
Field Editable by User: Yes
Private Field: No
Field Searchable on Members List: No
Show on Members List: No
Option Input:
Allow user to input their own value for this option: No
Max length: Don't change it
Display Size: Don't change it
Regular Expression: Leave it blank
Display Page: Select "Edit Profile"

Click SAVE button.

If you just want one team listed, continue on, but only use one line of the <if condition> line below in the code you must Add.
If you want to add more teams, then just add more lines between the <div> code. Also if you want more teams listed...
MAKE SURE YOU COMPLETE THE ABOVE STEP FOR AS MANY TEAMS AS YOU WANT YOUR USERS TO SELECT.


5) Now go to Styles & templates->Style Manager. Now you are looking at all the styles you are using for your forum.
Pick the style you want to apply this hack by changing the dropdown selection next to it, to "Edit Templates".

6) On the new page, find the postbit or postbit_legacy template (depends which one you are using for your forum) and double click on it to edit it.

7) In your code find:

Code:
<if condition="$show['reputation']"><div><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower]</if>$post[reputationdisplay]</div></if>
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
</div>
Below Add:

Code:
<div align="center">
<if condition="$post[fieldX] != ''"><img src="images/teams/$post[fieldX].gif" title="$post[fieldX]" align="center" border="0"/></if>
<if condition="$post[fieldX] != ''"><img src="images/teams/$post[fieldX].gif" title="$post[fieldX]" align="center" border="0"/></if>
<if condition="$post[fieldX] != ''"><img src="images/teams/$post[fieldX].gif" title="$post[fieldX]" align="center" border="0"/></if>
</div>

BEFORE clicking Save, change the [fieldX] to the number(ID) given by the system in step 4 Display Order. For example [fieldX] will be changed to [field9].
Change all 3 [fieldX] and now you may click Save.

Finally, if you covered all the above steps correctly, you will be able to see a dropdown selection list for American Sports Teams Hack in your UserCP-> Edit Profile

NOTE: The above code is for 3 teams listed in your postbit side-by-side. If you don't care for the team logos I created, simply create your own and name them how you would want them entered on the option drop down. You'll notice that the images names are the same as we have listed.

This mod/hack could be used for almost anything that you wanted your members to be able to select an image in place of text.

Any questions or problems, please let me know.

FYI, I included the college teams in this mod, but if you just want the professional sports, just do not copy those team names in the options area.

Enjoy!

Version 1.2:
Added UFL logos to the system.

Version 1.1:
1. Edited the file to fix a spelling error.
2. Changed the icons for Columbus Blue Jackets, Oklahoma City Thunder, and NFL.

Download Now

File Type: zip North American Sports Teams Mod 1.2.zip (755.0 KB, 334 views)

Show Your Support

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

Comments
  #62  
Old 05-08-2011, 11:20 PM
Gamelobby's Avatar
Gamelobby Gamelobby is offline
 
Join Date: Jul 2007
Location: Long Beach, CA
Posts: 997
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
OK so I've made 50x40 logos for all major (and some minor) Car Makers common in North America...

Download the ZIP, upload the files to your /images/teams/ folder and then edit your custom profile field(s) and copy and paste the following lines below your last sports team:

Code:
<<Automobiles>>
Acura
Alfa Romeo
AMC
Aston Martin
Audi
Bentley
BMW
Buick
Cadillac
Chevolet
Chrysler
Daewoo
Daimler
Datsun
DMC
Dodge
Eagle
Ferrari
Ford
Geo
GM
GMC
Honda
Hummer
Hyundai
Infiniti
Isuzu
Jaguar
Jeep
Kia
Land Rover
Lexus
Lincoln
Maybach
Mazda
Mercedes-Benz
Mercury
MG
Mini
Mistubishi
Nissan
Oldsmobile
Overland
Plymouth
Pontiac
Porsche
Rolls Royce
Saab
Saturn
Scion
Studebaker
Subaru
Suzuki
Tesla Motors
Toyota
Troller
Volkswagon
Volvo
Willys
I'm working on a collection of miscellaneous logos now...
ChevRolet
Reply With Quote
  #63  
Old 05-09-2011, 01:33 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Gamelobby View Post
Does this work for 4.1.3.?

I got this..
Warning: Invalid argument supplied for foreach() in [path]/includes/functions.php on line 3416


Are we supposed to change/add something to the red part.?

Thanks
No it doesn't work as is in vBulletin 4... Mostly the <if> statements are different in VB4...

Instead of
Code:
<if condition="xxx"> </if>
change them to:
Code:
<vb:if condition="xxx"> </vb:if>
And no the part in read is supposed to be two single quotes with nothing in-between them representing an empty string.
Reply With Quote
  #64  
Old 05-21-2011, 11:30 PM
TNERatedEdge TNERatedEdge is offline
 
Join Date: Jun 2009
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to edit these icons?
Reply With Quote
  #65  
Old 05-22-2011, 12:25 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

They are gif files, you can edit them like any other image.
Reply With Quote
  #66  
Old 05-22-2011, 12:33 AM
TNERatedEdge TNERatedEdge is offline
 
Join Date: Jun 2009
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Alright, thank you, and I can do that right in styles in the admin cp?
Reply With Quote
  #67  
Old 05-22-2011, 03:20 PM
TNERatedEdge TNERatedEdge is offline
 
Join Date: Jun 2009
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If anyone knows how to edit these images, please let me know.
Reply With Quote
  #68  
Old 05-22-2011, 03:28 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TNERatedEdge View Post
Alright, thank you, and I can do that right in styles in the admin cp?
Yes in the Admin CP -> Style Manager -> (choose your style) -> Edit Templates -> Postbit or postbit_legacy template, whichever you are setup to use.

You have to do the edits for every style you have (that you want it to work in.)

Quote:
Originally Posted by TNERatedEdge View Post
If anyone knows how to edit these images, please let me know.
You can edit the images with any image editor like Photoshop or Paint Shop Pro. A free one is GiMP (http://www.gimp.org/).

You can also create new images... Just save them as FILENAME.gif and then in the user profile field add FILENAME (without the .gif) to the list of options.

The original icons are 50 pixels wide by 40 icons tall so you will want your custom icons exactly or close to that size.
Reply With Quote
  #69  
Old 05-22-2011, 04:18 PM
TNERatedEdge TNERatedEdge is offline
 
Join Date: Jun 2009
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks,but where would I put the new image path? in the admin cp?
Reply With Quote
  #70  
Old 05-22-2011, 04:53 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Assuming you've already installed the mod you put new images in the same directory as the other images.

You add them as options in the Admin CP-> User Profile Field Manager and edit the 3 profiles fields you created. Simply add the filename without the extension into the list of options.
Reply With Quote
  #71  
Old 05-26-2011, 10:17 PM
TNERatedEdge TNERatedEdge is offline
 
Join Date: Jun 2009
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have credited all new logos, would anyone be interested in installing them for me? I'd pay you of course.
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 05:30 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.06603 seconds
  • Memory Usage 2,345KB
  • Queries Executed 26 (?)
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
  • (5)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete