vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Forum Home Enhancements - Latest Thread - Forum Home (https://vborg.vbsupport.ru/showthread.php?t=194840)

StormLily 03-17-2009 05:14 PM

The download link isn't even working.

fogjuice 05-17-2009 04:11 AM

I tried to mod this so it shows latest threads with replies rather than just the newest posts but I now have a problem with the caching. Everytime a new reply shows up, it goes to the top of the list and that is fine but after the I read the thread it still stays bold with this mod until I log out and log in again.

Code to show latest thread with replies, not just newest posts:
Code:

$gthreads = $db->query_read("SELECT
        thread.title, thread.taglist, thread.prefixid, thread.taglist as tag, thread.threadid, thread.attach, icon.title AS icontitle, icon.iconpath, thread.lastpost, thread.lastpostid, thread.forumid, thread.replycount, thread.lastposter, thread.dateline, IF(thread.views<=thread.replycount, thread.replycount+1, thread.views) AS views, thread.visible, user.username, user.userid, user.usergroupid, IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid, forum.title_clean as forum_title
        FROM " . TABLE_PREFIX . "thread AS thread
        LEFT JOIN  " . TABLE_PREFIX . "user AS user ON (user.username = thread.lastposter)
        LEFT JOIN " . TABLE_PREFIX . "forum as forum on (thread.forumid = forum.forumid)
        LEFT JOIN " . TABLE_PREFIX . "icon AS icon ON(icon.iconid = thread.iconid)
        WHERE NOT ISNULL(thread.threadid)
        $excludedforums AND thread.visible = 1 ORDER BY lastpost DESC LIMIT 0, $tvpano_lt_max");

Where it says ORDER BY you have to change it to lastpost, previously it said dateline.

scratchit 05-19-2009 07:54 PM

thank you very much

Markets Where 07-28-2009 10:22 PM

I have install the plugin, but every thread show 2 times.
http://www.glasses123.net/forums/

JasonGD 09-30-2009 04:48 AM

Quote:

Originally Posted by fogjuice (Post 1812227)
I tried to mod this so it shows latest threads with replies rather than just the newest posts but I now have a problem with the caching. Everytime a new reply shows up, it goes to the top of the list and that is fine but after the I read the thread it still stays bold with this mod until I log out and log in again.

Code to show latest thread with replies, not just newest posts:
Code:

$gthreads = $db->query_read("SELECT
        thread.title, thread.taglist, thread.prefixid, thread.taglist as tag, thread.threadid, thread.attach, icon.title AS icontitle, icon.iconpath, thread.lastpost, thread.lastpostid, thread.forumid, thread.replycount, thread.lastposter, thread.dateline, IF(thread.views<=thread.replycount, thread.replycount+1, thread.views) AS views, thread.visible, user.username, user.userid, user.usergroupid, IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid, forum.title_clean as forum_title
        FROM " . TABLE_PREFIX . "thread AS thread
        LEFT JOIN  " . TABLE_PREFIX . "user AS user ON (user.username = thread.lastposter)
        LEFT JOIN " . TABLE_PREFIX . "forum as forum on (thread.forumid = forum.forumid)
        LEFT JOIN " . TABLE_PREFIX . "icon AS icon ON(icon.iconid = thread.iconid)
        WHERE NOT ISNULL(thread.threadid)
        $excludedforums AND thread.visible = 1 ORDER BY lastpost DESC LIMIT 0, $tvpano_lt_max");

Where it says ORDER BY you have to change it to lastpost, previously it said dateline.

That worked perfect, thanks! Installed. :D

Oria 11-09-2009 07:10 PM

I try to show this code not at the HOMEPAGE, but i don't know how.

how i can put this at any page in my forum ?

vtck 01-18-2010 04:10 AM

If there is a text box to insert url where this latest x threads to be display then this mod would be very popular.

NinjaKane 01-29-2010 07:11 PM

Seems like this is dead, anyone reading this? how could you move the position of the table? right now it pops up right under the nave bar...can you point me in the right direction to move it?

s.sami 08-20-2011 04:08 PM

can auto refresh ?

mapleleaffans 08-24-2011 12:06 AM

Great mod! Installed, thank you!


All times are GMT. The time now is 09:07 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.01094 seconds
  • Memory Usage 1,739KB
  • 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_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (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