The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Insert hyphens into spaces in threadtitle?
Hi,
I am trying to set up a feedback script which displays a feedback link at the bottom of a thread. I want it to be a hyperlink to make a new post in a different forum category, but to use the title of the orignal post... so I use the feedback script released here in the hacks which is called by the following way in the PHP parse box in styles: PHP Code:
Simple except when the forum title has spaces in it! So how would I replace the spaces in $thread[title] to hyphens or similar so the script would not fail??? Any simple ideas? Many thanks, Kim |
#2
|
|||
|
|||
Instead, try using http://www.php.net/urlencode to accomodate for all weird characters.
|
#3
|
|||
|
|||
Thanks - that worked surpriingly well!
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|