Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => SMF Feedback and Discussion => Aiheen aloitti: ajayvibha - syyskuu 22, 2007, 06:48:01 AP

Otsikko: How to display recent post in the right hand side bar of the default them
Kirjoitti: ajayvibha - syyskuu 22, 2007, 06:48:01 AP
Hi,

I am using the the default them of SMF.

I have made two simple colum.In the left hand column I am calling full SMF and in the right hand column I want to show the recent post.

How recent post can be shown in the right hand side , can some body help.

I have studied ssi examples in details but here the case is that on the SMF default theme it self I want to show recent post list on the right hand side.

Regards,
Ajay

Otsikko: Re: How to display recent post in the right hand side bar of the default them
Kirjoitti: codenaught - syyskuu 22, 2007, 02:46:30 IP
So you already have the html code being used for the right and left columns?

You can copy the function ssi_recentPosts in SSI.php and paste it into Sources/Load.php. But rename the function to something slightly different, such as forum_recentPosts(). Once that is done, you can call the new function you made in Load.php in your template file:

Example:

echo ' Some text. ', forum_recentPosts(), ' some text after function';