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
  #12  
Old 07-29-2012, 06:37 PM
RSNF's Avatar
RSNF RSNF is offline
 
Join Date: May 2010
Location: Florida
Posts: 242
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Reycer View Post
If you have a fair knowledge of coding, it is possible to change this to NBA or MLB.

Would you consider taking on a project like this in the paid request section for MLB?
Reply With Quote
  #13  
Old 07-29-2012, 08:19 PM
Krusty1231's Avatar
Krusty1231 Krusty1231 is offline
 
Join Date: Jul 2010
Location: Canada
Posts: 366
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by LgsOfChampions View Post
do the files get uploaded to the forum server (myname.com/forum)? or totally different (do i make new folder in my forum server)
?
I uploaded the files outside of my forum. I created a separate database following the install instructions of the phpfootball addon.

PHP Pick 'Em
Quote:

1. Minimum Requirements
 PHP version 4.3 or greater
 MySql version 4.0 or greater

2. Installation Instructions
1. Extract files
2. Create a MySQL database on your web server, as well as a MySQL user who has all privileges for accessing and modifying it.
3. Edit /includes/config.php and update database connection variables accordingly
4. Upload files to your web server
5. Run installer script at http://www.your-domain.com/phppickem/install. The installer will assist you with the rest.

3. Logging In

Log in for the first time with admin / admin123. You may change your password once you are logged in.
Reply With Quote
  #14  
Old 07-29-2012, 09:31 PM
LgsOfChampions's Avatar
LgsOfChampions LgsOfChampions is offline
 
Join Date: Feb 2011
Location: Leagues Of Champions
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ty sir
Reply With Quote
  #15  
Old 07-30-2012, 12:35 AM
LgsOfChampions's Avatar
LgsOfChampions LgsOfChampions is offline
 
Join Date: Feb 2011
Location: Leagues Of Champions
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got it uploaded and installed however 2 things,

1 - when I use this link, it like boots me out and takes me str8 back to my forum activity page http://www.leaguesofchampions.com/pickempicks.php

2. I know u explain how to upload schedule, I'm all new to this but does this get uplaoded to the server or upload it via the phpadmin site?

I love this mod, huge sports nut I will be donating once I get it working correctly.

ALSO - E -A -G -L -E -S------ EAGLES BABY
Reply With Quote
  #16  
Old 07-30-2012, 01:06 AM
Krusty1231's Avatar
Krusty1231 Krusty1231 is offline
 
Join Date: Jul 2010
Location: Canada
Posts: 366
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Open the pickempicks.php and look at line 19:

// chdir ('/path/to/your/forums');

Make sure this path is the same path as your forum.

Also - I uploaded the schedule through phpadmin.
Reply With Quote
  #17  
Old 07-30-2012, 08:25 PM
Reycer Reycer is offline
 
Join Date: Jul 2008
Location: Lebanon, MO (USA)
Posts: 747
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RSNF View Post
Would you consider taking on a project like this in the paid request section for MLB?
I'll try and do it. I'm not much of a coder, but I'm up for a challenge. I'll give it a go.

EDIT: Got most of it done. Working on the exhausting schedule right now. That may take a couple of days. lol I'll upload it when I'm done.
Reply With Quote
  #18  
Old 07-30-2012, 08:31 PM
Reycer Reycer is offline
 
Join Date: Jul 2008
Location: Lebanon, MO (USA)
Posts: 747
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by LgsOfChampions View Post
I got it uploaded and installed however 2 things,

1 - when I use this link, it like boots me out and takes me str8 back to my forum activity page http://www.leaguesofchampions.com/pickempicks.php

2. I know u explain how to upload schedule, I'm all new to this but does this get uplaoded to the server or upload it via the phpadmin site?

I love this mod, huge sports nut I will be donating once I get it working correctly.

ALSO - E -A -G -L -E -S------ EAGLES BABY
Post your PHP file and Template code here and I'll take a look at it. Just got back from your site and it is looping back to the activity stream for some reason.
Reply With Quote
  #19  
Old 07-30-2012, 08:32 PM
Reycer Reycer is offline
 
Join Date: Jul 2008
Location: Lebanon, MO (USA)
Posts: 747
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Krusty1231 View Post
Open the pickempicks.php and look at line 19:

// chdir ('/path/to/your/forums');

Make sure this path is the same path as your forum.
No need to un-comment that unless your file is located outside of the forum directory.
Reply With Quote
  #20  
Old 07-30-2012, 08:42 PM
LgsOfChampions's Avatar
LgsOfChampions LgsOfChampions is offline
 
Join Date: Feb 2011
Location: Leagues Of Champions
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Reycer View Post
Post your PHP file and Template code here and I'll take a look at it. Just got back from your site and it is looping back to the activity stream for some reason.
leaguesofchampions.com/pickem <<<folder
PHP Code:
<?php


error_reporting
(E_ALL & ~E_NOTICE);

define('THIS_SCRIPT''pickempicks');
define('CSRF_PROTECTION'true);


$phrasegroups = array();

$specialtemplates = array();

$globaltemplates = array('pickempicks',
);

$actiontemplates = array();

// chdir ('http://www.leaguesofchampions.com/pickem/pickempicks.php');
require_once('./global.php');



$navbits construct_navbits(array('' => 'Pick Em Picks'));
$navbar render_navbar_template($navbits);


$pagetitle 'Pick Em Picks NFL Weekly Picks';


$templater vB_Template::create('pickempicks');
$templater->register_page_templates();
$templater->register('navbar'$navbar);
$templater->register('pagetitle'$pagetitle);
print_output($templater->render());

?>
Quote:
{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html">
<head>
<title>{vb:raw vboptions.bbtitle} - {vb:raw pagetitle}</title>
{vb:raw headinclude}
{vb:raw headinclude_bottom}
</head>
<body>

{vb:raw header}

{vb:raw navbar}

<div id="pagetitle">
<h1>{vb:raw pagetitle}</h1>
</div>

<h2 class="blockhead">Pick Em Picks NFL Weekly Picks</h2>
<div class="blockbody">
<div class="blockrow">
<p align="center"><iframe width="840" scrolling="yes" height="686" frameborder="0" style="border: 0px none transparent;" src="..//pickem/index.php"></iframe></p></div></div>
</div>
</div>

{vb:raw footer}
</body>
</html>
Reply With Quote
  #21  
Old 07-30-2012, 09:59 PM
Reycer Reycer is offline
 
Join Date: Jul 2008
Location: Lebanon, MO (USA)
Posts: 747
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Open pickempicks.php Replace the contents with'

Code:
<?php


error_reporting(E_ALL & ~E_NOTICE);

define('THIS_SCRIPT', 'pickempicks');
define('CSRF_PROTECTION', true);


$phrasegroups = array();

$specialtemplates = array();

$globaltemplates = array('pickempicks',
);

$actiontemplates = array();

require_once('./global.php');



$navbits = construct_navbits(array('' => 'Pick Em Picks'));
$navbar = render_navbar_template($navbits);


$pagetitle = 'Pick Em Picks NFL Weekly Picks';


$templater = vB_Template::create('pickempicks');
$templater->register_page_templates();
$templater->register('navbar', $navbar);
$templater->register('pagetitle', $pagetitle);
print_output($templater->render());

?>
Not exactly sure (it's just not jumping off the page at me) what's wrong with your code, but when I use it, it throws out some errors. So replace the code and see if that works.
Reply With Quote
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 02:54 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.07625 seconds
  • Memory Usage 2,342KB
  • 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
  • (1)bbcode_code
  • (1)bbcode_php
  • (8)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
  • (3)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
  • (3)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