[Ask] Custom Front Page
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #20
RE: [Ask] Custom Front Page
(04-20-2012 02:52 PM)lenkbreak Wrote:  how to set if I want to displaying 5 latest thread from all forum?
Try the update. There is an additional settings needed to add to your array settings:

PHP Code:
'fids_format' => 'NOT IN',

Available options are: IN or NOT IN
Example:

PHP Code:
1
2
3
4
5
6
7
8
9
10
11
// Latest threads from all forums except forum id 2, 3 and 4
$latest_threads_options = array(
	'type' => 'threads',
	'limit' => 2,
	'order_by' => 'dateline',
	'order_dir' => 'desc',
	'fids' => '2,3,4',
	'fids_format' => 'NOT IN',
	'childtemplate' => 'latest_threads_thread',
	'maintemplate' => 'latest_threads'
);

You can use 0 as fids value. Just make sure that you don't have a forum that has a View Own Threads setting. If you have it, add the forum id(s) into the fids list, so it will be excluded from the result (if you use NOT IN in fids_format setting).

I'm really sorry for my late reply.


04-22-2012 05:02 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
[Ask] Custom Front Page - lenkbreak - 04-09-2012, 05:37 PM
RE: [Ask] Custom Front Page - ZiNgA BuRgA - 04-09-2012, 05:56 PM
RE: [Ask] Custom Front Page - lenkbreak - 04-09-2012, 06:39 PM
RE: [Ask] Custom Front Page - adisp007 - 04-10-2012, 03:12 AM
RE: [Ask] Custom Front Page - RateU - 04-10-2012, 06:52 AM
RE: [Ask] Custom Front Page - lenkbreak - 04-10-2012, 12:55 PM
RE: [Ask] Custom Front Page - RateU - 04-11-2012, 02:34 AM
RE: [Ask] Custom Front Page - adisp007 - 04-11-2012, 03:09 AM
RE: [Ask] Custom Front Page - RateU - 04-11-2012, 06:03 AM
RE: [Ask] Custom Front Page - lenkbreak - 04-11-2012, 11:50 AM
RE: [Ask] Custom Front Page - lenkbreak - 04-11-2012, 12:30 PM
RE: [Ask] Custom Front Page - leefish - 04-11-2012, 12:58 PM
RE: [Ask] Custom Front Page - RateU - 04-12-2012, 08:08 AM
RE: [Ask] Custom Front Page - lenkbreak - 04-12-2012, 12:32 PM
RE: [Ask] Custom Front Page - lenkbreak - 04-12-2012, 05:41 PM
RE: [Ask] Custom Front Page - adisp007 - 04-12-2012, 08:20 PM
RE: [Ask] Custom Front Page - lenkbreak - 04-13-2012, 12:11 PM
RE: [Ask] Custom Front Page - RateU - 04-16-2012, 01:56 AM
RE: [Ask] Custom Front Page - lenkbreak - 04-20-2012, 02:52 PM
RE: [Ask] Custom Front Page - RateU - 04-22-2012 05:02 AM
RE: [Ask] Custom Front Page - lenkbreak - 04-22-2012, 06:12 PM

 Standard Tools
Forum Jump: