Forum Replies Created

Viewing 15 replies - 46 through 60 (of 76 total)
  • Plugin Author meloniq

    (@meloniq)

    Plugin Author meloniq

    (@meloniq)

    Since 1.0.5 there is an option in admin to choose side of bar where the flags should appear.

    Forum: Hacks
    In reply to: Universal Login for 13 Blogs

    Re: templs
    If blogs are in sub directories see post: https://www.ads-software.com/support/topic/universal-login-for-13-blogs?replies=37#post-2454164

    Downloaded and installed “WP-Orphanage Extended” and everything looks like on screenshot?! maybe You installed wrong plugin, means “WP-Orphanage”?!

    Links to both:
    WP-Orphanage : https://www.ads-software.com/extend/plugins/wp-orphanage/
    WP-Orphanage Extended : https://www.ads-software.com/extend/plugins/wp-orphanage-extended/

    Plugin Author meloniq

    (@meloniq)

    New release should be published in about middle of March.

    Haven’t prepared new flags yet, so can’t send it to You.

    Plugin Author meloniq

    (@meloniq)

    Will be added to next release, will try to add other missed countries too.

    To add it into plugin right now, You can…

    1. Prepare flag 24x48px, name it as “flag_al.png”, place in “images” folder.

    2. Add into europe_native array (countries.php):
    ‘al’ => ‘Shqip?ria’,

    To europe array:
    ‘al’ => __(‘Albania’, ‘mnet-langbf’),

    3. Add to style.css file
    .langbf_al { background: url(“images/flag_al.png”) no-repeat scroll center top transparent; }
    .langbf_al:hover { background: url(“images/flag_al.png”) no-repeat scroll center bottom transparent; }

    Forum: Hacks
    In reply to: Universal Login for 13 Blogs

    Let say that you have blog A, B and C.
    You store users and thier meta in table of blog A.
    In configuration of plugin you set prefixes “a_ , b_ , c_”.
    Default role you set to Job Seeker.

    When user register on blog B as a Job Lister, and then try to login on blog C, plugin will search for roles saved for other blogs…
    means will try to get “a_capabilities, b_capabilities, c_capabilities” to assign the same role, in this case should find it in blog B capabilities meta, and copy it to blog C. Only if script didn’t found any role, will set default one.

    Forum: Hacks
    In reply to: Universal Login for 13 Blogs

    RE: Keshav
    Copy as is, just change domain to your.

    RE: Alex.R
    If you still looking for solution with transfering user roles from other WP installations (JobRoller use 3 custom roles) – test extended version of WP-Orphanage plugin ( https://www.ads-software.com/extend/plugins/wp-orphanage-extended/ ), I published it just today;)

    Hi,

    Open “rating-widget.php”
    Remove this line (~2757):

    // Hook post rating showup.
    add_action('the_content', array(&$this, "rw_display_post_rating"));

    In the same place add line:
    add_action('meloniq_post_rating', array(&$this, "rw_display_post_rating"));

    Open “YourTheme/functions.php” and add:

    function meloniq_post_rating() {
    	$content = '';
    	$content = apply_filters('meloniq_post_rating', $content);
    	echo $content;
    }

    Now call function “meloniq_post_rating()” (almost) wherever You wish;)

    Forum: Hacks
    In reply to: Universal Login for 13 Blogs

    Users which gonna use sub-directories instead of sub-domains should add 2 additional parametres into wp-config.php:

    define('ADMIN_COOKIE_PATH', '/');
    define('SITECOOKIEPATH', '/');

    Forum: Hacks
    In reply to: Universal Login for 13 Blogs

    Yes, one database for all wordpress installs (if You have already installed “root blog” use his database to install second and third wordpress, if not – create new one).

    You will not loose anything what You already made on Your “root blog”, for this You have to set different “prefix” for every wp install (but make a backup of DB, just for a case that something goes wrong).

    Yes, You should use the same username and password for Your database as in “root blog”.

    Forum: Hacks
    In reply to: Universal Login for 13 Blogs

    RE: lindaloustarr
    Explain of step number 1:
    a. Create one new database for all of WP installs, lets say “MyNewDB”,
    b. In wp-config.php file of main and slave blogs set the same values which You will generate on below site:
    https://api.www.ads-software.com/secret-key/1.1/

    define(‘AUTH_KEY’, ‘XYZ’);
    define(‘SECURE_AUTH_KEY’, ‘XYZ’);
    define(‘LOGGED_IN_KEY’, ‘XYZ’);
    define(‘NONCE_KEY’, ‘XYZ’);

    c. Then install first main WP blog with table prefix “wp_” (as WP default prefix for tables)
    d. Second blog You already can’t install with the same table prefix so lets change it for example to “blog2_”, third WP with “blog3_” etc…

    RE: Alex.R
    In Your case that You need more then one user role, You should to skip step with WP-Orphanage, and make a “hardcoding” inside of file “wp-includes/capabilities.php”, means edit prefix for “capabilities” meta and perhaps for “user_level”
    Piece of informations: https://www.ads-software.com/support/topic/wordpress-25-share-users-table

    Forum: Hacks
    In reply to: Universal Login for 13 Blogs

    Sorry for long awaiting for answer (forgot about this topic)…

    I tested above solution on one of my websites and it works fine except one thing, transfer login between WordPress installs… correct settings should be:

    1. Install WordPress with the same “secret key”, in one database but with different prefix -> https://api.www.ads-software.com/secret-key/1.1/

    2. For all WP installs activate plugin WP Orphanage
    https://www.ads-software.com/extend/plugins/wp-orphanage/

    3. For “slave” WP installs add to wp-config.php data of main blog user tables

    define(‘CUSTOM_USER_TABLE’, ‘MainBlogPrefix_users’);
    define(‘CUSTOM_USER_META_TABLE’, ‘MainBlogPrefix_usermeta’);

    4. After this one step You can’t access wp-admin, right? so add 2 new meta for admin user via phpMyAdmin (or any other equal panel) – add it to “MainBlogPrefix_usermeta”

    user_id => 1
    meta_key => SlaveBlogPrefix_user_level
    meta_value => 10

    user_id => 1
    meta_key => SlaveBlogPrefix_capabilities
    meta_value => a:1:{s:13:”administrator”;s:1:”1″;}

    5. Now You can access admin panel, but still login is not transfered between WP installs, so…
    Open all Your wp-config.php files and paste the same values (off course change domain to Yours before paste)

    define(‘COOKIE_DOMAIN’, ‘.YourMainDomain.com’);
    define(‘COOKIEPATH’, ‘/’);

    $baseurl = ‘https://www.YourMainDomain.com’;
    $cookiehash = md5($baseurl);
    define(‘COOKIEHASH’, $cookiehash);
    define(‘AUTH_SALT’, ‘AUTH_SALT’.COOKIEHASH);
    define(‘LOGGED_IN_SALT’, ‘LOGGED_IN_SALT’.COOKIEHASH);
    define(‘AUTH_COOKIE’, ‘AUTH_COOKIE’.COOKIEHASH);
    define(‘SECURE_AUTH_COOKIE’, ‘SECURE_AUTH_COOKIE’.COOKIEHASH);
    define(‘LOGGED_IN_COOKIE’, ‘LOGGED_IN_COOKIE’.COOKIEHASH);
    define(‘TEST_COOKIE’, ‘TEST_COOKIE’.COOKIEHASH);

    6. Delete all cookies for Your domain and test how login works right now;)

    P.S. Hope that didn’t missed any step, and this tips will be usefull for You;)

    Forum: Hacks
    In reply to: Universal Login for 13 Blogs

    I can check and test it in a next few days… but now, I need to hurry a lil, deadline of one project is really close:/

    Forum: Hacks
    In reply to: Universal Login for 13 Blogs

    Whole informations to make this integration are in posts above…
    I dont know how to explain it more clearly…

    If You still have got problems to setup it correctly, make a custom order via email: https://blog.meloniq.net/kontakt/

    Forum: Hacks
    In reply to: Universal Login for 13 Blogs

    Whats Your second WordPress installation URL?
    Did You add on “slave” installation to wp-config these lines?

    define('CUSTOM_USER_TABLE', 'MainBlogPrefix_users');
    define('CUSTOM_USER_META_TABLE', 'MainBlogPrefix_usermeta');

    If You can’t login perhaps You missed lines above, if You can’t access “wp-admin” perhaps You are “Orphan” (user without roles)

Viewing 15 replies - 46 through 60 (of 76 total)