birthday mod

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   birthday mod
stealthusa
CZ Addict
stealthusa has been a member for over 20 year's 20 Year Member
usa.gif ohio.gif
Occupation: Self-Employed
Age: 57
Gender: Male
Fav. Sports Team: Cowboys
Website:
Status: Offline
Joined: Jan 23, 2004
0.05 posts per day
Posts: 353
Points: 14,459
 Yahoo Messenger  ICQ Number
hello again i just added this birthday mod when i try to run the birthday_db_update.php i get this on the next page.

Warning: main(./extension.inc): failed to open stream: No such file or directory in /home/stealths/public_html/html/modules/Forums/birthday_db_update.php on line 26

Warning: main(): Failed opening './extension.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/stealths/public_html/html/modules/Forums/birthday_db_update.php on line 26

Warning: main(./common.): failed to open stream: No such file or directory in /home/stealths/public_html/html/modules/Forums/birthday_db_update.php on line 27

Warning: main(): Failed opening './common.' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/stealths/public_html/html/modules/Forums/birthday_db_update.php on line 27

Warning: main(./includes/functions_selects.): failed to open stream: No such file or directory in /home/stealths/public_html/html/modules/Forums/birthday_db_update.php on line 28

Warning: main(): Failed opening './includes/functions_selects.' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/stealths/public_html/html/modules/Forums/birthday_db_update.php on line 28

Fatal error: Call to undefined function: session_pagestart() in /home/stealths/public_html/html/modules/Forums/birthday_db_update.php on line 55

now i have it all installed and it shows up in the profile but like when i enter my info it comes up and says on the next page

Sorry, this site, does not accept user older than 0 years old

can someone help me.




_________________
Back to top Reply with quote
#2   
aUsTiN
CZ Active Member
aUsTiN has been a member for over 20 year's 20 Year Member
usa.gif georgia.gif
Age: 41
Gender: Male
Website:
Status: Offline
Joined: Sep 09, 2003
0.02 posts per day
Posts: 142
Points: 57
  MSN Messenger 
Put the update file in root, that would be the folder your config.php is located. Then run it.



Back to top Reply with quote
#3   
stealthusa
CZ Addict
stealthusa has been a member for over 20 year's 20 Year Member
usa.gif ohio.gif
Occupation: Self-Employed
Age: 57
Gender: Male
Fav. Sports Team: Cowboys
Website:
Status: Offline
Joined: Jan 23, 2004
0.05 posts per day
Posts: 353
Points: 14,459
 Yahoo Messenger  ICQ Number
nope still get the same thing




_________________
Back to top Reply with quote
#4   
aUsTiN
CZ Active Member
aUsTiN has been a member for over 20 year's 20 Year Member
usa.gif georgia.gif
Age: 41
Gender: Male
Website:
Status: Offline
Joined: Sep 09, 2003
0.02 posts per day
Posts: 142
Points: 57
  MSN Messenger 
Paste the codes to the update.php please.



Back to top Reply with quote
#5   re: birthday mod
stealthusa
CZ Addict
stealthusa has been a member for over 20 year's 20 Year Member
usa.gif ohio.gif
Occupation: Self-Employed
Age: 57
Gender: Male
Fav. Sports Team: Cowboys
Website:
Status: Offline
Joined: Jan 23, 2004
0.05 posts per day
Posts: 353
Points: 14,459
 Yahoo Messenger  ICQ Number
here it is

<?php
#########################################################
## SQL commands to phpBB2
## Author: Niels Chr. Rød
## Nickname: Niels Chr. Denmark
## Email: [ Register or login to view links on this board. ]
##
## Ver 1.0.7
##
## phpBB2 database update script for mods
## this file is intended to use with phpBB2, when installing mods
## after so you may delete this file, but only admin can use so it really doesen't matter
## The script will look what prefix you are using, and use the existing DB defined by congig.php
## The execution of this script's included SQL is harmless, so you can run it as meny times you like
## note, though that the users last visit, will be set back to his/her last login,
## but that is a minor cosmetic isue, that will correct it self next time the use  logs in
##
## the following example are from my mods, and you can add some self, for other mods if you like
## you will after execution get a list over those commands that are run with succes and those with warnings !
## delete the sample lines if you are using it only for other mods
##
#########################################################

define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
include($phpbb_root_path . 'includes/functions_selects.'.$phpEx);
define('SITE_HISTORY_TABLE', $table_prefix.'site_history');

###################################################################################################
##
## put the SQL commands below here, the SQL commands listed below are only exampels, substitude them with the one you need ##
##
###################################################################################################
$sql=array(
'ALTER TABLE '.USERS_TABLE.' ADD user_birthday INT DEFAULT "999999" not null  ',
'ALTER TABLE '.USERS_TABLE.' ADD user_next_birthday_greeting INT DEFAULT "0" not null ',
'INSERT INTO '.CONFIG_TABLE.' (config_name, config_value) VALUES ("birthday_required", "0")',
'INSERT INTO '.CONFIG_TABLE.' (config_name, config_value) VALUES ("birthday_greeting", "1")',
'INSERT INTO '.CONFIG_TABLE.' (config_name, config_value) VALUES ("max_user_age", "100")',
'INSERT INTO '.CONFIG_TABLE.' (config_name, config_value) VALUES ("min_user_age", "5")',
'INSERT INTO '.CONFIG_TABLE.' (config_name, config_value) VALUES ("birthday_check_day", "7")'
);

