Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: Memnon - helmikuu 19, 2006, 07:23:01 AP

Otsikko: How can I show 10 last modified posts on my main page?
Kirjoitti: Memnon - helmikuu 19, 2006, 07:23:01 AP
I have activated the Recent Posts view on my forum and its vurrently showing the 10 lasts posts posted.
Is it possible to modify it to show the 10 last modified threads instead of Recent Posts on my forum mainpage?
I want my forum mainpage to show the 10 last modified threads regardless of if the user has read them allready or not.

Now it shows the 10 most recent posts and 3 - 4 of them is often from the same thread.

Does anyone have a suggestion how I can do this?  :)

I use SMF 1.1 RC2 and Classic YaBB SE theme.
Otsikko: Re: How can I show 10 last modified posts on my main page?
Kirjoitti: Memnon - helmikuu 23, 2006, 10:41:22 AP
Is there really no solution for this?
Otsikko: Re: How can I show 10 last modified posts on my main page?
Kirjoitti: John - maaliskuu 04, 2006, 07:29:58 AP
Yes there is  ;D

go to:

/your forum/Themes/default/PortalTemplate.php and in the top you change

// How Many Announcements Items To Show?

   $newslimit = 'x';

x = the number of posts you wanna show.

Enjoy :D
Otsikko: Re: How can I show 10 last modified posts on my main page?
Kirjoitti: Memnon - maaliskuu 04, 2006, 12:50:19 IP
I don't have any PortalTemplate.php in that directory...
Otsikko: Re: How can I show 10 last modified posts on my main page?
Kirjoitti: winrules - maaliskuu 04, 2006, 04:27:08 IP
you chould use ssi (http://www.simplemachines.org/community/index.php?topic=14906.0).
Otsikko: Re: How can I show 10 last modified posts on my main page?
Kirjoitti: Memnon - maaliskuu 10, 2006, 01:31:58 IP
I dont know how I could use SSI for this, can anyone try to explaint this for me please?