Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications

Reply
 
Thread Tools
Pick Em Picks - NFL Details »»
Pick Em Picks - NFL
Version: 1.1, by Reycer Reycer is offline
Developer Last Online: Oct 2013 Show Printable Version Email this Page

Category: Major Additions - Version: 4.2.0 Rating:
Released: 07-16-2012 Last Update: 08-03-2012 Installs: 13
DB Changes Uses Plugins
Re-useable Code Additional Files Translations  
No support by the author.

Like this mod? Click install and nominate for motm=====>>>

This mod will add a NFL Football Pick Em to your Vbulletin

I did not write the code for the Pick Em, but have been granted permission to re-distribute it and share it. Please be respectful of the author and leave the copyright in place, however you can remove the Paypal donate


Step 1:
Open config.php located in the includes folder of phppickem.1.0.8 and enter database details.

Step 2:
Upload all of the files located in phppickem.1.0.8 and pickempicks.php to your root on your server (do not put these in the same folder).

Step 3: Import the the XML product. admincp--->plugins and products--->manage products--->add/import product


Step 4: Run the install script. www.yoursite.com/phppickem/install
*Follow the on-screen directions. Don't forget to delete file afterwards*

Point your browser to www.yoursite.com/pickempicks.php
Don't forget to make a link to your new page!


Initial Log in for Admin is:

Username: Admin
Password: admin123

Be sure to change that to a password you can remember

To update to the 2012 season. Download Nfl_2012_Schedule (attached) and log into your database via phpmyadmin. Upload the file to your database. This will update your schedule for the upcoming 2012 season.

ENJOY!

This project IS modifiable, so if someone want to take on the task of modifying it to conform more to Vbulletin, by all means be my guest. As it is right now, users will have to create another log in.

As far as I know this should work with all Vbulletin 4 versions, but I have no way of testing that.


Change Log:
Updated version 1.1
Now includes product xml. No need for a
template change.

Download Now

File Type: zip phppickem.1.0.8.zip (1.14 MB, 92 views)
File Type: php pickempicks.php (723 Bytes, 87 views)
File Type: xml product-pickem_picks.xml (39.5 KB, 49 views)

Show Your Support

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

Comments
  #62  
Old 09-05-2012, 07:45 PM
Bob_R Bob_R is offline
 
Join Date: Jun 2009
Posts: 535
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What target URL is used in the vBulletin Navigation Manager?

pickempicks.php?
Reply With Quote
  #63  
Old 09-07-2012, 12:30 AM
Bob_R Bob_R is offline
 
Join Date: Jun 2009
Posts: 535
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm still open to suggestions but this did not work for me.

So, at least for now, uninstalled
Reply With Quote
  #64  
Old 09-07-2012, 02:07 AM
Krusty1231's Avatar
Krusty1231 Krusty1231 is offline
 
Join Date: Jul 2010
Location: Canada
Posts: 366
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You have PM!
Reply With Quote
Благодарность от:
Bob_R
  #65  
Old 09-08-2012, 01:21 AM
mikeinjersey mikeinjersey is offline
 
Join Date: Feb 2006
Posts: 290
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how come only 8 installs for this plugin so far ? Should be a lot more i'd figure...maybe the word just isn't out yet ?

I was just looking exactly just for this just now , as the other Tournament / Ladder / League plugin seems like too much...for a simple pick em plugin.

any security issues arised yet? It isn't typical plugin procedure to do the whole database login / password thingee .

not quite understanding why this url needs to be in config.php -

$siteUrl = 'http://localhost/personal/phppickem.com/application/ ?

and when installed, will my existing members still see the NFL login screen when logged in.. or do they have to signup remotely to another site to pick the pick'ems ?

trying to figure out this plugin..before installing.

thanks
Reply With Quote
  #66  
Old 09-08-2012, 05:50 AM
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
Location: Riverside, California USA
Posts: 1,080
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mikeinjersey View Post
how come only 8 installs for this plugin so far ? Should be a lot more i'd figure...maybe the word just isn't out yet ?

