Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 04 Nov 2020, 20:07
Pitman's Avatar
Pitman Pitman is offline
 
Join Date: Dec 2001
Setting a variable for use within a template

​I'm learning a little bit about {vb:set ...} and {vb:raw ... } but I am not quite sure how to accomplish using that to set a custom variable to simple a random number.

I'm trying to do exactly this:


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


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

Then use the random number inside the same template:

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

I've saw there is a php function for {vb:...}, but it doesn't look like I would be able to accomplish that using that. Is there an easy way to go about doing this?
Reply With Quote
  #2  
Old 05 Nov 2020, 16:59
yilmaz's Avatar
yilmaz yilmaz is online now
 
Join Date: Sep 2004
https://www.vbulletin.org/forum/showthread.php?t=328332
Reply With Quote
  #3  
Old 06 Nov 2020, 12:48
delicjous's Avatar
delicjous delicjous is offline
 
Join Date: Nov 2014
You should better use this...https://vbulletin.org/forum/showthread.php?t=328335
__________________
vBulletin-Forum.de closed!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 2 (0 members and 2 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 22:08.

Layout Options | Width: Wide Color: