Skip to:
Content
Pages
Categories
Search
Top
Bottom

Duplicate version of groups on same site. Ajax.php

  • @ethanellis

    Member

    I’m working on a site that is making use of buddypress 1.2.8 everything works well besides 1 thing.

    The site needs groups and a copy of groups. The groups are used as groups for clans and the other groups need to be used for tournaments. What I had done was to take all the group information and just copy and paste a new version and rename everything in the new version to tournaments.

    The last thing I now need work with is the AJAX.php file to get the invites working.

    Where am I going wrong? I tried countless different ways with either error messages or it simple just does not work. Any advice would be great.

Viewing 5 replies - 1 through 5 (of 5 total)
  • @ethanellis

    Member

    I still can’t figure this one any. Anyone has an idea?

    @r-a-y

    Keymaster

    Instead of adding your tournament code directly into the bp_dtheme_ajax_invite_user() function, you’d need to duplicate and rename that entire function and add_action and do a search and replace for groups to tournaments.

    @ethanellis

    Member

    @r-a-y I tried that with no luck.

    @r-a-y

    Keymaster

    If you duplicated and renamed the function and add_action, you’d also need to add some javascript, so WP will recognize the new AJAX function.

    Check out the following lines in in /bp-default/_inc/global.js:
    https://buddypress.trac.wordpress.org/browser/tags/1.2.8/bp-themes/bp-default/_inc/global.js#L607

    @ethanellis

    Member

    @r-a-y Thanks a million. Its now working with your advice and a few tweaks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Duplicate version of groups on same site. Ajax.php’ is closed to new replies.
Skip to toolbar