Lottery 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   Lottery Mod
Crypton
CZ Newbie
Crypton has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Jul 31, 2004
0.00 posts per day
Posts: 1
Points: 762
   
Needing some help with the lottery mod, I have went through and checked several times to ensure everything is correctly edited, but I am unable to access the settings for the mod,



[ Register or login to view links on this board. ]

Hello Crypton, the file you requested was not found on this server.

Sorry... I looked but I couldn't find it. Seriously... I looked twice. After all, its my job to show you what you requested, but point being, I couldn't find [ Register or login to view links on this board. ] anywhere on this server.

If you're looking for a specific file, it has prolly been moved, deleted, or never existed in the first place.

If you followed a link from another site, well it isn't our problem. Contact the webmaster of the site that sent you here and yell at their webmaster for being incompetent for not keeping his/her links accurate . However, If you followed a link from mydomain.xxx, and ended up on this page. You have my apologies for the webmaster of mydomain.xxx for being too water lazy to update his/her links.

Now be gone Crypton, and I wish you luck on your search for [ Register or login to view links on this board. ]

If you are still receiving this error please contact the admin of mydomain.xxx at [ Register or login to view links on this board. ]

Yep its for php-nuke, and it is installed corrctly, went through 3 or 4 times to verify the things are in the correct places and no typos. Here is the mod instructions.




##############################################################
## MOD Title: Lottery Modification
## MOD Author: Zarath < [ Register or login to view links on this board. ] > http://www.ffsource.net
## MOD Description: Allows you to set up a lottery for your forum.
## MOD Version: 2.0.3
## UPDATED For PHPNuke, phpBB by Telli http://codezwiz.com/
## Come and see us for more great scripts.
## Installation Level: Easy
## Installation Time: 5 Minutes
## Files To Edit: includes/constants.php
##                includes/page_header.php
##                modules/Forums/language/lang_*/lang_main.php
##                modules/Forums/language/lang_*/lang_admin.php
##                modules/Forums/templates/*/overall_header.tpl
## Included Files: lottery.php
##                 modules/Forums/admin_lottery.php
##                 modules/Forums/mod_install.php
##         modules/Forums/mod_upgrade.php
##                 modules/Forums/templates/subSilver/lottery_index_body.tpl
##                 modules/Forums/templates/subSilver/lottery_history_body.tpl
##                 modules/Forums/templates/subSilver/admin/lottery_config_body.tpl
##                 install.txt
##         upgrade.txt
##                 faq.txt
##############################################################
## Author Notes: Please check
## http://www.zarath.com/mods/extended.php?action=faq
## and http://www.zarath.com/mods/extended.php?action=bugs
## if you're having any troubles before posting/emailing me.
## Any major problems or bug fixes will be posted there. Also
## make sure you're using the latest version of the mod.
##
## If you were having a problem with buying tickets, simply upload
## the new lottery.php over the old one. No need to do any edits!
## !!IMPORTANT!!
## If you were finding items with "0" amount in people's inventory
## you need to update your lottery.php file as well, ASAP!
##############################################################
## MOD History:
## v1.0.0  First version.
## v1.1.0  Fixed several bugs.
## v2.0.0  Complete overhaul.
## V2.0.1  Fixed a bug with register_globals off, where it didn't
##      register the buying actions.
## v2.0.1  Fixed a critical bug reguarding multiple items.
## v2.0.2  Fixed a problem with registering 2 variables that set them 0.
## v2.0.3  Changed the way items are added, for people who don't have the
##         shop installed.
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ COPY ]------------------------------------------
#
copy lottery.php         to modules/Forums/lottery.php
copy mod_install.php      to modules/Forums/mod_install.php
copy admin_lottery.php      to modules/Forums/admin/admin_lottery.php
copy lottery_index_body.tpl      to modules/Forums/templates/subSilver/lottery_index_body.tpl
copy lottery_history_body.tpl      to modules/Forums/templates/subSilver/lottery_history_body.tpl
copy lottery_config_body.tpl      to modules/Forums/templates/subSilver/admin/lottery_config_body.tpl

