Simple Machines Community Forum

Customizing SMF => Bridges and Integrations => Topic started by: WW Cycling Club on August 28, 2022, 08:04:19 AM

Title: Joomla 3.10 SSI extension
Post by: WW Cycling Club on August 28, 2022, 08:04:19 AM
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
Title: Re: Joomla 3.10 SSI extension
Post by: Kindred on August 28, 2022, 08:39:57 AM
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'); ?>
Title: Re: Joomla 3.10 SSI extension
Post by: WW Cycling Club on September 06, 2022, 09:07:57 AM
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
Title: Re: Joomla 3.10 SSI extension
Post by: Kindred on September 06, 2022, 01:07:49 PM
1- use the absolute path to SMF, not the relative one...
2- turn ON sub-domain independent cookies.
Title: Re: Joomla 3.10 SSI extension
Post by: WW Cycling Club on September 10, 2022, 04:28:52 AM
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
Title: Re: Joomla 3.10 SSI extension
Post by: Kindred on September 10, 2022, 07:22:36 AM
Well, that's a really stupid host....  I'd switch hosting, if I was you...