Hallo, Gast! (Registrieren)

Wir wünschen allen Besuchern frohe Ostern!

Letzte Ankündigung: MyBB 1.8.37 veröffentlicht (04.11.23)


Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste
WYSIWYG / Hoteditor4.2 installation problem
#1
Ich erhalte nach der Installation von "HotEditor V.4.2 MOD for MyBB 1.2.x"
folgende Meldung:

PHP-Code:
Parse errorparse errorunexpected T_VARIABLEexpecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /var/www/vhosts/dead-zone24.de/httpdocs/forum/inc/class_parser.php on line 272[/php

genau nach dem Punkt wo man:

PHP-Code:
function cache_mycode()
{
    global 
$cache$lang;
    
$this->mycode_cache = array(); 

durch:

PHP-Code:
//EDITOR
//Support Table here
$standard_mycode['hoteditor_table_open']['regex'] = "#\[table\]#si";
$standard_mycode['hoteditor_table_open']['replacement'] = '<table align=center style="border-collapse: collapse;border-spacing: 0px;border: 1px solid #6CAFF7;background-color: #F4F4F4;width:98%;font-family:Verdana,Arial,Sans-Serif,Tahoma;font-size:12px;color: black;">';
$standard_mycode['hoteditor_table_close']['regex'] = "#\[\/table\]#si";
$standard_mycode['hoteditor_table_close']['replacement'] = '</table>';
$standard_mycode['hoteditor_tr_open']['regex'] = "#\[tr\]#si";
$standard_mycode['hoteditor_tr_open']['replacement'] = '<tr>';
$standard_mycode['hoteditor_tr_close']['regex'] = "#\[\/tr\]#si";
$standard_mycode['hoteditor_tr_close']['replacement'] = '</tr>';
$standard_mycode['hoteditor_td_open']['regex'] = "#\[td\]#si";
$standard_mycode['hoteditor_td_open']['replacement'] = '<td style="height:25px; border: 1px solid #6CAFF7">';
$standard_mycode['hoteditor_td_close']['regex'] = "#\[\/td\]#si";
$standard_mycode['hoteditor_td_close']['replacement'] = '</td>';

$standard_mycode['hoteditor_open']['regex'] = "#\[(sub|sup|strike|blockquote|b|i|u)\]#si";
$standard_mycode['hoteditor_open']['replacement'] = '<$1>';
$standard_mycode['hoteditor_close']['regex'] = "#\[\/(sub|sup|strike|blockquote|b|i|u)\]#si";
$standard_mycode['hoteditor_close']['replacement'] = '</$1>';

$standard_mycode['hoteditor_fontface']['regex'] = "#\[font=(.*?)\]#si";
$standard_mycode['hoteditor_fontface']['replacement'] = '<font face="$1">';
$standard_mycode['hoteditor_fontcolor']['regex'] = "#\[color=(.*?)\]#si";
$standard_mycode['hoteditor_fontcolor']['replacement'] = '<font color="$1">';
$standard_mycode['hoteditor_fontsize']['regex'] = "#\[size=(.*?)\]#si";
$standard_mycode['hoteditor_fontsize']['replacement'] = '<font size="$1">';
$standard_mycode['hoteditor_fontclose']['regex'] = "#\[\/(font|color|size)\]#si";
$standard_mycode['hoteditor_fontclose']['replacement'] = '</font>';

$standard_mycode['highlight_open']['regex'] = "#\[highlight=(.*?)\]#si";
$standard_mycode['highlight_open']['replacement'] = "<font style=\"background-color:$1\">";
$standard_mycode['highlight_close']['regex'] = "#\[\/highlight\]#si";
$standard_mycode['highlight_close']['replacement'] = "</font>";

$standard_mycode['hoteditor_align_open']['regex'] = "#\[(center|right|left|justify)\]#si";
$standard_mycode['hoteditor_align_open']['replacement'] = '<div align="$1">';
$standard_mycode['hoteditor_align_close']['regex'] = "#\[\/(center|right|left|justify)\]#si";
$standard_mycode['hoteditor_align_close']['replacement'] = '</div>';

$standard_mycode['hoteditor_flash']['regex'] = "#\[FLASH=(.*?),(.*?)\](.*?)\[\/FLASH\]#si";
$standard_mycode['hoteditor_flash']['replacement'] = '<object width="$1" height="$2"><param name="movie" value="$3"></param><param name="wmode" value="transparent"></param><embed src="$3" type="application/x-shockwave-flash" wmode="transparent" width="$1" height="$2"></embed></object>';
//EDITOR END 
[/php]

Hilfe Sad
Zitieren
#2
Kannst du die geänderte Datei als Attachment hochladen?
[Bild: banner.png]

Bitte die Foren-Regeln beachten und im Profil die verwendete MyBB-Version angeben.
Zitieren
#3
...das ging aber schnell , hier ist sie


Forumlink
Zitieren
#4
Du hast die Anleitung falsch verstanden. Nach dem Code musst du das einfügen, nicht ersetzen.
[Bild: banner.png]

Bitte die Foren-Regeln beachten und im Profil die verwendete MyBB-Version angeben.
Zitieren
#5
...wie konnt ich nur Sad

DANKE
Zitieren
#6
Tja - bei mir funktioniert garnichts mehr Sad
Hab alles wie angegeben editiert - aber den Editor sehe ich trotzdem nicht...
Zitieren
#7
Kannst du einen Link zum Forum posten?
[Bild: banner.png]

Bitte die Foren-Regeln beachten und im Profil die verwendete MyBB-Version angeben.
Zitieren


Möglicherweise verwandte Themen…
Thema Verfasser Antworten Ansichten Letzter Beitrag
  WYSIWYG Editor Problem SyntaX 18 5.302 24.10.2012, 14:25
Letzter Beitrag: SyntaX