Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Latest X Threads on Forumhome Details »»
Latest X Threads on Forumhome
Version: 1.1, by Michael Biddle Michael Biddle is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 3.7.x Rating:
Released: 12-21-2007 Last Update: 03-26-2009 Installs: 192
Supported DB Changes Uses Plugins Template Edits Auto-Templates
 

Latest X Threads on Forum Index
by: whitemike
Demo: Here

What this does?

This will add the latest x posts onto your forum index

Features?
  1. Enable/Disable - Master Switch to Turn Latest Posts on or off
  2. Title - Change the title of the Site News
  3. Posts to Show - Number of Last Posts to show
  4. Cutoff Length - How many characters to show before the ... at the end
  5. Exclude Forums - Choose what forums you do not want to be listed
  6. Thread Title Width - Width of Title Table
  7. User Title Width - Width of User Table
  8. Forum Title Width - Width of Forum Table
  9. Auto Location - Enable/Disable auto location
  10. Location - Gives Options for Under navbar, above forum, or below forum
  11. Date & Time - Enable/Disable the time and date from being shown
Added?
  1. 2 Template
  2. 3 Plugins
  3. 11 Settings
  4. 29 Phrases
Installation?
  1. Import Product
Thats It!

Releases

1.0 - Initial release
Please Click Install if you use

For Latest X Posts on Forum Home CLICK HERE

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #52  
Old 05-07-2008, 02:25 PM
fahl fahl is offline
 
Join Date: Feb 2008
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Having problems with this,Shows up ok but when thread link is clicked it is showing
Code:
No Thread specified. If you followed a valid link, please notify the administrator
Thepage it is attempting to access is
Code:
http://www.goldies.us/forums/showthread.php?t=2720
The page it should go to is
Code:
http://goldiez.com/forums/showthread.php?t=2721
I have downloaded latest version & reinstalled it,but still the same
Reply With Quote
  #53  
Old 05-07-2008, 05:11 PM
bigtime bigtime is offline
 
Join Date: Jun 2002
Location: Houston, Texas
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How can this be used on a non-VB page?
Reply With Quote
  #54  
Old 05-08-2008, 05:19 AM
shaynehammy shaynehammy is offline
 
Join Date: Jan 2006
Posts: 217
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there any way we can just have the thread title and not part of the post underneath it? This virtually doubles the length of the hack on the forum home. Ie i want to disaply the last 30 threads but dont want the user to be scrolling down for ages just to look through it all.

Thanks mate.
Reply With Quote
  #55  
Old 05-10-2008, 03:41 AM
vanbao vanbao is offline
 
Join Date: Apr 2008
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am looking for ways to display the latest x posts on a non vb homepage. Like this one.
http://www.vietshowbiz.com

Can someone please help.
Reply With Quote
  #56  
Old 05-10-2008, 05:23 AM
car20's Avatar
car20 car20 is offline
 
Join Date: Feb 2008
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

tanks a lot for this nice hack .
please tell me how do i can change Author , Forum And Latest 5 Threads words to other lang .
and how do i can changes dir to right to left .
Reply With Quote
  #57  
Old 05-11-2008, 11:14 PM
shaynehammy shaynehammy is offline
 
Join Date: Jan 2006
Posts: 217
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is this mod still supported?

Anyone know how to get rid of the preview that is showing under the last updated post. I would also like to show thread view and replies to the thread that has been updated where the lastest post is.

If that makes sense.
Reply With Quote
  #58  
Old 05-13-2008, 03:44 AM
orok orok is offline
 
Join Date: Jun 2005
Location: Gaza
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i did some changes to lock like this :



Demo

thank you for this Product
Reply With Quote
  #59  
Old 05-20-2008, 03:17 PM
meolangthang's Avatar
meolangthang meolangthang is offline
 
Join Date: Apr 2008
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you man
Reply With Quote
  #60  
Old 06-07-2008, 10:35 AM
Zacarias Zacarias is offline
 
Join Date: Jan 2005
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ++++++ View Post
I just wish this thing could work on every page...it would be so much more useful. Great hack though!
I got it to work on every page by changing the hook location for 'Main Code' from "forumhome_start" to "global_start". One query is added per page.

Also, some variables need to be changed to do it... Hope I'm allowed to do this.
First open the "Main Code" plugin.

Find:
PHP Code:
// query to get the last posts
    
$query $vbulletin->db->query_read("
        SELECT
            thread.forumid as forumid, thread.visible, thread.title as thread_title, thread.threadid as threadid, thread.postusername as username, thread.postuserid as userid, thread.dateline as date,
            forum.title as forum_title,
            post.postid, post.pagetext as pagetext
        FROM " 
TABLE_PREFIX "thread as thread
        LEFT JOIN " 
TABLE_PREFIX "post as post on (thread.firstpostid = post.postid)
        LEFT JOIN " 
TABLE_PREFIX "forum as forum on (thread.forumid = forum.forumid)
        WHERE thread.visible = 1 AND 
$latest_and AND $latest_and_1
        ORDER BY postid DESC
        LIMIT 
$limit"
    
); 

Replace with:
PHP Code:
    // query to get the last posts
    
$query $vbulletin->db->query_read("
        SELECT
            thread.forumid as forumid1, thread.visible, thread.title as thread_title1, thread.threadid as threadid1, thread.postusername as username1, thread.postuserid as userid1, thread.dateline as date,
            forum.title as forum_title1,
            post.postid, post.pagetext as pagetext1
        FROM " 
TABLE_PREFIX "thread as thread
        LEFT JOIN " 
TABLE_PREFIX "post as post on (thread.firstpostid = post.postid)
        LEFT JOIN " 
TABLE_PREFIX "forum as forum on (thread.forumid = forum.forumid)
        WHERE thread.visible = 1 AND 
$latest_and AND $latest_and_1
        ORDER BY postid DESC
        LIMIT 
$limit"
    
); 
Find:
PHP Code:
    // strips the bbcode out of the post
        
$row['pagetext'] = strip_bbcode($row['pagetext'], $stripquotes true$fast_and_dirty false$showlinks true);
        
        
// adds the cutoff ... with substr
        
$row['pagetext'] = substr($row['pagetext'], 0$vbulletin->options['latest_thread_cut']) . '...';

        
// convert pagetext to nice looking variable
        
$pagetext $row['pagetext'];
        
$username $row['username'];
        
$userid $row['userid'];
        
$forumid $row['forumid'];
        
$threadid $row['threadid'];
        
$forumtitle $row['forum_title'];
        
$threadtitle $row['thread_title']; 
Replace with:
PHP Code:
   // strips the bbcode out of the post
        
$row['pagetext1'] = strip_bbcode($row['pagetext1'], $stripquotes true$fast_and_dirty false$showlinks true);
        
        
// adds the cutoff ... with substr
        
$row['pagetext1'] = substr($row['pagetext1'], 0$vbulletin->options['latest_thread_cut']) . '...';

        
// convert pagetext to nice looking variable
        
$pagetext1 $row['pagetext1'];
        
$username1 $row['username1'];
        
$userid1 $row['userid1'];
        
$forumid1 $row['forumid1'];
        
$threadid1 $row['threadid1'];
        
$forumtitle1 $row['forum_title1'];
        
$threadtitle1 $row['thread_title1'];         // strips the bbcode out of the post
        
$row['pagetext1'] = strip_bbcode($row['pagetext1'], $stripquotes true$fast_and_dirty false$showlinks true);
        
        
// adds the cutoff ... with substr
        
$row['pagetext1'] = substr($row['pagetext1'], 0$vbulletin->options['latest_thread_cut']) . '...';

        
// convert pagetext to nice looking variable
        
$pagetext1 $row['pagetext1'];
        
$username1 $row['username1'];
        
$userid1 $row['userid1'];
        
$forumid1 $row['forumid1'];
        
$threadid1 $row['threadid1'];
        
$forumtitle1 $row['forum_title1'];
        
$threadtitle1 $row['thread_title1']; 
Then open your "forumhome_latest_thread_bit" template and change the variables. Mine looks like this:

HTML Code:
<tr>
    <td class="$bgclass">
        <a href="$vboptions[bburl]/showthread.php?$session[sessionurl]t=$threadid1" class="smallfont">$threadtitle1</a>
        <if condition="$vboptions['latest_thread_time']"><span class="smallfont">$date</span></if>
        <if condition="$vboptions['latest_thread_cut'] != '0'"><div class="smallfont">$pagetext1</div></if>
    </td>
    <td class="$bgclass">
       <span class="smallfont">in</span> <a href="$vboptions[bburl]/forumdisplay.php?$session[sessionurl]f=$forumid1" class="smallfont">$forumtitle1</a>
    </td>
    <td class="$bgclass">
  <span class="smallfont">by</span>      <a href="$vboptions[bburl]/member.php?$session[sessionurl]u=$userid1" class="smallfont">$username1</a>
    </td>
</tr>

Make sure "Auto Location" is set to no.
Then put "$latest" wherever you want it in your templates. I have it in my navbar template.
DEMO (must be registered.. sorry can't have guests running up queries.. oh and the place is still under construction too... :P)

I guess my version is kind of a new hack. Or a mod to this one...
Great hack anyway, thank you!
Reply With Quote
  #61  
Old 06-08-2008, 10:24 PM
am3rgin am3rgin is offline
 
Join Date: Apr 2008
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any idea how to set the limit to something like 50, then add the pagenav options? Just like the search results but limit whats shown to the latest 5 on forum home. The pagnav would provide the ability to goto to the next 5 latest threads or jump to any page within the list of 50 latest threads.

This same mod from another forum package has this ability. Users can hit the "Next 5" link until they scroll through a weeks worth of threads.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:40 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05551 seconds
  • Memory Usage 2,358KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (1)bbcode_html
  • (4)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete