The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
Just wondering if it is possible to create a plug-in that will 'replace' certain words in any particular vB php file with one of my choice wherever any instances of the word appears?
For eg In showthread.php the word 'thread' is used many times, so could some code as a vb plugin replace each instance in the file to 'mythread' for me? is this possible or have I gone :bunny: ? |
#2
|
|||
|
|||
![]()
This is exactly what the 'Phrases' section in the Admin CP is for. Every word / phrase in vB is a variable run from the Phrases database.
|
#3
|
||||
|
||||
![]()
Phrases don't effect the actual PHP files as far as I know - or do you know different?
|
#4
|
|||
|
|||
![]()
I would just take it to MS Word and click Edit>Replace.
|
#5
|
||||
|
||||
![]()
I don't want to hack the files tho (prefer plug-in) and I want to use conditionals so the 'word' changes in different conditions...
|
#6
|
|||
|
|||
![]()
I would just suggest editing the file itself. It's a lot cleaner and simpler.
|
#7
|
|||
|
|||
![]()
...if you have to ask...
just kidding... |
#8
|
||||
|
||||
![]()
I think you have gone crazy - if you edit every occurance of 'thread' in showthread.php you would end up with a broken forum, unless of course you plan to start renaming tables and fields in mysql as well. I don't really think you understand what you are asking.
|
#9
|
||||
|
||||
![]()
I only used thread as an example
![]() I thought there was str replace or sommin :-/ Yeah it was a crazy idea - I'll try and find a work around... thanks for the replies ![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|