I'm not sure if this is too specific but if I wanted to display user's avatar let say in a bar on the top, I need to alter a lot of files just to do that.
So, I'm wondering if its a reasonable request to make it a global variable just like username and a others.
Edit: I wasn't clear enough, here's what I mean:
Basically there're 4 very specific places where avatars are available: UCP, profiles, memberlist and post rows. What I want is access to the current logged in user's avatar everywhere in order to make a visual connection with users and their personas, it's also easier to let them know they're actually logged in and its also a possitive way to invite them to participate
That would be overall_header
Quick reply.
These are just two examples, If I wanted to do just that I would need to alter php files. A LOT of them.
If I want to welcome users with their name and avatar on forum index, then I have to modify even more.
[RFC] Global template variable for user avatar
[RFC] Global template variable for user avatar
Last edited by ecwpa on Sun Apr 22, 2012 10:34 am, edited 1 time in total.
Slightly better English than it was in 2005, still improving
Re: [RFC] Global template variable for user avatar
Sounds too simple for an RFC... Please use examples, show what's behind what you want.
With the info you gave I'm unable to comment...
With the info you gave I'm unable to comment...
Re: [RFC] Global template variable for user avatar
Edited: See edit in original post
Last edited by ecwpa on Sun Apr 22, 2012 10:35 am, edited 1 time in total.
Slightly better English than it was in 2005, still improving
- callumacrae
- Former Team Member
- Posts: 1046
- Joined: Tue Apr 27, 2010 9:37 am
- Location: England
- Contact:
Re: [RFC] Global template variable for user avatar
+1
Formerly known as Unknown Bliss
No unsolicited PMs please except for quotes.psoTFX wrote: I went with Olympus because as I said to the teams ... "It's been one hell of a hill to climb"
Re: [RFC] Global template variable for user avatar
Please edit your first post with a proper explanation of what you are proposing, so one doesn't have to read the discussion to understand your RFC.
On subject: Yes I think we should absolutely add this as well as the user rank, we should probably just assign all of the user data to the template since we already have it. (new template feature to access array elements?)
On subject: Yes I think we should absolutely add this as well as the user rank, we should probably just assign all of the user data to the template since we already have it. (new template feature to access array elements?)
- callumacrae
- Former Team Member
- Posts: 1046
- Joined: Tue Apr 27, 2010 9:37 am
- Location: England
- Contact:
Re: [RFC] Global template variable for user avatar
{user.avatar}
is a nice syntax.Re: [RFC] Global template variable for user avatar
Done.naderman wrote:Please edit your first post with a proper explanation of what you are proposing, so one doesn't have to read the discussion to understand your RFC.
On subject: Yes I think we should absolutely add this as well as the user rank, we should probably just assign all of the user data to the template since we already have it. (new template feature to access array elements?)
Slightly better English than it was in 2005, still improving