We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27509
    • 22 Posts
    I would like to integrate my forum into my modx template without the SMF forum integration connector. I would like this tot work with both userdatabes and admin functions separated from eachother
    My forum now sits inside a modx page and everything works fine except for the admin-function. What should I change in the procedure/codes described above to make this work?
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Wouldn’t it be a lot easier to just make your SMF template look like your MODx template, and customize the menu?
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 10076
        • 1,024 Posts
        great tutorial, worked without spending hours! Thanks,

        I do (off course) have a question, I am not sure how to squeeze the themse´ s CSS into my CSS sheet, rather, in my "content" div.
        In my source I get things mentioned twice eg the metatags, doctypes, so its using my template and its own template. cant seem to find that template?




        Frank.
          • 10076
          • 1,024 Posts
          Quote from: philumo at Oct 25, 2007, 04:48 AM

          i set everything as your says but nothing new. i cant login or logout . and the problem "blank page" beofre i link to forum nobody get it as me.

          and at the end of page when i click on FORUM link always appear "1" number. i check many times but i dont know why does "1" appear at the bottom of page.

          pls help me.

          thanks you

          Just could be I have the same problem. Maybe in the above example the error page is blank?
          Mine is not, and after I alter querystring.php all works fine but I can not log out (re-directed to Modx error page). When trying go to the smf admin page, I am asked for a password (not my username) when filling that out en clicking okay I get re-directed again to the modx error page?

          Rest of the forumworks fine and if i need to edit in the admin i can change the querystring.php file back to original and do my thing. So theres a workaround smiley

          Frank.
            • 29606
            • 63 Posts
            Quote from: Frank at Jan 09, 2008, 04:06 PM

            When trying go to the smf admin page, I am asked for a password (not my username) when filling that out en clicking okay I get re-directed again to the modx error page?

            Rest of the forumworks fine and if i need to edit in the admin i can change the querystring.php file back to original and do my thing. So theres a workaround smiley

            Frank.

            I had the same problem. Turned me mad to find a better workaround, until I unchecked the ’Disable administration security’ option in SMF admin configuration... All went well then !

            To use the SMF connector Administration Center link, I had to change the smf.admin.class.inc.php file, line :
            echo '<script>window.location.href="'.$this->boardurl.'/index.php?action=admin";</script>';
            by :
            echo '<script>window.location.href="'.$this->boardurl.'/forum.html?action=admin";</script>';


            Hope this helps !
              • 8790
              • 526 Posts
              You propose 2 files in you original post, but I don’t see anything accordingly to index.template.php in your explanations .

              What should be done with this one ?



              • However the blank page phenomenon is always present, whatever the completion of your procedure : EACH FIRST call to the integrate Modx forum page give - always - a blank page.

                BUT ONE REFRESH will (always too) leads to the expected page to load .?.??.?
              • May be with actual version 1.1.4 the copyright hack is not working anymore : I remarked the line but still get the warning message.
                Schtroumpf Grognon - Grouchy Smurf
                ---------------------------------
                Faites pas attention.. - Don&#39;t pay attention
                http://www.dzi-neo.net
                • 10076
                • 1,024 Posts
                Quote from: orbface9 at Jul 02, 2007, 03:29 AM

                I have tried to integrate SMF into ModX on two different servers.

                Before i modify Settings.php and QueryString.php, the Module within the CMS works and SMF shows up in my site, but links to the actual forum’s page.

                When i modify Settings.php and QueryString.php, the module only points to my error 404 page and SMF still shows up in my site, trying to point to the page i have set up for it, with variables following, and it again redirects to my error page.

                I appreciate any help i can get, I’m really new at this.

                http://www.newsignalwebdesign.com

                Had the same issue on my second install (first one was so quick and worked, yes! ), and saw after a few hours that there was a .htacces file in the forum dir.
                I renamed that one to ht.access and all okay. Not sure if that is dangerous, but it worked.

                Here ´s the content of that .htaccess file:

                <IfModule mod_security.c>
                	# Turn off mod_security filtering.  SMF is a big boy, it doesn't need its hands held.
                	SecFilterEngine Off
                
                	# The below probably isn't needed, but better safe than sorry.
                	SecFilterScanPOST Off
                </IfModule>

                  • 10076
                  • 1,024 Posts
                  I found that in this setup I was being pushed to the admin login of SMF. Looping! before the three last steps in this superb turtorial I noticed that ticking "Disable administration security" in "features and option" did the trick.
                  I get the admin also from within my template. Now to get rid of the two style sheets mixing.

                  fr

                  update: after syncing users i get a blank page to, hmm. I dont know where the sync writes to. Any ideas?
                    • 22176
                    • 32 Posts
                    This integration is a teaser.

                    Using the latest of everything (except for WebLoginPE cos WebLogin works better (ie, it works, at this stage apparently, with users being recognised across the bridge) , and following this superb tutorial, I have
                    - user recognition across the bridge (as i say)
                    - full module integration into the Modx cms - very cool but also least important.
                    - forum works splendid (in its own right).
                    - ssi’s work too and are excellent.

                    But in the process I think I’ve had about half a dozen of the problems that have been posted in this and related threads. Damn, I’m tired! Days, or a couple.

                    The last, remaining problem is, when I connect to the TV’d snippet via my forum page, it pulls up a blank page. Nothing, and no error. I see there have been many other people with this problem, and I’ve sieved all the responses, which seem worryingly assorted, I have trawled the boards and hacked my code. ...

                    Blankety blank.

                    I ran the error check, by the way, suggested by Broccoli, ...

                    echo ’beginning of the file’
                    ...

                    echo ’debug1’;
                    require(dirname(__FILE__) . ’/Settings.php’);
                    echo ’debug2’;
                    // And important includes.
                    require_once($sourcedir . ’/QueryString.php’);
                    echo ’debug3’;
                    require_once($sourcedir . ’/Subs.php’);
                    echo ’debug4’;
                    require_once($sourcedir . ’/Errors.php’);
                    echo ’debug5’;
                    require_once($sourcedir . ’/Load.php’);
                    echo ’debug6’;
                    require_once($sourcedir . ’/Security.php’);
                    echo ’debug7’;
                    ...

                    ...but that came up with very little that makes sense to me, said "debug1debug2Hacking attempt...".

                    I have separate db’s but with separate passwords (usernames are the same), and I’ve been flicking switches on and off in the forum’s admin panel, as suggested above by you lovely lot. I have no problem loading my empty template page when I delete the snippet.

                    er, er, er.

                    Damn.

                    Any ideas, folks. I know it is more than likely I’ve not been as thorough as I’d like to think, obviously there is one base at least that needs uncovering. huh

                    I would be greatly appreciative, and already am for all the valuable support above.

                    ...I’ve noticed one or two comments along the lines of, "sorry I should not be asking this." For the record, it’s often those posts that have answered my questions about Modx and php joy, so please do ask silly questions. I’ll doubtless keep you company.

                    Will keep looking into this myself now but if there are any hints, just a tint of a hint? huh

                    Cheerio.

                    Olly.

                    UPDATE: dunno what I’ve done now...I’m getting a Problem Loading Page, localhost taking too long to respond. If that’s a related clue? Tx.
                      www.Guvnr.com

                      .. blogging &#39;bout a way wider web

                      Currently publishing - a 20 part video series:-

                      Set Up Unmanaged VPS (4 Newbies) .. The V-P-S Bible
                      • 22176
                      • 32 Posts
                      OK, well here’s the solution to my problem. Probably others fell into the same trap.

                      Brocoli, let me say, your tutorial is superb, thank you. There is one glitch, however, in the Bridge documentation. Brocoli says to install the bridge in the normal way.

                      "Step 2: Installations
                      Install modx in the normal way
                      Install SMF in the normal way (in "/forum" directory for example)
                      Install SMF_Forum_Integration_1.0 in the normal way"

                      He’s right. Except...

                      with the Forum Integration download comes the documentation, adn it’s in here that the instructions are slightly wrong.

                      They say to sync users, a wee bit earlier than works, or at least that worked for me. My advice, ignore that instruction to sync, and carry on with Brocoli’s instructions, which in fact tell you to sync later.

                      If you sync according to Brocoli, not the bridge download instructions, you should have plain sailing.

                      should. i said should!

                      olly.

                      grin

                        www.Guvnr.com

                        .. blogging &#39;bout a way wider web

                        Currently publishing - a 20 part video series:-

                        Set Up Unmanaged VPS (4 Newbies) .. The V-P-S Bible