Author Topic: Formula using php rand() and tgpx template variables  (Read 590 times)

0 Members and 1 Guest are viewing this topic.

Offline scully

  • Newbie
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Formula using php rand() and tgpx template variables
« on: January 29, 2014, 05:40:02 PM »
Any way to do this:

Code: [Select]
{assign var=$random code=(((10 + (RAND() * 20))*{$gallery.clicks|htmlspecialchars})*{$gallery.build_counter|htmlspecialchars}+1)}
tgpx doesn't seem to have the code element to assign statements. Basically I'm wanting to print a figure derived from a php random number (as doesn't seem to be tgpx rand() function) and then multiply it by the various tgpx template variables listed.


Unofficial JMB Support Forums

Formula using php rand() and tgpx template variables
« on: January 29, 2014, 05:40:02 PM »


Tags:
 

Related Topics

  Subject / Started by Replies Last post
0 Replies
1372 Views
Last post August 02, 2013, 12:12:24 AM
by Chad
0 Replies
1381 Views
Last post August 02, 2013, 12:12:24 AM
by Chad
0 Replies
1128 Views
Last post August 02, 2013, 12:12:24 AM
by Chad
1 Replies
1223 Views
Last post September 11, 2013, 04:44:36 PM
by a4evermedia
2 Replies
1190 Views
Last post November 11, 2013, 02:06:57 PM
by Chad