#
#-----[ SQL ]------------------------------------------
#
#   Only do these SQL queries if you can not run the mod_install.php file.
#   Otherwise, please run (go to it in your browswer) that as it's easier.
#
#   If you don't use MySQL, you'll need to edit these queries accordingly
#
#   If you have a different table prefix then change these commands accordingly.
#   These currently use the default table prefix.

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` (config_name, config_value) VALUES ('lottery_cost', '1');

INSERT INTO `nuke_bbconfig` (config_name, config_value) VALUES ('lottery_ticktype', 'single');

INSERT INTO `nuke_bbconfig` (config_name, config_value) VALUES ('lottery_length', '500000');

INSERT INTO `nuke_bbconfig` (config_name, config_value) VALUES ('lottery_name', 'Lottery');

INSERT INTO `nuke_bbconfig` (config_name, config_value) VALUES ('lottery_base', '50');

INSERT INTO `nuke_bbconfig` (config_name, config_value) VALUES ('lottery_start', '0');

INSERT INTO `nuke_bbconfig` (config_name, config_value) VALUES ('lottery_reset', '0');

INSERT INTO `nuke_bbconfig` (config_name, config_value) VALUES ('lottery_status', '0');

INSERT INTO `nuke_bbconfig` (config_name, config_value) VALUES ('lottery_items', '0');

INSERT INTO `nuke_bbconfig` (config_name, config_value) VALUES ('lottery_win_items', '');

INSERT INTO `nuke_bbconfig` (config_name, config_value) VALUES ('lottery_show_entries', '0');

INSERT INTO `nuke_bbconfig` (config_name, config_value) VALUES ('lottery_mb', '0');

INSERT INTO `nuke_bbconfig` (config_name, config_value) VALUES ('lottery_mb_amount', '1');

INSERT INTO `nuke_bbconfig` (config_name, config_value) VALUES ('lottery_history', '1');

INSERT INTO `nuke_bbconfig` (config_name, config_value) VALUES ('lottery_currency', '');

INSERT INTO `nuke_bbconfig` (config_name, config_value) VALUES ('lottery_item_mcost', '1');

INSERT INTO `nuke_bbconfig` (config_name, config_value) VALUES ('lottery_item_xcost', '500');

INSERT INTO `nuke_bbconfig` (config_name, config_value) VALUES ('lottery_random_shop', '');

CREATE TABLE `nuke_lottery_history`
   (
      `id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
      `user_id` INT (20) NOT NULL,
      `amount` INT (20) NOT NULL,
      `currency` CHAR (32) NOT NULL,
      `time` INT (20) NOT NULL, PRIMARY KEY(`id`), INDEX(`user_id`)
   );


#
#-----[ OPEN ]------------------------------------------
#
includes/page_header.php

#
#-----[ FIND ]------------------------------------------
#
   'PAGE_TITLE' => $page_title,

#
#-----[ AFTER, ADD ]------------------------------------------
#
   'L_LOTTERY' => $lang['lottery'],

#
#-----[ FIND ]------------------------------------------
#
   'U_FAQ' => append_sid('faq.'.$phpEx),

#
#-----[ AFTER, ADD ]------------------------------------------
#
   'U_LOTTERY' => append_sid('lottery.'.$phpEx),

#
#-----[ OPEN ]------------------------------------------
#
modules/Forums/templates/*/overall_header.tpl

#
#-----[ FIND ]------------------------------------------
#
<a href="{U_LOGIN_LOGOUT}" class="mainmenu">{L_LOGIN_LOGOUT}</a>

#
#-----[ BEFORE, ADD ]------------------------------------------
#
<a href="{U_LOTTERY}" class="mainmenu">{L_LOTTERY}</a>

#
#-----[ OPEN ]------------------------------------------
#
includes/constants.php

#
#-----[ FIND ]------------------------------------------
#
?>

#
#-----[ BEFORE, ADD ]------------------------------------------
#
define('LOTTERY_TABLE', $prefix.'_lottery');
define('LOTTERY_HISTORY_TABLE', $prefix.'_lottery_history');

#
#-----[ OPEN ]------------------------------------------
#
modules/Forums/language/lang_*/lang_main.php

#
#-----[ FIND ]------------------------------------------
#
?>

#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Lottery Variables
$lang['lottery_second'] = 'Second';
$lang['lottery_seconds'] = 'Seconds';
$lang['lottery_minute'] = 'Minute';
$lang['lottery_minutes'] = 'Minutes';
$lang['lottery_hour'] = 'Hour';
$lang['lottery_hours'] = 'Hours';
$lang['lottery_day'] = 'Day';
$lang['lottery_days'] = 'Days';
$lang['lottery_current_history'] = 'Current History';
$lang['lottery_no_history'] = 'There is currently no history recorded!';
$lang['lottery_history_disabled'] = 'Lottery history is disabled on these forums!';
$lang['lottery_ticket_bought'] = 'Your ticket in the %s has been successfully purchased.';
$lang['lottery_tickets_bought'] = 'Your %s tickets in the %s have been successfully purchased.';
$lang['lottery_purchased_ticket'] = ' to purchase a ticket!';
$lang['lottery_purchased_tickets'] = ' to purchase %s tickets!';
$lang['lottery_purchased_ne'] = 'You do not have enough ';
$lang['lottery_too_many_tickets'] = 'You have already purchased the maximum amount of tickets allowed in this lottery! Please wait until the next draw.';
$lang['lottery_information'] = 'Information';
$lang['lottery_actions'] = 'Lottery Actions';
$lang['lottery_disabled'] = 'The lottery is currently turned off!<br /><br />Try again later.';
$lang['lottery_ID'] = 'ID';
$lang['lottery_winner'] = 'Winner';
$lang['lottery_amount_won'] = 'Amount Won';
$lang['lottery_time_won'] = 'Time Won';
$lang['lottery_total_history'] = 'There are a total of %s lottery history entries.';
$lang['lottery_history'] = 'History';
$lang['lottery_tickets_owned'] = 'Tickets Owned';
$lang['lottery_ticket_cost'] = 'Ticket Cost';
$lang['lottery_base_pool'] = 'Base Prize Pool';
$lang['lottery_current_entries'] = 'Current Entries';
$lang['lottery_total_pool'] = 'Total Prize Pool';
$lang['lottery_item_draw'] = 'Items in Draw';
$lang['lottery_time_draw'] = 'Time Until Drawn';
$lang['lottery_last_winner'] = 'Last Winner';
$lang['lottery_buy_ticket'] = 'Buy Ticket';
$lang['lottery_buy_tickets'] = 'Buy Tickets';
$lang['lottery_view_history'] = 'View Lottery History';
$lang['lottery_view_phistory'] = 'View Personal History';
$lang['lottery'] = 'Lottery';

// Lottery Error Variables
$lang['lottery_error_updating'] = 'Error updating %s table!';
$lang['lottery_error_deleting'] = 'Error deleting from %s table!';
$lang['lottery_error_selecting'] = 'Error getting information from %s table!';
$lang['lottery_error_inserting'] = 'Error inserting into %s table!';
$lang['lottery_error_variable'] = 'Could not read %s variable!';
$lang['lottery_invalid_command'] = 'That is not a valid command!';
$lang['lottery_no_history_type'] = 'No history type selected!';

#
#-----[ OPEN ]------------------------------------------
#
modules/Forums/language/lang_*/lang_admin.php

#
#-----[ FIND ]------------------------------------------
#
?>

#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Lottery Variables
$lang['lottery_second'] = 'Second';
$lang['lottery_seconds'] = 'Seconds';
$lang['lottery_minute'] = 'Minute';
$lang['lottery_minutes'] = 'Minutes';
$lang['lottery_hour'] = 'Hour';
$lang['lottery_hours'] = 'Hours';
$lang['lottery_day'] = 'Day';
$lang['lottery_days'] = 'Days';
$lang['lottery_no_items'] = 'There are no items in the shop database!';
$lang['lottery_rand'] = 'Random';
$lang['lottery_statistics'] = 'Lottery Statistics';
$lang['lottery_edit_settings'] = 'Edit Lottery Settings';
$lang['lottery_no_one'] = 'No One';
$lang['lottery_editor'] = 'Lottery Editor';
$lang['lottery_index_explain'] = 'This section allows you to edit the lottery settings.';
$lang['lottery_no_item'] = 'No such item exists!';
$lang['lottery_invalid_action'] = 'Invalid Action!';
$lang['lottery_click_to_return'] = 'Click %sHere%s to return to Lottery Settings.';
$lang['lottery_random_items_updated'] = 'Random item settings sucessfully updated!';
$lang['lottery_item_added'] = 'Item successfully added to item pool!';
$lang['lottery_item_removed'] = 'Item successfully removed from item pool!';
$lang['lottery_updated'] = 'Lottery sucessfully updated!';
$lang['lottery_status'] = 'Lottery Status';
$lang['lottery_add_item'] = 'Add Item';
$lang['lottery_add_items'] = 'Add Item to Pool';
$lang['lottery_remove_item'] = 'Remove Item';
$lang['lottery_current_items'] = 'Current Item Pool';
$lang['lottery_update_settings'] = 'Update Settings';
$lang['lottery_max_cost'] = 'Maximum Cost';
$lang['lottery_min_cost'] = 'Minimum Cost';
$lang['lottery_all_shops'] = 'All Shops';
$lang['lottery_from_shop'] = 'From Shop';
$lang['lottery_update'] = 'Update';
$lang['lottery_currency'] = 'Currency to Use';
$lang['lottery_history'] = 'Lottery History';
$lang['lottery_item_pool'] = 'Item Pool';
$lang['lottery_full_display'] = 'Full Display';
$lang['lottery_max'] = 'max';
$lang['lottery_off'] = 'Off';
$lang['lottery_on'] = 'On';
$lang['lottery_mult_tickets'] = 'Multiple Tickets';
$lang['lottery_multiple'] = 'Multiple';
$lang['lottery_single'] = 'Single';
$lang['lottery_tickets_allowed'] = 'Tickets Allowed';
$lang['lottery_draw_periods'] = 'Lottery Draw Periods';
$lang['lottery_entry_cost'] = 'Entry Cost';
$lang['lottery_base_amount'] = 'Lottery Base Amount';
$lang['lottery_name'] = 'Lottery Name';
$lang['lottery_auto_restart'] = 'Auto Restart';
$lang['lottery_last_won'] = 'Last Won';
$lang['lottery_pool'] = 'Lottery Pool';
$lang['lottery_time_left'] = 'Time Left';
$lang['lottery_duration_left'] = 'Duration Left';
$lang['lottery_total_entries'] = 'Total Entries';
$lang['lottery_items_table'] = 'Edit Item Pool';
$lang['lottery_items_settings'] = 'Edit Item Settings';

// Lottery Error Variables
$lang['lottery_error_updating'] = 'Error updating %s table!';
$lang['lottery_error_deleting'] = 'Error deleting from %s table!';
$lang['lottery_error_selecting'] = 'Error getting information from %s table!';
$lang['lottery_error_inserting'] = 'Error inserting into %s table!';
$lang['lottery_error_variable'] = 'Could not read %s variable!';

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM


Any ideas? Tried clicking the link in the forum section called Lottery Settings, no luck

tried [ Register or login to view links on this board. ]

still no luck, and of course tried [ Register or login to view links on this board. ]
but tells me I cannot access the file directly.


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 admin_lottery.php in a zip file.




_________________
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: Lottery Mod
CurtisH
CZ Active Member
 Codezwiz Site Donator
CurtisH has been a member for over 20 year's 20 Year Member
usa.gif texas.gif
Gender: Male
Status: Offline
Joined: Jun 14, 2004
0.02 posts per day
Posts: 112
Points: 5,900
AIM Address Yahoo Messenger  
Deleted by author



Back to top Reply with quote
#4   re: Lottery Mod
krtk
CZ Newbie
krtk has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: Jan 22, 2006
0.00 posts per day
Posts: 1
Points: 92
   
when i run in my browswer mod_install.php, i get this "You can't access this file directly..."
what is wrong icon_cry.gif



Back to top Reply with quote
#5   Re: re: Lottery Mod
skmaniac30
CZ Newbie
 Codezwiz Site Donator
skmaniac30 has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: Jan 31, 2006
0.00 posts per day
Posts: 12
Points: 2,947
   


Originally posted by krtk @ Mon Jan 23, 2006 9:28 am:

when i run in my browswer mod_install.php, i get this "You can't access this file directly..."
what is wrong icon_cry.gif

have to use the addy of [ Register or login to view links on this board. ]



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