Parse error: syntax error, unexpected T_VARIABLE

PHP/MYSQL  Założony przez  Cezary Stasiak.

Chciałem dodać zautomatyzowany proces dodawania arkusza CSS przy instalacji pluginu, ale napotkałem się na taki błąd:
Parse error: syntax error, unexpected T_VARIABLE in /virtual/t/e/testoweforumcez.ugu.pl/inc/plugins/reminder.php on line 49
Kod:
<?php


define
("IN_MYBB"1);

$plugins->add_hook('index_start''reminder');

function 
reminder_info() {



    return array(
        
"name"            =>    "Przypomnienie",
        
"description"    =>    "Ten plugin przypomina użytkownikowi o zrobieniu jakiejś czynności.",
        
"website"        =>    "https://webboard.pl",
        
"author"        =>    "Cezary Stasiak",
        
"authorsite"    =>    "https://twitter.com/cezplayer",
        
"version"        =>    "1.0",
        
"compatibility" =>  "18*"
    
);
}

function 
reminder_activate() {
        global 
$db$mybb;
        
$stylesheet "@import url(http://fonts.googleapis.com/css?family=Ubuntu:400,700);
@import url(http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css);
    .annocuement {
    background: #494949;
        width: 770px;
    padding-top: 7px;
    padding-bottom: 7px;
    padding-right: 15px;
    padding-left: 15px;
    font-weight: bold;
    color: #E0E0E0;
    text-align: center;
    border-radius: 5px;
}

.remindertext {
    background: #717171;
    color: #E0E0E0;
    width: 770px;
    border-radius: 5px;
    padding-right: 15px;
    padding-left: 15px;
    word-break: break-all;
}
"
$PL->stylesheet('reminder.css' $stylesheet);;

    
//ustawienia przypomnienia w ACP
    
$reminder_group_settings = array(
        
"gid"               => NULL,
        
"name"              => "reminder_option_category",
        
"title"             => "Przypomnienie",
        
"description"       => "Skonfiguruj ustawienia przypomnienia.",
        
"disporder"         => "50",
        
"isdefault"         => "no"
                        
);
    
$db->insert_query("settinggroups"$reminder_group_settings);
    
    
$gid $db->insert_id();
    
    
// Włącz/Wyłącz
    
$option_1 = array(
        
"sid"               => NULL,
        
"name"              => "reminder_enabled",
        
"title"             => "Pokazywać przypoomnienie?",
        
"description"       => "Czy przypomnienie ma się pokazywać?",
        
"optionscode"       => "yesno",
        
"value"             => "yes",
        
"isdefault"         => "yes",
        
"disporder"         => "1",
        
"gid"               => intval($gid)
                        );
                        
    
// Tekst przypomnienia
    
$option_2 = array(
        
"sid"               => NULL,
        
"name"              => "reminder_text",
        
"title"             => "Treść przypomnienia",
        
"description"       => "Tu wpisz treść przypomnienia.",
        
"optionscode"       => "textarea",
        
"value"             => 'Drogi użytkowniku! Nie zapomnij się zapoznać z regulaminem Naszego forum!',
        
"isdefault"         => "yes",
        
"disporder"         => "2",
        
"gid"               => intval($gid)
                        );

    
$db->insert_query("settings"$option_1);
    
$db->insert_query("settings"$option_2);    
                           
    require 
MYBB_ROOT."/inc/adminfunctions_templates.php";
    
}

function 
reminder_deactivate() {
        global 
$db$mybb;
    
$db->delete_query('settinggroups''name = "reminder_option_category"');
    
$db->delete_query('settings''name IN("reminder_enabled, reminder_text")');

    require 
MYBB_ROOT."/inc/adminfunctions_templates.php";
    
find_replace_templatesets('index''#(\n?){\$reminder}#'''0);
}

function 
reminder ()
{
    global 
$mybb$reminder;

if (
$mybb->settings['reminder_enabled'] == 1)
{
    
    
$reminder '
<table border="0" cellspacing="5" cellpadding="0" class="tborder">
<p align="center"><tr><td class="annocuement">Ogłoszenie</td></tr></p>
<tr><td class="remindertext"><p align="center">'
.$mybb->settings['reminder_text'].'</p></td></tr></span></table><br /><br />';
    }


    
$reminder .= '</td></tr></table>';
}

?>
Naprawdę? Ciekawi mnie, jak wyglądał kod pluginu. :P
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
Po tak długim okresie na forum i przygodzie z poprzednimi twoimi wątkami gdzie występował identyczny błąd powinieneś pamiętać, aby wstawić pełny kod.

Druga sprawa - poprzednio miałeś te same problemy, prawdopodobnie literówka w składni - zajrzyj do tej linii i zobacz co jest nie tak. Zanim zaczniesz brać się za pluginy i php, zapoznaj się z podstawami języka - debugowaniem, bez tego nigdzie nie zajdziesz, a nie zajmuje to wiele do ogarnięcia. Wujek google służy pomocą.

"$PL->stylesheet('reminder.css' $stylesheet);;
"Try not. Do... or do not. There is no try."
Poświęć 5 minut. Nie bądź ignorantem!  -  Jak zbadać element?
Wiem, że wzorujesz się na Guest warn, zobacz na tą samą linijkę tam i porównaj z Twoją (49.)
$PL->stylesheet('guestwarn.css'$stylesheet); 
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
Sprawdź tak:
        $stylesheet "@import url(http://fonts.googleapis.com/css?family=Ubuntu:400,700);
@import url(http://maxcdn.bootstrapcdn.com/font-awes...me.min.css);
    .annocuement {
    background: #494949;
        width: 770px;
    padding-top: 7px;
    padding-bottom: 7px;
    padding-right: 15px;
    padding-left: 15px;
    font-weight: bold;
    color: #E0E0E0;
    text-align: center;
    border-radius: 5px;
}

.remindertext {
    background: #717171;
    color: #E0E0E0;
    width: 770px;
    border-radius: 5px;
    padding-right: 15px;
    padding-left: 15px;
    word-break: break-all;
}
"
;

    
$style = array(
        
"sid"             => "",
        
"name"             => "reminder.css",
        
"cachefile"        => "reminder.css",
        
"tid"             => "1",
        
"attachedto"       => "index.php",
        
"stylesheet"       => $db->escape_string($stylesheet),
        
'lastmodified'     => TIME_NOW
    
);

    
$db->insert_query("themestylesheets"$style);

    require_once 
MYBB_ADMIN_DIR."inc/functions_themes.php";

    
cache_stylesheet(1"panel.css"$stylesheet);
    
update_theme_stylesheet_list(1falsetrue); 



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

1 gości