BuddyDev

Search

Replies

  • Participant
    Level: Initiated
    Posts: 9
    skryfnet on #4435

    Excuse me, the above code is working now, though not as I had anticipated (in a drop menu) but it would definitely do for now! Thanks a lot.

    It seems the issue now, for me is translating, as the code is in conflict with the site language. I will move that question to a new post.

    Thanks a lot for your patience and help.

  • Participant
    Level: Initiated
    Posts: 9
    skryfnet on #4433

    Hi there, I have tried it a few times, here is the complete code. Am I doing it right?

    <?php
    function buddydev_site_categories_tab() {
    
    	$bp = buddypress();
    
    	$user_url = bp_loggedin_user_domain();
    
    	bp_core_new_subnav_item( array(
    			'name'		        => __('Site Categories'),
    			'slug'		        => 'categories',
    			'parent_url'	    => trailingslashit( $user_url . $bp->buddyblog->slug ),
    			'parent_slug'	    => $bp->buddyblog->slug,
    			'screen_function'	=> 'buddydev_screen_site_categories',
    			'position'          => 30,
    		)
    	);
    
    }
    add_action( 'bp_setup_nav', 'buddydev_site_categories_tab', 100 );
    
    function buddydev_screen_site_categories() {
    
    	add_action( 'bp_template_content', 'buddydev_render_site_categories_content' );
    	bp_core_load_template( array( 'members/single/plugins' ) );
    
    }
    
    function buddydev_render_site_categories_content() {
    
    	wp_list_categories(array( 'hide_empty' => false ));
    }
    ?>

    Thank you for your patience

  • Participant
    Level: Initiated
    Posts: 9
    skryfnet on #4431

    I don’t know what I’m doing wrong, but thank you very much for your patience. This is where I changed the label:

    #: /var/www/bp/2.2/dev/ms/wp-
    
    content/plugins/buddyblog/buddyblog-loader.php:97
    #, php-format
    msgid "Blog <span>%d</span>"
    msgstr ""

    I then renamed the .po file to nl_NL

    Thank for your time, I really appreciate it.

    • This reply was modified 7 years, 9 months ago by skryfnet.
  • Participant
    Level: Initiated
    Posts: 9
    skryfnet on #4376

    Thank you for the reply!

    I am still unable to change the label “blog”. I went into buddyblog/languages/default.po and changed one instance of “blog”, though nothing appeared to have happened.

    Which po file do I need to edit?

    Please excuse me, my web skills are quite limited.

    Regards

  • Participant
    Level: Initiated
    Posts: 9
    skryfnet on #4369

    Hi there, I am trying to do the same thing. Have you had any luck in translating the plugin? And how did you do it?

    Best regards
    SN

  • Participant
    Level: Initiated
    Posts: 9
    skryfnet on #4360

    UPDATE: I get this error message

    Parse error: syntax error, unexpected ‘}’ in /home/netafrikaans/skryfnet.co.za/wp-content/plugins/bp-custom.php on line 19

  • Participant
    Level: Initiated
    Posts: 9
    skryfnet on #4359

    Hi there! Thank you for the help. However, I copied the above code into the file, yet nothing appeared to have happened. Could I have done something wrong?

    For example, when the user hovers over the “blog” field (added by BuddyBlog) I need a drop down list of the word press categories to appear, or a submenu of categories, so that when the user creates a “new post” that post will not only appear on the wordpress main site, but also as a link under the correct category in the “blog” field

    With regards to .po files, I can’t seem to find the correct place to change the field “blog” that was added by BoddyBlog to a custom word “skryfwerk” which is ducth for “written work.”

    Hope it is not to much to ask, I am still in the learning process.

    Much appreciated

    skryfnet