[MADE] Avatar next to quote
#1
This request has been filled. Thanks to frostschutz! <3

Download:
http://mods.mybb.com/view/quovatar

Screenshot of my forum (what it can look like with little styling applied) :
[Image: w7v5f.png]


If you need help styling it, you can contact me. Smile
Reply
#2
OMG, I would love to have something like this. I've never thought about it but it adds a whole new atmosphere to the board. I've been wondering what that special something about a lot of forums was Toungue
Reply
#3
Looks nice, would help identify members in a thread with lots of quotes.

I don't have a clue how to make it, but I would use it if it became available.
Reply
#4
This user has been denied support. This user has been denied support.
The quote tag only gives a username (which is unreliable) and a post id.

It could be done without extra queries for quoted posts which appear on the same page. As those posts already come with their users avatars by default.

For quotes from other pages or other threads, you'd have to query the database for the avatar. Without optimization that'd be one joined query per quote (mybb_posts table for the post's user id, mybb_users table for that user's avatar, if he has one).

It'll probably involve code changes, or monkey patching the post parser, as there is no direct hook for the quote parsing.

Nesting level would probably somehow have to be determined too, as it should probably stop displaying avatars if there is too much nesting, since the avatars take up too much space for that.

That's quite a lot of effort for a small image next to a quote.
Reply
#5
"it makes threads ~20% cooler" lol

Looks OK but I think I prefer without, or maybe reduce the avatar size to icon size.
[Image: 4A6rbCq.png]
Reply
#6
Whatever it takes, in my opinion it's worth it.
Pretty used to it and I really miss it, even if it's a minor thing - the little things count aswell.
My goal is to make MyBB more "awesome" (visually stunning, yet simple) than XenForo and I'm on a good way.
There are a few things I can't do with template edits though, this is one of them and I wouldn't feel like my goal is acomplished if I can't make this happen. Sad
Personally I wouldn't need the nested feature, since I don't like/use nested quotes anyway.

This opens the door for stunning designs, I found a nice example here: http://tympanus.net/Tutorials/ModernBloc...ndex3.html
Reply
#7
I'll try taking this one on, I've been looking for another plugin to work on Toungue
I'll let you know if I achieve anything ^_^.
Thanks, Polarbear541
Reply
#8
(2012-12-21, 02:05 PM)Polarbear541 Wrote: I'll try taking this one on, I've been looking for another plugin to work on Toungue
I'll let you know if I achieve anything ^_^.

Yay! Good luck. Smile
Reply
#9
This user has been denied support. This user has been denied support.
Here's the ultra ugly version which wastes one query per quote.

Polarbear541 to the rescue! Toungue


Attached Files Thumbnail(s)
   
Reply
#10
couldnt you set placeholders in the template and "cache" the quoted pids during build_postbit and at the end query the avatars and loop through them replacing each avatar?

in postbit use {$quovatar} and for each postbit, replace that with <quovatar_PID> (like navigation, but change PID with the actual PID.

the during pre_output_page, string replace all the <quovatar_X> with the avatar image code you queried all together. for those without avatars, you replace with empty string or a default avatar.

one query at the end and a decent loop is better than a bunch of queries.
Lost interest, sold my sites, will browse here once in a while. It's been fun.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)