March 21st, 2010 | Category: zjnz.com
i think, smilies shouldn't be parsed in [ code ] [ / code ]... i just wanted to explain somebody how he can add popups. in my code, there was (among other things) this:
that's why you should remove smilie-parsing in codes imho :)You could always ereg_replace the code and store it in a variable, replacing it with small string (e.g. ) then run it through the smilie/bbcode functions, finally ereg_repalceing the '' with the variable. Little messy, but should work.:)testAs can be seen when looking at the codes posted in this thread, this has now been fixed (for beta 4). :DHmm yes, this is true, since my trick doesn't work in vB3. :mad:Moved to Bugs for a Dev to look at.testing smilies and ubbcode between php
:D
bold
Edit: Uff - that's heavy
submitted text without . :
[.php]
D.:
[.b]bold[./b]
[./php]echo ":)";
this is a valid php code, but it's parsed, too
it should look like that:
echo ": )";TEST (http://www.vggmn.com)
Damn, you're right.In myhumble opinion an easy way to solve this may be to store all things in the [code] (and perhaps php code) as seperate snippets (ala attachments). Then in the post display a link to popup a small page which displays those snippets - without parsing the bbcode. This would also aliviate the issue of long code snippets geting into the way of layout.reply plz :[You could always ereg_replace the code and store it in a variable...Good suggestion, but (FYI) use preg_* not ereg_* - much faster
Sean :)Unless...
?>:) bold
;)
LOL, same thing I guess... guess I need to pay more attention ;)we know there is a smiley issue and it will be sorted.
Everyone does not need to test it.just adding me 2 cents to the topic, would it be possible to make it so no bb code was enabled in [code] tags, as i use to (before moving to vb) used them to show people how to use [url] tags and such, but only way now to do is is by using the [php] tag.placing items between the PHP code requires valid PHP as this is all done with the php function highlight_string#If you have any other info about this subject , Please add it free.# |
|
edit