We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21778
    • 223 Posts
    Anyone know how the SMF-Bridge Access the SMF-Forum administration panel? This shouldn’t have anything to do with my web-login? I seriously can’t find out why this is not working on my modx?! Forum/Bridge installs perfectly. I don’t expect Register/Web-login to work duo WebLoginPE, But the module should be able to access my forum admin !

    Makes no sense to me what so ever smiley

    When i go to Modules > SMF Connector >Administration Center i just get a plain white screen, no error
      • 25551 ☆ A M B ☆
      • 1,231 Posts
      I would say you’re not going to get very far with it... there are so many people who failed to get it working and it’s not worked for me. I tried with several different builds of modx and smf and none have worked. Save yourself some time and heart ache and keep them separate.
        Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
        AugmentBLU - MODX Partner

        BLUcart - MODX Revolution E-Commerce & Shopping Cart
        • 10076
        • 1,024 Posts
        Hi,

        well just to confirm it works for me with ver 1.1.4 of SMF. SMF was down 2 nights ago when I copied the stuff over so I did not update and do not know what it does with newer releases.
        Anyway crux is at two point I think:

        • Make sure you disable administrative security (in features and options) in step 3.
        • At least save your current SMF template (or make a new one) give that one a name (eg theme1), make it default and copy the attached index.template.php into that newly created directory (should be there, in this case theme1) over ftp
        Got it up and running on http://www.foto-retouch.nl/forum.html all is syncing well, no blanc pages nowhere. I know its a shitty page, and the styling is far from done. Also teh div that SMF is in is only 625px width, but hey it was just for this thread,

        Frank.
          • 21538
          • 1 Posts
          Hi,

          As another fresh newbie I think I missed an important step for a simple-basic-standard integration of SMF. So far I’ve successfully completed the steps as described in the download of SMF connector:
          1. Install modx in the normal way
          2. Install SMF in the normal way (in "/forum" directory for example)
          3. Install SMF_Forum_Integration_1.0 in the normal way"

          From this point I’m trying to figure out how to call the forum itself to one of my document pages in modx. I understand this has to be done via a snippet, but so far i haven’t written any snippet by my own, so this is where i get lost. I made one attempt of copying the code of ’smf/index.php’ into a new snippet (replacing the require_once paths with the corresponding "$modx->config[’base_path’]", and introducing some global variables used by smf: "global $modSettings, $db_prefix, etc"), but i still get errors that i suspect are occuring because the values of my global variables get emptied ("") whithin a function call that is in any external php file located in smf’s folder (I’m pretty new to php as well).

          Is there any place where i can get the correct snippet code? something i can directly copy to the resources manager and get it working correctly?... or any hint at all?

          Thanks in advance
            • 10076
            • 1,024 Posts
            Hi

            If you go to the resources/snippets page. Click "new snippet" and paste the following:

            <?php
            include_once($modx->config['base_path'] . '/forum/index.php');
            return ;
            ?>


            Name it the way you want (eg forumcall) and place a call on the page you want. [!forumcall!].

            Above snippet code presumes the SMF is in a directory called forum. (forum/index.php’);)

            This can be read in step three on the beginning of this thread. Best.

              • 19308
              • 4 Posts
              I’ve muddled my way through this tutorial and these forums.
              I’ve gotten as far as I believe I can get (new to modX and to SMF and to PHP - HAH! - I’m a webdev by trade but I work with .NET)
              Anyway, I have everything working to a point.
              When I go into either of the module areas (administration center or synch) I get the following errors:

              Admin Center:
              Fatal error: Call to undefined function smf_loginbyid() in /home/<mysiteDirectory>/public_html/assets/modules/smforum/smf.admin.class.inc.php on line 36

              Synchronize Users:
              Fatal error: Call to undefined function smf_registermember() in /home/<mysiteDirectory>/public_html/assets/modules/smforum/smf.sync.class.inc.php on line 114

              I’m guessing there’s a missing ’includes’ somewhere but I’m not positive where to look.

              I’m on modX 0.9.6.3 and SMF 1.1.9.

              I’ve seen these errors elsewhere within the forum but have yet to see a definitive answer.

              Oh - and there was one other bit I had to sort out as well -- my SMF installation was through SimpleScripts so it installed a seperate DB and directory so the SMF DB had to be modified - adding the modX generated username/pwd for the modX DB. (in case anyone else is having errors like ’<user>@localhost’ denied access to ’<some_SMFTable>’


              Thanks in advance!
                Atop a hundred-foot pole, how do you step forward? -- Shishuang
                • 15083
                • 697 Posts
                Most excellent tutorial, get yourself onto the documentation team!!!
                Very clear, very concise...worked first time smiley
                  • 30699
                  • 3 Posts
                  Brocoli,

                  Thanks for this tutorial! Do you know how I can use SMF login, logout, register, profile functions instead of that of Modx. I just want to have SMF inside my Modx template but I don’t want to use modx webloginpe. Do you have any idea aside from manually working on the templates of SMF? Thanks! grin
                    • 28230
                    • 4 Posts
                    I want to start by saying "Great Tutorial"

                    I have a problem with my install long before I get to the errors that have been talked about so far.

                    Here is were I am:

                    Modx - 1.0.0 (Installed no errors)
                    SMF - 2.0 rc (Installed no errors)
                    SMF Connector 1.0 here is were the problem begins

                    When I run the install directory for the connector mod this is the out put I get.

                    _________________________________________________________________________________

                    Setup will now attempt to setup the database:

                    Creating connection to the database: OK!

                    Selecting database `USER_modx`: OK!

                    Module:

                    SMF Connector: Upgraded

                    Plugin:

                    SMFConnect: Upgraded


                    Fatal error: Call to a member function getFullTableName() on a non-object in /home/USER/public_html/modx/manager/processors/cache_sync.class.processor.php on line 107

                    _______________________________________________________________________________________________

                    I have seached the forums for a similar problem and have tried some of the solutions for the ones I found. I have not been able to get past this error.

                    Any suggestions?
                      • 21395
                      • 91 Posts
                      This isn’t a fix necessarily, but: check your modx database. If the table-names have prefixes, you get this error.

                      I wasted hours trying to figure it out, then realised that the piece of code concerned in the installation program doesn’t seem to mention prefixes.

                      So I did another installation, on another MODX site I run, on the same server, but where I didn’t create MODx table-name prefixes at installation, and no problem.

                      As it happens, it is probably immaterial, which is why no-one has bothered to fix it: the routine concerned is just clearing the cache - always good manners. Fix it if you know how, or take the prefixes off your DB tables, or just ignore it: everything was in fact installed correctly and you can get on to the hard stuff...
                        MODX Revolution 2.6.5-pl (traditional)

                        Hosted on MODX Cloud

                        Skype: nicbaldeagle