The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Properly Encoding URL that contain spaces
Hello
I'm trying to figure out a way to encode url's that contain spaces. Normally I'd manually type %20 as needed, however what I'm doing is part of a form that creates a thread. Allow me to explain. A user fills out a form with their country, the form is submitted and the variable is pulled for the country to show the flag. The code is something like this: Code:
[img]http://test.com/images/flags/{qo_01}.png[/img] If the country is more than one word then problems start to happen. The resulting output code is something like this. Code:
[img][url]http://test.com/images/flags/United[/url] States It should be: Code:
[img]http://test.com/images/flags/United%20States.png[/img] The variable {qo_01} needs to have any spaces substituted with the %20 characters. I know how to do this in php, but is there some inline <vb: xx> function that can help? I've thought about BBCode for it too, but haven't tried anything. Thanks in advance! Van |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|