• User Newbie

    Cash mod

    Salve!!!

    So che esiste una cash mod...

    Io non ho mai installato un mod su un forum php!!!

    qualcuno sa dirmi come installare la cash mod che ho scaricato da questo sito:

    http://www.phpbb.com/community/viewtopic.php?p=623226#623226

    spero possiate aiutarmi!!!


  • User Attivo

    Allora

    I file che devi editare sono i seguenti:

    Files To Edit: common.php

    memberlist.php

    posting.php

    privmsg.php

    profile.php

    viewtopic.php

    includes/functions.php

    includes/functions_post.php

    includes/usercp_viewprofile.php

    templates/subSilver/memberlist_body.tpl

    templates/subSilver/profile_view_body.tpl

    templates/subSilver/viewtopic_body.tpl

    Ora Devi caricare tutti i file presenti nel pachetto della mod ognuno nella sua directory:

    copy cash.php to cash.php
    copy admin/admin_cash.php to admin/admin_cash.php
    copy admin/cash_config.php to admin/cash_config.php
    copy admin/cash_currencies.php to admin/cash_currencies.php
    copy admin/cash_events.php to admin/cash_events.php
    copy admin/cash_exchange.php to admin/cash_exchange.php
    copy admin/cash_forums.php to admin/cash_forums.php
    copy admin/cash_groups.php to admin/cash_groups.php
    copy admin/cash_help.php to admin/cash_help.php
    copy admin/cash_log.php to admin/cash_log.php
    copy admin/cash_recount.php to admin/cash_recount.php
    copy admin/cash_reset.php to admin/cash_reset.php
    copy admin/cash_settings.php to admin/cash_settings.php
    copy includes/classes_cash.php to includes/classes_cash.php
    copy includes/functions_cash.php to includes/functions_cash.php
    copy language/lang_english/lang_cash.php to language/lang_english/lang_cash.php
    copy templates/subSilver/cash_donate.tpl to templates/subSilver/cash_donate.tpl
    copy templates/subSilver/cash_exchange.tpl to templates/subSilver/cash_exchange.tpl
    copy templates/subSilver/cash_modedit.tpl to templates/subSilver/cash_modedit.tpl
    copy templates/subSilver/cash_viewprofile.tpl to templates/subSilver/cash_viewprofile.tpl
    copy templates/subSilver/cash_viewtopic.tpl to templates/subSilver/cash_viewtopic.tpl
    copy templates/subSilver/admin/cash_config.tpl to templates/subSilver/admin/cash_config.tpl
    copy templates/subSilver/admin/cash_currencies.tpl to templates/subSilver/admin/cash_currencies.tpl
    copy templates/subSilver/admin/cash_event.tpl to templates/subSilver/admin/cash_event.tpl
    copy templates/subSilver/admin/cash_events.tpl to templates/subSilver/admin/cash_events.tpl
    copy templates/subSilver/admin/cash_exchange.tpl to templates/subSilver/admin/cash_exchange.tpl
    copy templates/subSilver/admin/cash_forum.tpl to templates/subSilver/admin/cash_forum.tpl
    copy templates/subSilver/admin/cash_group.tpl to templates/subSilver/admin/cash_group.tpl
    copy templates/subSilver/admin/cash_groups.tpl to templates/subSilver/admin/cash_groups.tpl
    copy templates/subSilver/admin/cash_help.tpl to templates/subSilver/admin/cash_help.tpl
    copy templates/subSilver/admin/cash_log.tpl to templates/subSilver/admin/cash_log.tpl
    copy templates/subSilver/admin/cash_menu.tpl to templates/subSilver/admin/cash_menu.tpl
    copy templates/subSilver/admin/cash_navbar.tpl to templates/subSilver/admin/cash_navbar.tpl
    copy templates/subSilver/admin/cash_reset.tpl to templates/subSilver/admin/cash_reset.tpl
    copy templates/subSilver/admin/cash_resetting.tpl to templates/subSilver/admin/cash_resetting.tpl
    copy templates/subSilver/admin/cash_settings.tpl to templates/subSilver/admin/cash_settings.tpl

    una volta caricati tutti i file Fai il login ed entra nel pannello admin:

    Da qui lanci questo script:

    http://www.tuosito.it/directorydeltuoforum/sql_install.php

    Segui le istruzioni di questo Script (può essere che aggiorna le tabellesenza che devi fare nulla 😉 )

    Successivamente Cancella questo file.

    Ora devi modificare i file .php che hai nel tuo ftp, quindi questi di seguito

    Files To Edit: common.php

    memberlist.php

    posting.php

    privmsg.php

    profile.php

    viewtopic.php

    includes/functions.php

    includes/functions_post.php

    includes/usercp_viewprofile.php

    templates/subSilver/memberlist_body.tpl

    templates/subSilver/profile_view_body.tpl

    templates/subSilver/viewtopic_body.tpl

    L'istruzioni le trovi nel file: cm_install.223

    Ecco un esempio

    #-----[ OPEN ]------------------------------------------

    common.php

    #-----[ FIND ]------------------------------------------

    include($phpbb_root_path . 'includes/db.'.$phpEx);

    #-----[ AFTER, ADD ]------------------------------------------

    if ( defined('IN_CASHMOD') )
    {
    include($phpbb_root_path . 'includes/functions_cash.'.$phpEx);
    }

    Questa istruzione ti dice di aprire il file common.php, di trovare la riga:

    include($phpbb_root_path . 'includes/db.'.$phpEx);

    e di aggiungere dopo (a capo, con invio sulla tastiera) questo spezzone di codice:

    if ( defined('IN_CASHMOD') )
    {
    include($phpbb_root_path . 'includes/functions_cash.'.$phpEx);
    }

    ;););)

    in caso di before devi aggiungere prima della riga che ti dice di trovare 😉

    un latro sempio in caso di "in line"

    #-----[ FIND ]------------------------------------------

    $message = $lang['Stored']
    

    #-----[ IN-LINE FIND ]------------------------------------------

    $lang['Stored']

    #-----[ IN-LINE AFTER, ADD ]------------------------------------------

    . '<br />' . $cash_message

    trova: $message = $lang['Stored']

    su questa linea trova : $lang['Stored']

    subito dopo la parentesi quadra aggiungi: . '<br />' . $cash_message

    😉 😉

    è facile

    spero di essere stato chiaro


  • User Newbie

    grazie per le informazioni...

    ho guardato all'interno della cartella ma non trovo il file common.php!!!!

    sai indicarmi dove sia???


  • User Newbie

    cioe si trova nella cartella del cash mod o nella cartella del forum php su ftp???


  • User Attivo

    tutti questi file che devi editare:

    Files To Edit: common.php

    memberlist.php

    posting.php

    privmsg.php

    profile.php

    viewtopic.php

    includes/functions.php

    includes/functions_post.php

    includes/usercp_viewprofile.php

    templates/subSilver/memberlist_body.tpl

    templates/subSilver/profile_view_body.tpl

    templates/subSilver/viewtopic_body.tpl

    Si trovano nella cartella del forum


  • User Newbie

    ok grazie mille!!!

    ci sto provando ma come si aprono i file tpl???
    con che programma li posso aprire per modificarne il codice????


  • User Attivo

    @ciocci said:

    ok grazie mille!!!

    ci sto provando ma come si aprono i file tpl???
    con che programma li posso aprire per modificarne il codice????

    Li devi aprire con Word Pad

    utilizza la funzione "trova" per cercare le linee di codice da modificare 😉