We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 2762
    • 1,198 Posts
    This is an auto-generated support/comment thread for SMFssi.

    Use this forum to post any comments about this addition or any questions you have regarding its use.

    Brief Description:
    Include Simple Machine Forum ssi inside your modx site, so you can add to your MODx site layout : Recent Topics, Recent Posts, Board Stat, Today's Birthdays.. and more
      Free MODx Graphic resources and Templates www.tattoocms.it
      -----------------------------------------------------

      MODx IT  www.modx.it
      -----------------------------------------------------

      bubuna.com - Web & Multimedia Design
      • 29076
      • 615 Posts
      Thanks for a great snippet! I’m using it on my testsite (it will be official in the next few months).

      But i wonder: how can I set the number of Recent Post? As it is now it shows all, but I only want to show the last 5.

      My snippet-call is :
      [[SMFssi? &ssi=ssi_recentPosts]]



      Thanks in advance.
        I think, thererfor I am! But what I am, and why...?
        • 2762
        • 1,198 Posts
        There no way to change number of topics with the snippet sorry.

        but you can simply edit SSI.php inside your SMF directory.

        IE for ssi_recentTopics:

        find line 324 in SSI.php

        // Recent topic list:   [board] Subject by Poster	Date
        function ssi_recentTopics($num_recent = 8, $exclude_boards = null, $output_method = 'echo')


        change $num_recent = 8 to the number you need wink
          Free MODx Graphic resources and Templates www.tattoocms.it
          -----------------------------------------------------

          MODx IT  www.modx.it
          -----------------------------------------------------

          bubuna.com - Web & Multimedia Design
          • 29076
          • 615 Posts
          Thats more then good enough for me. Thank you very much. laugh
            I think, thererfor I am! But what I am, and why...?
            • 6726
            • 7,075 Posts
            Thanks Banzai for this one grin , I just needed something like this for a MODx community site I am building... I’ll be testing soon !
              .: COO - Commerce Guys - Community Driven Innovation :.


              MODx est l'outil id
              • 27889
              • 415 Posts
              To pass parameters to the function:
              change the line in the snippet SMFssi:
              return $ssi(); with return $ssi($param) ;
              To know the parameters, see the smf SSI.php file, for recentTopics:
              function ssi_recentTopics($num_recent = 8, $exclude_boards = null, $output_method = ’echo’)

              so to display 3 recent topics the call is:
              [[SMFssi? &ssi=`ssi_recentTopicss` &param=`3`]]
                MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
                MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
                • 37272
                • 216 Posts
                Hi,

                I’ve installed this snippet to replace this code.

                I’ve made the changes suggested to SMF/forum/sources/load.

                When checked ’execute file after saving’ (should I do that?), and I receve the following error within the manager:

                Warning: include_once(forum/SSI.php) [function.include-once]: failed to open stream: No such file or directory in /home/xxxxxx/public_html/manager/includes/document.parser.class.inc.php(748) : eval()’d code on line 48

                Warning: include_once() [function.include]: Failed opening ’forum/SSI.php’ for inclusion (include_path=’/home/xxxxxx/public_html/manager/includes/’) in /home/xxxxxx/public_html/manager/includes/document.parser.class.inc.php(748) : eval()’d code on line 48

                Fatal error: Call to undefined function ssi_topTopics() in /home/xxxxxx/public_html/manager/includes/document.parser.class.inc.php(748) : eval()’d code on line 49

                Dispite the error notice, the code seems to work with the existing SSI functions I had in place (after I’d altered the calls to suit). However, I still have the same problem I had with the old code: I cannot get the logout function to work. The session ID it uses is incorrect - I cannot code, so have no idea of how to fix it.

                Any ideas as to the solution?

                Thanks.


                Edit: typo and clarification.
                  • 14431
                  • 65 Posts
                  posted this on the smf bridge support forum as well... sorry for the repeat.
                  Just got notification of SMF discontinuing (and deleting) their Joomla bridge due to a conflict with Joomla’s GPL license. Does this apply to MODx as well?
                  http://www.simplemachines.org/community/index.php?topic=184558.0
                    • 30223
                    • 1,010 Posts
                    Considering that SimpleMachines has not published and is not distributing a modx bridge this is not an issue.

                    A modx bridge (If you want to call it that) does exists but it’s developed by modx users and is available in the repository.
                      • 33992 ☆ A M B ☆
                      • 455 Posts
                      Hi,
                      I have installed SMF 1.14 and SMFssi, I have modified the load.php file but
                      when i put the SMFssi snippet in a doc, the page shows nothing, it becomes a blank page.
                      please help me to solve it,

                      Thanks
                      AHHP
                        God loves me. 【ツ】


                        MODX.ir (Persian Support)

                        Boplo.ir/modx/ (Persian)