![]() |
Forum Home and Forumdisplay avatars (like XF)
1 Attachment(s)
yes, i know =)
exists similar mods, but they produce mount of SQL queries on forum home page and forumdisplay page i'm tried to create one product, that has no additional queries and save server resources debug from my test forum (vbkerk.com) No hack ==== Homepage Page Generation 0.02608 seconds Memory Usage 1,558KB Queries Executed 10 Forumdisplay (Has threads) Page Generation 0.03031 seconds Memory Usage 1,878KB Queries Executed 14 Forumdisplay (No threads - Category) Page Generation 0.02724 seconds Memory Usage 1,832KB Queries Executed 8 Hack installed ==== Homepage Page Generation 0.02612 seconds Memory Usage 1,600KB Queries Executed 10 Forumdisplay (Has threads) Page Generation 0.03360 seconds Memory Usage 1,912KB Queries Executed 14 Forumdisplay (No threads - Category) Page Generation 0.02957 seconds Memory Usage 1,855KB Queries Executed 8 Important Note! avatar files must be in the File System! Not in Data Base! and users used custom avatars, not uploaded by admin ==== I will no support this product I don't know, how forum will work with this mod and mods, that used hooks: cache_ordered_forums forumdisplay_query becouse, if you use hook cache_ordered_forums, you can not add fields, unless unsetting one variable ($counter_select) before my english is bad, блин =) live DEMO |
I may give this a go later, thanks for sharing your work :)
|
tagged for now thanks, nice demo "Sorry. The administrator has banned your IP address" lol.
|
Quote:
ok, I removed all banned IP's |
Icon and Avatar to Avatar and Icon its better ;-)
|
Great mod! : D
|
1 Attachment(s)
does not work in new results or search :confused:
|
Quote:
look at thread title: Forum Home and Forumdisplay avatars ok, if you want to add this feature, add new module in: 1. Plugins & Products Add New Plugin => === Product = XFAvatar Hook Location = search_results_query_threads Title = XFAvatar - search_results_query_threads Execution Order = 5 (default) Plugin PHP Code: PHP Code:
Create new file called search_results_query_threads.php put php code in this file: PHP Code:
https://vborg.vbsupport.ru/external/2011/09/62.png |
Amazing!!!
Nominated, I love this mod! Thanks kotkerk!!! |
1 Attachment(s)
Sorry to bother you again.
It seems that some users without avatar avatars are not displayed correctly, there is no apparent reason for this failure. The problem is that the image looks in the folder but they are users without avatars avatar. The image should have this route images/misc/unknown.gif but somehow find a route in the folder customavatars. For this error they must have at least 10 new messages in 5 for example you may not see the error :o example: http://www.foroartesmarciales.com/se...hp?do=getdaily I wonder if you could review the code for a solution. Thank you very much for your patience and apologize for any inconvenience. PL: apologize for my English |
for example, this file does not exists in directory customavatars
_http://www.foroartesmarciales.com/customavatars/avatar18354_2.gif "Page not found" == check it on your server =) |
Quote:
The mod should not seek that route (avatar_userID_2), the mod should look images/misc/unknown.gif Example: http://www.foroartesmarciales.com/se...hp?do=getdaily the error is random, sometimes it is about other users other (always without avatar). That happens in every forum I installed the hack (4 forums). Thanks for check! |
1 Attachment(s)
Another example of error in the image
These errors happen only in new messages. Best Regards!! : ) |
yep... =)
i confirm, it's bug... but give me some time, i'll fix this... |
Thanks!!! : D
|
Artes_Marciales,
download attachment from first post reupload file search_results_query_threads.php from archive to your server code of sql query in one file (search_results_query_threads.php) rewrited i think this update will fix the problem =) on my local test forum i was not detect this problem |
Now works fine! : D
Great Mod! THANKS!!!! |
Please add an option to place the avatar in the position where the thread icons are now. This is how XenForo does it.
Please add the option / setting to not display the avatar of the last poster. XenForo does not display it either and I think that is best. * tagged for future use. |
Alfa1, this is a simple mod, writen out of hours =)
if u want to not display last poster avatar, just remove the code from template it's simple like bolacha "Maria" :D in case to place avatar in the position of thread icons, move the code |
Thanks, this works great!
I did have one problem though. I use another mod named Geek Article Review (gar), and it causes errors with this mod. Specifically: MySQL Error : Unknown column 'ga.synopsis' in 'field list' Is the an easy way to keep this mod from running on forums where that plugin is active? Something like Code:
if($vbulletin->userinfo['userid'] AND in_coventry($vbulletin->userinfo['userid'], true) OR is forum 4,5,6 ) |
I figured out my own question if anyone wants to know.
In plugin manager - xfavatar - forumdisplay_query replace the plugin php code with this, changing the forumids to the forums you don't want this plugin in. Code:
|
I'm very interested in adding this. Is the avatar size adjustable? I'd like to somehow find a way for the text to all be the right of the avatar as well.
|
Quote:
HTML Code:
width="30" height="30" |
One more question and I fear it's impossible to do easily.
I would like to have all the widths and heights the same. But many of the avatars are of different proportions which means it is stretched or compressed. Is there any way to add code which crops the image? |
TitanJeff,
you can remove height="" from template but in this case avatars will shows ugly on forum =) == crop images code need to add to upload (img) vbulletin files i.e. before showing avatar on the forum |
you're doing good mods :)
I like this one also. :) |
1 Attachment(s)
Not Working fully! In my LAST POST. vBulletin 3.8.6 upgraded to 3.8.7
Sorry I am not home and cant login from other places, So am with my moderator,and thiss is how his username looks like: WizardBoy" /> You can see the EXTRA " /> at the end.. So I removed this 2 times code: Code:
alt="$lastpostinfo[lastposter]" /> So I added 2 times: Code:
align="left" Code:
class="inlineimg" Thank you was nicely made! |
it does not work in vBadvanced. Can you help?
|
Quote:
|
1 Attachment(s)
Here is the module. Can you help?
|
Quote:
|
- sorry for bumping -
How to make it work in tag search? works fine in both normal thread/post searches tho :/ |
1 Attachment(s)
hello
not work withe me |
Great product,
is there anyway to add avatars in tags page? Thnaks. |
I'd love to have it displyaing avatars in the gallery too.
|
Hi
I really want like this. I don't want User Avatar but the Photo which is in the Thread want to show in the Home |
All times are GMT. The time now is 06:27 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:
|