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)

HMBeaty 04-10-2007 10:00 PM

Sports Manager (NFL, NBA, NCAA, MLB, FIFA, NASCAR, NHL, Premier)
 
First off, thanks goes out to Sniper for giving me permission to modify his Mood Manager and release a Sports Manager.

Is currently not compatible with vBAdvanced (Unless someone wants to come out with a fix)

What is this? Basically its just like the Mood Manager but with sports. :)

Current Sports:
FIFA: International Federation of Association Football
MLB: Major League Baseball
NASCAR: National Association of Stock Car Auto Racing
NBA: National Basketball Association
NCAA: National Collegiate Athletic Association
NFL: National Football League
NHL: National Hockey League
Premier: English FA Premiership League Soccer in Uk

almightyone 04-10-2007 11:09 PM

thnx for making this
installed

glorify 04-10-2007 11:13 PM

Looks good man. Since my forum goes pretty much for one team, I have done something similar, but with customized jerseys. Link. I probably have made roughly 300 different jerseys.

nonamer69 04-10-2007 11:51 PM

well done. thanks redlinemotorsports

rinkrat 04-10-2007 11:57 PM

Can't wait for NHL moods :)

rjmjr69 04-10-2007 11:58 PM

Will this work with the mood manager installed as well?

nonamer69 04-11-2007 12:29 AM

Quote:

Originally Posted by rjmjr69 (Post 1224564)
Will this work with the mood manager installed as well?

yep

deezelpope 04-11-2007 12:41 AM

Ok...strange problem. My ftp has a fit whenever I try to upload images that have spaces in the image name. Whenever presented with this 'problem', I need to open each image in Animation Shop and rename the image by removing that space...does anyone know an easier way around this? Aside from giving up, I mean...I'd really love to be able to install this! I love football!!

sportsoutlaw 04-11-2007 12:41 AM

This Rocks!

rjmjr69 04-11-2007 12:46 AM

Quote:

Originally Posted by nonamer69 (Post 1224589)
yep


Sweet thank you

nonamer69 04-11-2007 01:04 AM

Quote:

Originally Posted by deezelpope (Post 1224597)
Ok...strange problem. My ftp has a fit whenever I try to upload images that have spaces in the image name. Whenever presented with this 'problem', I need to open each image in Animation Shop and rename the image by removing that space...does anyone know an easier way around this? Aside from giving up, I mean...I'd really love to be able to install this! I love football!!

have you tried a different ftp program to transfer the files? I'm using flashfxp.

deezelpope 04-11-2007 01:35 AM

Uh, wouldn't I have to transfer everything from the ftp I'm presently using to a new one?

o0Hubba0o 04-11-2007 02:05 AM

Quote:

Originally Posted by deezelpope (Post 1224597)
Ok...strange problem. My ftp has a fit whenever I try to upload images that have spaces in the image name. Whenever presented with this 'problem', I need to open each image in Animation Shop and rename the image by removing that space...does anyone know an easier way around this? Aside from giving up, I mean...I'd really love to be able to install this! I love football!!

Well I can make renaming them a bit easier, you shouldn't have to open any type of program to change the name. Open the containing folder and you can either click twice on the name (not a fast double click) or right click and choose "rename".

HMBeaty 04-11-2007 02:24 AM

Quote:

Originally Posted by rjmjr69 (Post 1224564)
Will this work with the mood manager installed as well?

Yes. It shouldn't hurt anything at all in the Mood Manager :up:

HMBeaty 04-11-2007 02:25 AM

Quote:

Originally Posted by deezelpope (Post 1224622)
Uh, wouldn't I have to transfer everything from the ftp I'm presently using to a new one?

No. Why would you have to do that? BTW, the FTP program I use is FileZilla :)

erl 04-11-2007 02:44 AM

thanks man added cant wait for the rest...

HMBeaty 04-11-2007 03:42 AM

Ok, I broke down and hurried things up a little and released all the other teams/sports. Enjoy

To those who installed the NFL Team Manager, re-download and re-import the XML and set "Allow Overwrite" to yes. Fixed a small bug with displaying images in it.

Pady 04-11-2007 06:42 AM

sounds great - any chance of creating a F1 Drivers variant?

deezelpope 04-11-2007 09:10 AM

Quote:

Originally Posted by o0Hubba0o (Post 1224636)
Well I can make renaming them a bit easier, you shouldn't have to open any type of program to change the name. Open the containing folder and you can either click twice on the name (not a fast double click) or right click and choose "rename".

It won't render the image unusable? Cuz that what I'm afraid of if I'd attempt that little maneuver.
Quote:

