WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Data connections (11 posts)

  1. RichardWantsToKnow
    Member
    Posted 1 year ago #

    Which file(s) in EM direct the plugin to the tables that hold the data?

    http://wordpress.org/extend/plugins/events-manager/

  2. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    do you mean the table names, or SQL statements? If table names, it'd be in events-manager.php, if the latter then everywhere.

  3. RichardWantsToKnow
    Member
    Posted 1 year ago #

    I'm thinking the tables names.
    We have two sites, one the primary domain of the hosting account and the second as a sub-domain on the account; and would like to have EM installed on both, but with the second install being a read-only, taking the data from the tables of the EM install on the primary domain. Trying to avoid having to 2x enter the data.

  4. RichardWantsToKnow
    Member
    Posted 1 year ago #

    In the events-manager.php, do you think I could get to my goal if these lines only were modified to look at dedicated paths to the primary domain where the databases are located???

    If so, .... what would be the syntax?

  5. agelonwl
    Member
    Posted 1 year ago #

    yes, you can try to look into events-manager.php as per @Marcus suggestion at around line 140 to 147

  6. RichardWantsToKnow
    Member
    Posted 1 year ago #

    @agelonwl,
    But what would the proper syntax be???

  7. agelonwl
    Member
    Posted 1 year ago #

    sorry for additional question; are you trying to install EM on both site But will only access one database only?

  8. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    If using the same database (kind of necessary), then you could just modify the $prefix value in your second blog so it references the prefix of your first blog.

  9. RichardWantsToKnow
    Member
    Posted 1 year ago #

    @agelonwl,
    Yes, that is option #1 (preferred).

    @Marcus,
    Could elaborate on the 'modify the $prefix value' part??? Where do I find it? Modify with what? (I know you are intimate with the code; me on the other hand, ... not so much. You'll have to excuse my ignorance.)

  10. agelonwl
    Member
    Posted 1 year ago #

    you can see $prefix at events-manager.php at around 135 to 139

  11. RichardWantsToKnow
    Member
    Posted 1 year ago #

    Okay, found that, but....
    I see two instances of $prefix, and two of the actual prefix in use (yyyy). Do I change one, two or all three???

    //Table names
    global $yyyy;
    if( EM_MS_GLOBAL ){
    $prefix = $yyyy->base_prefix;
    }else{
    $prefix = $yyyy->prefix;

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic