![]() |
|
|
Article Options |
|
Fix for replacement code problem in vB Code
by
Rating:
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. Last edited by Chen : 09 Mar 2002 at 06:34. |
||||
|
Views: 9589
|
||||
| Comments |
|
#3
|
||||
|
||||
|
No, this is caused by v2.2.3.
__________________
Chen Avinadav Formerly vBulletin.org Owner and Founder chen@avinadav.com |
|
#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 Last edited by Mr. X : 09 Mar 2002 at 06:43. |
|
#6
|
||||
|
||||
|
I do not understand this!?
![]() |
|
#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! |
|
#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 |
|
#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.
|
|
#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 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.
|
|
#12
|
||||
|
||||
![]()
__________________
website: pcfx.cc forums: http://www.pcfx.cc/vb music: neurologik New Admin CP colors right HERE |
|
#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
__________________
Chen Avinadav Formerly vBulletin.org Owner and Founder chen@avinadav.com |
|
#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! |
![]() |
«
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 07:44.





