Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 06-17-2014, 04:54 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 130,382
Kyttias is on a distinguished road
Default

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);
And in template.tpl:
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}
And this displays the correct outcome! Yay!

However, using -
Code:
$this->assign("group",$mysidia->user->getusergroup());
Results in a blank white page.

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. It looked like it would display more than just a number, but information about the messages. I don't think I need that, but a number next to an envelope icon is floating in my head as a pleasant sight.

Also, thank you very much!

Last edited by Kyttias; 11-05-2014 at 02:11 PM.
Reply With Quote
 


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

Forum Jump

Similar Threads
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


All times are GMT -5. The time now is 02:06 AM.

Currently Active Users: 3569 (0 members and 3569 guests)
Threads: 4,081, Posts: 32,032, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636