![]() |
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 |
All times are GMT. The time now is 01:34 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:
|