PDA

View Full Version : [FIXED] Disable replacements in posts?


Gary King
08-06-2003, 09:48 PM
Maybe it's a good idea to disable replacement variables in posts? (The vBulletin ones, such as { categorybackcolor }) :)

Unless, of course, you just want us to use spaces, but I'll try this anyways.

filburt1
08-06-2003, 10:11 PM
Agreed, freaky stuff starts happening.

Dean C
08-07-2003, 10:40 AM
I just insert some vbcode inside the replacement :)

Gary King
08-07-2003, 03:16 PM
But what if you have a lot of replacements? And what about people who don't know about the replacements and just post their code? etc. etc.

NTLDR
08-07-2003, 03:41 PM
IIRC the /me code uses the replacements, hence why they aren't disabled like they would be normally.

assassingod
08-07-2003, 03:46 PM
/me wonders if a replacement like {categorybackcolor} works in the me tag

Good idea, disabling them would be great

Gary King
08-07-2003, 04:34 PM
I don't know why this issue hasn't been brought up before.

Dean C
08-07-2003, 05:42 PM
It's been brought up many times Gary but no-one has fixed it :)

- miSt

Gary King
08-07-2003, 07:19 PM
Has an admin read this thread yet I wonder?

Dean C
08-08-2003, 10:30 AM
Well the situation as it stands is that we are not hacking vBulletin.org unless its deemed absolutely necessary so I don't think that this will be carried through :)

N9ne
08-08-2003, 01:30 PM
I think it's necessary enough. Also, there's the problem of replacement variables being parsed inside .txt file attachments! That's quite bad too. For a lot of my hacks which contained replacement variables in them, I had to make the attachment a .php file.

The replacement variable problem is a big problem and I do hope that when this place is upgraded to beta5 they don't install a hack which makes this happen :(

filburt1
08-08-2003, 01:32 PM
Really?

edit: Can't reproduce it when downloading the file, only when editing it via the text editor hack built in here (not sure if you guys can see it).

Gary King
08-08-2003, 01:32 PM
When will vB.org be upgraded to 2.3.1? Or will it be?

Gary King
08-08-2003, 01:33 PM
Today at 10:32 AM filburt1 said this in Post #12 (https://vborg.vbsupport.ru/showthread.php?postid=424323#post424323)
Really?

edit: Can't reproduce it when downloading the file, only when editing it via the text editor hack built in here (not sure if you guys can see it).

Well, this one looks alright.

Xenon
08-10-2003, 03:19 PM
/me test

testing {categorybackcolor}

Xenon
08-10-2003, 03:19 PM
ok, should be fixed now :)

assassingod
08-10-2003, 03:22 PM
Nice work Xenon:)
{categorybackcolor}

Xenon
08-10-2003, 03:24 PM
:)
no problem ;)

Dean C
08-10-2003, 03:47 PM
<td bgcolor="{categorybackcolor}">

Xenon
08-10-2003, 03:51 PM
do you believe it now? ^^

Gary King
08-10-2003, 07:50 PM
There we go; thanks xenon :)

Dean C
08-10-2003, 09:03 PM
What was wrong and how did you fix it then big man? :p

Erwin
08-10-2003, 11:28 PM
Ye of little faith...

Xenon
08-19-2003, 07:57 PM
@dean: nothing was "wrong" you know in a normal vb it's not possible to post replacementvars, but we need it for a hack...

i just preparsed the parsed code a bit more to get an effect likte the disable tag :)

S.Shady
08-20-2003, 02:15 AM
xenon we knew it was due to a hack but what did you do to fix it :) others might be interested in the fix any board with the me hack for instance

filburt1
08-20-2003, 02:20 AM
It's still being parsed when editing text files within the browser.

assassingod
08-20-2003, 11:56 AM
Still being parsed in the CODE tag aswell.

Xenon
08-20-2003, 01:12 PM
@filburt: yeah, i have to work on the editor, too. It's because it doesn't use the bbcodeparse2 function i haven't fixed it right now (will do soon, if i find out how)

@Steve: you're wrong, it's fixed in codetags:
https://vborg.vbsupport.ru/showthread.php?postid=424885#post424885

assassingod
08-20-2003, 01:54 PM
Are you sure? I used the imagesfolder replacement and it got replaced with "https://vborg.vbsupport.ru/vbimages/"

Xenon
08-20-2003, 03:57 PM
yeah i am sure, but my fix just applies for showthread, if you use editpost or any other function which doesn't use bbcodeparse2 it would be parsed.

i try to find a better way to fix it, at least for vb3 ;)

assassingod
08-20-2003, 04:07 PM
It was in showthread, im sure (but I originally posted from newreply)

Xenon
08-20-2003, 05:10 PM
if you quoted a msg it would be parsed, too but if you posted it yourself it's impossible :)

assassingod
08-20-2003, 05:12 PM
Well it was in the CODE tag and it wasnt in a quote either.

Xenon
08-20-2003, 10:13 PM
sorry then, but i can't reproduce it.

and as long as you can't tell me exactly where and how it works, i assume everything works perfect and it's just in your phantasy ;)

assassingod
08-20-2003, 10:23 PM
Im sure it wasnt my made-up fantasy hehe;)

Well, here is the thread:
https://vborg.vbsupport.ru/showthread.php?s=&threadid=56339

There is a CODE tag with the imagesfolder replacement. (You can find it because its above some text using the high tag)

Edit:
Well I just tested it twice, and it worked fine. Either im losing my mind, or you fixed it Xenon.;)

Xenon
08-20-2003, 10:31 PM
well since i posted my last message about a small bug in my fix i didn't change anything anymore, and that was long time ago...

i'm currently just trying to fix the editpost/quote bugs, too :)

assassingod
08-20-2003, 10:33 PM
Hmm, must be me then;)

Well glad to know you are fixing other issues:)

Xenon
08-20-2003, 10:41 PM
no as i'm back i can fix those problems :)

ok, editpost/quoting should work now
i think that was all what was needed :)

for vb3 replacements are looking different, so shouldn't be a problem there ;)

btw. check your posts you've edited during the last hour, during my editpost tests it seems there was a little bug which converted { into nice code ;)

assassingod
08-20-2003, 10:46 PM
Ok cool!:)

I did noticed a few minutes ago when editing a post, that it changed { into something different

Edit:

yeah, its chaning { into {
which is quite annoying since half the code I posted in the thread are {

Xenon
08-20-2003, 10:48 PM
fast eyes you have ;)

assassingod
08-20-2003, 10:49 PM
Very fast;)

But yeah, in the thread link I gave above, its converting { to


{


Edit:
But now ive just changed it back to { and it hasnt changed.

Xenon
08-20-2003, 10:52 PM
yeah i know (or better i knew) ;)

assassingod
08-20-2003, 11:32 PM
Looks like its sorted. Is it?

Xenon
08-20-2003, 11:32 PM
at least i haven't had a problem during my last edits ;)

assassingod
08-20-2003, 11:33 PM
I haven't got a problem either;)

Xenon
08-20-2003, 11:35 PM
i like to hear that ;)