This topic has 5 replies, 3 voices, and was last updated 11 years by SQadmin.

  • Author
  • #6277
     hughm
    Participant

    I believe there is a piece of code out of place which is making the Create a Group Button display for both Admin and Users. I fixed it by doing the following:
    1. Copied sweetdate/groups/index.php to sweetdate-child/groups/
    2. Modified line 21 to move the <?php endif; ?> to the end of the line:

    <h2 style=”display: inline;”><?php _e( ‘Groups Directory’, ‘buddypress’ ); ?><?php if ( is_user_logged_in() && bp_user_can_create_groups() ) : ?></h2>  “><?php _e( ‘Create a Group’, ‘buddypress’ ); ?><?php endif; ?>

    #6287
     adam
    Participant

    hi @hughm thanks for this! it was much needed. the problem i have though when I move the <?php endif; ?> code is that it messes up my “Order by” drop down. did this happen for you? do you know how to fix it? thanks again!

    #6290
     adam
    Participant

    I’m having trouble replying with my full code here. it seems to delete bits. maybe that’s the problem. is that the full code you posted?

    #6292
     hughm
    Participant

    Oops. Forgot to move the closing H2 tag to the end also. I think this works:

    <h2 style=”display: inline;”><?php _e( ‘Groups Directory’, ‘buddypress’ ); ?><?php if ( is_user_logged_in() && bp_user_can_create_groups() ) : ?>  “><?php _e( ‘Create a Group’, ‘buddypress’ ); ?><?php endif; ?></h2>

    #6293
     adam
    Participant

    That did it! Thanks!

    #6349
     SQadmin
    Keymaster

    Thanks @hughm for pointing this out. We will release the fix with v2.3 update

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 6 posts - 1 through 6 (of 6 total)

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?