Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 15 replies - 26 through 40 (of 40 total)
  • @mgrmn

    Participant

    See answer of @shanebp , or use the shortcodes, as explained http://www.s2member.com/kb/simple-shortcode-conditionals/

    @mgrmn

    Participant

    See this link http://www.s2member.com/kb/s2member-conditionals/ it explains how to get the conditionals using PHP, since I do not have s2 installed can’t get them for you

    Did some more reading for ya.

    try if (current_user_is("s2member_level1")) { echo "Woohaa got LEVEL 1" ; }

    and or echo S2MEMBER_CURRENT_USER_ACCESS_LEVEL;

    @mgrmn

    Participant

    To see the output of that, you can either put that in your theme/functions.php or i would say bp-custom.php in dir /plugins/pb-custom.php i saw that simular code of yours on stackoverflow.

    Not sure what you are tying to accomplish with that s2, but the issue is probably not that piece of code, but more trying to get the right levels.

    That code all it does, is checking usernames, so if username is “fred” it will remove the bp_core_record_activity but not according to levels. You need to figure out a way getting it to print out the levels. and then do a if or else statement per level.

    In reply to: Create Group

    @mgrmn

    Participant

    Not sure which file, however you should look in these directories look for div id subnav, it should be somewhere is my best guess for manual adding what you want.

    /bp-templates/bp-legacy/buddypress/groups || /bp-themes/bp-default/groups

    If you have it installed locally, I suggest you give that a try before editing online files.

    If you are using linux you can use a command like below to see which files have the subnavigation menu.

    sudo grep -lir “subnav” /var/www/wp-content/buddypress/
    or
    sudo grep -ir “subnav” /var/www/wp-content/buddypress/ (this will show you relevant code.

    If Windows, I suggest you use something simple like EditPlus open up all files, and use search function (If I remember correctly, check search all open files or something like that

    In reply to: Create Group

    @mgrmn

    Participant

    @dran2013 What you can do is this.

    FILES:
    /wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/member-header.php
    /wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/groups/single/group-header.php

    Add below <span class=”activity”><?php bp_last_activity( bp_displayed_user_id() ); ?></span>
    something like Create Group

    Enjoy

    In reply to: Create Group

    @mgrmn

    Participant

    Its there, just not included somehow within your template. That is if I understood it correctly. Since the button in within the_title tag of the template, if not included, no CREATE GROUP button is added to your template. So either have to include that part of code.

    Or manually add somewhere to the page.. still trying to figure out which one. tried.. groups / and members single .. but no changes.. weird
    /bp-themes/bp-default/groups/single/home.php
    /bp-themes/bp-default/groups/single/group-header.php

    In reply to: Create Group

    @mgrmn

    Participant

    apply_filters( 'bp_page_title', esc_attr( $title ), esc_attr( $title ) ); something like that ?

    In reply to: Create Group

    @mgrmn

    Participant

    One I am with /groups/ I can go to /groups/create/ and it will show me the form. Thank you.

    As far as “Page title is not within the WordPress loop”, where do I look to get fixed, cause all the PB pages have the same thing, just say “Page”

    @mgrmn

    Participant

    Not sure, but I believe you need to add get_currentuserinfo(); for the part getting user info.

    Try something like this to debug and see if you get any reponse at all.

    function debug_userinfo() {
    	global $current_user;
          	get_currentuserinfo();
    	echo 'Username: ' . $current_user->user_login . "\n";
          	echo 'User email: ' . $current_user->user_email . "\n";
          	echo 'User first name: ' . $current_user->user_firstname . "\n";
          	echo 'User last name: ' . $current_user->user_lastname . "\n";
          	echo 'User display name: ' . $current_user->display_name . "\n";
          	echo 'User ID: ' . $current_user->ID . "\n";
    }

    See wp codex https://codex.wordpress.org/Function_Reference/get_currentuserinfo

    In reply to: Create Group

    @mgrmn

    Participant

    Yes, they are all checked / enabled

    BuddyPress -> Components & BuddyPress -> Settings

    Can not add groups, not as Admin , Not as User. Neither can I as Admin via Admin panel Groups.
    Only direct insert DB

    In reply to: Create Group

    @mgrmn

    Participant

    I wish it did, but it doesn’t, I can insert them manually into the DB, but that isn’t the idea 🙁

    In reply to: Create Group

    @mgrmn

    Participant

    Either I am starting to get blind or..

    1) http://domain.com/members/%5Bprofile%5D/groups/ (No option / Link that says, create | create group)
    2) http://domain.com/members/%5Bprofile%5D/activity/groups/ (No option / Link that says, create | create group)

    1) image http://postimg.org/image/c8w5h79eh/
    2) image http://postimg.org/image/ago0oz7yl/

    @mgrmn

    Participant

    Yes thank you, it actually does. Thank you very much that worked. Not a PHP pro, but I can manage it from here i guess.

    That did the trick for me [resolved]

    @mgrmn

    Participant

    I this a stupid question I’m asking? Can somebody please direct me into the right directions

    Thank you very much.

    @mgrmn

    Participant

    Wondering if i missed something, removed sidebar from these pages, but they are stil showing

    www/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/index.php
    www/wp-content/plugins/buddypress/bp-themes/bp-default/members/index.php

    BP 1.7
    wp 3.5.2

Viewing 15 replies - 26 through 40 (of 40 total)
Skip to toolbar