Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 8,176 through 8,200 (of 32,508 total)
  • Author
    Search Results
  • #165149

    In reply to: link admin bar change

    cocolabombe0
    Participant

    Problèm ok

    function edit_url_profil_bar_admin( $wp_admin_bar ) {
    	
    	global $current_user;
    $wp_admin_bar->add_node( array(
    	'id' => 'my-account',
    	'href'      => ('/forums/membre/'. $current_user->user_login),
        ) );
    
    $wp_admin_bar->add_node( array(
    	'id' => 'user-info',
    	'href' => ('/forums/membre/'. $current_user->user_login),
        ) );
    	
    	$wp_admin_bar->add_node( array(
    	'id' => 'edit-profile',
    	'href' => ('/forums/membre/'. $current_user->user_login .'/edit/'),
        ) );
    }
    	add_filter( 'admin_bar_menu', 'edit_url_profil_bar_admin' ); 

    with this code, I have exactly what I wanted.
    I helped myself this http://www.geekpress.fr/wordpress/tutoriel/modifier-howdy-admin-bar-1102/ code to make the change. In addition, I took a piece of their code as I removed the greeting. I just put the code to change the links.

    #165129

    In reply to: Importing from WBB4

    sammmmy
    Participant

    In the posts table, subject is a seperately post title and totally unnecessary…
    In the posts table, message is the reply content.
    In the threads table, topic Is this is the thread title.

    That’s a little messed up…

    #165123
    Robkk
    Moderator

    Yeah I think this is the filter.

    apply_filters( 'bbp_get_teeny_mce_buttons', $buttons );

    bbp_get_teeny_mce_buttons

    Any javascript you would need for the buttons you may need to copy editor.js in your child theme in a folder called js so that your code is enqueued.

    Theme Compatibility

    #165121
    Robkk
    Moderator

    @casiepa

    And the answer was … ?

    How to unsubscribe banned users to forums and new topics

    How, as a wordpress admin, can I find a list of all the users that subscribed to new topics in a forum ? Any specific page ? Or even a SQL statement to the DB ?

    Every user has a list of their subscriptions in their profile. You can show the user that if they want to unsubscribe, or you can switch to them and do it yourself.

    I had thoughts that listing users subscribed to a forum in a widget or an alternative, may be resource intensive.

    In phpMyAdmin, in the usermeta table normally called wp_usermeta with the meta-key wp__bbp_subscriptions.

    if a user has an ID of 3, and was subscribed to topics 10, 12 and 15, and forums 1, 3 and 6, you would see

    user_id 3
    meta_key wp__bbp_subscriptions
    meta_value 1,3,6,10,12,15
    #165117
    Jld142
    Participant

    Hello,

    I am trying to create my own login widget. The reason for this is that i want to add more links and features that just the standard login picture and logout URL.

    I have a child theme and am trying to add a new widget in the functions.php file.
    Can anyone assist me with this ? What code do i need to add to get a new widget up and running ?

    #165114
    Robkk
    Moderator

    @bergblume

    Idk why that would cause an issue in your theme. Try out just “s” and see if that causes an issue still.

    You can also try some troubleshooting to see if it just your theme causing the issue.

    Troubleshooting

    #165111

    In reply to: ERR_TOO_MANY_REDIRECTS

    Robkk
    Moderator

    Do some troubleshooting. See if it could be a plugin/theme issue or that a redirect function was set up incorrectly.

    Troubleshooting

    #165105
    Robkk
    Moderator

    IF you are talking about this kind of profile information.

    Forum Role: Participant
    Topics Started: 4
    Replies Created: 11

    you can edit/remove it by copying the template user-profile.php

    #165101

    In reply to: Change role title

    Robkk
    Moderator

    It is listed how to do it here.

    Layout and functionality – Examples you can use

    #165100

    In reply to: Replies not displayed

    Robkk
    Moderator

    Try some troubleshooting, see if this only happens in a certain theme that you may have placed code snippets, cache needs to be cleared, or that a plugin is causing an issue.

    Troubleshooting

    #165096
    Rinuko
    Participant

    Hello
    I’m using latest version of WP and BBPress.
    I’m looking for a away to change my role titles in BBPress but can’t find anything.
    I’ve looked here and google’d but all end to plugins thats not available anymore or edit code but those lines don’t seem to exsist in present version (unless i missed something).

    #165094

    In reply to: link admin bar change

    cocolabombe0
    Participant

    It is these values but I tried to create a function to replace values but I do not know it at all.
    I try to put code in my function.php not affect my wordpress (update)

    #165093

    In reply to: SMF Import to bbPress

    Stephen Edgar
    Keymaster

    @donchulio Thanks, strange the collation isn’t there, but anyway, I’ll create an SMF test site using latin1 and see what results I get 🙂

    #165088
    Robkk
    Moderator

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

    You can run PHP in CSS unless you put your styles in a PHP function and added the code to the header using the wp_head hook.

    https://codex.wordpress.org/Plugin_API/Action_Reference/wp_head

    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

Viewing 25 results - 8,176 through 8,200 (of 32,508 total)
Skip to toolbar