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?


All times are GMT. The time now is 09:10 AM.

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.01760 seconds
  • Memory Usage 1,736KB
  • 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
  • (5)bbcode_code_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