$mods = array (
'Birthday PART 1 Mod','Birthday PART 1 Mod','Birthday PART 2 Mod','Birthday PART 2 Mod','Birthday PART 2 Mod','Birthday PART 2 Mod','Birthday PART 2 Mod',
);

############################################### Do not change anything below this line #######################################

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

if ($userdata['user_level']!=ADMIN)
      message_die(GENERAL_ERROR, "You are not Authorised to do this");
$n=0;
$message="<b>This list is a result of the SQL queries needed for the additional mods in the pre-moded pack</b><br/><br/>";
while($sql[$n])
{
   $message .= ($mods[$n-1] != $mods[$n]) ? '<p><b><font size=3>'.$mods[$n].'</font></b><br/>' : '';
   if(!$result = $db->sql_query($sql[$n]))
   $message .= '<b><font color=#FF0000>[Already added]</font></b> line: '.($n+1).' , '.$sql[$n].'<br />';
   else $message .='<b><font color=#0000fF>[Added/Updated]</font></b> line: '.($n+1).' , '.$sql[$n].'<br />';
   $n++;
}
message_die(GENERAL_MESSAGE, $message);
?>




_________________
Back to top Reply with quote
#6   
aUsTiN
CZ Active Member
aUsTiN has been a member for over 20 year's 20 Year Member
usa.gif georgia.gif
Age: 41
Gender: Male
Website:
Status: Offline
Joined: Sep 09, 2003
0.02 posts per day
Posts: 142
Points: 57
  MSN Messenger 
/home/stealths/public_html/html/modules/Forums/birthday_db_update.php

is where you have the file

/home/stealths/public_html/html/

is where it needs to be. With the config.php



Back to top Reply with quote
#7   
stealthusa
CZ Addict
stealthusa has been a member for over 20 year's 20 Year Member
usa.gif ohio.gif
Occupation: Self-Employed
Age: 57
Gender: Male
Fav. Sports Team: Cowboys
Website:
Status: Offline
Joined: Jan 23, 2004
0.05 posts per day
Posts: 353
Points: 14,459
 Yahoo Messenger  ICQ Number
yes i have it put it there and still the same thing.




_________________
Back to top Reply with quote
#8   
aUsTiN
CZ Active Member
aUsTiN has been a member for over 20 year's 20 Year Member
usa.gif georgia.gif
Age: 41
Gender: Male
Website:
Status: Offline
Joined: Sep 09, 2003
0.02 posts per day
Posts: 142
Points: 57
  MSN Messenger 
You are aware this is a phpBB standalone mod, right? Which you prolly downloaded from phpbbhacks, which is not compatable with Nuke w/o modifing things...

SQL CODES, Apply to your phpMyAdmin or similar.


ALTER TABLE nuke_users ADD user_birthday INT DEFAULT "999999" not null;
ALTER TABLE nuke_users ADD user_next_birthday_greeting INT DEFAULT "0" not null;
INSERT INTO nuke_bbconfig VALUES ("birthday_required", "0");
INSERT INTO nuke_bbconfig VALUES ("birthday_greeting", "1");
INSERT INTO nuke_bbconfig VALUES ("max_user_age", "100");
INSERT INTO nuke_bbconfig VALUES ("min_user_age", "5");
INSERT INTO nuke_bbconfig VALUES ("birthday_check_day", "7");


If that errors on you when using the mod, it might need to go into nuke_config & not bbconfig, not sure as i dont use Nuke.


Back to top Reply with quote
#9   
stealthusa
CZ Addict
stealthusa has been a member for over 20 year's 20 Year Member
usa.gif ohio.gif
Occupation: Self-Employed
Age: 57
Gender: Male
Fav. Sports Team: Cowboys
Website:
Status: Offline
Joined: Jan 23, 2004
0.05 posts per day
Posts: 353
Points: 14,459
 Yahoo Messenger  ICQ Number
no i didn't bad me that must be why i can't get that lottery one to work either after all that work do they have a code for the lottery




_________________
Back to top Reply with quote
#10   
aUsTiN
CZ Active Member
aUsTiN has been a member for over 20 year's 20 Year Member
usa.gif georgia.gif
Age: 41
Gender: Male
Website:
Status: Offline
Joined: Sep 09, 2003
0.02 posts per day
Posts: 142
Points: 57
  MSN Messenger 
Lottery SQL, & from now on, try using sites such as nukecops, this one, portedmods, etc.. that are based on Nuke sites. Hopefully below will get ya squared away.



CREATE TABLE `nuke_lottery` (`id` INT UNSIGNED NOT NULL AUTO_INCREMENT, `user_id` INT (20) NOT NULL, PRIMARY KEY(`id`), INDEX(`user_id`));
INSERT INTO nuke_bbconfig VALUES ('lottery_cost', '1');
INSERT INTO nuke_bbconfig VALUES ('lottery_ticktype', 'single');
INSERT INTO nuke_bbconfig VALUES ('lottery_length', '500000');
INSERT INTO nuke_bbconfig VALUES ('lottery_reset', 'off');
INSERT INTO nuke_bbconfig VALUES ('lottery_status', 'off');
INSERT INTO nuke_bbconfig VALUES ('lottery_name', 'Lottery');
INSERT INTO nuke_bbconfig VALUES ('lottery_base', '500');
INSERT INTO nuke_bbconfig VALUES ('lottery_start', '0');
INSERT INTO nuke_bbconfig VALUES ('lottery_lastwon', '');



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