Parse error: syntax error, unexpected '=>'

Założony przez  Cezary Stasiak.

I to jest Twoim zdaniem ten sam blad? Czekamy na plik w zalaczniku
Tak wiem teraz go nie masz
W jakim programie to piszesz?
(07.08.2016, 12:11)Supryk napisał(a): I to jest Twoim zdaniem ten sam blad? Czekamy na plik w zalaczniku
Tak wiem teraz go nie masz
W jakim programie to piszesz?
Wczoraj mowil ze w WordPadzie :D
Cytat:w pół dnia stałeś się lepszym pytonistą niż kawenanowo kiedykolwiek programisto :3 ~ Riess 13.11.2018 16:28
Cytat:ale z tą nazwą to fyeem ma racje  ~ Divir 29.07.2019 16:08
Mój cały kod:
<?php
if(!defined("IN_MYBB")) die("Direct initialization of this file is not allowed.<br /><br />Please make sure IN_MYBB is defined.");
 
function 
reminder_info() {
    return array(
        
"name"            => "Przypomnienie",
        
"description"    => "Ten plugin przypomina uzytkownikowi o zrobieniu jakiejs czynnosci (domyslnie: przeczytanie regulaminu).",
        
"website"        => "http://csgoforum.ct8.pl/index.php",
        
"author"        => "CezPlayer",
        
"version"        => "1.0",
        
"guid"             => "",
        
"compatibility" => "18*"
    
);
function 
mojplugin_install() {
    global 
$db// 
    
    
    
$db -> write_query("CREATE TABLE `".TABLE_PREFIX."mojatabela` (
        `kolumna1` int(11) NOT NULL,
        `kolumna2` tinyint(1) NOT NULL,
        `kolumna3` int(11) NOT NULL
    ) ENGINE=MyISAM"
);
}
 
function 
reminder_uninstall() {
    global 
$db$mybb$reminder;
    
$db -> drop_table('mojatabela'); 
}
 
function 
reminder_is_installed() {
    global 
$db;
    return 
$db -> table_exists('mojatabela'); 
}
$plugins -> add_hook('global_start''reminder_write_reminder');

$plugins -> add_hook('global_start''reminder_write_reminder'); 
 
function 
reminder_write_reminder() {
    global 
$db$reminder
    
    
    
$reminder "<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr><td class="
thead">Ogłoszenie</td></tr>
<tr><td class="
trow1">Drogi użytkowniku! Nie zapomnij się zapoznać z regulaminem Naszego forum!</td></tr>
</table><ol>"

    
    
    
    
$reminder .= "</ol>";<ol>
}
    
global 
$db$mybb$reminder;


Zamknij funkcję reminder_info().

// Edycja.

<?php
if(!defined("IN_MYBB")) die("Direct initialization of this file is not allowed.<br /><br />Please make sure IN_MYBB is defined.");


$plugins->add_hook('global_start''reminder_write_reminder');

function 
reminder_info() {
    return array(
        
"name"            => "Przypomnienie",
        
"description"    => "Ten plugin przypomina uzytkownikowi o zrobieniu jakiejs czynnosci (domyslnie: przeczytanie regulaminu).",
        
"website"        => "http://csgoforum.ct8.pl/index.php",
        
"author"        => "CezPlayer",
        
"version"        => "1.0",
        
"guid"             => "",
        
"compatibility" => "18*"
    
);
}
function 
reminder_install() {
    global 
$db


    
$db->write_query("CREATE TABLE ".TABLE_PREFIX."mojatabela (
        kolumna1 int(11) NOT NULL,
        kolumna2 tinyint(1) NOT NULL,
        kolumna3 int(11) NOT NULL
    ) ENGINE=MyISAM"
);
}

function 
reminder_uninstall() {
    global 
$db;
    
$db->drop_table('mojatabela');
}

function 
reminder_is_installed() {
    global 
$db;
    if(
$db->table_exists("mojatabela"))
    {
        return 
true;
    }
    return 
false;
}

function 
reminder_write_reminder() {
    global 
$db$reminder;

    
    
$reminder '<table border="0" cellspacing="{$theme[\'borderwidth\']}" cellpadding="{$theme[\'tablespace\']}" class="tborder">
<tr><td class="thead">Ogłoszenie</td></tr>
<tr><td class="trow1">Drogi użytkowniku! Nie zapomnij się zapoznać z regulaminem Naszego forum!</td></tr>
</table>'
;

Przeanalizuj zmiany.
Prośby na PW dotyczące wsparcia z problemami będą ignorowane. Pomoc poza forum - odpłatna; kontakt: snakemybboard@gmail.com.



Użytkownicy przeglądający ten wątek:

1 gości