vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Add-On Releases - Sports Manager (NFL, NBA, NCAA, MLB, FIFA, NASCAR, NHL, Premier) (https://vborg.vbsupport.ru/showthread.php?t=144530)

sportsoutlaw 04-11-2007 10:42 PM

Quote:

Originally Posted by skorzguy (Post 1225317)
Here's what I did to make everything look good in the navbar and postbit template. It's probably not coded correct but it worked.

Thanks, I will give your code a try.

Regs 04-11-2007 10:52 PM

Thanks deezelpope!

I had already done one up though for the cranky member... of course he then pointed out that the numbers were all outta date as the drivers were on different teams now :rolleyes:

:D

Cheers,

~Regs.

deezelpope 04-11-2007 10:53 PM

Awww man! Go figure, huh? Well, you're welcome anyway!

Chachacha 04-12-2007 07:50 AM

This is a really good modification red. I'm Incog btw. Anywhoo, theres only one problem with it, the images are designed for light colored board styles ...my site has a dark style and the white edges of the images look raggedy. It would be great if someone could make the NFL images fit nicely on a dark skinned forum for me.

Thanks.

nonamer69 04-12-2007 08:12 PM

I've done mine a bit different for the navbar and postbit in order to conserve space. Also, I inserted an alt tag to the images so when people put their mouse over the team logo it will say NFL, NBA, NHL, etc...

deezelpope 04-12-2007 08:54 PM

Looks great!:up: Nice work!

4number8 04-12-2007 10:56 PM

It will work fine in vBAdvanced, just put usernascarteams in the Portal Output Global Variables for it to work on the homepage

zompus 04-20-2007 12:06 PM

Post Screenshots damnit!

deezelpope 04-20-2007 12:38 PM

There's no need for such language, plus, if you'd look through this thread, you'd see what these look like. It IS only four pages, after all.

HMBeaty 04-20-2007 09:02 PM

Quote:

Originally Posted by zompus (Post 1231922)
Post Screenshots damnit!

Watch your language or you won't be getting a whole lot at all from me. :mad:

almightyone 04-21-2007 12:21 AM

not sure about the all in one but if you install them seperate i can not figure out how to make them all show up on one line mine stay stacked on each other :(

Chachacha 04-29-2007 09:59 PM

Hey can anybody tell me how to make the selection box show up on VBADVANCED

OR

In the "Edit Profile" page instead of the nav bar?

almightyone 04-29-2007 10:04 PM

the code you add to the navbar instead add it where you want it as far as vbadvanced the answer is in this thread somewhere

Chachacha 04-29-2007 10:30 PM

Quote:

Originally Posted by almightyone (Post 1237842)
the code you add to the navbar instead add it where you want it as far as vbadvanced the answer is in this thread somewhere

Thanks!

pplayerz 07-22-2007 07:57 PM

How do we make it all the sports are into one drop down menu? I want my users to pick any sports and any teams instead of one sports with one team? How do we make it so users can pick 2 or 3 teams from 2 or 3 sports?

liquidrage 07-24-2007 01:39 AM

Installed thanks.

I've cleaned this up a bit I'll post code later, it's getting late.

I added the ability for users to select whether they see the icons in posts or not in their USER CP (similar to letting people decide if they want to see avatars or not; not everyone wants to see images).

I've added alt tags for the icons and remove the text next to them so it takes up less room in the postbit as well IMO as being more informative anyways.

And I've moved the selection for the teams to the User CP (people don't change teams often, so no need to see the place to select it on every single page load, plus it's just a lot of extra data for no real reason).

pplayerz 07-24-2007 04:03 AM

Can you make it so users can choose 3 or 4 sports and 3 or 4 teams?

almightyone 07-24-2007 07:23 AM

Quote:

Originally Posted by liquidrage (Post 1299729)
Installed thanks.

I've cleaned this up a bit I'll post code later, it's getting late.

I added the ability for users to select whether they see the icons in posts or not in their USER CP (similar to letting people decide if they want to see avatars or not; not everyone wants to see images).

I've added alt tags for the icons and remove the text next to them so it takes up less room in the postbit as well IMO as being more informative anyways.

And I've moved the selection for the teams to the User CP (people don't change teams often, so no need to see the place to select it on every single page load, plus it's just a lot of extra data for no real reason).

i look forward to seeing your code of this sounds more like what i was looking for i requested this mod but it was not coded quit the way i wanted

liquidrage 07-24-2007 10:03 AM

Quote:

Originally Posted by pplayerz (Post 1299788)
Can you make it so users can choose 3 or 4 sports and 3 or 4 teams?

What I would do if I were you if just add all the teams to each and every drop down list and all the icons to each folder (yucky solution but would work.

Then change the values of the my phrases (like my_nhlteam, etc...) to something like "My First Team", "My Second Team", etc... instead of "My NHL team" etc...

liquidrage 07-24-2007 10:23 AM

This uses the instructions found with this product except I changed the 3 templates that are modified to give it a look and functionality that better suited my site. It also makes use of a custom profile field to give users the ability to turn this on/off.


OK, for the way I did it: No support offered, use at own risk, yadda yadda yadda

In User Profile Fields from the Admin CP add a new field of type "Single-Selection Radio Button". First line value of Yes second line value of No
This doesn't need to be seen in the member list, nor searchable. So you probably want to turn those options off when creating it.
This is to let people turn this feature on and off. I display it on edit profile but wherever if you want is fine. Once it's saved look at the manager page for profile fields and you'll see it's named fieldX where X is a number. Remember this for later.


In the USERCP template find:
Code:

<!-- ############## END SUBSCRIBED FORUMS ##############  -->
</if>

After that add:

Code:

<!-- YOUR TEAMS -->

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
        <tr>
                <td class="tcat" colspan="2">
                Team Manager
                </td>
        </tr>
</thead>
<tbody id="collapseobj_usercp_forums" style="$vbcollapse[collapseobj_usercp_forums]">
        <tr align="center" valign="bottom">
                <td class="alt1">

<div width="100%"><span class="navbar"> $usernflteams&nbsp$usernhlteams&nbsp$usermlbteams
<br />
$usernbateams&nbsp$userncaateams&nbsp$usernascardrivers&nbsp$userfifateams&nbsp$userpremierteams </span></div>

</td>
        </tr>
</tbody>
</table>
<br />

<!-- END OF YOUR TEAMS -->

In your PostBit template (postbit_legacy for me since I use the classic posbit look) find:

Code:

<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
After that add:

Code:


<if condition="$bbuserinfo['field21'] != 'No'">
<br />
                                        <div class="smallfont">
<if condition="!empty($post[nhlteam])">
                                                        <img src="$vboptions[bburl]/images/nhl/$post[nhlteam].gif" border="0" alt="$post[nhlteam]" /></if>
                                                <if condition="!empty($post[nflteam])">
                                                        <img src="$vboptions[bburl]/images/nfl/$post[nflteam].gif" border="0" alt="$post[nflteam]" /></if>
                                                <if condition="!empty($post[nbateam])">
                                                        <img src="$vboptions[bburl]/images/nba/$post[nbateam].gif" border="0" alt="$post[nbateam]" /></if>
                                                <if condition="!empty($post[mlbteam])">
                                                        <img src="$vboptions[bburl]/images/mlb/$post[mlbteam].gif" border="0" alt="$post[mlbteam]" /></if>
<if condition="!empty($post[ncaateam])">
                                                        <img src="$vboptions[bburl]/images/ncaa/$post[ncaateam].gif" border="0" alt="$post[ncaateam]" /></if>
                                                <if condition="!empty($post[nascardriver])">
                                                        <img src="$vboptions[bburl]/images/nascar/$post[nascardriver].gif" border="0" / alt="$post[nascardriver]" ></if>
                                                <if condition="!empty($post[fifateam])">
                                                        <img src="$vboptions[bburl]/images/fifa/$post[fifateam].gif" border="0" alt="$post[fifateam]"/></if>
                                                <if condition="!empty($post[premierteam])">
                                                        <img src="$vboptions[bburl]/images/premier/$post[premierteam].gif" border="0" alt="$post[premierteam]" /></if>
                                        </div>
                                </if>


Now, look at the 1st line of that code. See where it says field21? That needs to match up to the fieldX you created earlier.


In MEMBERINFO find:

Code:

$customfields
After that add:

Code:

<if condition="!empty($userinfo[nhlteam])">
<br >
<strong>$vbphrase[my_nhlteam]:</strong> <img src="$vboptions[bburl]/images/nhl/$userinfo[nhlteam].gif" border="0" />
</if>
<if condition="!empty($userinfo[nflteam])">
<br />
<strong>$vbphrase[my_nflteam]:</strong> <img src="$vboptions[bburl]/images/nfl/$userinfo[nflteam].gif" border="0" />
</if>
<if condition="!empty($userinfo[ncaateam])">
<br />
<strong>$vbphrase[my_ncaateam]:</strong> <img src="$vboptions[bburl]/images/ncaa/$userinfo[ncaateam].gif" border="0" />
</if>
<if condition="!empty($userinfo[mlbteam])">
<br />
<strong>$vbphrase[my_mlbteam]:</strong> <img src="$vboptions[bburl]/images/mlb/$userinfo[mlbteam].gif" border="0" />
</if>
<if condition="!empty($userinfo[premierteam])">
<br />
<strong>$vbphrase[my_premierteam]:</strong> <img src="$vboptions[bburl]/images/premier/$userinfo[premierteam].gif" border="0" />
</if>
<if condition="!empty($userinfo[fifateam])">
<strong>$vbphrase[my_fifateam]:</strong> <img src="$vboptions[bburl]/images/premier/$userinfo[fifateam].gif" border="0" />
<br />
</if>
<if condition="!empty($userinfo[nascardriver])">
<strong>$vbphrase[my_nascardriver]:</strong> <img src="$vboptions[bburl]/images/premier/$userinfo[nascardriver].gif" border="0" />
<br />
</if>


And that's all I had to do . Really it's just the way it was done via the product just with different formatting in different places.

I don't use the NASCAR or the FIFA so but my site using this can be found here:
http://www.flyersphans.com/forums/index.php

parabat 07-24-2007 02:53 PM

Can I make a request to have the IRB (International Rugby Board) added to this mod?? Or can someone tell me how I can add any of the rugby leagues to this mod. that is all I have been waiting for, especially with the world cup coming up.
And what about a cricket mod as well???

-PB

almightyone 07-24-2007 10:33 PM

thnx a bunch for sharing this it sems to be the way i tried to format mine but could not get it to work

liquidrage 07-25-2007 02:16 AM

np...

Let me know if you have any problems with it.

I've also gone in and edited out the FIFA part and put in a Misc category. I let people send me images for icons for teams they follow as long as I know it's serious. But I have no problem linking a CFL team or an AHL team or whathaveyou for the diehards.

But that's all doable through the Admin CP.

msu2k 07-26-2007 09:19 PM

Quote:

Originally Posted by liquidrage (Post 1300006)
This uses the instructions found with this product except I changed the 3 templates that are modified to give it a look and functionality that better suited my site. It also makes use of a custom profile field to give users the ability to turn this on/off.

Thank you very much for posting this...this was exactly what I was looking for from this mod. :up:

combs 09-13-2007 04:54 PM

liquidrage I like what you did with your adjustments. However maybe I am an idiot but I can't figure out how to get the think working to be editable in control panel. In the profile field thing under chooseale options I had to add all of the teams automatically like this:
Atlanta Hawks
Boston Celtics
Charlotte Bobcats
Chicago Bulls
Cleveland Cavaliers
Dallas Mavericks
Denver Nuggets
Detroit Pistons
Golden State Warriors
Houston Rockets
Indiana Pacers
LA Clippers
LA Lakers
Memphis Grizzlies
Miami Heat
Milwaukee Bucks
Minnesota Timberwolves
New Jersey Nets
New Orleans Hornets
New York Knicks
Orlando Magic
Philadelphia 76ers
Phoenix Suns
Portland Blazers
Sacramento Kings
San Antonio Spurs
Seattle Sonics
Torono Raptors
Utah Jazz
Washington Wizards

because I had to complete the field to save it. Was I not suppose to do that? What do I put in the field then. Help is appreciated!

RawTaLenT96 09-13-2007 06:26 PM

can someone pls give me alittle better update on this.. im new to this and im not understanding what this mod does can someone pls explain alittle more ty

Fungsten 09-13-2007 08:48 PM

On Edit.

I fixed it. Didn't have the autoedits set to yes.

Astroholic 01-09-2008 07:37 PM

I have it installed and picked my fav teams but the logos aren't showing up. Anyone know why? Maybe I have it in the wrong folder?

almightyone 01-10-2008 01:03 AM

Quote:

Originally Posted by Astroholic (Post 1418551)
I have it installed and picked my fav teams but the logos aren't showing up. Anyone know why? Maybe I have it in the wrong folder?

right click your broken image and view the path then palce the images where it is looking ;)

Gez 01-10-2008 04:50 AM

Great hack, any chance we can get rugby, cricket, and what about a motorsports package like Formula 1, WRC, DTM series and so forth?

Thanks :)

Gez 01-14-2008 05:14 AM

am i the only one who wants this to work with motorsports?

dukegotgame 02-21-2008 10:53 PM

I followed the instructions below, but what I can't seem to do is get rid of the drop down menus by the private messages in the navbar. I can turn them off via VB Options, but it still seems to over ride the user profile options. I think becuase I let it auto-edit my navbar template, I can't pull that code out of there. HELP!

Quote:

Originally Posted by liquidrage (Post 1300006)
This uses the instructions found with this product except I changed the 3 templates that are modified to give it a look and functionality that better suited my site. It also makes use of a custom profile field to give users the ability to turn this on/off.


OK, for the way I did it: No support offered, use at own risk, yadda yadda yadda

In User Profile Fields from the Admin CP add a new field of type "Single-Selection Radio Button". First line value of Yes second line value of No
This doesn't need to be seen in the member list, nor searchable. So you probably want to turn those options off when creating it.
This is to let people turn this feature on and off. I display it on edit profile but wherever if you want is fine. Once it's saved look at the manager page for profile fields and you'll see it's named fieldX where X is a number. Remember this for later.


In the USERCP template find:
Code:

<!-- ############## END SUBSCRIBED FORUMS ##############  -->
</if>

After that add:

Code:

<!-- YOUR TEAMS -->

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
        <tr>
                <td class="tcat" colspan="2">
                Team Manager
                </td>
        </tr>
</thead>
<tbody id="collapseobj_usercp_forums" style="$vbcollapse[collapseobj_usercp_forums]">
        <tr align="center" valign="bottom">
                <td class="alt1">

<div width="100%"><span class="navbar"> $usernflteams&nbsp$usernhlteams&nbsp$usermlbteams
<br />
$usernbateams&nbsp$userncaateams&nbsp$usernascardrivers&nbsp$userfifateams&nbsp$userpremierteams </span></div>

</td>
        </tr>
</tbody>
</table>
<br />

<!-- END OF YOUR TEAMS -->

In your PostBit template (postbit_legacy for me since I use the classic posbit look) find:

Code:

<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
After that add:

Code:


<if condition="$bbuserinfo['field21'] != 'No'">
<br />
                                        <div class="smallfont">
<if condition="!empty($post[nhlteam])">
                                                        <img src="$vboptions[bburl]/images/nhl/$post[nhlteam].gif" border="0" alt="$post[nhlteam]" /></if>
                                                <if condition="!empty($post[nflteam])">
                                                        <img src="$vboptions[bburl]/images/nfl/$post[nflteam].gif" border="0" alt="$post[nflteam]" /></if>
                                                <if condition="!empty($post[nbateam])">
                                                        <img src="$vboptions[bburl]/images/nba/$post[nbateam].gif" border="0" alt="$post[nbateam]" /></if>
                                                <if condition="!empty($post[mlbteam])">
                                                        <img src="$vboptions[bburl]/images/mlb/$post[mlbteam].gif" border="0" alt="$post[mlbteam]" /></if>
<if condition="!empty($post[ncaateam])">
                                                        <img src="$vboptions[bburl]/images/ncaa/$post[ncaateam].gif" border="0" alt="$post[ncaateam]" /></if>
                                                <if condition="!empty($post[nascardriver])">
                                                        <img src="$vboptions[bburl]/images/nascar/$post[nascardriver].gif" border="0" / alt="$post[nascardriver]" ></if>
                                                <if condition="!empty($post[fifateam])">
                                                        <img src="$vboptions[bburl]/images/fifa/$post[fifateam].gif" border="0" alt="$post[fifateam]"/></if>
                                                <if condition="!empty($post[premierteam])">
                                                        <img src="$vboptions[bburl]/images/premier/$post[premierteam].gif" border="0" alt="$post[premierteam]" /></if>
                                        </div>
                                </if>


Now, look at the 1st line of that code. See where it says field21? That needs to match up to the fieldX you created earlier.


In MEMBERINFO find:

Code:

$customfields
After that add:

Code:

<if condition="!empty($userinfo[nhlteam])">
<br >
<strong>$vbphrase[my_nhlteam]:</strong> <img src="$vboptions[bburl]/images/nhl/$userinfo[nhlteam].gif" border="0" />
</if>
<if condition="!empty($userinfo[nflteam])">
<br />
<strong>$vbphrase[my_nflteam]:</strong> <img src="$vboptions[bburl]/images/nfl/$userinfo[nflteam].gif" border="0" />
</if>
<if condition="!empty($userinfo[ncaateam])">
<br />
<strong>$vbphrase[my_ncaateam]:</strong> <img src="$vboptions[bburl]/images/ncaa/$userinfo[ncaateam].gif" border="0" />
</if>
<if condition="!empty($userinfo[mlbteam])">
<br />
<strong>$vbphrase[my_mlbteam]:</strong> <img src="$vboptions[bburl]/images/mlb/$userinfo[mlbteam].gif" border="0" />
</if>
<if condition="!empty($userinfo[premierteam])">
<br />
<strong>$vbphrase[my_premierteam]:</strong> <img src="$vboptions[bburl]/images/premier/$userinfo[premierteam].gif" border="0" />
</if>
<if condition="!empty($userinfo[fifateam])">
<strong>$vbphrase[my_fifateam]:</strong> <img src="$vboptions[bburl]/images/premier/$userinfo[fifateam].gif" border="0" />
<br />
</if>
<if condition="!empty($userinfo[nascardriver])">
<strong>$vbphrase[my_nascardriver]:</strong> <img src="$vboptions[bburl]/images/premier/$userinfo[nascardriver].gif" border="0" />
<br />
</if>


And that's all I had to do . Really it's just the way it was done via the product just with different formatting in different places.

I don't use the NASCAR or the FIFA so but my site using this can be found here:
http://www.flyersphans.com/forums/index.php


dukegotgame 02-25-2008 05:35 PM

Can anyone help? I modded this mod so that the drop down menus go from the navbar to the user profile area. However, when I turn them off in VB Options, it doesn't recognize the selection you make and still displays whatever you selected in the navbar.

SHalliday 02-25-2008 10:25 PM

This looks like a great mod! Motorsports would be an awesome addition. Hoping that is under consideration.

CLF 02-26-2008 03:59 AM

This would be perfect for my sports forum but I have dark background and the gifs don't work for me. :( I'll try to find team logos for dark bckgrnd and then I'll install it and let you know.

However, thank you for this nice hack! :)

