Лотария за PHPBB
Файловете изтеглете от http://www.phpbbhacks.com/download/1198

##
## Време:5 минути
## Файлове за промяна: includes/constants.php
## includes/page_header.php
## language/lang_*/lang_main.php
## language/lang_*/lang_admin.php
## templates/*/overall_header.tpl
## Файлове за добавяне: lottery.php
## admin_lottery.php
## lottery_index_body.tpl
## lottery_history_body.tpl
## lottery_config_body.tpl

#
#-----[ Копирайте]------------------------------------------
#
lottery.php to lottery.php
mod_install.php във mod_install.php
/admin/admin_lottery.php to /admin/admin_lottery.php
/templates/lottery_index_body.tpl to /templates/*/lottery_index_body.tpl
/templates/lottery_history_body.tpl to /templates/*/lottery_history_body.tpl
/templates/admin/lottery_config_body.tpl to /templates/*/admin/lottery_config_body.tpl

#
В архива има SQl файл.Сложете го в главната част на форумът ви и го пуснете.
#
#-----[Отворете]------------------------------------------
#
includes/page_header.php

#
#-----[ Намерете ]------------------------------------------
#
'PAGE_TITLE' => $page_title,

#
#-----[ След това добавете ]------------------------------------------
#
'L_LOTTERY' => $lang['lottery'],

#
#-----[ Намерете ]------------------------------------------
#
'U_FAQ' => append_sid('faq.'.$phpEx),

#
#-----[ След това добавете ]------------------------------------------
#
'U_LOTTERY' => append_sid('lottery.'.$phpEx),

#
#-----[ Отворете ]------------------------------------------
#
templates/*/overall_header.tpl

#
#-----[ Намерете ]------------------------------------------
#
<a href="{U_LOGIN_LOGOUT}" class="mainmenu">{L_LOGIN_LOGOUT}</a>

#
#-----[ Преди това добавете ]------------------------------------------
#
<a href="{U_LOTTERY}" class="mainmenu">{L_LOTTERY}</a>

#
#-----[ Отворете ]------------------------------------------
#
includes/constants.php

#
#-----[ Намерете ]------------------------------------------
#
?>

#
#-----[ Преди това добавете ]------------------------------------------
#
define('LOTTERY_TABLE', $table_prefix.'lottery');
define('LOTTERY_HISTORY_TABLE', $table_prefix.'lottery_history');

#
#-----[ Отворете ]------------------------------------------
#
language/lang_*/lang_main.php

#
#-----[ Намерете ]------------------------------------------
#
?>

#
#-----[ Преди това добавете ]------------------------------------------
#
// 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!';

#
#-----[ Отворете ]------------------------------------------
#
language/lang_*/lang_admin.php

#
#-----[ Намерете ]------------------------------------------
#
?>

#
#-----[ Преди това добавете ]------------------------------------------
#
// 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!';

#
#-----[ Запазете всичко ]------------------------------------------
#
#
Източник - phpbbhacks


/ Трябва да сте регистриран за да напишете коментар /
От: kolio3000
0:45 01-02-2010
demo...?
1