PDA

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?

kh99
07-14-2015, 12:09 PM
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.

kh99
07-14-2015, 12:25 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}}

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 :)