Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 8,176 through 8,200 (of 32,505 total)
  • Author
    Search Results
  • #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

    #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.

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