The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Fix for replacement code problem in vB Code
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: PHP Code:
|
#22
|
||||
|
||||
No it's not 'fixed'. Read Wayne Luke's response above.
|
#23
|
||||
|
||||
Can it be cleared whethor or not this hack can be used for the other codes? Im still confused here. All I get is a great quote effect, but just that, and I would like it for the other codes too.
|
#24
|
||||
|
||||
I'm not sure what you're asking or what your are confused about. All this does is allow people replacement variables to be used in posts. In my case I needed this for the quote box. In fact, that's my only use for it.
|
#25
|
||||
|
||||
Ok. The hack is called New code, PHP and quote boxes. Well the only thing that changes is the Quote. I would like the same effect for PHP and other codes.
I had a problem when adding the variables, because the color would not change. This thread fixed it. But Im still wondering how to do the rest of the codes. on Vb.org, php code has the same effect, thats what I want to achieve, to have all codes look like the Quote code. |
#26
|
||||
|
||||
Ok so again, cuz I'm smart like that, you install the original hack by FireFly, then you do the update from this page, correct?
|
#27
|
||||
|
||||
Yes.
|
#28
|
||||
|
||||
Sorry, but this is not working for me AT ALL.
Just installed 2.2.4, all my Admin templates are factory. I go into admin/functions.php and comment out (even tried removing) the line: $bbcode=str_replace <http://www.php.net/str_replace>("{", "{", $bbcode); // stop people posting replacements in their posts and reupload it. then I go into Custom vBCodes >Modify and try either of these: <blockquote><font face="verdana,arial,helvetica" size="1" >quote:</font><hr><br><table cellpadding="4"cellspacing="0" border=1 bordercolor="#0A293E" bgcolor="#0E3652" width="90%" align="center"><tr><td><font size="2">{param}</font></tr></td></table><br><hr></blockquote> <blockquote><font face="verdana,arial,helvetica" size="1" >quote:</font><hr><br><table cellpadding="4" cellspacing="0" border=1 bordercolor="#5F9EA0" bgcolor="#1C5780" width="90%" align="center"><tr><td><font size="2">{param}</font></tr></td></table><br><hr></blockquote> it goes absolutely apes*** with shredded table pieces all over the place. and if I do: <table cellpadding="4"cellspacing="0" border=1 bordercolor="#0A293E" bgcolor="#0E3652" width="90%" align="center"><tr><td><font size="2">{param}</font></tr></td></table> I get a green box. The only thing that works is this: <table cellpadding="4" cellspacing="0" border=1 bordercolor="#5F9EA0" bgcolor="#1C5780" width="90%" align="center"><tr><td><font size="2" color=FFFFFF>{param}</font></tr></td></table> It's like there's a limit on how much HTML I can put in. |
#29
|
||||
|
||||
Yes, there's a character limit in the vB Code box.
|
#30
|
||||
|
||||
Is there an easy way to change max characters?
I looked in admin/bbcode.php but changing the numbers to 60 didn't seem enough of a solution. |
#31
|
||||
|
||||
If I comment out that line, it gives me a parse error on like #1348. have no clue as to why it does, but it seems to work fine if I just do the normal hack.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|