Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 8,176 through 8,200 (of 32,519 total)
  • Author
    Search Results
  • #165193
    Robkk
    Moderator

    @matoca

    Okay for some reason I am having trouble getting Forum notifications on my test site to any user except the blog owner like you said, I may have to report a bug or do more testing/discuss with the devs. And I might have also found another bug messing with this too.

    The topic subscriptions work well though when I tested them.

    Did you try some troubleshooting already to see if there could be another thing causing the issue?? I want to make sure before I report any kind of bug.

    Troubleshooting

    Just to make sure you are using the latest WordPress and bbPress?
    Did you use the plugin mentioned above, Asychronous subscriptions, abd see if it fixed it?
    Do other emails work on your site like new user registration, new comment, etc. ?

    I have an email address for the website via a Bluehost mailbox and I have one email forwarder from that box to my home email client.

    Is this something you did recently, or was it always set up like this for 2 years.

    I want double notification for the moderators and I don’t mind getting triple notification.

    This might be custom development.

    #165191

    In reply to: Merge Topics Problem

    Robkk
    Moderator

    Merging topics still works for me when I tested it with the latest version of bbPress and WordPress.

    If merging topics doesn’t work for a specific forum, you may need to repair your forums possibly??

    Troubleshooting

    You may also need to find and see if there is a plugin or theme issue too.

    If merging forums does not work at all on your site try this with some troubleshooting also.

    Create a hidden forum so it would only be visible to Keymasters and MOderators, then create a few topics and try merging them together.

    #165190
    Robkk
    Moderator

    This is because your font color of your site is white for the content, and bbPress forums are white and gray by default making your font invisible.

    You can copy the bbpress.css from the bbPress plugin into your child theme into a folder called bbpress and customize the styles of your site.

    Theme Compatibility

    Or you can install a plugin like this, and put transparent for any background colors.

    https://wordpress.org/plugins/bbp-style-pack/

    #165189
    Robkk
    Moderator

    did you customize the bbPress templates by copying them into your theme??

    Try switching to a default theme to see if the issue persists.

    Troubleshooting

    #165186
    Robkk
    Moderator

    @vilimaunula

    I’m just not entirely sure if it’s more time and effort to write the above than it is to manually delete spam messages

    I was basically saying you do not need to manually delete every spam post, but you can bulk delete and auto delete spam posts. With Akismet installed it marks registered users posts that may be from spammers as spam, using the comment blacklist (bbPress uses this too) will put posts as pending as review. So that may help keep spam to a minimum.

    I tested bbPress moderation, and it seems to work fine when I tested it.

    I tried guest posting, registred member posting, and it seems to put the posts into moderation as pending.

    You set up bbPress moderation in settings > bbPress moderation in the WordPress backend. I had everything enabled just so I can test anonymous posting too.

    I received emails immediately for any posts pending moderation. I had checked that the respective posts were shown in the WordPress backend in the posts section (Either Topics or Replies in All Topics or All Replies), and when you see the pending action link all the posts in moderation should be there. To approve a reply the plugin author lists it here https://wordpress.org/plugins/bbpressmoderation/faq/.

    If you are 100% percent sure that it does not work, try some troubleshooting to find any possible plugin conflicts. I had a simple test site with bbPress and bbPress moderation only, and it worked fine.

    Troubleshooting

    Also know that some of the bbPress moderation functionality is set for core, and might be in the plugin next big release, but like I said before the plugin works fine for now, but there could be a possible plugin conflict with another plugin.

    #165179
    Robkk
    Moderator

    It is part of your set of editable templates from bbPress. Like I said copy the file into a child theme in a folder called bbpress.

    The directory “wp-content/plugins/bbpress/templates/default/” contains the directories “bbpress”, “css”, “extras”, and “js”, and the file “bbpress-functions.php”.

    The “bbpress” directory contains template parts. Copy any of them into a directory named “bbpress” in your themes root, so it looks like: /wp-content/themes/%your-theme%/bbpress/

    Theme Compatibility

    #165178
    Robkk
    Moderator

    @matoca

    If you still have double notifications still, try some troubleshooting first. I think it could be a possible plugin issue, maybe plugins that might do the same thing like maybe BuddyPress Group Email Subscription. I also saw possible issues with wp-cron and duplicate emails, but try the troubleshooting first.

    Troubleshooting

    #165168

    In reply to: link admin bar change

    cocolabombe0
    Participant
    function my_admin_bar_render() {
        if (! is_super_admin() )
    	{
    	global $wp_admin_bar;
        $wp_admin_bar->remove_menu('site-name');
    }
    }
    add_action( 'wp_before_admin_bar_render', 'my_admin_bar_render' );

    This code is ok.

    #165161
    cocolabombe0
    Participant

    Well, I still just solved my problem by French text.
    Everything is starting coding lol.

    <?php
    $roles_site = $user_info->roles;
    $roles_forum = $user_info->roles;
     
    	foreach ($roles_site as $key => $valeur) {
    		if ($valeur == 'admin_bureau') {
    			$roles_site[$key] = 'admin bureau';
    		}
    		if ($valeur == 'administrator') {
    			$roles_site[$key] = 'administrateur';
    		}		
    		if ($valeur == 'subscriber') {
    			$roles_site[$key] = 'utilisateur';
    		}
    		if ($valeur == 'webmaster') {
    			$roles_site[$key] = 'webmaster ';
    		}
    		if ( ($valeur == 'bbp_blocked') || ($valeur == 'bbp_keymaster') || ($valeur == 'bbp_moderator') || ($valeur == 'bp_participant') || ($valeur == 'bbp_spectator') ){
    			unset($roles_site[$key]);
    		}
    	}
    	
    	foreach ($roles_forum as $key => $valeur) {
    		if (($valeur == 'admin_bureau') || ($valeur == 'administrator') || ($valeur == 'subscriber') || ($valeur == 'webmaster') ){
    			unset($roles_forum[$key]);
    		}
    		if ($valeur == 'bbp_blocked') {
    			$roles_forum[$key] = 'bannis';
    		}
    		if ($valeur == 'bbp_keymaster') {
    			$roles_forum[$key] = 'Administrateur';
    		}
    		if ($valeur == 'bbp_moderator') {
    			$roles_forum[$key] = 'modérateur';
    		}
    		if ($valeur == 'bp_participant') {
    			$roles_forum[$key] = 'utilisateur';
    		}
    		if ($valeur == 'bbp_spectator') {
    			$roles_forum[$key] = 'spectateur';
    		}
    	}
    ?>
    
    			<p class="bbp-user-forum-role"><?php echo 'Roles sur le site: ' . implode(', ', $roles_site) . "\n";?></p>
    			<p class="bbp-user-forum-role"><?php echo 'Roles sur le Forum: ' . implode(', ', $roles_forum) . "\n";?></p>
    #165159

    In reply to: link admin bar change

    cocolabombe0
    Participant

    I found better. How to tell the function that the visitor and the user can not see the site-name.

    /**
     * Add the "Site Name" menu.
     *
     * @since 3.3.0
     *
     * @param WP_Admin_Bar $wp_admin_bar
     */
    function wp_admin_bar_site_menu( $wp_admin_bar ) {
    	// Don't show for logged out users.
    	if ( ! is_user_logged_in() )
    		return;
    
    	// Show only when the user is a member of this site, or they're a super admin.
    	if ( ! is_user_member_of_blog() && ! is_super_admin() )
    		return;

    In the code, “simply remove the code ! is_user_member_of_blog() &&” but how to write a function.

    f ( ! is_super_admin() )
    		return;
    #165157

    In reply to: link admin bar change

    cocolabombe0
    Participant

    now I have other worries.
    I want to change the display of links for users and not for admins.
    But I did not find what id done that?
    On the site title (just left of the toolbar), what is the code that I redo a function?

    #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

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