Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 8,151 through 8,175 (of 32,505 total)
  • Author
    Search Results
  • #165264
    imemine
    Participant

    I am on the latest version of WordPress, but a custom theme ( developer left it half way) so I am fixing it myself.

    1) The forum page shows for post the correct numbers. Example
    post tite: Voices(5), Posts (6)

    but inside posts it says
    This topic contains 5 replies, has 5 voices
    Viewing 1 post (of 1 total)
    Then it shows just the main topic, not the replies to it.

    This is the code for the bbpress.php template

    <?php get_header(); ?>
    
    <div id="page-left" class="container">
    	<?php
    	the_content();
    	?>
    </div>
    
    <div id="page-right">
    	<?php get_sidebar(); ?>
    </div>
    
    <?php get_footer(); ?>

    Seems fine to me, what do you think I missed?

    #165263
    Robkk
    Moderator

    Read this, it is a common error usually not associated with bbPress, but other plugins.

    bbp_setup_current_user was called incorrectly

    #165253
    strategeek
    Participant

    Is it possible to change the multiple select form into to separate checkboxes?

    I think this line (that was added in fuctions.php) should be rewritten:

    $html[] = '<select class="chzn-select" multiple="multiple" name="bbp_topic_tags[]" id="bbp_topic_tags">';

    #165245
    Robkk
    Moderator

    I could really only find posts that were talking about bbPress v1 standalone. I did find a post that was in 2012, which I think the bbPress plugin was around then. You can study the code and see if it would work.

    The page is in another language though.

    Pretty permalinks en WordPress con Lighttpd

    #165237
    Robkk
    Moderator

    You might have removed/there isn’t a certain piece of code that renders the classes for each topic/reply.

    You might be missing this in loop-single-reply.php in your custom templates that you placed in your child theme.

    <?php bbp_reply_class(); ?>

    Maybe this for topics too in loop-single-topic.php

    <?php bbp_topic_class(); ?>

    #165228
    Robkk
    Moderator

    Customize this CSS from bbPress.

    #bbpress-forums div.even,
    #bbpress-forums ul.even {
    	background-color: #fff;
    }
    
    #bbpress-forums div.odd,
    #bbpress-forums ul.odd {
    	background-color: #fbfbfb;
    }
    #165224
    Robkk
    Moderator

    I think this custom CSS on your site is causing the issue. Try to find an alternative to what you are trying to do before.

    #bbpress-forums .bbp-body div.bbp-reply-content {
        clear: both;
        margin: 10px;
        padding: 0;
    }
    #165223
    Robkk
    Moderator

    In this plugin though, it deletes replies by the set hours in the settings. You can edit the code to change the post_status to “publish” instead of “spam”. This might be resource intensive depending on how many replies you have currently on your forums.


    @project_subdomain
    .

    Take what I said earlier with a grain of salt, as I don’t really recommend it. Like I said, if you want hire a developer to fix any nooks and crannies that might come up doing this.

    #165215
    Jake Hall
    Participant

    Good Morning all,

    This is an issue I have had present on my bbPress forum ever since I moved away from Apache, and onto lighttpd. The difference is, I have to add the rules manually to get them to work. Anyway, here is what I currently have in my .htaccess equivalent:

    # This is mainly a fix for bbPress and its functions
    url.rewrite = (
        "^//(wp-admin|wp-includes|wp-content|gallery2)/(.*)" => "$0",
        "^//(.*)\.(.+)$" => "$0",
        "^//(.+)/?$" => "/index.php/$1"
      )
    }

    Unfortunately, whenever I try to perform an action on a post (e.g anything that utilises the “?action” URL argument), it redirects back to the post. E.g:

    http://rockstarwire.net/community/thread/yrs/edit/?action=merge – Will navigate to the edit post page.
    http://rockstarwire.net/community/thread/bbcodes-have-been-temporarily-disabled/?action=bbp_toggle_topic_close&topic_id=983 – Will navigate to the post again. (and won’t close the topic)

    Now I am pretty sure this is going to be something to do with the URL redirects, infact, I am almost positive that will be the case.

    Could anyone assist with this one?

    Thanks

    #165201
    Robkk
    Moderator

    Sorry for the late reply, there are a couple of ways to do this.

    Easiest way to do this, might be to install this plugin. And use the supplied shortcodes in the plugin.

    https://wordpress.org/plugins/voter-plugin/

    The supplied shortcode are one for custom post types, which you can use for bbPress’s custom post types, (topic)

    [voter_plugin_top_voted type=topic num=15]

    #165195
    Robkk
    Moderator

    Yeah this is custom development. I suggest you hire a developer if you want something like this.

    In this plugin though, it deletes replies by the set hours in the settings. You can edit the code to change the post_status to “publish” instead of “spam”. This might be resource intensive depending on how many replies you have currently on your forums.

    https://wordpress.org/plugins/bbpress-auto-delete-spam-replies/

    #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

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