The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
[DRC] - Thread Starter Avatars Details »» | ||||||||||||||||||||||||
[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 Download Now
Screenshots
Supporters / CoAuthors Show Your Support
|
Благодарность от: | ||
lange |
Comments |
#12
|
||||
|
||||
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 |
#13
|
||||
|
||||
Glad i could be helpful. Looks like a great little Mod, adds almost zero to pageload.
|
#14
|
||||
|
||||
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:
|
#15
|
||||
|
||||
Quote:
Code:
require_once('./includes/functions_user.php'); $userid = $thread['postuserid']; $avatarurl = fetch_avatar_url($userid); |
#16
|
||||
|
||||
what i ended up coming up with
Code:
require_once(DIR . '/includes/functions_user.php'); $drcav = fetch_avatar_url($thread[postuserid]); if (!$drcav) { $drcav = $stylevar['imgdir_misc'] . '/unknown.gif'; } else { $drcav = $vbulletin->options['bburl'] . '/' . $drcav[0]; } food for thought (for me to return to lol) Code:
you take $vboptions[SomeFolderNameOption]/avatar$thread[postuserid]_1.gif but how to get that pesky revision number... hmm $array['avatarrevision'] 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 |
#17
|
||||
|
||||
You can detect if the avatars are in the file system with:
PHP Code:
|
#18
|
||||
|
||||
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{ USE QUERIES } ELSE { NO QUERIES } |
#19
|
||||
|
||||
Datastore? Possible to use that?
|
#20
|
||||
|
||||
as they say in developing 'anything is possible' lol, but beyond my skillset, this is =P
can you give me an example? a product that uses this method, a way vbulletin uses it? im looking into it now too |
#21
|
||||
|
||||
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 |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|