mod_smf_RecentTopics customise output ?

Started by .Joel, November 14, 2006, 07:22:31 AM

Previous topic - Next topic

.Joel

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

Kindred

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.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

.Joel

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

.Joel

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

Advertisement: