Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Mambo Bridge Support => Topic started by: .Joel on November 14, 2006, 07:22:31 AM

Title: mod_smf_RecentTopics customise output ?
Post by: .Joel on November 14, 2006, 07:22:31 AM
Hi All,

I have installed mod_smf_RecentTopics however I want to modify the output.  I don't need the member name, or the forum it was posted in or the time.  I simply want it to output the 5 topic titles.  How can this be done ?

So in short I would like mod_smf_RecentTopics to:

Output topic titles only

Any help appreciated.

Regards,

Joel
Title: Re: mod_smf_RecentTopics customise output ?
Post by: Kindred on November 14, 2006, 08:23:46 AM
that require ssome coding work on your side then...

1- open modules/mod_smf_RecentTopics.php
2- open SMF/SSI.php
3- in SSI.php find function ssi_recentTopics
4- copy that into mod_smf_RecentTopics.php and rename it something else
5- (change the call for the function from the original function to the new name in mod_smf_RecentTopics.php)
6- modify the output of the renamed function to display only what you want.
Title: Re: mod_smf_RecentTopics customise output ?
Post by: .Joel on November 14, 2006, 08:29:48 AM
Quote from: Kindred on November 14, 2006, 08:23:46 AM
that require ssome coding work on your side then...

1- open modules/mod_smf_RecentTopics.php
2- open SMF/SSI.php
3- in SSI.php find function ssi_recentTopics
4- copy that into mod_smf_RecentTopics.php and rename it something else
5- (change the call for the function from the original function to the new name in mod_smf_RecentTopics.php)
6- modify the output of the renamed function to display only what you want.


Thank you Kindred, i'm not the best at coding, actually know sweet zilch, but your instructions are clear enough for me to go have a bash at it.

I have been learning as I go, why stop now :D

I'll post back here with my results.

Regards,

Joel
Title: Re: mod_smf_RecentTopics customise output ?
Post by: .Joel on November 14, 2006, 08:40:36 AM
OK I have given it a bash, and no luck.

Will wait untill friday where I have someone here that can give me a hand.  I get an error after I made the changes etc.

Suprisingly alot of people have asked for this, I did a forum search and got stuck in posts back in 2005.

This mod simply displays too much information in its current state to be of any use to fit into alot of sites.

Regards,

Joel