[x] Navigation

[x] Wer ist wo
 Bots / Spider:
1: Majestic-12 > Forum 9.x
2: Google > Forum 9.x
 Besucher:
1: Bildergalerie
2: Forum 9.x
3: Forum 9.x

[x] Languages

[x] Design
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.

[x] Downloads (Top)

Always parses BBCode
Neues Thema eröffnen   Neue Antwort erstellen   Druckversion    Foren-Übersicht > > Guestbook 4U

Autor Nachricht
Ertan
Webmaster


Dabei seit: Mar 19, 2004
Beiträge: 1239
Wohnort: Germany

PostenTitel: Always parses BBCode
Verfasst am: 08.04.2006 19:09
Antworten mit Zitat

After a Member of dragonflycms.org mentioned a Guestbook4U entry redirecting users from their site (http://dragonflycms.org/Forums/viewtopic/t=15595.html), I took a look at the code for Guestbook4U and found that it always parses BBCode even if the administrative option is turned off. The administrative option sets the "allow_nbbcode" configuration option. However, this configuration option is used to determine whether or not to display the BBCode buttons - line 219 of modules/Guestbook4U/index.php:

if ($gbook4u['allow_nbbcode']){ echo ' '.bbcode_table('g_entrytext', 'addentry', 1).' '; }

It is not being used to determine whether or not to parse the BBCode, so BBCode is always parsed in the messages - line 247 of modules/Guestbook4U/index.php:

$g_entrytext = decode_bb_all($g_entrytext, 1, true);

I think most users would expect this option to determine whether or not BBCode should be parsed. Line 249 of modules/Guestbook4U/index.php should probably be:

$g_entrytext = ($gbook4u['allow_nbbcode'] ? decode_bb_all($g_entrytext, 1, true) : $g_entrytext);

Thanks,
Jason (aka Biggles)



@jason thnx zwinker

_________________
.: USE THE FORCE :.
Helft mit ! Keine Unbeantworteten Beiträge mehr

Ertan's Serverdaten - verwendete Vers. (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Nach oben
Benutzer-Profile anzeigen E-Mail an diesen Benutzer senden Website dieses Benutzers besuchen Bildergalerie
Beiträge der letzten Zeit anzeigen:   
Neues Thema eröffnen   Neue Antwort erstellen   Druckversion    Foren-Übersicht > > Guestbook 4U
Seite 1 von 1
Alle Zeitangaben sind in GMT + 1 Stunden



Gehe zu:  


Du kannst keine Beiträge schreiben.
Du kannst auf Beiträge nicht antworten.
Du kannst Deine Beiträge nicht bearbeiten.
Du kannst Deine Beiträge nicht löschen.
Du kannst an Umfragen nicht mitmachen.
Du kannst keine Dateien anhängen.
Du kannst keine Dateien herunterladen.




Interactive software released under GNU GPL, Code Credits, Privacy Policy