https://www.icyphoenix.com/viewtopic.php?f=36&t=8671&p=56670#p56670
-----------------------------------
mort
Fri 07 Sep, 2012 08:38

Re: Need Help Adding Link Variables
-----------------------------------
No,

You need to have a function that queries the database for the info, then you have to add vars to the queries, then you need to pass those vars to the template like this for example.

[code linenumbers=false]$template->assign_vars(array(
'TOTAL_USERS' => sprintf($l_total_user_s, $total_users), 
'NEWEST_USER' => sprintf($lang['Newest_user'], '', $newest_user, ''), 
'TOTAL_POSTS' => sprintf($l_total_post_s, $total_posts), 
'TOTAL_TOPICS' => sprintf($lang['total_topics'], $total_topics),
)
);[/code]

Then in your template you would have [b]{TOTAL_USERS}[/b] to pass the [b]$total_users[/b] query to the front-end etc.  :mryellow: 

Welcome to phpBB code?  :? 

And by the way, it's not something I bother with much any more [i](since Icy Phoenix has changed so dramatically from the last version and I don't want you to think I'm ignoring you)[/i], so you'll have to wait for an Icy Phoenix fanatic to assist you further.


