Session variables inside templates?

Discussion forum for MOD Writers regarding MOD Development.
Registered User
Posts: 107
Joined: Thu Sep 25, 2003 2:13 am

Session variables inside templates?

Post by ecwpa »

The idea is to pull the username and avatar from the user session to put it on one side of the quick reply box, hoping it would look more personal and encouraging people to post a reply with that.

But i don't want to use pure php inside the template, since people here suggest to avoid it.

So, the question is: there is a way to user session variables inside templates without using php?
carefull, not english speaker native here
User avatar
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Re: Session variables inside templates?

Post by igorw »

It depends which ones you want. Things like avatar are however not included. You can look at the $template->assign_vars() call in includes/functions.php within the page_header() function.
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three

Return to “[3.0.x] MOD Writers Discussion”