View Full Version : Howto urlencode variables?
Kwikms
07-14-2015, 12:05 PM
Couldnt find anything about this.
I want to urlencode a variable like {vb:raw thread.title} in postbit_legacy.
How can I do this?
I think {vb:urlencode thread.title} should work.
Kwikms
07-14-2015, 12:19 PM
This leads to "thread.title"
I am not sure if I need urlencode or htmlentities. I want a space to be %20 etc.
Hmm...I was going by what the manual said (and the example was {vb:urlencode variable}, so I thought a variable name would work there). But maybe try:
{vb:urlencode {vb:raw thread.title}}
Kwikms
07-14-2015, 03:10 PM
Hmm...I was going by what the manual said (and the example was {vb:urlencode variable}, so I thought a variable name would work there). But maybe try:
{vb:urlencode {vb.raw thread.title}}
Little typo there vb.raw -> vb:raw but it works. thanks :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.