vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=319470

Howto urlencode variables?
by Kwikms
14 Jul 2015 14:05

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 14 Jul 2015 14:09

I think {vb:urlencode thread.title} should work.

Kwikms 14 Jul 2015 14:19

This leads to "thread.title"

I am not sure if I need urlencode or htmlentities. I want a space to be %20 etc.

kh99 14 Jul 2015 14:25

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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Kwikms 14 Jul 2015 17:10

Quote:

Originally Posted by kh99 (Post 2550196)
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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Little typo there vb.raw -> vb:raw but it works. thanks :)


All times are GMT. The time now is 22:34.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.