urbanfix
Forum Replies Created
-
AuthorPosts
-
I am unsure what you mean by this?
I have already tried doing the process again,
thanksI have followed the documentation and the analytics API is enabled..
Please advise,
ThankyouOkay so now that error is gone and i clicked the accept button where i got redirected and this error!
invalid_client: UnauthorizedWhat should i do now?
Hi, please can this custom CSS be shared?
ThanksMay 16, 2015 at 6:29 pm in reply to: If statements and the business owner and associate property. #39708Hey guys, sorry for taking so long to get back to you,
I shall try them both out and let you know how it goes!
ThanksYeah thats what i thought, but i need more than one free level and dont want to pay for the pro version of s2member.
thankyou @guust
please mark as resolvedCould i use a shortcode on the tab?
I am using this plugin; http://buddydev.com/plugins/bp-activity-shortcode/
Can i use the shortcode to add it to the tab i created?
Thanksokay fair enough,
In that case could you tell me how to add this<?php function get_user(){ global $bp; $username = $bp->loggedin_user->id; echo $username; } get_user(); ?>
into my new tab?
Any help guys…?
I am really stuck with this and i just can’t figure it out,
I dont know how to get the php to display on the tab its self, i just keep getting errors, I even tried to add a simple bit of code to get the user id and i got an error!
I have wasted far to much time on this, say i wanted to add this code the my new tab;<?php function get_user(){ global $bp; $username = $bp->loggedin_user->id; echo $username; } get_user(); ?>
how would i add it to the new tab?
Thanks paolo,
just to give me a kick in the right direction can you explain where i would put the following code.This is my add new tab in functions.php
<?php add_filter('geodir_detail_page_tab_list_extend', 'geodir_detail_page_tab_list_extend') ; function geodir_detail_page_tab_list_extend($tab_array) { $tab_array['my_new_tab'] = array( 'heading_text' => __('New Tab',GEODIRECTORY_TEXTDOMAIN), 'is_active_tab' => false, 'is_display' => apply_filters('geodir_detail_page_tab_is_display', true, 'my_new_tab'), 'tab_content' => '' ); return $tab_array ; } add_action('geodir_after_tab_content' ,'geodir_my_new_tab_content'); function geodir_my_new_tab_content($tab_index) { if($tab_index =='my_new_tab') { echo "Hello world!!"; } } ?>
where would i add the following basic activity loop?
<?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) ) ) : ?> <?php while ( bp_activities() ) : bp_the_activity(); ?> <?php locate_template( array( 'activity/entry.php' ), true, false ); ?> <?php endwhile; ?> <?php endif; ?>
Thanks
Hey Paolo,
Haha, I found the soloution and posted it 1 minute before you commented!
ThanksThats what i thought but it didn’t work it hid it from everyone!
I have 0 PHP/CSS knowledge so I just put together things i found on the interweb haha 🙂
I got some help from the buddypress forums and the following does exactly what I specified.function urbanfix_remove_nav_item() { if( current_user_cannot("access_s2member_level2") ) bp_core_remove_nav_item('listings'); } add_action( 'wp', 'urbanfix_remove_nav_item' );
as for the cannot term i found it here;
https://www.s2member.com/codex/stable/s2member/api_functions/package-functions/#src_doc_current_user_cannot%28%29Thats just a work around, as level 2> will still see the tab on a level 0 or 1 profile. Ideally I would only like it on a level 2 profile. If you’ve got any ideas please let me know, or you can mark as resolved! Cheers
This reply has been marked as private. -
AuthorPosts