We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23072
    • 150 Posts
    Having just completed integration (of a sort) between Invision Power Board, MODx, Wordpress and another only semi-linked-in bit of software with the help of IPBWI, I thought I’d start off a topic where you can post your most insane mashups.

    Using IPBWI, which allows you to access the functionality of IPB outside of IPB, I was able to integrate a tonne of functionality (logins, registrations, who’s online, member links, board stats) into MODx. Integrate probably isn’t the right word as I didn’t actually join up MODx’s user database with IPB’s, but rather made using the MODx user functionality unneccessary (there will only be two staff members adding content to this particular MODx site and I can now restrict what pages people view with a simple TV containing the relevant IPB member groups that are allowed to view each page).

    Then, using the recent Wordpress functionality built into IPBWI, anyone logging in through the login page I built in MODx is automatically logged into Wordpress. This is neat so that when you go to view an article after logging in, you don’t have to log into Wordpress as well to leave a comment. Deoending on their Wordpress role, I can also then give those with access a "My Articles" link that goes to the WP backend after login.

    It gets a little less sane from there on - next, I edited MODx’s index.php page to LOAD WORDPRESS INSIDE MODx to use some Wordpress functions to grab certain user and post information (mainly to do the "My Articles" link. Don’t try this at home kids - it works fine, but essentially for every page load you’re then unneccessarily loading both most of Wordpress and all of MODx and it’s not particularly upgrade-friendly wink

    Then after that I did something else that’s not recommended - I booted up MODx inside Wordpress (opposite of the above) so that I could use the MODx API functions inside the Wordpress templates. Same thing applies as above - it worked, but there’s two systems loading with each page load in Wordpress now and the danger of overwriting these custom lines of code with Wordpress’s annoying "Upgrade Now" button in the admin area when they do one of their numerous minor releases. I was impressed though that runSnippet worked in a lot of cases, though I did run into some path issues with WayFinder and AjaxSearch - fairly sure the authors didn’t expect anyone to do anything as bizarre as I was wink It did allow me to run the IPB snippets I’d created though and pull in the member bar, stats and online members info again into Wordpress’s sidebar.

    Part of the whole experiment was a necessity for a project that I’ll be managing (so the tenuous upgrade path isn’t a big problem as I’ll be handling software upgrades), but it’s very non-upgrade-friendly still nonetheless, and if you had a big, busy WP installation and a big, busy MODx site then the two systems loading together on each page load could really start to chew through server resources.

    It did open my eyes to something though - whilst Wordpress has improved in terms of interface and end-usability over the years, it’s still woefully locked into now-obsolete PHP4 code. The core is very much NOT Object-Oriented so the system itself isn’t wrapped inside a class and is therefore prone to naming conflicts left, right and centre when you attempt anything as daft as I have above. It did boggle my mind for a while as to why, with all the improvements they’ve made to WP over the years, they’ve not upgraded the core to use PHP5’s many improvements (PHP5 being quite old now as well!), but then I realised that if they did rewrite it then it would break hundreds of thousands of sites simultaneously as plugins broke all over the show.

    Next to that, making IPB "integrate" with MODx using the IPBWI functions was a piece of solid, OO cake that won’t fall apart (crumble if you will) unless I really try and break it. Much more of a joy to work with.

    Enough of my latest, crazy mashup - what’s the weirdest thing you’ve ever tried to bind together in such a sticky-tape-on-a-leaky-pipe sort of way? wink
      Notanotherdotcom Ltd

      Web | Print | Marketing
      • 25663 MODX Staff
      • 12,272 Posts
      That’s just plain cool. Well done and thanks for sharing. smiley

      Now, how about the link?
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 23072
        • 150 Posts
        Cheers Ryan

        Website (MODx): http://bit.ly/MEKW0
        Forums: http://bit.ly/1qw6sv
        WP Install: http://bit.ly/2U8vMT (still being tested and will eventually be in a folder called Articles)

        Everything’s still a work in progress and I’m masking URL’s here so as not to give out the name of the site because it’s not fininshed/still on a soft-launch/needing a redesign wink
          Notanotherdotcom Ltd

          Web | Print | Marketing
          • 4971
          • 964 Posts
          Wow! very, very nice site... congrats!

          Is the home page made with ditto? looks like a blog!

          Are you going to use, or are using one of the calendar add-ons here in MODx?

          The forums look very good... excellent integration...

          Nice, keep up the good work...
            Website: www.mercologia.com
            MODX Revo Tutorials:  www.modxperience.com

            MODX Professional Partner
            • 22840
            • 1,572 Posts
            LOOKS FANTASTIC grin

            I presume IPBWI now supports IPB3 ??

            What were your experiences like with porting it over to MODX ??

            I notice on the modx home page the links go through to forum posts, was that easy to implement ??

            I have extensive knowledge of IPB and would love some pointers into getting it working with modx and how your pulling the forum posts through so any pointers or documentation you could link to would be great

            Cheers

            Paul
              • 23072
              • 150 Posts
              @charliez - Thanks, it’s not my finest designing ever, but it’s functional.

              I just changed the homepage today so the topics in the main column are now pulling data straight from Wordpress (there weren’t a lot of articles to port over) and the Articles link is now where Wordpress sits.

              I may well add a calendar at some point but it’s not on my list of priorities yet - just finishing stuff onff with Wordpress so that people can ebgin contributing and make things look a bit more interesting (with pictures - waaaay too mcuh text there at the mo!).

              @paulp - Cheers smiley

              Nope - IPBWI is still supporting IPB 2.3.6 at the mo. I’m not in a huge rush to upgrade as Invision are supporting both branches for now, though I presume it’ll only be security updates for 2.3.6 from now on.

              There is something called IPBSDK 3 which is being worked on for IPB3 integration, however that’s in the early stages from what I can see.

              Everything with IPBWI is pretty simple once you’ve got it set up. The examples are a real help and then it’s just a case of putting it all in a snippet and off you go. There were a few tricky things in terms of errors that I ran into when I first started using it a few years ago with MODx, but that was mostly because my MODx knowledge wasn’t as good as it is now so it’s worth having a play with if you’ve go the time.

              ALL the IPBWI documentation can be found here: http://docs.ipbwi.com/ and the examples are included in the download package.
                Notanotherdotcom Ltd

                Web | Print | Marketing