vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Mini Mods - Last Poster Avatar (https://vborg.vbsupport.ru/showthread.php?t=275406)

paulket 10-15-2012 05:42 PM

Quote:

Originally Posted by RedTurtle (Post 2368436)
This mod seems awesome but it's unfortunate that it doesn't work with sub forums. :(

The mod author hasn't posted in this thread for about 7 months now. I realize he must have a lot of other things to attend to but I'm wondering, is this plugin still supported?

+1. Hoping there will be an update that fixes the issue with sub forums... but no post by the creator of this mod for such a long time doesn't look good.

Disco_Stu 10-18-2012 01:55 AM

Seems like a very minor change to make this work for subforms but it's really up to the developer to release a change

paulket 10-18-2012 08:50 PM

I have absolutely no idea why but now I can see the last post avatar with my sub forums.

Impromptu 10-28-2012 03:57 AM

Quote:

Originally Posted by kylek (Post 2291901)
Disabling it for now until the sub forum problem can be fixed, getting too many members complaining that someone elses avatar is showing as theirs. Otherwise this is a great feature. Any chance for a temporary fix on this in the meantime?

Quote:

Originally Posted by New Joe (Post 2292953)
Same with me, hope it can be fixed

I have this issues too, ie 'someone elses avatar is showing as theirs'

Bit of a shame since a great mod

flash84 10-29-2012 07:52 AM

Excellent mod. It's working perfectly on VB4.2

Harpo 11-02-2012 12:01 AM

Quote:

Originally Posted by flash84 (Post 2376766)
Excellent mod. It's working perfectly on VB4.2

As long as you don't have sub forums. sure.

Uninstalled.

L0pht 11-23-2012 06:13 AM

can not see the bottom of this add-on changes in the forums?

Adam H 01-17-2013 12:29 PM

Anyone else had any problems with this mod conflicting with :

https://vborg.vbsupport.ru/showthread.php?t=271540

On the forum display something is conflicting which makes avatars on some users not show up. This is on the forum display only and not forum home .

When i disable "Hook Threadbit Query Fields & Joins" in this mods plugins everything goes back to normal .

aryung 01-29-2013 08:47 PM

was trying to add a random avatar for no avatar users not sure how i can achieve this adding a nicely hook into this one

for this i edited "functions_user.php"
original
PHP Code:

    // final case: didn't get an avatar, so use the fake one
    
if (empty($userinfo['avatarurl']) AND $returnfakeavatar AND $vbulletin->options['avatarenabled'])
    { 
        
$userinfo['avatarurl'] = vB_Template_Runtime::fetchStyleVar('imgdir_misc') . '/unknown.gif';
    } 

Here is my eidt
PHP Code:

if (empty($userinfo['avatarurl']) AND $returnfakeavatar AND $vbulletin->options['avatarenabled'])
    {
  
$newavatar rand(1,90);
  
$userinfo['avatarurl'] = 'images/avatars/' .$newavatar".jpg"

(This assigns a random image from 1.jpg to 90.jpg)

can you help me please how can a do this under a hook instead of editing source file

Nirjonadda 01-30-2013 04:23 PM

Database error in vBulletin 4.1.10:

Invalid SQL:

SELECT
IF(votenum >= 1, votenum, 0) AS votenum,
IF(votenum >= 1 AND votenum > 0, votetotal / votenum, 0) AS voteavg,
post.pagetext AS preview,thread.firstpostid, post.pagetext AS thumb,
thread.threadid, thread.title AS threadtitle, thread.forumid, thread.pollid, thread.open, thread.postusername, thread.postuserid, thread.iconid AS threadiconid,
thread.dateline, thread.notes, thread.visible, thread.sticky, thread.votetotal, thread.attach, thread.lastpost, thread.lastposter, thread.lastposterid, thread.lastpostid, thread.replycount, IF(thread.views<=thread.replycount, thread.replycount+1, thread.views) AS views, thread.strike, thread.color,
thread.prefixid, thread.taglist, thread.hiddencount, thread.deletedcount,
user.usergroupid, user.homepage, user.options AS useroptions, IF(userlist.friend = 'yes', 1, 0) AS isfriend,
user.lastactivity, user.lastvisit, IF(user.options & 512, 1, 0) AS invisible

, deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason
, threadread.readtime AS threadread
, threadredirect.expires
, user.market_username_color AS last_color,
user.market_username_glow AS last_glow, thread.LAM_BanFromThread, post.pagetext AS previewhide, bop_ugroup.opentag as bop5_opentags, bop_ugroup.closetag AS bop5_closetags , thread.bop_global ,IF(customavatar.userid, 1, 0) AS useavatar, uposter.userid AS useravatarid, uposter.avatarrevision
, user.avatarrevision AS avatarrevision, thread.lastposterid AS userid, avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar, customavatar.dateline AS avatardateline,customavatar.width AS avwidth,customavatar.height AS avheight
FROM vbthread AS thread
LEFT JOIN vbuser AS user ON (user.userid = thread.lastposterid)
LEFT JOIN vbuserlist AS userlist ON (userlist.relationid = user.userid AND userlist.type = 'buddy' AND userlist.userid = 3)
LEFT JOIN vbdeletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND deletionlog.type = 'thread')

LEFT JOIN vbthreadread AS threadread ON (threadread.threadid = thread.threadid AND threadread.userid = 3)
LEFT JOIN vbpost AS post ON(post.postid = thread.firstpostid)

LEFT JOIN vbthreadredirect AS threadredirect ON(thread.open = 10 AND thread.threadid = threadredirect.threadid)
LEFT JOIN vbuser AS bop_user ON (thread.postuserid = bop_user.userid) LEFT JOIN vbusergroup AS bop_ugroup ON (bop_user.usergroupid = bop_ugroup.usergroupid)
LEFT JOIN vbuser AS uposter ON (uposter.userid = thread.postuserid)
LEFT JOIN vbcustomavatar AS customavatar ON (customavatar.userid = uposter.userid)
LEFT JOIN vbavatar AS avatar ON(avatar.avatarid = user.avatarid) LEFT JOIN vbcustomavatar AS customavatar ON(customavatar.userid = user.userid)
WHERE thread.threadid IN (0,123421,164035,163423,163416,162902,163027,16340 9,162431,162433,162909,164006, 163993,163594,163415,159946,161244,162424,162945,1 62419,160385)
ORDER BY thread.sticky DESC, lastpost DESC;

MySQL Error : Not unique table/alias: 'customavatar'
Error Number : 1066
Request Date : Wednesday, January 30th 2013 @ 11:19:04 PM
Error Date : Wednesday, January 30th 2013 @ 11:19:05 PM


All times are GMT. The time now is 09:12 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
  • Page Generation 0.01242 seconds
  • Memory Usage 1,756KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete