urbanfix

Forum Replies Created

Viewing 15 posts - 241 through 255 (of 283 total)
  • Author
    Posts
  • in reply to: Analytcis Authorization error #42883

    urbanfix
    Expired Member
    Post count: 310

    I am unsure what you mean by this?
    I have already tried doing the process again,
    thanks

    in reply to: Analytcis Authorization error #42878

    urbanfix
    Expired Member
    Post count: 310

    I have followed the documentation and the analytics API is enabled..
    Please advise,
    Thankyou

    in reply to: Analytcis Authorization error #42860

    urbanfix
    Expired Member
    Post count: 310

    Okay so now that error is gone and i clicked the accept button where i got redirected and this error!
    invalid_client: Unauthorized

    What should i do now?

    in reply to: Changing the alignment to horizontal #41261

    urbanfix
    Expired Member
    Post count: 310

    Hi, please can this custom CSS be shared?
    Thanks


    urbanfix
    Expired Member
    Post count: 310

    Hey guys, sorry for taking so long to get back to you,
    I shall try them both out and let you know how it goes!
    Thanks

    in reply to: locking down add listing pages #38065

    urbanfix
    Expired Member
    Post count: 310

    Yeah 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 resolved

    in reply to: new tab and bo activity stream #37787

    urbanfix
    Expired Member
    Post count: 310

    Could 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?
    Thanks

    in reply to: new tab and bo activity stream #37500

    urbanfix
    Expired Member
    Post count: 310

    okay 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?

    in reply to: new tab and bo activity stream #37490

    urbanfix
    Expired Member
    Post count: 310

    Any help guys…?

    in reply to: new tab and bo activity stream #37455

    urbanfix
    Expired Member
    Post count: 310

    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?

    in reply to: new tab and bo activity stream #37440

    urbanfix
    Expired Member
    Post count: 310

    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

    in reply to: s2Member and bp #37076

    urbanfix
    Expired Member
    Post count: 310

    Hey Paolo,
    Haha, I found the soloution and posted it 1 minute before you commented!
    Thanks

    in reply to: s2Member and bp #37062

    urbanfix
    Expired Member
    Post count: 310

    Thats 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%29

    Thats 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

    in reply to: s2Member and bp #37041

    urbanfix
    Expired Member
    Post count: 310

    @guust any ideas?

    in reply to: Warning! Fatal Error! #36418

    urbanfix
    Expired Member
    Post count: 310
    This reply has been marked as private.
Viewing 15 posts - 241 through 255 (of 283 total)
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount