The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
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!
|
![]() |
|
|