News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Can recent posts be displayed by Display.template of default theme

Started by olufemo, May 22, 2009, 01:10:13 PM

Previous topic - Next topic

olufemo

Recent posts are been output by BoardIndex.template of default theme. Is there any code modification that can make it possible for recent posts to equally be output by Display.template of default theme. How can one go about it




Kindred

one would have to write the code to change display.template.php.

Display.template.php is the display of a single message thread... why would you list recent posts in that?
Сл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."


Kindred

SSI typically does not work correctly on forum template pages.
Сл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."

[SiNaN]

Former SMF Core Developer | My Mods | SimplePortal

Windy

Quote from: Blue Dream on May 24, 2009, 03:40:13 AM
It should be fine. What doesn't work exactly?
I believe its because the SSI that you're loading uses the same variable names as smf does, therefore you could potentially overwrite variables that the template relies on thus producing incorrect content.
All unsolicited PM's will be ignored.  Any support requests should go in their topics.

My Mods


Image Zoom Tag
Image Quote Removal
Color Picker
Additional Polls
Simple Awards System

Mods are only updated to the latest same major version of smf on request.

[SiNaN]

Nope, it won't load anything if you include it in SMF. It is prevented by this code:

Code (SSI.php) Select
// Don't do anything if SMF is already loaded.
if (defined('SMF'))
return true;
Former SMF Core Developer | My Mods | SimplePortal

olufemo

Quote from: [SiNaN] on May 24, 2009, 03:40:13 AM
It should be fine. What doesn't work exactly?

Info from the link you gave above work very fine on implimentation. I've check through again and again there seems to be no error

Need link to view this?

Thanks.

[SiNaN]

That question was to Windy actually and he replied and I replied to him again. It is completely fine to use SSI functions inside SMF too.

If everything is okay for you, then you can mark the topic as solved. :)
Former SMF Core Developer | My Mods | SimplePortal

Advertisement: