Replies
I found this in the themes function file:
‘/*add font awesome into buddypress navigation*/
if(!function_exists(‘arcane_mb_profile_menu_tabs’)){
function arcane_mb_profile_menu_tabs(){
global $bp;
$profile_icon = ‘<i class=”fas fa-user”></i>’;
$notifications_icon = ‘<i class=”fas fa-flag”></i>’;
$messages_icon = ‘<i class=”far fa-comments”></i>’;
$friends_icon = ‘<i class=”fas fa-users”></i>’;
$settings_icon = ‘<i class=”fas fa-cog”></i>’;
$activity_icon = ‘<i class=”fas fa-bolt”></i>’;
$groups_icon = ‘<i class=”fas fa-users”></i>’;
$tournaments_icon = ‘<i class=”fas fa-trophy”></i>’;
$matches_icon = ‘<i class=”fas fa-crosshairs”></i>’;
$twitch_icon = ‘<i class=”fab fa-twitch”></i>’;
$yt_icon = ‘<i class=”fab fa-youtube”></i>’;bp_core_new_nav_item(
array(
‘name’ => $profile_icon.esc_html__(‘ profile’, ‘arcane’),
‘slug’ => $bp->profile->slug,
‘position’ => 10,
));if ( bp_is_active( ‘activity’ ) )
bp_core_new_nav_item(
array(
‘name’ => $activity_icon.esc_html__(‘ activity’, ‘arcane’),
‘slug’ => $bp->activity->slug,
‘position’ => 20,
));if ( bp_is_active( ‘notifications’ ) && bp_is_my_profile() )
bp_core_new_nav_item(
array(
‘name’ => $notifications_icon.esc_html__(‘ notifications’, ‘arcane’),
‘slug’ => $bp->notifications->slug,
‘position’ => 30,
));if ( bp_is_active( ‘messages’ ) && bp_is_my_profile() )
bp_core_new_nav_item(
array(
‘name’ => $messages_icon.esc_html__(‘ messages’, ‘arcane’),
‘slug’ => $bp->messages->slug,
‘position’ => 40,
));if ( bp_is_active( ‘friends’ ) )
bp_core_new_nav_item(
array(
‘name’ => $friends_icon.esc_html__(‘ friends’, ‘arcane’),
‘slug’ => $bp->friends->slug,
‘position’ => 50,
));if ( bp_is_active( ‘settings’ ) && bp_is_my_profile() )
bp_core_new_nav_item(
array(
‘name’ => $settings_icon.esc_html__(‘ settings’, ‘arcane’),
‘slug’ => $bp->settings->slug,
‘position’ => 80,
));if ( bp_is_active( ‘groups’ ) )
bp_core_new_nav_item(
array(
‘name’ => $groups_icon.esc_html__(‘ groups’, ‘arcane’),
‘slug’ => $bp->groups->slug,
‘position’ => 60,
));bp_core_new_nav_item( array(
‘name’ => $tournaments_icon.esc_html__(‘ Tournaments’, ‘arcane’),
‘slug’ => ‘tournaments’,
‘position’ => 50,
‘show_for_displayed_user’ => false,
‘screen_function’ => ‘arcane_load_tourney_profile_page’,
‘default_subnav_slug’ => ‘tournaments’
));bp_core_new_nav_item(array(
‘name’ => $matches_icon.esc_html__(‘ T. Matches’, ‘arcane’),
‘slug’ => ‘matches’,
‘position’ => 49,
‘show_for_displayed_user’ => false,
‘screen_function’ => ‘arcane_load_matches_profile_page’,
‘default_subnav_slug’ => ‘matches’
));
$twitch = ”;
if(function_exists(‘xprofile_get_field_data’))
$twitch = xprofile_get_field_data( ‘Twitch Channel’, bp_displayed_user_id() );
if(!empty($twitch))
bp_core_new_nav_item( array(
‘parent_url’ => bp_loggedin_user_domain() . ‘/twitchtv/’,
‘parent_slug’ => $bp->profile->slug,
‘default_subnav_slug’ => ‘twtchtv’,
‘name’ => $twitch_icon.esc_html__(‘ Twitch’, ‘arcane’),
‘slug’ => ‘twitchtv’,
‘screen_function’ => ‘arcane_twitch_tv_screen’,
‘position’ => 65,
) );$youtube = ”;
if(function_exists(‘xprofile_get_field_data’))
$youtube = xprofile_get_field_data( ‘YTCName’, bp_displayed_user_id() );
if(!empty($youtube))
bp_core_new_nav_item( array(
‘parent_url’ => bp_loggedin_user_domain() . ‘/youtube/’,
‘parent_slug’ => $bp->profile->slug,
‘default_subnav_slug’ => ‘ytube’,
‘name’ => $yt_icon.esc_html__(‘ YouTube’, ‘arcane’),
‘slug’ => ‘youtube’,
‘screen_function’ => ‘arcane_youtube_screen’,
‘position’ => 66,
) );
}
}’hi did you check buddypress tabs or the main menu and is there a difference?
Hi Brajesh, I hope you are doing well.
Would you please provide an example for adding font awesome to tabs with css?
thaks again bud
- phil may on November 15, 2018 at 9:35 am in reply to: [Resolved] tried to limit categories in buddyblog now it will not render #18758
Ok will do, thanks. And another question I think you might k ow the answer because it relates to buddypress alot, with wordpress, buddypress and dokan I have too many similar profile fields. Is there a way to make them all share the same tables so I dont get massive database overhead? Like all 3 should use the same tables for first and mast name etc, no need for 3 …
- phil may on November 14, 2018 at 9:50 am in reply to: [Resolved] tried to limit categories in buddyblog now it will not render #18736
sorry Brajesh i added a VC addon that caused the conflict and forgot to update this thread, in the meantime im trying to get thte theme devs to look at your buddyblog plugin to see if they can make the theme more compatible. The only thing, if at all possible, id like to change the urll structure that buddyblog is using:
members/pho/buddyblog/ should be members/pho/battleblog
and
/members/pho/buddyblog/my-posts/8304/ should be members/pho/battleblog/war-cries/{post-title}any way to do this? i saw on your changelog that permalinks can be changed but i see no way to do this in the settings please advise
- This reply was modified 5 years, 11 months ago by phil may.
- phil may on November 14, 2018 at 7:14 am in reply to: [Resolved] tried to limit categories in buddyblog now it will not render #18734
not sure why, but after you did whatever you did to try to make this work, i can not create any new pages or posts as admin, you completely broke my admin somehow
- phil may on November 13, 2018 at 2:17 am in reply to: [Resolved] tried to limit categories in buddyblog now it will not render #18698
i found an issue besides the admin blog issue, buddyblog will not set featured images
- phil may on November 13, 2018 at 12:59 am in reply to: [Resolved] tried to limit categories in buddyblog now it will not render #18696
hey that looks fantastic! only think,
https://www.mobilewarlords.com/members/admin/buddyblog/ doesnt show anything anymore.
can I change the slug for buddyblog to battleblog?
- This reply was modified 5 years, 11 months ago by phil may.
- phil may on November 12, 2018 at 9:25 pm in reply to: [Resolved] tried to limit categories in buddyblog now it will not render #18693
any luck yet?
- phil may on November 12, 2018 at 7:45 pm in reply to: [Resolved] tried to limit categories in buddyblog now it will not render #18692
no thats ok, its not important at all really just wondering. But I also have been thinking, and to show you I appreciate all this that you are helping me with to get your plugins integrated I would like to discuss hiring you for some custom plugin work that would be mainly based in buddypress, I have a few ideas I can not find plugins for and I think you are the guy who can figure them out.