Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 14 Jul 2015, 14:05
Kwikms Kwikms is offline
 
Join Date: Jul 2004
Question Howto urlencode variables?

Couldnt find anything about this.

I want to urlencode a variable like {vb:raw thread.title} in postbit_legacy.

How can I do this?
Reply With Quote
  #2  
Old 14 Jul 2015, 14:09
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
I think {vb:urlencode thread.title} should work.
Reply With Quote
  #3  
Old 14 Jul 2015, 14:19
Kwikms Kwikms is offline
 
Join Date: Jul 2004
This leads to "thread.title"

I am not sure if I need urlencode or htmlentities. I want a space to be %20 etc.
Reply With Quote
  #4  
Old 14 Jul 2015, 14:25
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
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.


Last edited by kh99; 14 Jul 2015 at 17:18. Reason: fixed typo
Reply With Quote
  #5  
Old 14 Jul 2015, 17:10
Kwikms Kwikms is offline
 
Join Date: Jul 2004
Originally Posted by kh99 View Post
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
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 12:44.

Layout Options | Width: Wide Color: