Advertisement:

How to display recent post in the right hand side bar of the default them

Aloittaja ajayvibha, syyskuu 22, 2007, 06:48:01 AP

« edellinen - seuraava »

ajayvibha

Hi,

I am using the the default them of SMF.

I have made two simple colum.In [nofollow] 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

<a href="http://www.obiztek.com [nofollow]" title="SEO Company India">Economical SEO Company</a>

codenaught

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';
Dev Consultant
Former SMF Doc Coordinator

Advertisement: