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)

ozzy47 09-04-2013 04:51 PM

I doubt it, the mod has not been updated since 06 Jan 2012.

M.C. 02-09-2014 10:23 AM

causing problems and don't work fine! NEED new hack with similar functions! UNinstalled :(

koruyucu54 04-10-2014 07:14 AM

4.2.2 pl 1 işe yaramadı - kaldırıldı

jramos1973 04-12-2014 05:58 PM

It is a Mod very good.. Congratulations.. :):cool:

jramos1973 04-12-2014 06:00 PM

This Mod work fine in VBulletin 4.2.2 :up: :D

findingpeace 08-22-2014 08:53 PM

I prefer this mod to the others because it doesn't use any database queries :) Depending on your forum size, this can seriously save 20-30 queries every homepage load.

You can fix the subforum issue by manually creating a hook in /includes/functions_forumlist.php

Search:
Code:

$templater = vB_Template::create('forumhome_lastpostby');
Add above:
Code:

($hook = vBulletinHook::fetch_hook('lastpostby')) ? eval($hook) : false;
Make a new file in /includes/xml/ called hooks_lastpostby.xml with the following content:

Code:

<?xml version="1.0" encoding="ISO-8859-1"?>
<hooks>
        <hooktype type="lastpostby">
                <hook>lastpostby</hook>
        </hooktype>
</hooks>

And finally, go to your plugins and edit Fetch Last Poster Avatars on Forumbits

Change the hook from forumbit_display to lastpostby (lastpostby)

Save, and your forum home avatars are fixed!

Hope this helps :)

findingpeace 08-23-2014 02:09 PM

Note: The above fix only resolves the bug where avatars show incorrectly down the entire forum listing when subforums exist. I'm currently working on fixing the other bug where Last Post area shows avatar of parent forum, not subforum, even if last poster is from subforum.

I've also made a few modifications to have this code play nice with Digital Point thread avatars, if anyone else was running into trouble with that. Just let me know and I can share my changes.

Again, I definitely recommend using this mod over the other if you care about query usage.

BGObsession 08-24-2014 06:36 PM

Easy install, worked perfectly with my 4.2.1 forum. Thanks!

findingpeace 08-28-2014 04:40 PM

Well, I finally figured out the subforum thing. Requires code edits, as there aren't any hooks nearby. Open up /includes/functions.php

Find:
Code:

$threadinfo = array(
Add in your avatar variables like below (be careful with commas!)

Code:

                                        $threadinfo = array(
                                                'title'    => $lastpostinfo['lastthread'],
                                                'threadid' => $lastpostinfo['lastthreadid'],
                                                'avatardateline' => $lastpostinfo['avatardateline'],
                                                'hascustomavatar' => $lastpostinfo['hascustomavatar']

Then you can simply call these variables in a forumhome plugin like so:

$lp_dateline = $lastpostinfo['avatardateline'];
$lp_userid = $lastpostinfo['userid'];
$hascustomavatar = $lastpostinfo['hascustomavatar'];

You can even do this without the forumhome plugin just by getting the variables from template. (Still need the query plugin, of course).

Best of luck!

madness85 08-28-2014 07:06 PM

Any way to disable animation?

SoHelpMe 11-08-2014 03:50 AM

Quote:

Originally Posted by findingpeace (Post 2513001)
Well, I finally figured out the subforum thing. Requires code edits, as there aren't any hooks nearby. Open up /includes/functions.php

Find:
Code:

$threadinfo = array(
Add in your avatar variables like below (be careful with commas!)

Code:

                                        $threadinfo = array(
                                                'title'    => $lastpostinfo['lastthread'],
                                                'threadid' => $lastpostinfo['lastthreadid'],
                                                'avatardateline' => $lastpostinfo['avatardateline'],
                                                'hascustomavatar' => $lastpostinfo['hascustomavatar']

Then you can simply call these variables in a forumhome plugin like so:

$lp_dateline = $lastpostinfo['avatardateline'];
$lp_userid = $lastpostinfo['userid'];
$hascustomavatar = $lastpostinfo['hascustomavatar'];

You can even do this without the forumhome plugin just by getting the variables from template. (Still need the query plugin, of course).

Best of luck!

I have been thinking about picking up this app and installing it but I have been a bit concerned to get it and load it based on it requiring source code edits to work correctly. Findingpeace have you considered making the required posts and updating the source code posted on this thread? From what I have seen elsewhere on other non supported mods you don't have to take over sustaining ownership but you could make an incremental improvement. I hope you consider making tha changes and reposting the files... Thanks

concepts 01-17-2015 04:02 PM

Works amazing for me on 4.2.2, great Mod!

Manoel J?nior 01-18-2015 11:41 AM

Error vB 4.2.3 Beta 3

Code:

Database error in vBulletin 4.2.3 Beta 3:

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.prefixid, thread.taglist, thread.hiddencount, thread.deletedcount, user.userid,
                        user.membergroupids, user.infractiongroupids, 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
                       
                        , NOT ISNULL(subscribethread.subscribethreadid) AS issubscribed
                        , deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason
                       
                        , threadredirect.expires
                        , usergrouphasann.opentag as opentaghasann, usergrouphasann.closetag AS closetaghasann, usergrouphuseyinn.opentag AS opentaghuseyinn, usergrouphuseyinn.closetag AS closetaghuseyinn,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 thread AS thread
                        LEFT JOIN user AS user ON (user.userid = thread.lastposterid)
                        LEFT JOIN userlist AS userlist ON (userlist.relationid = user.userid AND userlist.type = 'buddy' AND userlist.userid = 1)
                       
                        LEFT JOIN deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND deletionlog.type = 'thread')
                        LEFT JOIN subscribethread AS subscribethread ON(subscribethread.threadid = thread.threadid AND subscribethread.userid = 1 AND canview = 1)
                       
                        LEFT JOIN post AS post ON(post.postid = thread.firstpostid)
                       
                        LEFT JOIN threadredirect AS threadredirect ON(thread.open = 10 AND thread.threadid = threadredirect.threadid)
                        LEFT JOIN user AS userhasann ON ( userhasann.userid = thread.postuserid )  LEFT JOIN usergroup AS usergrouphasann ON ( usergrouphasann.usergroupid = userhasann.usergroupid )  LEFT JOIN user AS userhuseyinn ON ( userhuseyinn.userid = thread.lastposterid )  LEFT JOIN usergroup AS usergrouphuseyinn ON ( usergrouphuseyinn.usergroupid = userhuseyinn.usergroupid )
LEFT JOIN user AS uposter ON (uposter.userid = thread.postuserid)
LEFT JOIN customavatar AS customavatar ON (customavatar.userid = uposter.userid)
LEFT JOIN avatar AS avatar ON(avatar.avatarid = user.avatarid) LEFT JOIN customavatar AS customavatar ON(customavatar.userid = user.userid)
                WHERE thread.threadid IN (0,1104,1103,1108,1123,1101,1110)
                ORDER BY thread.sticky DESC, lastpost DESC;

MySQL Error  : Not unique table/alias: 'customavatar'
Error Number  : 1066


Ang3ls 01-30-2015 02:09 AM

how to I can show Avatar in mobile Style?
Thank you very much!

tanzeelniazi 02-01-2015 06:56 PM

Hello all today install last post avatar but its not showing correctly
I want this type
https://vborg.vbsupport.ru/attachmen...2&d=1324027633

Mine showing is this
https://vborg.vbsupport.ru/external/2015/03/16.png

See first avatar showing after Last post icon is showing and name is showing below so i want above pic like this
hope all understand
My skin is Ideal VB Black

Also How to Turn Off last post icon ???
if i use last post avatar and showing avatar and last post icon looking bad so i want to turf off last post icon

Tibiaspy 03-03-2015 03:12 PM

Quote:

Originally Posted by findingpeace (Post 2513001)
Well, I finally figured out the subforum thing. Requires code edits, as there aren't any hooks nearby. Open up /includes/functions.php

Find:
Code:

$threadinfo = array(
Add in your avatar variables like below (be careful with commas!)

Code:

                                        $threadinfo = array(
                                                'title'    => $lastpostinfo['lastthread'],
                                                'threadid' => $lastpostinfo['lastthreadid'],
                                                'avatardateline' => $lastpostinfo['avatardateline'],
                                                'hascustomavatar' => $lastpostinfo['hascustomavatar']

Then you can simply call these variables in a forumhome plugin like so:

$lp_dateline = $lastpostinfo['avatardateline'];
$lp_userid = $lastpostinfo['userid'];
$hascustomavatar = $lastpostinfo['hascustomavatar'];

You can even do this without the forumhome plugin just by getting the variables from template. (Still need the query plugin, of course).

Best of luck!

I can do the whole edit file thing no problem but I don't get what should I do next? What is forumhome plugin? Where do I put all this stuff?

Developer is long gone, is anyone willing to repair this bug for him? This is very nic plugin but with subforums not working it's not usable atm :/

ku-med 03-20-2015 11:40 PM

Quote:

Originally Posted by tanzeelniazi (Post 2535592)
Hello all today install last post avatar but its not showing correctly
I want this type
https://vborg.vbsupport.ru/attachmen...2&d=1324027633

Mine showing is this
https://vborg.vbsupport.ru/external/2015/03/16.png

See first avatar showing after Last post icon is showing and name is showing below so i want above pic like this
hope all understand
My skin is Ideal VB Black

Also How to Turn Off last post icon ???
if i use last post avatar and showing avatar and last post icon looking bad so i want to turf off last post icon

I've the same problem :(

To remove last post icon -> edit the following template [ forumhome_lastpostby ]

find and remove:
Code:

<vb:if condition="$show['icon']"><img src="{vb:raw icon.iconpath}" class="postimg" alt="{vb:raw icon.title}" border="0" /></vb:if>

kikaclub 03-22-2015 09:23 PM

Quote:

Originally Posted by findingpeace (Post 2513001)
Well, I finally figured out the subforum thing. Requires code edits, as there aren't any hooks nearby. Open up /includes/functions.php

Find:
Code:

$threadinfo = array(
Add in your avatar variables like below (be careful with commas!)

Code:

                                        $threadinfo = array(
                                                'title'    => $lastpostinfo['lastthread'],
                                                'threadid' => $lastpostinfo['lastthreadid'],
                                                'avatardateline' => $lastpostinfo['avatardateline'],
                                                'hascustomavatar' => $lastpostinfo['hascustomavatar']

Then you can simply call these variables in a forumhome plugin like so:

$lp_dateline = $lastpostinfo['avatardateline'];
$lp_userid = $lastpostinfo['userid'];
$hascustomavatar = $lastpostinfo['hascustomavatar'];

You can even do this without the forumhome plugin just by getting the variables from template. (Still need the query plugin, of course).

Best of luck!

not working... and this
Code:

$threadinfo = array(
is not in functions.php

keyla31 03-27-2015 07:03 PM

looked like it worked on 4.2.2 Patch Level 4 but upon entering forums received database error page, uninstalled

ku-med 03-27-2015 07:37 PM

Quote:

Originally Posted by keyla31 (Post 2541699)
looked like it worked on 4.2.2 Patch Level 4 but upon entering forums received database error page, uninstalled

Works great for me on 4.2.2 pl 4 .. anyway might this work for ya ->
https://vborg.vbsupport.ru/showthread.php?t=268618

FlexGraphics 05-26-2016 04:10 PM

It's a shame that this doesnt work, it's a XenForo script just thought I'd let you know!

http://s.imandings.com/1lbjh

TheLastSuperman 05-27-2016 06:12 PM

Quote:

Originally Posted by FlexGraphics (Post 2571354)
It's a shame that this doesnt work, it's a XenForo script just thought I'd let you know!

http://s.imandings.com/1lbjh

Reported to work though... I have not tested to confirm. I'm curious though, it shows in a thread whether you've downloaded a mod or not, it states "Not Download" beside your name so aside from a screenshot, how do you know?

Thread avatars were around in vBulletin before Xenforo was made from what I recall, in fact may have been in IPB before vB that I'm not sure of though (simply saying). What site were you on when viewing that source code? I ask because I don't see a demo link anywhere and just because <!-- Commented Out Code --> exist on a site does not make said code "the truth, it's on the interwebs is why" and may actually just be someone who prefers XF over vB and made a comment in their code because the thread avatars in vB remind them of the ones they know of in XF etc but again not sure as no link other than a screenshot.

Davidinh 12-22-2016 04:26 PM

From info's KiKaclub
if you don't want the lastpost icon show go to Admin > Setting > Options > Thread display options (showthread) in the 4th box (show default post Icon) empty it (leave it blank) click save

you don't need to modify the template at all

The other thought that mode word fine on vb 4.2.5
I ran it on IIS7 server and MySQL 5.7

Thank you very much for your sharing this mode phpdesk

spielo1312 08-25-2019 03:51 AM

I really like this plugin, but it not work anymore with php 7.3

is there any other plugin do the same job?

KodakUK 04-22-2020 04:59 PM

How do I align the avatar to the left so that the thread title, author and date show on the left and not below the image.

Is it possible to increase the avatar size on this mod aswell, it's a tad small.

VinceOrlando 10-23-2020 12:53 AM

Did anyone ever find a fix for the wrong avatars showing on forum home when that forum has subforums?


All times are GMT. The time now is 12:58 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.02040 seconds
  • Memory Usage 1,825KB
  • 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
  • (14)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (26)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