CLF 02-26-2008 11:10 PM

Does anyone have any idea where could I find small team logos for dark background?
THANK YOU!!!

bainsey 03-01-2008 08:23 PM

installed it all but nothing at all shows up for me?!

CLF 03-15-2008 06:02 AM

How bad are autoedits for custom styles?
Anyone?
THANK YOU!

HMBeaty 03-19-2008 12:12 AM

Hey everyone, I'm home on leave but only for a couple more days. Thank you all for the positive feedback and suggestions. I have VERY limited access to the internet since I've joined the military but hopefully in about 4 months, providing I'm not in Iraq, I will be able to update all of my modifications.........and my website. I apologize for any inconvenience this may cause anybody.

CLF 03-21-2008 03:31 AM

Quote:

Originally Posted by Redlinemotorsports (Post 1468297)
Hey everyone, I'm home on leave but only for a couple more days. Thank you all for the positive feedback and suggestions. I have VERY limited access to the internet since I've joined the military but hopefully in about 4 months, providing I'm not in Iraq, I will be able to update all of my modifications.........and my website. I apologize for any inconvenience this may cause anybody.

Hi there.

I think this thing is great but I need to know how bad are autoedits for custom styles?
THANK YOU! Looking forward to your updates. And thank for your help in advance. :)


All times are GMT. The time now is 01:02 PM.

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.02901 seconds
  • Memory Usage 1,891KB
  • 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
  • (12)bbcode_code_printable
  • (9)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