Error with the update of the AJAX MOD 1.0.4 to 1.0.11

Allgemeiner Support zum phpBB 2 Board und phpBB 2 Modifikationen
Forumsregeln
Auch wenn hier der Support für phpBB 2 weiterhin aufrecht erhalten bleibt, weisen wir darauf hin, dass das phpBB 2 nicht mehr offiziell unterstützt und weiterentwickelt wird!
Antworten
mariokaz
Beiträge: 222
Registriert: So 12.Jun, 2005 21:46

Error with the update of the AJAX MOD 1.0.4 to 1.0.11

Beitrag von mariokaz »

Hi oxpus,

I updated my Ajax from 1.0.4 to 1.0.11 in my Plues 1.53a 2.0.21, but I am having these 2 errors when I want to enter in any topic. ¦4

Code: Alles auswählen

Parse error: syntax error, unexpected '=' in /home/mariocaz/public_html/inicio/viewtopic.php on line 1402

Parse error: syntax error, unexpected $end in /home/mariocaz/public_html/inicio/viewtopic.php on line 1880
I put here my viewtopic.php file. ;)

Thanx.[/quote]
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

On line 1402 of this script you can find this part:

Code: Alles auswählen

(($board_config['use_ajax_edit'])?onclick="return AJAXPostEdit
Insert directly before "onclick" a single quote and the errors are gone...

Like this:

Code: Alles auswählen

(($board_config['use_ajax_edit']) ? 'onclick="return AJAXPostEdit
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
mariokaz
Beiträge: 222
Registriert: So 12.Jun, 2005 21:46

Beitrag von mariokaz »

I did it Oxpus, but the same problem, appears the same error: :(

Code: Alles auswählen

Parse error: syntax error, unexpected '=' in /home/mariocaz/public_html/inicio/viewtopic.php on line 1402
I put it like this:

Code: Alles auswählen

		$edit = '<a id="editlink_'. $postrow[$i]['post_id'] .'" '.(($board_config['use_ajax_edit']) ? 'onclick="return AJAXPostEdit('. $postrow[$i]['post_id'] .');" href="' . $edit_url . '" style="text-decoration: none;">[ ' . $lang['Edit_quick_post'] . ' ]</a>';
Thanx again.
Zuletzt geändert von mariokaz am Do 26.Okt, 2006 22:27, insgesamt 1-mal geändert.
Antworten