[buddypress-trac] [BuddyPress] #4034: No Create Group Page

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Wed Feb 29 18:46:58 UTC 2012


#4034: No Create Group Page
--------------------------+---------------------------------
 Reporter:  markyeoj      |       Owner:  markyeoj@…
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Core          |     Version:
 Severity:  normal        |  Resolution:  invalid
 Keywords:  needs-codex   |
--------------------------+---------------------------------
Changes (by johnjamesjacoby):

 * status:  new => closed
 * resolution:   => invalid


Old description:

> Hello Buddy Press, I have a big problem, I can't create a group using my
> wordpress custom theme everytime  click the "create page" it gives me an
> error, "page has been moved". Here are the details
>  url: http://dev.freelanceu.net/mjl/miamischoolstudent/
>  Wordpress 3.3,
>  user and password: admin
>  Theme is just a custom theme.I'm the one who created it.
>
> before that, there is no "create group" button, that's why I added this
> to functions.php
>
> {{{
>
> function groups_subnav_hook() {
>     global $bp;
>
>     $groups_link = $bp->loggedin_user->domain . $bp->groups->slug . '/';
>
>     bp_core_new_subnav_item( array(
>         'name' => 'Create New Group' ,
>         'slug' => 'create',
>         'parent_slug' => $bp->groups->slug,
>         'parent_url' => $groups_link,
>         'position' => 10,
>         'screen_function' => 'groups_screen_group_members',
>         'user_has_access' => bp_is_my_profile() // Only the logged in
> user can access this on his/her profile
>     ) );
> }
> add_action( 'wp', 'groups_subnav_hook', 2 );
> add_action( 'admin_menu', 'groups_subnav_hook', 2 );
> }}}
>

> Hope you can help me,,

New description:

 Hello Buddy Press, I have a big problem, I can't create a group using my
 wordpress custom theme everytime  click the "create page" it gives me an
 error, "page has been moved". Here are the details
  url: http://dev.freelanceu.net/mjl/miamischoolstudent/
  Wordpress 3.3,
  Theme is just a custom theme.I'm the one who created it.

 before that, there is no "create group" button, that's why I added this to
 functions.php

 {{{

 function groups_subnav_hook() {
     global $bp;

     $groups_link = $bp->loggedin_user->domain . $bp->groups->slug . '/';

     bp_core_new_subnav_item( array(
         'name' => 'Create New Group' ,
         'slug' => 'create',
         'parent_slug' => $bp->groups->slug,
         'parent_url' => $groups_link,
         'position' => 10,
         'screen_function' => 'groups_screen_group_members',
         'user_has_access' => bp_is_my_profile() // Only the logged in user
 can access this on his/her profile
     ) );
 }
 add_action( 'wp', 'groups_subnav_hook', 2 );
 add_action( 'admin_menu', 'groups_subnav_hook', 2 );
 }}}


 Hope you can help me,,

--

Comment:

 1. Not a great idea to post your admin login and password
 2. This is our development tracker, and not the place to come for support.
 Please check out our support forums.

 Cheers

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4034#comment:1>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list