![]() |
|
Article Options |
Fix for replacement code problem in vB Code
by
![]() 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: http://www.vbulletin.com/forum/showt...threadid=41430 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:
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. No members have liked this post.
Last edited by Chen; 09 Mar 2002 at 06:34.. |
||||
Views: 13922
|
Comments |
#2
|
|||
|
|||
isn't this corrected in 2.2.3?
No members have liked this post.
|
#3
|
||||
|
||||
No, this is caused by v2.2.3.
No members have liked this post.
|
#4
|
|||
|
|||
oh, ok. Thanks then, I'm installing
No members have liked this post.
|
#5
|
||||
|
||||
Excellent. The quote looks great now, however Im still confused as to how do do this with PHP and list code.
__________________
website: pcfx.cc forums: http://www.pcfx.cc/vb music: neurologik New Admin CP colors right HERE No members have liked this post.
Last edited by Mr. X; 09 Mar 2002 at 06:43. |
#6
|
||||
|
||||
I do not understand this!?
![]() No members have liked this post.
|
#7
|
||||
|
||||
__________________
Steve Machol, vBulletin Moderator Please do not email or PM me for vBulletin support. I will try to answer all questions on the vB Forums. Thank you for respecting this request! No members have liked this post.
|
#8
|
||||
|
||||
so it only works on vb.org?
__________________
website: pcfx.cc forums: http://www.pcfx.cc/vb music: neurologik New Admin CP colors right HERE No members have liked this post.
|
#9
|
||||
|
||||
I think that line of code is part of the cross-site scripting issue that was plugged in 2.2.3. While I don't think it will expose you to the entire problem it does present a weakness.
__________________
Wayne Luke Get started with your own social network. Purchase and download vBulletin today. No members have liked this post.
|
#10
|
||||
|
||||
this is not changed in 223b grrrr...
lol i got it now.. damn i'm slow sometimes.. this line must be removed only if you installed firefly's hack
__________________
Floren Munteanu Axivo Inc. Axivo Community - Visit the forums to find out more about us Why Queued - My personal blog No members have liked this post.
Last edited by TECK; 10 Mar 2002 at 00:44. |
#11
|
||||
|
||||
It just stops things like {firstaltcolor} from being converted when you type them into a post.
No members have liked this post.
|
#12
|
||||
|
||||
![]()
__________________
website: pcfx.cc forums: http://www.pcfx.cc/vb music: neurologik New Admin CP colors right HERE No members have liked this post.
|
#13
|
||||
|
||||
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
No members have liked this post.
|
#14
|
||||
|
||||
Please post that when you have a change FireFly.
__________________
Steve Machol, vBulletin Moderator Please do not email or PM me for vBulletin support. I will try to answer all questions on the vB Forums. Thank you for respecting this request! No members have liked this post.
|
#15
|
||||
|
||||
Nah, if you do this it'll screw PHP code, because every left bracket will be replaced with its HTML entity and the code will be unreadable.
No members have liked this post.
|
![]() |
«
Previous Article
|
Next Article
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Article Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 09:23.