Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 2220

[3.3.x] Styles Support & Discussion • Re: Quick Avatar (page)

$
0
0
Sure. All it means is adding another anchor tag to the markup, along with a template variable for current user id, then tweaking the presentation to suit your preferences.

One thing to be aware of is that you don't want an overlapping anchor to create mis-click issues with the anchor that wraps the avatar. It'd be best if there was some clarity for users.

Anyway: you need a template variable to start with. This can be done with a small core file hack (I run that myself, in functions.php)...

Code:

'SITE_LOGO_IMG'=> $user->img('site_logo'),//============================================//Custom template variables, for my own use.//============================================'CURRENT_USER_GB'=> $user->data['user_id'],));
...or it can be done via Twig in the template (messier, but just as effective). This is so the link will only show to people who are viewing their own posts (having it display to everyone would be counterproductive).

Apart from that it's just add the anchor, which I assume you can do yourself, then play with eye candy.

Statistics: Posted by Gumboots — Wed Apr 09, 2025 6:42 pm



Viewing all articles
Browse latest Browse all 2220

Trending Articles