Fehlermeldung im Portal Donation Center

In diesem Forum kann man Fragen zur Programmierung stellen, die bei der Entwicklung von Mods für phpBB 3.0.x oder dem Modifizieren des eigenen Forums auftauchen.
Forumsregeln
phpBB 3.0 hat das Ende seiner Lebenszeit überschritten
phpBB 3.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 3.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf die neuste phpBB-Version, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Antworten
Benutzeravatar
seemann1965
Mitglied
Beiträge: 495
Registriert: 12.11.2009 19:15

Fehlermeldung im Portal Donation Center

Beitrag von seemann1965 »

Hallo,
habe mir einen Donation Center gebastelt, leider kommt diese Fehlermeldung, siehe Bild.
Die Mailadresse ist richtig, ich denke ich habe mich da verbastelt.
In der Forenübersicht gehts...

[ externes Bild ]

...hat jemand einen Plan welche Zeile ich bearbeiten muss?
Habe dieses Datei im Verdacht "portal_donation.php".

Code: Alles auswählen

<?php
/**
*
* @package Board3 Portal v2 - Donation
* @copyright (c) Board3 Group ( www.board3.de )
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
    exit;
}

/**
* @package Donation
*/
class portal_donation_module
{
    /**
    * Allowed columns: Just sum up your options (Exp: left + right = 10)
    * top        1
    * left        2
    * center    4
    * right        8
    * bottom    16
    */
    public $columns = 31;

    /**
    * Default modulename
    */
    public $name = 'DONATION';

    /**
    * Default module-image:
    * file must be in "{T_THEME_PATH}/images/portal/"
    */
    public $image_src = 'portal_donation.png';

    /**
    * module-language file
    * file must be in "language/{$user->lang}/mods/portal/"
    */
    public $language = 'portal_donation_module';

    public function get_template_center($module_id)
    {
        global $config, $template;
        
        $template->assign_var('PAY_ACC_CENTER', $config['board3_pay_acc_' . $module_id]);

        return 'donation_center.html';
    }

    public function get_template_side($module_id)
    {
        global $config, $template;

        $template->assign_var('PAY_ACC_SIDE', $config['board3_pay_acc_' . $module_id]);

        return 'donation_side.html';
    }

    public function get_template_acp($module_id)
    {
        return array(
            'title'    => 'ACP_PORTAL_PAYPAL_SETTINGS',
            'vars'    => array(
                'legend1'                            => 'ACP_PORTAL_PAYPAL_SETTINGS',
                'board3_pay_acc_' . $module_id                    => array('lang' => 'PORTAL_PAY_ACC'                        ,    'validate' => 'string',        'type' => 'text:25:100',     'explain' => true),
            )
        );
    }

    /**
    * API functions
    */
    public function install($module_id)
    {
        set_config('board3_pay_acc_' . $module_id, 'your@paypal.com');
        return true;
    }

    public function uninstall($module_id)
    {
        global $db;

        $del_config = array(
            'board3_pay_acc_' . $module_id,
        );
        $sql = 'DELETE FROM ' . CONFIG_TABLE . '
            WHERE ' . $db->sql_in_set('config_name', $del_config);
        return $db->sql_query($sql);
    }
}
Gruß seemann
Kaum macht man es richtig, funktioniert es !

Portal der Volksmarine
Antworten

Zurück zu „[3.0.x] Mod Bastelstube“