The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Just like in the topic, what do I need to send a query to the database to change already existing posts in [CODE] (capitalized) in the tags [code] (written with a little)? Since the modification of the downloaded code markup to cover up for not logged users, while the code is not visible to everyone.
|
#2
|
|||
|
|||
![]()
I think something like:
Code:
UPDATE post SET pagetext=REPLACE(pagetext, '[_CODE]', '[_code]') WHERE pagetext LIKE '%[_CODE]%' I tried this on my test site, but I'm not an expert in SQL or anything really so I would highly recommend backing up your database first. |
#3
|
|||
|
|||
![]()
It's not working...
![]() |
#4
|
|||
|
|||
![]()
Did you remove the underscores and add your table prefix?
If you did then I don't know, I tried it and it worked for me. I did have an issue where it didn't show up right away, I think because of post caching. Also, you would have to run a second query to change the [/code] tags but technically you didn't ask about that. ![]() |
#5
|
|||
|
|||
![]()
Oh, yes, thanks that's working!
And one more question: Where can I change option: if I click sharp/mark it will display [*code] not [*CODE] as it is by design? Thank you! |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|