Anyone know how to display a users name and avatar if they have one are are logged in on a template,
eg.
Welcome username,
--Avatar Here-
Your last visit was:
This would be for a mod i am writing, the "TOP PANEL MOD"
25% COMPLETE.
Aden wrote:Anyone know how to display a users name and avatar if they have one are are logged in on a template,
eg.
Welcome username,
--Avatar Here-
Your last visit was:
This would be for a mod i am writing, the "TOP PANEL MOD"
25% COMPLETE.

EXreaction wrote:You have to do an SQL query to get that info from the DB.
jojobarjo32 wrote:EXreaction wrote:You have to do an SQL query to get that info from the DB.
Er... why that ?
All user's informations are stored in the $user->data array
You only need to add (if it is not already there) template variables (maybe in page_header function to have the variables in every pages) to display them in the template

Domos wrote:There isn't Xor

xor can easily be replaced by a combination of other logical expressions
luvme2tms wrote:a XOR b = (a OR b) AND (NOT(a AND b))
Or, alternatively, you can make every logical operation by using solely NAND
Nicholas the Italian wrote:Or, alternatively, you can make every logical operation by using solely NAND
Or NOR!
Return to [3.0/Olympus] Styling
Users browsing this forum: No registered users and 5 guests