I was just looking exactly just for this just now , as the other Tournament / Ladder / League plugin seems like too much...for a simple pick em plugin.

any security issues arised yet? It isn't typical plugin procedure to do the whole database login / password thingee .

not quite understanding why this url needs to be in config.php -

$siteUrl = 'http://localhost/personal/phppickem.com/application/ ?

and when installed, will my existing members still see the NFL login screen when logged in.. or do they have to signup remotely to another site to pick the pick'ems ?

trying to figure out this plugin..before installing.

thanks
Anyone who wants to take part in the pickems has to create a new account but the script is hosted on your site not another one.
Reply With Quote
  #67  
Old 10-03-2012, 07:16 PM
legiondadon legiondadon is offline
 
Join Date: Aug 2012
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ive gotten this all to work so far for the season only thing i noticed is that when you click on a team the scores of the previous games does not show in the right column
Reply With Quote
  #68  
Old 10-07-2012, 10:37 PM
legiondadon legiondadon is offline
 
Join Date: Aug 2012
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

TIme / Result column...nothing shows after the week is over...should say who won and stuff
Reply With Quote
Благодарность от:
Krusty1231
  #69  
Old 10-08-2012, 10:42 AM
Krusty1231's Avatar
Krusty1231 Krusty1231 is offline
 
Join Date: Jul 2010
Location: Canada
Posts: 366
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks like this isn't broken code so much as forgotten code - the case is there to do something if there's a score entered, but the "do something" part is just "print an empty table cell". So to fix this, you can replace line 77 in schedule.php (should be 77 - you're looking for the line after "//if score is entered, show result").

It was:

Code:
echo ' <td></td>' . "\n";
Replace it with:

Code:
echo ' <td>'.$visitorTeam->teamName.' '.$result['visitorScore'].', '.$homeTeam->teamName.' '.$result['homeScore'].'</td>' . "\n";
Here is how it should look in the first screenshot:

You could make the winners appear "bold" if you add this instead of the code above to the same location:

Code:
if ((int)$result['homeScore'] > (int)$result['visitorScore']) { echo ' <td>'.$visitorTeam->teamName.' '.$result['visitorScore'].' &larr;<b>'.$homeTeam->teamName.' '.$result['homeScore'].'</b></td>' . "\n"; } if ((int)$result['visitorScore'] > (int)$result['homeScore']) { echo ' <td><b>'.$visitorTeam->teamName.' '.$result['visitorScore'].'</b> &rarr; '.$homeTeam->teamName.' '.$result['homeScore'].'</td>' . "\n";}
And the second screenshot shows you the result.

I hope that helps you!
Attached Images
File Type: jpg Untitled.jpg (180.1 KB, 0 views)
File Type: jpg Untitled2.jpg (186.8 KB, 0 views)
Reply With Quote
Благодарность от:
legiondadon
  #70  
Old 10-12-2012, 09:32 AM
legiondadon legiondadon is offline
 
Join Date: Aug 2012
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey man that did the trick Krusty i appreciate your time you took to answer my question worked very well
Reply With Quote
  #71  
Old 07-08-2013, 10:24 AM
Krusty1231's Avatar
Krusty1231 Krusty1231 is offline
 
Join Date: Jul 2010
Location: Canada
Posts: 366
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Official Game day is 59 days away I figured I would throw up the schedule for this years games if anyone wants it.

Just import the new schedule via phpadmin.
Attached Files
File Type: zip nfl_schedule_2013.zip (3.2 KB, 14 views)
Reply With Quote
Благодарность от:
tbworld
Reply

Thread Tools

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:17 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.04682 seconds
  • Memory Usage 2,355KB
  • Queries Executed 28 (?)
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
  • (3)bbcode_code
  • (1)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
  • (4)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (6)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_postinfo_query
  • fetch_postinfo
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • 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
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete