vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Major Additions - Pick Em Picks - NFL (https://vborg.vbsupport.ru/showthread.php?t=285673)

RSNF 07-29-2012 06:37 PM

Quote:

Originally Posted by Reycer (Post 2351767)
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?

Krusty1231 07-29-2012 08:19 PM

Quote:

Originally Posted by LgsOfChampions (Post 2352520)
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.

LgsOfChampions 07-29-2012 09:31 PM

ty sir

LgsOfChampions 07-30-2012 12:35 AM

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

Krusty1231 07-30-2012 01:06 AM

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.

Reycer 07-30-2012 08:25 PM

Quote:

Originally Posted by RSNF (Post 2352526)
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.

Reycer 07-30-2012 08:31 PM

Quote:

Originally Posted by LgsOfChampions (Post 2352586)
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.

Reycer 07-30-2012 08:32 PM

Quote:

Originally Posted by Krusty1231 (Post 2352602)
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.

LgsOfChampions 07-30-2012 08:42 PM

Quote:

Originally Posted by Reycer (Post 2352869)
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>

Reycer 07-30-2012 09:59 PM

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.


All times are GMT. The time now is 05:37 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.02637 seconds
  • Memory Usage 1,760KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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