Originally Posted by Redlinemotorsports (Post 1224650)
No. Why would you have to do that? BTW, the FTP program I use is FileZilla :)

Same here...FileZilla. It happened to me with the Country Flag mod. I got 'critical transfer error' with those image names with spaces...they wouldn't upload until I took out the spaces.:confused:

I just tried it with this...same story...all the images got that critical transfer error

FleaBag 04-11-2007 11:26 AM

To work in vBadvanced you probably just need to add the variable name to the vBa options. For example with mood manager I had to add $mood (I don't remember if that's exactly it, but for arguments sake) to the list of variables to parse in vBa. :)

nonamer69 04-11-2007 11:50 AM

Quote:

Originally Posted by deezelpope (Post 1224800)
It won't render the image unusable? Cuz that what I'm afraid of if I'd attempt that little maneuver.

Same here...FileZilla. It happened to me with the Country Flag mod. I got 'critical transfer error' with those image names with spaces...they wouldn't upload until I took out the spaces.:confused:

I just tried it with this...same story...all the images got that critical transfer error



just edit all filenames to an underscore _ in place of the spaces then do the same edits in the product that calls the images. That I'm sure will work for you, but I think you should talk to your host to see why its rejecting files with spaces in them.

Greek Wizard 04-11-2007 11:52 AM

Can we get this as a full package?

What I mean is let people install it and people can choose one team, from all the sports images (NFL, NHL, etc)

Some people like NASCAR only or NHL only, and the full package would not mean having to install all the different ones with many drop downs.

One drop down, for all categories.

Anyone by chance have a screen shot of the multiple dropdowns and postbit area?

I guess I could just add the images to the regular Mood manager, but I would like to have one for moods and one for all the sports.

Greek Wizard 04-11-2007 01:13 PM

I guess from the lack of screen shot in the main post, I assumed the images would be like the Mood Manager, but instead I just noticed they are the exact same images from this hack:

https://vborg.vbsupport.ru/showthread.php?t=108771

Does that author know you used those images?

Forget about what i said in the above post, not interested in installing it now since I already have the vbPlaza and Sports Icons add-on.

Invalid ID 04-11-2007 02:56 PM

Can you add Cricket as well? Thanks

Regs 04-11-2007 02:59 PM

Nicely done.

Nascar isn't showing for my install, anyone else have this issue?

NHL and Premier work no problems...

Cheers,

~Regs.

Sofia 04-11-2007 03:03 PM

Thanks a lot, Redline :)

skorzguy 04-11-2007 04:15 PM

Quote:

Originally Posted by Regs (Post 1225004)
Nicely done.

Nascar isn't showing for my install, anyone else have this issue?

NHL and Premier work no problems...

Cheers,

~Regs.


The variable is not right, change to nascardriver. I think it was nascarteam in the orginal text file.

Try this change, it should work.

### Step 1 ###

Upload the NASCAR Teams to /images/nascar/


### Step 2 ###

Install the product via the vBulletin Product Manager.


### Step 3 ###

In the postbit/postbit_legacy template

### Find ###

<div>
$vbphrase[posts]: $post[posts]
</div>


### Under it Add ###

<if condition="!empty($post[nascardriver])">
<div>
$vbphrase[my_nascardriver]: <img src="$vboptions[bburl]/images/nascar/$post[nascardriver].gif" border="0" />
</div>
</if>


### Step 4 ###

n the navbar template

### Find ###

$vbphrase[private_messages_nav]

### Under it Add ###

<br />$usernascardriver


You can place " $usernascardriver " anywhere you want in the navbar template to show the
NASCAR Teams dropdown list.


### Step 5 ###

In the MEMBERINFO template

### Find ###

$customfields

### Under it Add ###

<if condition="!empty($userinfo[nascardriver])">
<strong>$vbphrase[my_nascardriver]:</strong>
<br />
<img src="$vboptions[bburl]/images/nascar/$userinfo[nascardriver].gif" border="0" />
</if>


### Step 6 ###

Admincp -> vBulletin Options -> [Redline] - NASCAR Team Manager

Here you can enable or disable the NASCAR Teams manager and add the teams you want in this format

1 Martin Truex Jr
2 Kurt Busch
3 Dale Earnhardt
5 Kyle Busch
6 Mark Martin

Also there are options to enable auto edits (if you did not do the above edits), which
edit your templates for you. (NOT SUGGESTED TO DO THE AUTO EDITS IF YOU HAVE CUSTOM STYLES!!)

Regs 04-11-2007 04:30 PM

Thanks but no joy :confused:

HMBeaty 04-11-2007 04:35 PM

Works perfectly fine for me. I'll be releasing a bulk package to replace all of these anyway in about an hour or so

Regs 04-11-2007 05:32 PM

What variable are you using in your navbar template edit for Nascar then? I'm getting NO TEXT output at all so something is not right.

Cheers!

~Regs.

HMBeaty 04-11-2007 05:58 PM

Quote:

Originally Posted by Regs (Post 1225130)
What variable are you using in your navbar template edit for Nascar then? I'm getting NO TEXT output at all so something is not right.

Cheers!

~Regs.

I'm using the autoedit. So it would be $usernascardrivers

Regs 04-11-2007 06:00 PM

FYI: In the text readme file, you are using $usernascarteams everywhere :D

HMBeaty 04-11-2007 06:14 PM

Quote:

Originally Posted by Regs (Post 1225168)
FYI: In the text readme file, you are using $usernascarteams everywhere :D

Yes, I realized that. It will be fixed in the next version. Thank you. Did you get it fixed?

mathias 04-11-2007 06:47 PM

any images?

Regs 04-11-2007 06:53 PM

Quote:

Originally Posted by Redlinemotorsports (Post 1225182)
Yes, I realized that. It will be fixed in the next version. Thank you. Did you get it fixed?

Yup, working good other than a member complaining about no #7 Robbie Gordon :rolleyes:

:D

Thanks!

HMBeaty 04-11-2007 07:07 PM

Updated to version 2.0.0

It is now released as ONE bulk package

rjmjr69 04-11-2007 07:40 PM

Nice thanks..

sportsoutlaw 04-11-2007 08:15 PM

Is there a way this can be made where we can do the selections in some sort of drop down menu? I would love to use all the sports, but that was overkill on my navbar, LOL.

Trying to figure out a way on my end at the moment.

skorzguy 04-11-2007 08:43 PM

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.

postbit template:
-----------------------------------------------------------------------------------------------------------

Find:
------
<tr>
<if condition="$show['avatar']"><td class="alt2" valign="top"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>

** you probably won't have the valign="top", I added this to make sure the avatar was on top.

Add above:
--------------

<!-- /show teams -->
<tr> <div align="left">
<if condition="$post['nflteam']">
<!-- current team -->
<fieldset><legend>My Teams</a></legend>
<if condition="!empty($post[nflteam])">
$vbphrase[my_nflteam]: <img src="$vboptions[bburl]/images/nfl/$post[nflteam].gif" border="0" /></if>
<if condition="!empty($post[nbateam])">
$vbphrase[my_nbateam]: <img src="$vboptions[bburl]/images/nba/$post[nbateam].gif" border="0" /></if>
<if condition="!empty($post[mlbteam])">
$vbphrase[my_mlbteam]: <img src="$vboptions[bburl]/images/mlb/$post[mlbteam].gif" border="0" /></if>
<if condition="!empty($post[nhlteam])">
$vbphrase[my_nhlteam]: <img src="$vboptions[bburl]/images/nhl/$post[nhlteam].gif" border="0" /></if>
<if condition="!empty($post[ncaateam])">
$vbphrase[my_ncaateam]: <img src="$vboptions[bburl]/images/ncaa/$post[ncaateam].gif" border="0" /></if>
<if condition="!empty($post[nascardriver])">
$vbphrase[my_nascardriver]: <img src="$vboptions[bburl]/images/nascar/$post[nascardriver].gif" border="0" /></if>
<if condition="!empty($post[fifateam])">
$vbphrase[my_fifateam]: <img src="$vboptions[bburl]/images/fifa/$post[fifateam].gif" border="0" /></if>
</fieldset></if>
</div></tr>
<!-- /show Teams -->

**doesn't include the English FA Premiership League Soccer in Uk

navbar template:
-----------------------------------------------------------------------------------------------------------

Find:
------

<!-- breadcrumb, login, pm info -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>

Add above:
--------------

<!-- My Teams -->
<if condition="$show['member']">
<tr width="100%"><span class="navbar"><strong>My teams:</strong> $usernflteams&nbsp$usernbateams&nbsp$usermlbteams& nbsp$usernhlteams&nbsp$usernca ateams&nbsp$usernascardrivers&nbsp$userfifateams </phrase></if>
</if>
<!-- My Teams -->

**doesn't include the English FA Premiership League Soccer in Uk

It's not best code, maybe someone can fix it and make it better.

Check screenshots

deezelpope 04-11-2007 09:14 PM

Quote:

Originally Posted by Regs (Post 1225224)
Yup, working good other than a member complaining about no #7 Robbie Gordon :rolleyes:

:D

Thanks!

I made it for ya...


All times are GMT. The time now is 06:20 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.01582 seconds
  • Memory Usage 1,829KB
  • 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
  • (14)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