![]() |
Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#2
|
||||
|
||||
![]()
+Bump plus more examples of possibilities:
(If using the $cash variable set in the above post!) Code:
{if $cash < 7777}User has more than 7777 currency!{/if} {if $cash > 7777}User has less than 7777 currency!{/if} PHP Code:
Code:
<a href="{$home}online">{$online}</a> Code:
{if $online > 50}More than 50 users online!{/if} {if $online < 10}Less than 10 users online!{/if} PHP Code:
And back into classes/class_template.php, you can set up messages to display at specific times of the day (server time - good for promo codes people can't cheat and use their computer's clock to get): PHP Code:
Keep it mind that you can infinitely combine if statements with Smarty in your template. So imagine something with a 20% chance of happening only if it is between noon and five and there are less than x amount of people online.
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it. |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Tips for theme? | Abronsyth | Templates and Themes | 6 | 01-03-2013 06:04 PM |
Any tips for writing a TOS? | Kesstryl | Feedback and Suggestions | 5 | 03-30-2012 06:37 PM |
Some Site Planning Tips | Tequila | Tutorials and Tips | 2 | 04-08-2011 09:17 AM |
Templates | CrystalShards | Suggestions and Feature Requests | 1 | 07-18-2009 12:48 PM |
templates | aroymart | Questions and Supports | 15 | 02-18-2009 01:46 PM |
What's New? |
What's Hot? |
What's Popular? |