We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1841
    • 141 Posts
    Does anyone have any idea how the sessions could be shared, there must be scope there to do as if you logout of Wordpress while in Modx using this then you get logged out of Modx too.
      • 12379
      • 460 Posts
      Yeah, I’d like to know off the back of my previous post.
        Mostly harmless.
        • 34066 ☆ A M B ☆
        • 23 Posts
        When installing Wordpress in Subdirectory of Modx, wordpress install needs access to the root "index" & "htacess" file. The instructions here: http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory


        My Question: When I integrate the wordpress "index.php" with the root "index.php" (with the modx "index.php" file) do i include the "<?php" & the closing tag from from WP "index.php" OR just the codes inbetween?

        This is what I mean, the root "index.php" file starts like this:

        <?php
        /*
        *************************************************************************
        MODx Content Management System and PHP Application Framework
        Managed and maintained by Raymond Irving, Ryan Thrash and the
        MODx community
        *************************************************************************
        MODx is an opensource PHP/MySQL content management system and content
        management framework that is flexible, adaptable, supports XHTML/CSS
        layouts, and works with most web browsers, including Safari.

        MODx is distributed under the GNU General Public License

        --------------------------------------------------------------
        ((((((((((((((((((((((My question)DO I INTERGRATE WP index.php; like this: (look @ bottom)
        ----------------------------------------------------------------

        <?php
        /*
        *************************************************************************
        MODx Content Management System and PHP Application Framework
        Managed and maintained by Raymond Irving, Ryan Thrash and the
        MODx community
        *************************************************************************
        MODx is an opensource PHP/MySQL content management system and content
        management framework that is flexible, adaptable, supports XHTML/CSS
        layouts, and works with most web browsers, including Safari.

        MODx is distributed under the GNU General Public License
        *************************************************************************
        <?php
        /**
        * Front to the WordPress application. This file doesn't do anything, but loads
        * wp-blog-header.php which does and tells WordPress to load the theme.
        *
        * @package WordPress
        */

        /**
        * Tells WordPress to load the WordPress theme and output it.
        *
        * @var bool
        */
        define('WP_USE_THEMES', true);

        /** Loads the WordPress Environment and Template */
        require('./wordpress/wp-blog-header.php');
        ?>

        -------------------------------------------
        OR DO I DO IT LIKE THIS? (at beggining without opening & closing "php" tags)
        ------------------------------------------------

        <?php
        /**
        * Front to the WordPress application. This file doesn't do anything, but loads
        * wp-blog-header.php which does and tells WordPress to load the theme.
        *
        * @package WordPress
        */

        /**
        * Tells WordPress to load the WordPress theme and output it.
        *
        * @var bool
        */
        define('WP_USE_THEMES', true);

        /** Loads the WordPress Environment and Template */
        require('./wordpress/wp-blog-header.php');

        /*
        *************************************************************************
        MODx Content Management System and PHP Application Framework
        Managed and maintained by Raymond Irving, Ryan Thrash and the
        MODx community
        *************************************************************************
        MODx is an opensource PHP/MySQL content management system and content
        management framework that is flexible, adaptable, supports XHTML/CSS
        layouts, and works with most web browsers, including Safari.

        MODx is distributed under the GNU General Public License

        *************************************************************************
          Tony Porto | Valpo Creative | http://www.valpocreative.com
          • 34066 ☆ A M B ☆
          • 23 Posts
          FYI: I have Wordpress installed in subdirectory where my WP address is http://www.mywebsite.com/wordpress
            Tony Porto | Valpo Creative | http://www.valpocreative.com