Activity Stream
48,167 MEMBERS
6934 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 2 of 2
  1.     
    #1
    Member

    Default [TUT]Latest Topics On Portal

    IPB 2.1.x.

    How to make the latest topics block on the IPB Portal show the topics in order of when the last post was made, and show who made the last post!

    Go into FTP and download: forums/sources/portal_plugins/recent_topics.php

    FIND:
    Code: 
    $this->ipsclass->DB->simple_construct( array( 'select' => 'tid, title, posts, starter_id as member_id, starter_name as member_name, start_date as post_date, views',
                                                          'from'   => 'topics',
                                                          'where'  => "$qe approved=1 and state != 'closed' and (moved_to is null or moved_to = '')",
                                                          'order'  => 'start_date DESC',
    REPLACE WITH:
    Code: 
    $this->ipsclass->DB->simple_construct( array( 'select' => 'tid, title, posts, last_poster_id as member_id, last_poster_name as member_name, last_post as post_date, views',
                                                          'from'   => 'topics',
                                                          'where'  => "$qe approved=1 and state != 'closed' and (moved_to is null or moved_to = '')",
                                                          'order'  => 'last_post DESC',
    Thats it, pretty straight forward!

    Edited by 3DKiwi

    Fabulous little modification. However the link takes you to the very first message. Thankfully another member came to my rescue and you can make the link in the recent reply go to the last reply as you would normally want. The following solution supplied by putermom:

    It's a skin edit.
    Go to your Admin ACP > Look and Feel > Pick a Skin > Edit Template HTML >
    IPB Portal > tmpl_topic_row

    Find this link:
    Code: 
    <b><a href="http://resources.invisionpower.com/index.php?appcomponent=cms&module=articlesshowtopic=$tid">$title</a></b>

    and Replace it with:
    Code: 
    <b><a href="http://resources.invisionpower.com/index.php?appcomponent=cms&module=articlesshowtopic=$tid&amp;view=getlastpost">$title</a></b>
    Update for 2.2. The first part is just the same as it was in 2.1 but the edit to make the link take you to the last post has changed slightly.

    Find this link:
    Code: 
    <b><a href="{$this->ipsclass->base_url}showtopic=$tid">$title</a></b>
    and replace with:
    Code: 
    <b><a href="{$this->ipsclass->base_url}showtopic=$tid&view=getlastpost">$title</a></b>

    Do that with all of your skins.
    Lease Reviewed by Lease on . [TUT]Latest Topics On Portal IPB 2.1.x. How to make the latest topics block on the IPB Portal show the topics in order of when the last post was made, and show who made the last post! Go into FTP and download: forums/sources/portal_plugins/recent_topics.php FIND: $this->ipsclass->DB->simple_construct( array( 'select' => 'tid, title, posts, starter_id as member_id, starter_name as member_name, start_date as post_date, views', 'from' => 'topics', Rating: 5
    Extremely helpful article about hiding your identity here

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    lahorimela.com desiraterz.com cricdown.com
    any preview?


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 12th Apr 2012, 05:12 PM
  2. ipb 3.2.1 topics disappearing
    By ibby in forum IP.Board
    Replies: 9
    Last Post: 9th Sep 2011, 04:03 PM
  3. [Help] Topics of a site
    By wilx in forum Webmaster Discussion
    Replies: 0
    Last Post: 30th Mar 2011, 12:14 PM
  4. Deleting my topics?
    By Santocool in forum General Discussion
    Replies: 1
    Last Post: 4th Dec 2010, 03:24 PM
  5. Latest X topics (latest topic X minutes ago)
    By zero61099 in forum vBulletin
    Replies: 2
    Last Post: 29th Mar 2009, 02:17 AM

Tags for this Thread

BE SOCIAL