vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin.org Site Feedback (https://vborg.vbsupport.ru/forumdisplay.php?f=7)
-   -   [FIXED] Disable replacements in posts? (https://vborg.vbsupport.ru/showthread.php?t=55962)

Gary King 08-06-2003 08:48 PM

[FIXED] Disable replacements in posts?
 
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 09:11 PM

Agreed, freaky stuff starts happening.

Dean C 08-07-2003 09:40 AM

I just insert some vbcode inside the replacement :)

Gary King 08-07-2003 02: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 02:41 PM

IIRC the /me code uses the replacements, hence why they aren't disabled like they would be normally.

assassingod 08-07-2003 02: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 03:34 PM

I don't know why this issue hasn't been brought up before.

Dean C 08-07-2003 04:42 PM

It's been brought up many times Gary but no-one has fixed it :)

- miSt

Gary King 08-07-2003 06:19 PM

Has an admin read this thread yet I wonder?

Dean C 08-08-2003 09: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 12: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 12:32 PM

1 Attachment(s)
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 12:32 PM

When will vB.org be upgraded to 2.3.1? Or will it be?

Gary King 08-08-2003 12:33 PM

Quote:

Today at 10:32 AM filburt1 said this in Post #12
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 02:19 PM

/me test

testing {categorybackcolor}

Xenon 08-10-2003 02:19 PM

ok, should be fixed now :)

assassingod 08-10-2003 02:22 PM

Nice work Xenon:)
{categorybackcolor}

Xenon 08-10-2003 02:24 PM

:)
no problem ;)

Dean C 08-10-2003 02:47 PM

PHP Code:

<td bgcolor="{categorybackcolor}"


Xenon 08-10-2003 02:51 PM

do you believe it now? ^^

Gary King 08-10-2003 06:50 PM

There we go; thanks xenon :)

Dean C 08-10-2003 08:03 PM

What was wrong and how did you fix it then big man? :p

Erwin 08-10-2003 10:28 PM

Ye of little faith...

Xenon 08-19-2003 06: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 01: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 01:20 AM

It's still being parsed when editing text files within the browser.

assassingod 08-20-2003 10:56 AM

Still being parsed in the CODE tag aswell.

Xenon 08-20-2003 12: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/showthrea...885#post424885

assassingod 08-20-2003 12:54 PM

Are you sure? I used the imagesfolder replacement and it got replaced with "https://vborg.vbsupport.ru/vbimages/"

Xenon 08-20-2003 02: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 03:07 PM

It was in showthread, im sure (but I originally posted from newreply)

Xenon 08-20-2003 04: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 04:12 PM

Well it was in the CODE tag and it wasnt in a quote either.

Xenon 08-20-2003 09: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 09:23 PM

Im sure it wasnt my made-up fantasy hehe;)

Well, here is the thread:
https://vborg.vbsupport.ru/showthrea...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 09: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 09:33 PM

Hmm, must be me then;)

Well glad to know you are fixing other issues:)

Xenon 08-20-2003 09: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 09: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 09:48 PM

fast eyes you have ;)


All times are GMT. The time now is 12:01 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02433 seconds
  • Memory Usage 1,780KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete