News:

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

Main Menu

Joomla 3.10 SSI extension

Started by WW Cycling Club, August 28, 2022, 08:04:19 AM

Previous topic - Next topic

WW Cycling Club

Hi All

I want to display the latest posts from SMF board on my Joomla website and SSI seems just the ticket.

Not being a PHP/CSS expert I'm looking for a simple WYSIWYG extension that will help me create the menu item I want within Joomla. Is there such a thing? Or which standard feature do I use to create a module I can add to the sidebar of my home page?

Thanks

Kindred

Menu item?

No, ssi would not be used for that.

Displaying the most recent post in a php module, yes.


<?php 
require_once('path/to/smf/install/SSI.php');
ssi_recentTopics($num_recent 1$exclude_boards null$include_boards null$output_method 'echo'); ?>

Сл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."

WW Cycling Club

Thanks Kindred

I'm not sure if I'm heading in the right direction. I'm trying to use a Custom HTML module and, after installing Sourcerer so it will run PHP, I've got this code in the module:

{source}<?php require(wwforum/SSI.php); ?>
<?php ssi_recentTopics($num_recent = 8, $exclude_boards = null, $include_boards = null, $output_method = 'echo'); ?>{/source}

This was a direct copy from the examples in the SMF manual but when I try to publish it, it crashes my website.

I've also just noticed that I got an entry in my SMF error log alerting that the Admin had attempted to log in so wondering if this is a problem.

Is this just a problem with my syntax (having never written PHP code before) or is the approach flawed in some way?

Thanks

Kindred

1- use the absolute path to SMF, not the relative one...
2- turn ON sub-domain independent cookies.
Сл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."

WW Cycling Club

Hi Kindred

After a lot of trial and error I contacted my web hosting company to find out why it wasn't working and they told me, because it's on a shared server, they don't give permissions for SSI links to the user database!

What a waste of time that was :-(

Thanks for your help in any case

Steve

Kindred

Well, that's a really stupid host....  I'd switch hosting, if I was you...
Сл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."

Advertisement: