Old custom sub_nav items no longer work in groups….chasing it all down
-
A few points:
My WP is the latest and I’m running all of this on a subdomain
I have buddypress template pack; cubepoints; buddypress registration groups;and YARRPP, simple tags.
I have dramatically altered the default theme
And modified the core files as outlined below:OLD 1.2 – in: bp-core-templatetags.php
line 1847
I added this function
function bp_is_group_stock_quote() {
global $bp;
if ( BP_GROUPS_SLUG == $bp->current_component && ‘stock-quote’ == $bp->current_action )
return true;
return false;
}OLD 1.2 in: bp-groups.php
line 215
I added:
bp_core_new_subnav_item( array( ‘name’ => __( ‘Stock Quote’, ‘buddypress’ ), ‘slug’ => ‘stock-quote’, ‘parent_url’ => $group_link, ‘parent_slug’ => $bp->groups->slug, ‘screen_function’ => ‘groups_screen_group_stock’, ‘position’ => 80, ‘user_has_access’ => $bp->groups->current_group->user_has_access, ‘item_css_id’ => ‘stock’ ) );and this added my own templates to the item-nav in my groups
In Buddypress 1.5 none of it works. This site is in development but my deadline is loooming.
NEW 1.5 in: bp-core-template.php
line 1383
I added:function bp_is_group_stock_quote() {
if ( bp_is_groups_component() && bp_is_current_action( ‘stock-quote’ ) )
return true;
return false;
}But I can’t figure out what the comparable action is to what I setup in bp-groups.php. I’m sorry I am not a programmer and the threads I have read don’t make sense to me and I have chased my own tail for hours now trying to figure this out.
Please tell me how I add back custom sub-nav items to my groups.
It used to look like this – i added lots of extra pages and everything was working and I was almost done after weeks of no sleep!
Home > Admin > Send Invites > Forum > Stock Quote > Projects > Third Party Coverage > Interviews > Contact > Members
Thanks so much in advance!! I do appreciate an improved product just wish my skills were better to smooth it all out.Andrea
- The topic ‘Old custom sub_nav items no longer work in groups….chasing it all down’ is closed to new replies.