Responsive WordPress Theme – Caliber

A theme with simple controls and limitless potential. Work fast and build an amazing website!   Find out more »

UpThemes – Beautiful WordPress Themes

Create a site your church, gallery, newspaper, blog, recipes, band and more!   See the themes »

Need a little help?  Find answers quickly by searching the forum.
Group Admins
  • andy
  • jeffw

Support for: Razor: Cutting Edge WordPress Theme

Razor

Public Group  |  active 1 year, 9 months ago ago
Viewing post 1 to 8 (8 total posts)

Buddypress group admin is not showing

  • rl2013

    said

    Group admin name is missing from the group header, anyone got this issue?

  • andy

    said

    They’re just hidden. I find that information to be wasteful. I don’t see how knowing who all the moderators and admins are for a group being useful information so I chose to hide it rather than junk up the header.

    If you want it to show, just add this to your Custom CSS in the Design Settings:

    #item-header #item-actions { display: block; }
  • rl2013

    said

    Hey, for anyone that need this, I have customize the group header display admin to smaller size avatar and display the admin and mod in a straight line. But requires to edit the buddypress file, if you are not comfortable editing the buddypress file dont use this.

    First add this css to your theme css:
    .adminn{ display:block; float:left; margin-left: -27px; }

    Open the file buddypress | bp-groups | bp-groups-templates.php.

    Around line 570 find this line:

    <a href="<?php echo bp_core_get_user_domain( $admin->user_id, $admin->user_nicename, $admin->user_login ) ?>"><?php echo bp_core_fetch_avatar( array( 'item_id' => $admin->user_id, 'email' => $admin->user_email, 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_core_get_user_displayname( $admin->user_id ) ) ) ) ?></a>

    Replace with this line:

    <a class="adminn" href="<?php echo bp_core_get_user_domain( $admin->user_id, $admin->user_nicename, $admin->user_login ) ?>"><?php $width = "20"; $height = "20"; $adminname = "$admin->user_nicename - admin"; echo bp_core_fetch_avatar( array( 'item_id' => $admin->user_id, 'email' => $admin->user_email, 'width' => $width, 'height' => $height, 'title' => $adminname, 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_core_get_user_displayname( $admin->user_id ) ) ) ) ?></a>

    Also remove the <li> and </li> around it
    —————

    At around 593 line find this line:

    <a href="<?php echo bp_core_get_user_domain( $mod->user_id, $mod->user_nicename, $mod->user_login ) ?>"><?php echo bp_core_fetch_avatar( array( 'item_id' => $mod->user_id, 'email' => $mod->user_email, 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_core_get_user_displayname( $mod->user_id ) ) ) ) ?></a>

    replace with this line:

    <a class="adminn" href="<?php echo bp_core_get_user_domain( $mod->user_id, $mod->user_nicename, $mod->user_login ) ?>"><?php $width = "20"; $height = "20"; $modname = "$mod->user_nicename - moderator"; echo bp_core_fetch_avatar( array( 'item_id' => $mod->user_id, 'email' => $mod->user_email, 'width' => $width, 'height' => $height, 'title' => $modname, 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_core_get_user_displayname( $mod->user_id ) ) ) ) ?></a>

    Also remove the <li> and </li> around it
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////

    A small issue when using this, if your group name is too long and you have several admin or mods, the name will overlap the avatars, if you have short group name limit than shouldn’t have much problem. Maybe someone with good css skill can help with this.

  • rl2013

    said

    @rkarel

    You’re welcome, glad it helps. To remove the group admin words

    Open up this file group-header.php

    parallelus-razor | groups | single | group-header.php

    At around line 11 find this line and delete it:

    <h3><?php _e( 'Group Admins', 'buddypress' ); ?></h3>

    Thats it :) , the admin icon should now inline with the group title.

  • jeffw

    said

    Always keep in mind that if you modify the core theme files then when you need to update the theme your modified files may be overwritten and your modifications lost. If you continue to modify the core theme files then updating the theme may become quite difficult for you.

Viewing post 1 to 8 (8 total posts)