change code
« on: April 03, 2015, 12:20:43 PM »
Hello, I am trying to change the code

<td align="right">
         {$online_users_count}
      </td>

to

<td align="right">
         {echo(rand(10,100));}
      </td>

but it does not work. what am I missing?

Thanks,
Dan

Re: change code
« Reply #1 on: April 03, 2015, 12:35:30 PM »
Try
Code: [Select]
<td align="right">
      {php}
         echo rand(10,100);
      {/php}
      </td>

or

Code: [Select]
<td align="right">
     {10|rand:100}
      </td>
« Last Edit: April 03, 2015, 12:39:35 PM by dave841 »

*

Pharg

  • *****
  • 2,071
  • osDate Version: osDate Evo v1.0
Re: change code
« Reply #2 on: April 03, 2015, 09:45:15 PM »
Hello, I am trying to change the code

<td align="right">
         {$online_users_count}
      </td>

to

<td align="right">
         {echo(rand(10,100));}
      </td>

but it does not work. what am I missing?

Thanks,
Dan
Hi Dan,

The {$online_users_count} is Smart 2 tag code, you can learn more here http://www.smarty.net
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.0 | PHP: 5.3.42 & PHP: 5.6.18 | MySQL: 5.5.35

Re: change code
« Reply #3 on: April 03, 2015, 10:11:03 PM »
Thank you Dave.

<td align="right">
     {10|rand:100}
      </td>

worked like a charm.

and thank you Pharg, I will do some reading up.

Dan