[Ask] Custom Front Page
lenkbreak Offline
Junior Member
**
Posts: 23
Joined: Apr 2012
Post: #15
RE: [Ask] Custom Front Page
More question for RateU (I hope this is not another $1mil Tongue)

From scripts you above, I can make a table with new threads from specify forum. But how can I make 2 or more table with new threads from specify forum?

I'm tried make this function and put it in my custom page

PHP Code:
1
2
3
4
5
6
7
8
9
10
11
12
// Displaying 5 latest threads from forum id 11
$latest_threads_othersports_options = array(
	'type' => 'threads',
	'limit' => 5,
	'order_by' => 'dateline',
	'order_dir' => 'desc',
	'fids' => '11',
	'childtemplate' => 'latest_threads_thread_othersports',
	'maintemplate' => 'latest_thread_othersports',
	'maxchars' => 25
);
$latest_threads_othersports = mn_tp_load($latest_threads_othersports_options);


and insert new variable in templatelist like this

PHP Code:
$templatelist = 'page,latest_threads_thread,latest_threads,latest_threads_thread_othersports,latest_threads_othersports,latest_posts,latest_posts_post,hot_threads,hot_threads_thread,popular_threads,popular_threads_thread';


after that i made new template in global template and named it latest_threads_othersports and latest_threads_thread_othersports

after that i put the variable in my custom php page so it look like this :

PHP Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<html>
<head>
<title>{$mybb->settings['bbname']}</title>
{$headerinclude}
</head>
<body>
{$header}
{$latest_posts}
{$latest_threads}
{$latest_threads_othersports}
{$hot_threads}
{$popular_threads}
<br style="clear: both" />
{$footer}
</body>
</html>


but after i tried to open that page on my browser, i did not see my new table from my specify forum.

did i do something wrong? need your suggestions Smile

this is my custom page http://lenkbreak.host56.com/default.php

(This post was last modified: 04-12-2012 05:52 PM by lenkbreak.)
04-12-2012 05:41 PM
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: