Parse error: syntax error, unexpected T_STRING

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

Podczas tworzeniu pluginu napotkałem się na taki błąd: Parse error: syntax error, unexpected T_STRING in /virtual/t/e/testoweforumcez.ugu.pl/inc/plugins/reminder.php on line 97
Kod:
<?php


define
("IN_MYBB"1);

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

function 
reminder_info() {



    return array(
        
"name"            =>    "Przypomnienie",
        
"description"    =>    "Ten plugin dodaje tabelke, w ktorej mozesz napisac przypomnienie..",
        
"website"        =>    "https://webboard.pl",
        
"author"        =>    "CezPlayer",
        
"authorsite"    =>    "https://twitter.com/cezplayer",
        
"version"        =>    "1.0",
        
"compatibility" =>  "18*"
    
);
}

function 
reminder_activate() {
    global 
$db$mybb;
    
    
$reminder_group_settings = array(
        
"gid"               => NULL,
        
"name"              => "reminder_option_category",
        
"title"             => "Ustawienia przypomnienia",
        
"description"       => "Tu mozesz zmienic 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"             => "Pokazywac przypomnienie?",
 
       "description"       => "Czy przypomnienie ma sie pokazywac na forum?",
 
       "optionscode"       => "yesno",
 
       "value"             => "yes",
        
"isdefault"         => "yes",
 
       "disporder"         => "1",
 
       "gid"               => intval($gid)
                        );
                        
    
// Tresc przypomnienia
    
$option_2 = array(
 
       "sid"               => NULL,
 
       "name"              => "reminder_text",
 
       "title"             => "Tresc przypomnienia",
 
       "description"       => "Tu wpisz tresc przypomnienia.",
 
       "optionscode"       => "textarea",
 
       "value"             => 'Drogi uzytkowniku! Nie zapomnij sie zapoznac 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="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr><td class="thead">Ogloszenie</td></tr>
<tr><td class="trow1">($mybb->settings['
reminder_enabled'])</td></tr>
</table>'
;
    }

{
    
$reminder .= '</tbody></table>';
}}
?>
$reminder '<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr><td class="thead">Ogloszenie</td></tr>
<tr><td class="trow1">($mybb->settings['
reminder_enabled'])</td></tr>
</table>'

Emm, zwróć uwagę na apostrofy.
Kodowanie, edycja i tworzenie styli, for, stron, poszczególnych elementów - polecane szczególnie dla osób, które nie potrafią sobie poradzić z problemami.
Gdzie mam dodać apostrof? Przeanalizowałem powyższy fragment kodu, ale nie wiem co i jak
http://phpcodechecker.com/ wklej tam swój kod

Html dodajesz jako string, jest normalne kod stringa, a tu nagle go zamykasz i masz borderwidth poza stringiem. Później to samo z tablespace itd.
Kodowanie, edycja i tworzenie styli, for, stron, poszczególnych elementów - polecane szczególnie dla osób, które nie potrafią sobie poradzić z problemami.



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

1 gości