vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=322378

[DRC] - Thread Starter Avatars
by Dr.CustUmz
15 Apr 2016 22:24

2 Attachment(s)
[DRC] - Thread Starter Avatars

Nominated for MOTM May 2016 BE SURE TO CAST YOUR VOTE!
http://www.vbulletin.org/forum/showthread.php?t=322496

If this wins, it means it has more interest than I thought. I will put it on high priority =)

Home Page:
http://dirtrif.com

Upon Downloading any DRC product you acknowledge and agree to abide by the following:
Products are designed for default vBulletin, downloads are as is and not gurenteed to work with your custom site.
You are permitted to alter the product code and images for your own personal use.
Under no circumstances is the code (original or modified) permitted to be redistributed.
Exceptions will only be made with written permission from Dirt RIF CustUmz.
All copyright notices must remain in the templates and are not to be modified.
Unless a One-Time or Universal Branding Free license is purchased. (contact me via PM untill the shop is complete)
If you have any concerns in regards to this, please contact me.

Information:
Shows thread starter avatars on thread listings. If your avatars are stored in the database (which vBulletin does by default) this will not add any additional queries, if you have moved your avatars into your file system this will add an additional query for fetching each avatar. Barely any hit to page load though =). Does not remove anything from your template, but does add icons for new post, hot thread, and closed thread that overlap the avatar in a stylish way.

Features:
- thread starter avatar
- hot thread icon
- new thread icon (that links to new post)
- locked thread icon

Planned:
- show last poster avatar as a mini icon on top of thread starter avatar (this will add queries though)
- options to enable disable things
- options for positions

Preview:

Avatars in the database with page load time:

Avatars in the Filesystem with page load time:

and just to be thorough, plugin disabled with page load time:
hardly even a hit =)


Thanks / Credits:
To MarkFL for his constant support, and help.
To Max Taxable for finding the file system bug

If you have any ideas to add don't be shy, and share your thoughts!


Changelog:
---------------------------------------------
v1.3
- vBAdvanced Support
- Plugins only active on specific pages
- Copyright only visible on pages avatars are active
- added T.O.S.

---------------------------------------------
v1.2
- added support for file system avatars in search results

---------------------------------------------
v1.1
- added support for avatars in the filesytem

---------------------------------------------
v1.0
- initial release

MarkFL 15 Apr 2016 23:10

Lookin' good, Ryan! :up:

I'll give this a go tonight on vB 3.8.9. :)

Dr.CustUmz 15 Apr 2016 23:41

i was going to remove thread status, and post icon columns and use a mini icon for every thread status (which is going to take me forever) but figured why not just release what i got now and move on to something else for now, and do an update later lol

Dr.CustUmz 15 Apr 2016 23:43

here's a broader screenshot (titles are not describing them anymore though lol)
https://www.vbulletin.org/forum/external/2016/04/30.png

MarkFL 16 Apr 2016 03:29

Okay, I installed this on my vB 3.8.9 dev site, and everything works as expected. Definitely a nice improvement. :)

Dr.CustUmz 16 Apr 2016 03:47

glad to here =) thanks for the feedback.

Max Taxable 16 Apr 2016 03:54

Hmm.... Avatars not rendering but also not 404.

Dr.CustUmz 16 Apr 2016 04:00

are your avatars in the database, or file system?

Max Taxable 16 Apr 2016 04:02

File system.

Max Taxable 16 Apr 2016 04:05

https://www.vbulletin.org/forum/external/2016/04/13.jpg

Dr.CustUmz 16 Apr 2016 04:07

ah that would be why, this pulls the avatar from image.php which I believe the image has to be in the database for that.

this is the exact code for the image src

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I will make a note of this in the description, and will see if I can fix it =)

Max Taxable 16 Apr 2016 04:11

Glad i could be helpful. Looks like a great little Mod, adds almost zero to pageload.

MarkFL 16 Apr 2016 04:23

I don't know if it works the same in vB 3 as in vB 4, but in vB 4, when I want to get a user's avatar from the file system, I use code in the following form:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

edit: I forgot, you will likely need this before the call to the fetch_avatar_url() function:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Dr.CustUmz 16 Apr 2016 04:49

Quote:

Originally Posted by MarkFL (Post 2569063)
I don't know if it works the same in vB 3 as in vB 4, but in vB 4, when I want to get a user's avatar from the file system, I use code in the following form:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

edit: I forgot, you will likely need this before the call to the fetch_avatar_url() function:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

well before seeing this, at least I was on the right track lol


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Dr.CustUmz 16 Apr 2016 05:20

1 Attachment(s)
what i ended up coming up with

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

but good news and bad news. this works but will cause an additional query per avatar on the page since it has to fetch it, with avatars in file system there is no way around this, unless...

food for thought (for me to return to lol)

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

so to keep with the products title, i can not in good faith release this as an update. What i can do though is release another version altogether =) that way both sides can be happy... I hope. but its past 1 am here

heres a quick fix for now, i will release the revised version when i wake up

THIS IS ONLY FOR AVATARS IN FILESYSTEM! and was intended to fix max's issues to be good enough for now

and does not work in search results till tomorrow, only forumdisplay as im doing it as a quick fix before bed. again i will work the rest out tomorrow


All times are GMT. The time now is 09:00.

Powered by vBulletin® Version 3.8.12
Copyright © 2019, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.