Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

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
  #52  
Old 08-30-2012, 01:23 AM
Preech Preech is offline
 
Join Date: Aug 2002
Location: Fort Campbell
Posts: 325
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is this still using a seperate login from vbulletin.
Reply With Quote
  #53  
Old 08-30-2012, 06:30 AM
Krusty1231's Avatar
Krusty1231 Krusty1231 is offline
 
Join Date: Jul 2010
Location: Canada
Posts: 366
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Preech View Post
Is this still using a seperate login from vbulletin.
Far as I know it is. I have it installed. No change.
Reply With Quote
  #54  
Old 09-03-2012, 11:22 PM
Bob_R Bob_R is offline
 
Join Date: Jun 2009
Posts: 535
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Reycer View Post
2012 Schedule was attached. It's included in the .xml file now. Here it is you can add it manually.
In other words, it's done automatically?

Also, the directions in the README of phppickem 1.0.8 mention to:


Create a MySQL database on your web server, as well as a MySQL user who has all privileges for accessing and modifying it.

This does not need to be done, correct?
Reply With Quote
  #55  
Old 09-04-2012, 01:46 AM
Bob_R Bob_R is offline
 
Join Date: Jun 2009
Posts: 535
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I created the database and when I run the install script it says it cannot connect to database.

FYI: I put the whole phppickem 1.0.8 folder in the root.

I had an index.php in there and didn't want to overwrite it
************************************************** **********************

EDIT:

I get this when trying to add the tab to my site

Error: The navigation element title is invalid.
************************************************** **************

EDIT:

Don't see anything in my AdminCP options

When I do this step ----> Point your browser to www.yoursite.com/pickempicks.php

I get a blank white screen
Reply With Quote
  #56  
Old 09-04-2012, 09:56 AM
Krusty1231's Avatar
Krusty1231 Krusty1231 is offline
 
Join Date: Jul 2010
Location: Canada
Posts: 366
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Bob_R View Post
In other words, it's done automatically?

Also, the directions in the README of phppickem 1.0.8 mention to:


Create a MySQL database on your web server, as well as a MySQL user who has all privileges for accessing and modifying it.

This does not need to be done, correct?
Yes it does.

Quote:
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*
Create another database - and use that - not your forum database (this is the way I did it)

I see your white page on your site. There is nothing for the login to connect to.

Once you have created your database and have the relevant information, (Password - Username -path- etc) open the config file in the phppickem folder/includes/ and enter your details.

Upload the folder to where you have it now (I put mine outside my forum) and run the install.php by going to www.yoursite.com/phppickem/install

From there the installer should take over.
Reply With Quote
  #57  
Old 09-04-2012, 01:17 PM
Bob_R Bob_R is offline
 
Join Date: Jun 2009
Posts: 535
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Getting closer. See screen shot. File not found?

Should the // be in the code below?

// chdir ('/xxxx/xxxx/xxxx/talkclassicrock.com/forums');
require_once('./global.php');
Attached Images
File Type: jpg Screen shot 2012-09-04 at 10.16.32 AM.jpg (23.3 KB, 0 views)
Reply With Quote
  #58  
Old 09-04-2012, 04:20 PM
Bob_R Bob_R is offline
 
Join Date: Jun 2009
Posts: 535
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does the site URL in config.php get the /forums?
Reply With Quote
  #59  
Old 09-04-2012, 05:16 PM
Bob_R Bob_R is offline
 
Join Date: Jun 2009
Posts: 535
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Krusty1231 View Post
Upload the folder to where you have it now (I put mine outside my forum) and run the install.php by going to www.yoursite.com/phppickem/install

From there the installer should take over.
The phppickem folder is in talkclassicrock.com
The pickempicks.php file is in talkclassicrock.com/forums

Once I get to Step 3 of the installer it asks to delete the install file.

I do that

then it says to hit complete

I do that and it takes me to a blank white screen. Is this what should happen?

Here's my pickempicks.php

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 ('/xxxx/xxxx/xxxx/talkclassicrock.com/forums');
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());

?>
Here is a line from the config.php file in the phppickem folder

PHP Code:
$siteUrl 'http://www.talkclassicrock.com/forums/'

EDIT:

FYI: Found this in an error file

[04-Sep-2012 13:11:42] PHP Fatal error: Call to undefined function dl() in /xxxx/xxxx/xxxx/talkclassicrock.com/phppickem/includes/classes/crypto.php on line 31
[04-Sep-2012 13:16:45] PHP Fatal error: Call to undefined function dl() in /xxxx/xxxx/xxxx/talkclassicrock.com/phppickem/includes/classes/crypto.php on line 31
Reply With Quote
  #60  
Old 09-05-2012, 09:39 AM
Krusty1231's Avatar
Krusty1231 Krusty1231 is offline
 
Join Date: Jul 2010
Location: Canada
Posts: 366
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try this:

In your phppickem. php you currently have this:

Code:
// chdir ('/xxxx/xxxx/xxxx/talkclassicrock.com/forums');
require_once('./global.php');
remove the talkclassicrock.com
Reply With Quote
  #61  
Old 09-05-2012, 03:13 PM
Bob_R Bob_R is offline
 
Join Date: Jun 2009
Posts: 535
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nope.

This is very frustrating. Especially with football beginning tonight.
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 09:12 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.04399 seconds
  • Memory Usage 2,352KB
  • 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
  • (2)bbcode_php
  • (5)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
  • (4)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