Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 8,201 through 8,225 (of 32,519 total)
  • Author
    Search Results
  • Robkk
    Moderator

    Sorry for the super duper extremely late reply to your post, it was marked as spam and had to be approved by a moderator.

    Thanks for contributing some code to help other users, I will add this to that codex article later today.

    #165077
    Robkk
    Moderator

    Sorry for the late reply to your post, it was marked as spam and had to be approved by a moderator.

    I do not have a list of great themes to choose from but bbPress can work with any WordPress theme you install.

    I explain it better here.

    Installing Themes

    #165076

    In reply to: Create a theme

    Robkk
    Moderator

    You create any old regular WordPress theme.

    This WordPress codex guide will get you started into theme development.

    https://codex.wordpress.org/Theme_Development

    #165074
    Robkk
    Moderator

    Sorry for the late reply your post was marked as spam and was awaiting approval.

    bbPress themes are basically just WordPress themes, you can use any WordPress theme and theme compatibility in the bbPress plugin will do the rest. You may need to edit some files though, because some themes may be tricky to work with.

    I explain it better here.

    Installing Themes

    #165072

    In reply to: want to help others

    Robkk
    Moderator

    Sorry your reply was marked as spam and was awaiting review.

    If you still are interested in contributing you can easily help out other users in the forums.

    If you are a skilled PHP developer, you can start getting your feet wet in the bbPress trac if you want and help out the core developers and core plugin development.

    If you are a skilled writer, I can grant you permission of an editor, but I have to see at least 1 or 2 guides written in Google Docs before granting you that role for security reasons. I can give you suggestions on guides to write if you want, or you can just email me some ideas for me to write to.

    Participate & Contribute

    #165070
    Robkk
    Moderator

    Sorry for the late reply, just noticed your reply was marked as spam and was pending review for some reason.

    The file you need to edit is content-single-topic.php

    The code is <?php bbp_single_topic_description(); ?>

    Without any template edits, you can also place this in your child theme or in a functionality plugin.

    add_filter( 'bbp_get_single_forum_description', 'ja_return_blank' );
    add_filter( 'bbp_get_single_topic_description', 'ja_return_blank' );
    
    function ja_return_blank() {
        return '';
    }

    There is a plan to create a guide to show the template hierarchy in better detail.

    #165064
    Stephen Edgar
    Keymaster

    A quick look at the <tt> issue:

    We’re doing this:

    
    // Replace '[tt]' with '<tt>'
    $SMF_markup = preg_replace( '/\[tt\]/',   '<tt>',  $SMF_markup );
    // Replace '[/tt]' with '</tt>'
    $SMF_markup = preg_replace( '/\[\/tt\]/', '</tt>', $SMF_markup );
    

    I’m wondering if your SMF forums used custom BBCode’s here? It looks like it was for URL’s where class="bbcode_url" was being added to links, maybe also a custom BBCode for [tt] was being used where no closing [/tt] BBCode was required?

    #165062
    Stephen Edgar
    Keymaster

    @abcdiamond A good DB search and replace plugin is https://wordpress.org/plugins/better-search-replace/

    The class="bbcode_url" could most likely be ignored as it’s only a CSS style

    Strange that you have <tt> and not </tt>, I’ll take a another look at these.

    #165058
    Robkk
    Moderator

    I think this will do it. Edit any words in English to German.

    function my_german_titles( $new_title ){
    // Profile page
    	if ( bbp_is_single_user() ) {
    
    		// User is viewing their own profile
    		if ( bbp_is_user_home() ) {
    			$new_title['text'] = esc_attr_x( 'Mien', 'User viewing his/her own profile', 'bbpress' );
    			
    
    		// User is viewing someone else's profile (so use their display name)
    		} else {
    			$new_title['text'] = sprintf( esc_attr_x( "%s's", 'User viewing another users profile', 'bbpress' ), get_userdata( bbp_get_user_id() )->display_name );
    		}
    
    		// User topics created
    		if ( bbp_is_user_home() && bbp_is_single_user_topics() ) {
    			$new_title['format'] = esc_attr__( "Miene Topics",        'bbpress' );
    
    		// User rueplies created
    		} elseif ( bbp_is_user_home() && bbp_is_single_user_replies() ) {
    			$new_title['format'] = esc_attr__( "Miene Replies",       'bbpress' );
    
    		// User favorites
    		} elseif ( bbp_is_user_home() && bbp_is_favorites() ) {
    			$new_title['format'] = esc_attr__( "Miene Favorites",     'bbpress' );
    
    		// User subscriptions
    		} elseif ( bbp_is_user_home() && bbp_is_subscriptions() ) {
    			$new_title['format'] = esc_attr__( "Miene Subscriptions", 'bbpress' );
    		}
    
    	// Profile edit page
    	} elseif ( bbp_is_single_user_edit() ) {
    
    		// Current user
    		if ( bbp_is_user_home_edit() ) {
    			$new_title['text']   = esc_attr__( 'Edit Your Profile', 'bbpress' );
    
    		// Other user
    		} else {
    			$new_title['text']   = get_userdata( bbp_get_user_id() )->display_name;
    			$new_title['format'] = esc_attr__( "Edit %s's Profile", 'bbpress' );
    		}
        
    }
        
        return $new_title;
    }    
    
    add_filter( 'bbp_before_title_parse_args', 'my_german_titles' );
    #165056

    In reply to: SMF Import to bbPress

    Stephen Edgar
    Keymaster

    Which one is latin1? Having both these values would be helpful so I can test it please 🙂

    #165055

    In reply to: link admin bar change

    Stephen Edgar
    Keymaster

    bbPress has quite a few functions that will help you here:

    bbp_get_user_profile_url() would get you /forums/membre/user
    bbp_get_user_profile_edit_url() would get you /forums/membre/user/edit

    You can also use bbp_get_current_user_id() if you need the current user ID

    #165054

    In reply to: Importing from WBB4

    Stephen Edgar
    Keymaster

    @sammmmy Fixed, the posts were caught by Akismet for having more than 2 links, I’ve fixed one and removed the other duplicates.

    This is excellent, I’ll take a look later, a couple of things if you could clarify please:

    In the posts table, subject is the topic title?
    In the posts table, message is either the topic or the reply content?
    In the threads table, topic, what is this? Is this also the topic title? And if it is also the topic title does this match the subject field from the posts table exactly?

    #165051
    cocolabombe0
    Participant

    I try to edit the user-profile.php file.
    I’ve just figured out how to retrieve information.

    Profile Overview:
    http://www.hostingpics.net/viewer.php?id=211738profile.jpg

    Member List
    http://www.hostingpics.net/viewer.php?id=989016member.jpg

    			<?php $user_info = get_userdata(bbp_get_displayed_user_id()); ?>
    			
    			<p class="bbp-user-forum-role"><?php echo 'Roles sur le site: ' . implode(', ', $user_info->roles) . "\n";?></p>
    			<p class="bbp-user-forum-role"><?php  printf( __( 'Forum Role: %s',      'bbpress' ), bbp_get_user_display_role()    ); ?></p>
    			<p class="bbp-user-topic-count"><?php printf( __( 'Topics Started: %s',  'bbpress' ), bbp_get_user_topic_count_raw() ); ?></p>
    			<p class="bbp-user-reply-count"><?php printf( __( 'Replies Created: %s', 'bbpress' ), bbp_get_user_reply_count_raw() ); ?></p>
    
    			<p><?php printf ( __( 'First name: %s', 'bbpress' ), bbp_get_displayed_user_field( 'first_name'));?></p>
    			<p><?php printf ( __( 'Licence: %s', 'bbpress' ), bbp_get_displayed_user_field( 'licence'));?></p>
    			<p><?php printf( __( 'Role sur le site: %s',      'bbpress' ), bbp_get_user_blog_role()    ); ?></p>
    			<p><?php printf( __( 'Role sur le site: %s',      'bbpress' ), bbp_get_user_role()    ); ?></p>
    			
    		<h2 class="entry-title">Réseaux sociaux</h2>
    		<p><?php  printf( __( 'Facebook: %s',     'bbpress' ), bbp_get_displayed_user_field( 'facebook')    ); ?></p>
    		<p><?php  printf( __( 'Twitter: %s',      'bbpress' ), bbp_get_displayed_user_field( 'twitter')     ); ?></p>
    		<p><?php  printf( __( 'Google+: %s',      'bbpress' ), bbp_get_displayed_user_field( 'google_plus')    ); ?></p>

    How to display the roles with the text displayed on the image of the members?
    Basically, I want the user michael Menil, we see:
    Roles sur le site: administrateur, keymaster, admin bureau

    These terms mean:
    Administrator (the website)
    KeyMaster (the Forum)
    admin office (lower than the administrator)

    The first two roles are given by WP FRONT ROLE USER EDITOR PERSONAL PRO. The third, I created from scratch by the same plugin.

    #165044
    jules.maas
    Participant

    ok, I just discovered the solution on another forum. In your WordPress Appearance menu, go to Editor and find meta-single-topic.php and locate the following code:

    <a href="<?php echo home_url() ?>">&larr; Back to discussions</a>

    Change it to:

    <a href="<?php echo home_url() ?>/forums">&larr; Back to discussions</a>

    Or enter the forum URL manually.

    #165043
    jules.maas
    Participant

    ok, I just discovered the solution on another forum. In your WordPress Appearance menu, go to Editor and find meta-single-topic.php and locate the following code:

    <a href="<?php echo home_url() ?>">&larr; Back to discussions</a>

    Change it to:

    <a href="<?php echo home_url() ?>/forums">&larr; Back to discussions</a>

    Or enter the forum URL manually.

    #165037

    In reply to: link admin bar change

    Stephen Edgar
    Keymaster

    @cocolabombe0 I see you already have a ticket here 🙂

    Did the link to the code I sent you help?

    #165032

    In reply to: SMF Import to bbPress

    Stephen Edgar
    Keymaster

    If you open up phpMyAdmin which I presume you’ve most likely got installed on your webhost and then open the SMF database and then open the smf_messages table then click ‘sql’, copy and paste this into the query box and click “Go” (The Go button is at the bottom right)

    
    show variables like 'character_set_database';
    show variables like 'collation_database';
    

    You should see something like this https://cloudup.com/cluBnqdtz4x

    In my case the character set is utf8 and collation is utf8_general_ci

    #165030

    In reply to: SMF Import to bbPress

    Stephen Edgar
    Keymaster

    @donchulio Adding a topic titled Ankündigungen with the topic content Ankündigungen and a reply with content Ankündigungen works as expected for me with bbPress 2.5.8

    Screen Shot

    Can you check what character set and collation both your source SMF database is and also the same for your WordPress database?

    #165027

    In reply to: Importing from WBB4

    Stephen Edgar
    Keymaster

    Yes that is an other problem, every languageID field is empty.
    how can i solve that?

    You shouldn’t need to do anything, if there is no value it will default to English

    In the wbb1_1_board from wbb3 is the parentID “0”
    but in wbb1_board from wbb4 is the parentID “NULL” (german for zero).
    There are a lot of these fields….

    Indeed Null is German for zero, also NULL is a special value in SQL databases.

    Typically I’d expect a reply to always have a parentID, that ID should be the topic ID.

    A topics parent ID will typically be the forum ID the topic belongs to.

    bbPress will treat replies without a parentID as an “orphaned” reply because there is no association between the topic and reply id’s.

    bbPress will treat topics without a parentID as a topic not associated with a specific forum, so unlike replies, bbPress does not require topics to have to have a forum id.

    Forums without a parentID are treated as “top level” forums, forums with a parentID of another forum are treated as “child” or “sub” forums of the parent forum.

    So some parentID values may be an integer 1, 13, 653 etc, sometimes it will be 0 meaning there is no parentID and other times it will be NULL, it is all dependant upon that forum softwares configuration and the context it’s being used in.

    #165025

    In reply to: link admin bar change

    cocolabombe0
    Participant

    OK. I have to because it is the wordpress code that displays the name of the pseudo code and modify the profile.

    #165017

    In reply to: link admin bar change

    cocolabombe0
    Participant

    Oh yes, this is what plugin that added this option.
    But I think I have to change the file after a shot on the admin bar file to separate the two codes.
    But I do not know too so it’ll be tough.

    ainoha_vs
    Participant

    Hi everybody! I need to change some “titles” and “invalid” some actions of BBPress so I can use it for my blog. Anybody who could help me with some codes, please?
    Than you! 😀
    Cheers!

    #165011

    In reply to: link admin bar change

    cocolabombe0
    Participant

    no, I have not used the codex.
    I checked the box of bbpress option.
    And the links are replaced.
    http://www.hostingpics.net/viewer.php?id=857251bbpress.jpg

    #165009

    In reply to: link admin bar change

    Robkk
    Moderator

    If you used code from the codex for an profile link in your menu, if you want it to lead to the edit section of your profile just add /edit to the url in the code.

    #164992
    Robkk
    Moderator

    All of what is listed is here, only the German language you are using is the 100% finished translation.

    https://translate.wordpress.org/projects/wp-plugins/bbpress/stable

    Shouldn’t it be Dein Profil for a straight translation of Your Profile which is what bbPress has for profiles??

    For custom plugin translations I have to look into it, there use to be a way to have custom plugin translations.

    This old code is what I think you could use and test. Edit the existing German language files with something like Poedit. Save them. And Place them in a child theme for example, and put the url in the code below.

    function load_bbpress_tr_mofile( $mofile, $domain )
    {
        if ( 'bbpress' == $domain )
        {
            // replace this. :)
            return 'FULL_PATH_TO_YOUR_FILE';
        }
        return $mofile;
    }
    add_filter( 'load_textdomain_mofile', 'load_bbpress_tr_mofile', 10, 2 );
Viewing 25 results - 8,201 through 8,225 (of 32,519 total)
Skip to toolbar