The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Simple Request: Replace Underscores (_) with a space ' ' in thread titles
I believe there will be a simple plugin to create for this, but i'm just not sure how
can someone please make this or tell me how to do it? I know this should be able to be done using str_replace, i've tried adding a plugin with PHP Code:
any help please? thnx, Iain |
#2
|
||||
|
||||
anyone... please
|
#3
|
||||
|
||||
Change your plugin to use the hook "threadbit_display" and it should work.
You may want to consider modifying the title the user submits upon saving to database... |
#4
|
||||
|
||||
Quote:
PHP Code:
I'm quite a n00b with vBulletin coding so i'm not quite sure how i'd be able to go about "modifying the title the user submits upon saving to database"... but i'm sure i'd get it if you (or anyone else) were to point me in the direction Iain |
#5
|
||||
|
||||
Always leave the quotes around title, otherwise if "title" is a defined constant, you will run into some problems...
Anyway, use this instead: PHP Code:
|
#6
|
||||
|
||||
Quote:
that was to be in the threadbit_display hook? cos that's where i have it ... any other ideas? thnx, Iain |
#7
|
||||
|
||||
It works fine for me.
Where are you testing it from? That code will only alter it when viewing searches, forumdisplay, etc... |
#8
|
||||
|
||||
Quote:
i'll try again, i was testing it in forumdisplay... EDIT: it wasn't working becuase you had single qutes instead of double quotes, this is the code i use... PHP Code:
thank you SirAdrian |
#9
|
||||
|
||||
Single quotes don't matter. You messed something else up.
|
#10
|
||||
|
||||
Quote:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|