Results 1 to 2 of 2
-
13th Jan 2008, 01:36 AM #1OPMember
[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',
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',
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&view=getlastpost">$title</a></b>
Find this link:
Code:<b><a href="{$this->ipsclass->base_url}showtopic=$tid">$title</a></b>
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: 5Extremely helpful article about hiding your identity here
-
8th Feb 2009, 08:00 AM #2MemberWebsite's:
lahorimela.com desiraterz.com cricdown.comany preview?
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Latest pages on homepage instead of latest posts ? Possible ?
By Cojba in forum WordpressReplies: 0Last Post: 12th Apr 2012, 05:12 PM -
ipb 3.2.1 topics disappearing
By ibby in forum IP.BoardReplies: 9Last Post: 9th Sep 2011, 04:03 PM -
[Help] Topics of a site
By wilx in forum Webmaster DiscussionReplies: 0Last Post: 30th Mar 2011, 12:14 PM -
Deleting my topics?
By Santocool in forum General DiscussionReplies: 1Last Post: 4th Dec 2010, 03:24 PM -
Latest X topics (latest topic X minutes ago)
By zero61099 in forum vBulletinReplies: 2Last Post: 29th Mar 2009, 02:17 AM
themaManager - edit and manage...
Version 4.04 released. Open older version (or...