![]() |
#3
|
||||
|
||||
![]()
I've still yet to get it to work completely.
Let's start with what I've successfully done - In class_template.php's assignTemplateVars() function I've added: Code:
$mysidia = Registry::get("mysidia"); $this->assign("logged_in",$mysidia->user->isloggedin); $this->assign("username",$mysidia->user->username); $this->assign("cash",$mysidia->user->getcash()); $this->assign("currency",$mysidia->settings->cost); Code:
{if $logged_in} Welcome, <a href="{$home}profile/view/{$username}"><b>{$username}</b></a>! <br/> You have {$cash} <b>{$currency}</b>. {else} Please sign up or log in~! {/if} However, using - Code:
$this->assign("group",$mysidia->user->getusergroup()); ![]() I'm as of yet unsure how or if the messages work, but I'd like it to just display a number of unread messages a user has, and possibly 0 if there is none? I have no messages, so nothing appears. ![]() Also, thank you very much! Last edited by Kyttias; 11-05-2014 at 02:11 PM. |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Smarty Tips: Things you can do with Templates | Kyttias | Tutorials and Tips | 5 | 04-03-2015 10:53 AM |
Assigning array to smarty variables | IntoRain | Questions and Supports | 3 | 06-03-2014 02:06 PM |
Smarty errors and WAMPP | Kesstryl | Questions and Supports | 15 | 01-29-2014 09:07 PM |
Problem: smarty class 1.3.4 | draugluin | Questions and Supports | 8 | 11-15-2013 02:29 AM |
What's New? |
What's Hot? |
What's Popular? |