![]() |
[DRC] - Thread Starter Avatars
1 Attachment(s)
[DRC] - Thread Starter Avatars Nominated for MOTM May 2016 BE SURE TO CAST YOUR VOTE! https://vborg.vbsupport.ru/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 |
Lookin' good, Ryan! :up:
I'll give this a go tonight on vB 3.8.9. :) |
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
|
here's a broader screenshot (titles are not describing them anymore though lol)
https://vborg.vbsupport.ru/external/2016/04/30.png |
Okay, I installed this on my vB 3.8.9 dev site, and everything works as expected. Definitely a nice improvement. :)
|
glad to here =) thanks for the feedback.
|
Hmm.... Avatars not rendering but also not 404.
|
are your avatars in the database, or file system?
|
File system.
|
|
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 Code:
image.php?u=$thread[postuserid]&type=thumb |
Glad i could be helpful. Looks like a great little Mod, adds almost zero to pageload.
|
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:
PHP Code:
PHP Code:
|
Quote:
Code:
require_once('./includes/functions_user.php'); |
1 Attachment(s)
what i ended up coming up with
Code:
require_once(DIR . '/includes/functions_user.php'); food for thought (for me to return to lol) Code:
you take $vboptions[SomeFolderNameOption]/avatar$thread[postuserid]_1.gif 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 |
You can detect if the avatars are in the file system with:
PHP Code:
|
Quote:
Code:
$vboptions[avatarurl_2]/avatar$thread[postuserid]_1.gif I guess for now i can combine it into one product using, ill just inform that if your avatars on your file system it will create a query for avatar loaded. Code:
if $vbulletin->options['usefileavatar'] ==1{ |
Datastore? Possible to use that?
|
Quote:
can you give me an example? a product that uses this method, a way vbulletin uses it? im looking into it now too :D |
it doesnt even touch the page load whether you have the additional queries or not though (at least from what Ive seen). all the queries mean, is it's asking the database for more information. on some products, queries matter, but from the testing ive put on my crappy little server sitting next to me i have not noticed any stress at all =) and its just a little ubuntu server i made from old pc parts, so if your site is on a real server youll have no issues =)
found a good article, but this may have to wait =) https://vborg.vbsupport.ru/showthread.php?t=110628 |
Quote:
I only mentioned the Datastore as a possible solution for some of the coding issues you're getting. But really, you're doing just fine the way it is. Can we get this for search.php now too? |
oh yeah forgot had to add the other pages for the file system side.
what other pages other than search would this need to be activated?... i cant think of any others |
Pretty sure it's just going to be forumdisplay and search.
|
*update* Added Support for search result avatars if files are in the file system. - thanks max
if your avatars are not in the file system this feature already exists |
thank you ryan
can you make last poster avatar too? |
already working on it =) and more mini icons =)
|
Quote:
|
I am, just going to take a while got to photoshop every post status icon, then create each combination in css. just got done adding vbadvanced support, ill probably hold off on the release though since no one has requested that lol.
|
can I get some feedback on this approach
https://vborg.vbsupport.ru/external/2016/04/27.png https://vborg.vbsupport.ru/external/2016/04/28.png |
very nice
|
Quote:
Quote:
|
got another one for you guys, if you noticed, the avatars make the height of the table row a little taller on each post. To not effect the row height should i shrink the avatars/icons?
here is a close up (the top post) https://vborg.vbsupport.ru/external/2016/04/25.png here it is again normal view https://vborg.vbsupport.ru/external/2016/04/26.png this does make the mini icons harder to see, but it wont effect the row height this way |
Maybe not quite that small - think of fully responsive mobile styles like I have.
|
*UPDATE* v1.3
- vBAdvanced Support - Plugins only active on specific pages - Copyright only visible on pages avatars are active - added T.O.S. |
*nominated for MOTM May 2016, the more people that participate, the better us developers feel =)
|
This is EXACTLY what I've been searching for, but for the vBulletin 4 version.
Will this work on vb4? If not, can you make this to work for vb4? Please... please... I beg you! |
Quote:
Try this - https://vborg.vbsupport.ru/showthread.php?t=271540 |
remember that please add this plugin: search_results_threadbit
PHP Code:
|
Is there any way to make this work only on certain styles? I dont want it active on our mobile themes.
|
Quote:
|
All times are GMT. The time now is 10:29 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|