Sub Menu
Links Menu
Online Users

In total there are 313 users online :: 1 registered, 0 hidden and 312 guests

Most users ever online was 1091 on Wed Aug 16, 2023 5:27 pm

Registered users: Google [Bot] based on users active over the past 60 minutes

[solved] BBCode [Code]

Moderator: Integra Moderator

[solved] BBCode [Code]

PostAuthor: Max Paint » Thu Aug 09, 2007 9:56 am

The code-tag on my homepage does not work correctly. It posts the UID of the BBCode of that post.

When I write:
Code: Select all
[code][align=center][flash=,:vb42fhvq]http://www.pk-pro.de/bilder/new-decking-bases.jpg[/flash:vb42fhvq][/align:vb42fhvq][/code]


the posting shows the UID-code of that BBCode in that post:
Code: Select all
[align=center][img]http://www.pk-pro.de/bilder/new-decking-bases.jpg[/img][/align:ee8ca6301f]
Last edited by Max Paint on Sat Aug 18, 2007 1:47 am, edited 1 time in total.

Max Paint
Members
Members
 
Posts: 31
Likes: 0 post
Liked in: 0 post
Joined: Tue May 09, 2006 8:50 am
Cash on hand: 0.00

PostAuthor: Max Paint » Sat Aug 18, 2007 1:46 am

solved it!

[code]  ##-----[ OPEN ]------------------------------------------#includes/bbcode.php##-----[ FIND ]------------------------------------------#     // PHP MOD     // [php] and [/php] for posting PHP code in your posts.     $text = bbencode_first_pass_pda($text, $uid, '[php]', '[/php]', '', true, '');  ##-----[ REPLACE WITH ]------------------------------------------## Removing the above lines.#  ##-----[ FIND ]------------------------------------------#                             if ($open_tag[0] == '[code]')                             {                                 $between_tags = preg_replace('#&##', '&#', $between_tags);                                 $between_tags = preg_replace('/:[0-9a-z:]+]/si', ']', $between_tags);                             }  ##-----[ REPLACE WITH ]------------------------------------------#                             if ($open_tag[0] == '[code]')                             {                                 $code_entities_match = array('#<#', '#>#', '#"#', '#:#', '#[#', '#]#', '#(#', '#)#', '#{#', '#}#');                                 $code_entities_replace = array('&lt;', '&gt;', '&quot;', ':', '[', ']', '(', ')', '{', '}');                                 $between_tags = preg_replace($code_entities_match, $code_entities_replace, $between_tags);                             }  ##-----[ FIND ]------------------------------------------#         // now Replace space occurring at the beginning of a line         $after_replace = preg_replace("/^ {1}/m", " ", $after_replace);           // Replace ":", "(" & ")" by their HTML codes to prevent smilies replacements         $code_entities_match = array('#:#', '#(#', '#)#');         $code_entities_replace = array(':', '(', ')');         $after_replace = preg_replace($code_entities_match, $code_entities_replace, $after_replace);  ##-----[ REPLACE WITH ]------------------------------------------#         // now Replace space occurring at the beginning of a line         $after_replace = preg_replace("/^ {1}/m", " ", $after_replace);  [/code]
Last edited by Max Paint on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

Max Paint
Members
Members
 
Posts: 31
Likes: 0 post
Liked in: 0 post
Joined: Tue May 09, 2006 8:50 am
Cash on hand: 0.00


Return to Confirmed Bugs

Who is online

Registered users: Google [Bot]

cron