Jobs, Loterij ,Shop en bank

Hulp nodig bij een modificaties of op zoek naar een MOD? Bekijk ons archief. Support wordt helaas niet meer verleend.
Forumregels

Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
phpBB2.0.x
Gesloten
Bertus Ravmov
Berichten: 31
Lid geworden op: 11 okt 2008, 14:17

Jobs, Loterij ,Shop en bank

Bericht door Bertus Ravmov » 22 okt 2008, 10:16

  • Modificatie & Versie:Jobs, Loterij ,Shop en bnak
    Directe link naar de modificatie:
    Adres van je forum: http://boardplanet.byethost13.com/forum/
    phpBB versie:2.23
    Heb je onlangs een andere modificatie of stijl geïnstalleerd?
    Ja ik heb Venus Stijl installeerd en ik heb cash mod geinstalleerd.

    Wat is het probleem?
    Ik krijg steeds zo een Commands Processed
    Dat ik dingen moet doen.

    Voorbeeld bij Loterij Mod:
    Spoiler: bekijk
    COPY #55

    copy lottery.php to lottery.php
    copy images/icon_lottery.gif to templates/subSilver/images/icon_lottery.gif
    copy admin/admin_lottery.php to admin/admin_lottery.php
    copy templates/lottery_index_body.tpl to templates/subSilver/lottery_index_body.tpl
    copy templates/lottery_history_body.tpl to templates/subSilver/lottery_history_body.tpl
    copy templates/admin/lottery_config_body.tpl to templates/subSilver/admin/lottery_config_body.tpl

    SQL #65

    CREATE TABLE `phpbb_lottery`
    (`id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
    `user_id` INT (10) NOT NULL,
    PRIMARY KEY(`id`),
    INDEX(`user_id`)
    );

    INSERT INTO `phpbb_config` (config_name, config_value) VALUES ('lottery_cost', '1');

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


    OPEN #130

    includes/constants.php

    FIND #135

    ?>

    BEFOREADD #140

    define('LOTTERY_TABLE', $table_prefix.'lottery');
    define('LOTTERY_HISTORY_TABLE', $table_prefix.'lottery_history');


    OPEN #146

    includes/functions.php

    FIND #154

    ?>

    BEFOREADD #159

    if ( !(function_exists(duration)) )
    {
    function duration($seconds)
    {
    global $lang;

    if ( $seconds > 86399 )
    {
    $days = floor($seconds / 86400);
    $seconds = ($seconds - ($days * 86400));
    $string .= ( $days > 1 ) ? $days .' ' . $lang['jobs_days'] . ', ' : $days .' ' . $lang['jobs_day'] . ', ';
    }
    if ( $seconds > 3599 )
    {
    $hours = floor($seconds / 3600);

    if ( $seconds != 0 )
    {
    $string .= ( $hours > 1 ) ? $hours .' ' . $lang['jobs_hours'] . ', ' : $hours .' ' . $lang['jobs_hour'] . ', ';
    }

    $seconds = ( $days > 0 ) ? 0 : ( $seconds - ($hours * 3600) );
    }
    if ( $seconds > 59 )
    {
    $minutes = floor($seconds / 60);
    if ( $seconds != 0 )
    {
    $string .= ( $minutes > 1) ? $minutes .' ' . $lang['jobs_minutes'] . ', ' : $minutes .' ' . $lang['jobs_minute'] . ', ';
    }

    $seconds = ( $hours > 0 ) ? 0 : ($seconds - ($minutes * 60));
    }
    if ( $seconds > 0 )
    {
    $string .= ( $seconds > 1 ) ? $seconds . ' ' . $lang['jobs_seconds'] . ', ' : $seconds . ' ' . $lang['jobs_second'] . ', ';
    }

    $string = substr($string, 0, -2);
    return $string;
    }
    }


    OPEN #205

    includes/page_header.php

    FIND #210

    'PAGE_TITLE' => $page_title,

    AFTERADD #215

    'L_LOTTERY' => $lang['lottery'],


    FIND #220

    'U_FAQ' => append_sid('faq.'.$phpEx),

    AFTERADD #225

    'U_LOTTERY' => append_sid('lottery.'.$phpEx),


    Da tik doet moet doen.
Laatst gewijzigd door Derky op 22 okt 2008, 18:22, 1 keer totaal gewijzigd.
Reden: Spoiler toegevoegd

Jim
Berichten: 3900
Lid geworden op: 21 feb 2007, 14:53
Locatie: Groningen
Contacteer:

Re: Jobs, Loterij ,Shop en bank

Bericht door Jim » 22 okt 2008, 10:22

En wat snap je precies niet dan?
Jim Mossing Holsteyn - Beheerder
Documentatie | Algemene voorwaarden | Wiki

Heb je suggesties over het verbeteren van phpBB.nl of andere site-gerelateerde vragen? Stuur me een PB!

Bertus Ravmov
Berichten: 31
Lid geworden op: 11 okt 2008, 14:17

Re: Jobs, Loterij ,Shop en bank

Bericht door Bertus Ravmov » 22 okt 2008, 10:27

O misshcien snap ik hem al:)

Gesloten