Bookie Mod question

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Bookie Mod question
ytimk
CZ Newbie
ytimk has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Jan 27, 2004
0.00 posts per day
Posts: 6
Points: 1,446
   
Im installing the bookie mod and am on this step:



## Database Changes
##
## 1) Run db_update.php from your web broswer to make the table changes (you must be logged in as an Administrator).


When I try to do this I get:


You can't access this file directly...


I am logged in as the admin (the account I created when I installed Nuke). Am I missing a step or doing something incorrect?

Im running Nuke 7.2 and phpBB 2.0.7. I installed the db_update.php file in the root directory. Thanks in advance for any help.



Back to top Reply with quote
#2   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
Attach the installer.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#3   re: Bookie Mod question
ytimk
CZ Newbie
ytimk has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Jan 27, 2004
0.00 posts per day
Posts: 6
Points: 1,446
   
Hmm, can't seem to find an installer anywhere. I've uploaded all the files in the bookie_mod folder. I double checked to make sure everything was in the right directories and that I didn't miss any. They all seem to be there. Is it possible that it is missing in the download?



Back to top Reply with quote
#4   re: Bookie Mod question
Hitman_2oo4
CZ Active Member
uk.gif
Occupation: Student
Age: 38
Gender: Male
Fav. Sports Team: Manchester United
Website:
Status: Offline
Joined: Sep 05, 2003
0.03 posts per day
Posts: 230
Points: 15,485
   
im gettin this same problem when tryin to run the db_update.php in my web browser im getin the message -- You can't access this file directly... -- where can i get this installer from .. or is there somet i can do manually to correct this problem?

thanks for any input given
hitman



Back to top Reply with quote
#5   re: Bookie Mod question
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
Try this one save as db_update.php and run by uploading into your modules/Forums/

modules.php?name=Forums&file=db_update

<?php
/***************************************************************************
*                               db_update.php
*                            -------------------
*
*   copyright            : ©2003 Freakin' Booty ;-P & Antony Bailey
*   project              : http://sourceforge.net/projects/dbgenerator
*   Website              : http://freakingbooty.no-ip.com/ & http://www.rapiddr3am.net
*
***************************************************************************/

/***************************************************************************
*
*   This program is free software; you can redistribute it and/or modify
*   it under the terms of the GNU General Public License as published by
*   the Free Software Foundation; either version 2 of the License, or
*   (at your option) any later version.
*
***************************************************************************/

if (!eregi("modules.php", $PHP_SELF)) {
    die ("You can't access this file directly...");
}
if ($popup != "1"){
    $module_name = basename(dirname(__FILE__));
    require("modules/".$module_name."/nukebb.php");
}
else
{
    $phpbb_root_path = 'modules/Forums/';
}


define('IN_PHPBB', true);
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);

//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX, $nukeuser);
init_userprefs($userdata);
//
// End session management
//

$page_title = 'Updating the database';
include('includes/page_header.php');

echo '<table width="100%" cellspacing="1" cellpadding="2" border="0" class="forumline">';
echo '<tr><th>Updating the database</th></tr><tr><td><span class="genmed"><ul type="circle">';


$sql = array();
$sql[] = "CREATE TABLE `" . $prefix . "_bookie_bets` (
  `bet_id` int(5) NOT NULL auto_increment,
  `user_id` int(11) NOT NULL default '0',
  `time` int(11) NOT NULL default '0',
  `meeting` varchar(50) NOT NULL default '',
  `selection` varchar(100) NOT NULL default '',
  `bet` int(11) NOT NULL default '0',
  `win_lose` int(11) NOT NULL default '0',
  `odds_1` int(8) NOT NULL default '0',
  `odds_2` int(8) NOT NULL default '0',
  `checked` int(2) NOT NULL default '0',
  `edit_time` int(11) NOT NULL default '0',
  PRIMARY KEY  (`bet_id`)
)";
$sql[] = "CREATE TABLE `" . $prefix . "_bookie_stats` (
  `user_id` int(11) NOT NULL default '0',
  `total_win` int(11) NOT NULL default '0',
  `total_lose` int(11) NOT NULL default '0',
  `netpos` int(11) NOT NULL default '0',
  `bets_placed` int(6) NOT NULL default '0'
) TYPE=MyISAM";

for( $i = 0; $i < count($sql); $i++ )
{
   if( !$result = $db->sql_query ($sql[$i]) )
   {
      $error = $db->sql_error();

      echo '<li>' . $sql[$i] . '<br /> +++ <font color="#FF0000"><b>Error:</b></font> ' . $error['message'] . '</li><br />';
   }
   else
   {
      echo '<li>' . $sql[$i] . '<br /> +++ <font color="#00AA00"><b>Successful</b></font></li><br />';
   }
}


echo '</ul></span></td></tr><tr><td class="catBottom" height="28">&nbsp;</td></tr>';

echo '<tr><th>Installation Complete</th></tr><tr><td><span class="genmed">Please be sure to delete this file now.<br />If you require any further assistance, please visit the <a href="http://www.phpbbhacks.com/forums">phpBBHacks.com Support Forums</a>.</span></td></tr>';
echo '<tr><td class="catBottom" height="28" align="center"><span class="genmed"><a href="' . append_sid("index.$phpEx") . '">Go back to your index page</a>.</span></td></table>';

include('includes/page_tail.php');

?>


And yes it is in the download.



_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#6   Bookie point system
Garcya
CZ Newbie
Garcya has been a member for over 17 year's 17 Year Member
Gender: Male
Status: Offline
Joined: Feb 01, 2007
0.00 posts per day
Posts: 1
Points: 100
   
hello first of all!
I would like to ask you if anyone knows how can i use the point system with bookie mod? I have installed bookie mod and everything works fine but users can't place bets becouse they have no points in hand


You have 0 Points onhand.
.
I've made a point system for users to get points by posting in forum, making votes etc etc but after that i saw that bookie mod does not use THOSE points.
What can users do to get points for betting ?
What kind of point system do i need ?
Thanks in advance!



Back to top Reply with quote
#7   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
If you look in the bookie mod you could change the points name (variable) to the points that your site is using. That would allow it to work with that point system.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum