I'm almost embarrassed to call this a 'hack', particularly sincve it's not even mine! :stupid: Actually the code came from FireFly who PM'd me with the answer to this problem I posted on vb.com:
The problem arises if you try to use replacement variables in vB Code. Beginning with 2.2.3, this no longer works. However the fix (thanks to Chen!) is simple. Just remove or comment out this line from admin/functions.php:
PHP Code:
$bbcode=str_replace("{", "{", $bbcode); // stop people posting replacements in their posts
Of course remving this line will cause the problem of people using replacement variables in posts. However in my case it's a good trade-off.
Originally posted by smachol Those are hardcoded into the script and cannot be altered by vB Code. To change them would require further hacking.
Im still confused here. Is this a hack that ONLY changes the Quote code, or is there something Im missing? Afterall its entitled "New code, PHP and quote boxes!". Im so very tired right now..
You should be able to move the line we told you to delete a bit up, before the parsing of vB codes, and then it'll also solve the problem. I don't have the code in front of me right now though
Originally posted by FireFly You should be able to move the line we told you to delete a bit up, before the parsing of vB codes, and then it'll also solve the problem. I don't have the code in front of me right now though
Originally posted by smachol I'm almost embarrassed to call this a 'hack', particularly sincve it's not even mine! :stupid: Actually the code came from FireFly who PM'd me with the answer to this problem I posted on vb.com:
The problem arises if you try to use replacement variables in vB Code. Beginning with 2.2.3, this no longer works. However the fix (thanks to Chen!) is simple. Just remove or comment out this line from admin/functions.php:
PHP Code:
$bbcode=str_replace("{", "{", $bbcode); // stop people posting replacements in their posts[color=Radon3k][/color]
Of course remving this line will cause the problem of people using replacement variables in posts. However in my case it's a good trade-off.
What do you mean by "Of course removing this line will cause the problem of people using replacement variables in posts."??
What are replacement variables? Do you need to install this hack, or just comment that line out? I'm a bit confused. Please explain (?)
You cvan find out what replacement variable are by looking at the Replacement sets in your Admin CP. And what I meant was if someone uses a replacement variable in a post (like {firstaltcolor} ) this will automatically translate into the color in question if you remove this line.
I'm not sure if it's fixed here or not. If not, then this will show the hex code: {firstaltcolor}