Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 8,226 through 8,250 (of 32,519 total)
  • Author
    Search Results
  • #164991
    cocolabombe0
    Participant

    Good evening, I added a field on the WP profile and wanted to bbpress posted on the profile.
    How do we do?
    I tried your plugin bbp profile information so I have almost everything I want but not totally.

    What added to the Profile page of WP fields (Role on the site, website, additional fields (with add function), etc.).

    For the formatting, changing the file should be simple but I do not know what code used to do.

    Same, how added some fields in the WP topics (subject / response).

    What bothers me in the plugin’s name display / First name / email automatically. Why not have checkboxes on what the user wants to view. But before the administrator can block fields.

    Given that I want to add a facebook fields and if it is not empty and the link, I want to display on the profile and the topic / response mode with an image.

    For additional fields, four are enough for me, but how to add it to the wp-admin?

    On my site, wp-admin is accessible for admins and the member / user by everyone.

    If you do not understand me, I will try to make screenshots to make it more understandable.
    Sincerely Nicolas.

    #164988
    Robkk
    Moderator

    Okay well there might be a way to bulk create bbPress posts, there are already a bunch of WordPress plugins that do this for blog posts. I will test to see if I can find one that works with custom taxonomies and custom post types.

    I don’t think you have to go through that trouble, it would be way easier if bbPress has its own tables but it doesn’t, the posts are in wp_posts and post meta in wp_postmeta.

    Stored Database Data

    #164983

    In reply to: Full width and sidebar

    Robkk
    Moderator

    This is what I used before.

    li.bbp-topic-voice-count {
        display: none;
    }
    
    li.bbp-topic-title {
        width: 65%;
    }
    #164980

    In reply to: Full width and sidebar

    davidnsfw
    Participant

    Ok, I found on this forum that I have to add this code to the css editor:
    .bbp-topic-voice-count {
    visibility: hidden;
    width: 20%;
    }

    I have done it, it works but how I can extend the topic title and freshness widths to make it look better?

    http://bit.ly/1NQj9fO NSFW

    #164967
    mst
    Participant

    I need to add a button to bbPress instance of the teeny MCE.

    I’ve used the following code to test how my mce plugin work:

    // add new buttons
    add_filter('mce_buttons', 'myplugin_register_buttons');
    
    function myplugin_register_buttons($buttons) {
       array_push($buttons, 'separator', 'myplugin');
       return $buttons;
    }
     
    // Load the TinyMCE plugin : editor_plugin.js (wp2.5)
    add_filter('mce_external_plugins', 'myplugin_register_tinymce_javascript');
    
    function myplugin_register_tinymce_javascript($plugin_array) {
       $plugin_array['myplugin'] = plugins_url('/js/tinymce-plugin.js',__FILE__);
       return $plugin_array;
    }

    This works like it should on the admin side.

    I can’t wrap my head around how to get the same principle to work for bbPress instance of teeny mce. Which filter/action do I need to use and where? I’ve tried using the teeny_mce_buttons filter without any luck.

    WP 4.2.4, bbPress 2.5.8

    #164966
    Robkk
    Moderator

    I think using something like this would work for what you want.

    function custom_bbp_has_replies() {
        $args['orderby'] = 'post_modified';
        $args['order'] = 'DESC';
        return $args;
    }
    add_filter('bbp_before_has_replies_parse_args', 'custom_bbp_has_replies' );
    #164964

    In reply to: Rss Feed !

    Robkk
    Moderator

    Shouldn’t it be there automatically?? just add /feed after the url of any forum, topic, and forum and topic archive.

    #164963

    In reply to: Importing from WBB4

    Robkk
    Moderator

    Yeah that makes sense since the original file was for a user with a german/english forum I think.

    You may not need this either since the original user had a german forum.

    /**
    	 * Set languages, add more languages if needed
    	 *
    	 * @param int $language WBB v4.x numeric forum status
    	 * @return string WordPress safe
    	 */
    	public function callback_topic_language( $language = 4 ) {
    		switch ( $language ) {
    			case 4 :
    				$language = 'German';
    				break;
    
    			case 5  :
    			default :
    				$language = 'English';
    				break;
    		}
    		return $language;
    	}
    #164962

    In reply to: Full width and sidebar

    Robkk
    Moderator

    Step by step might be this

    • Install What the File.
    • Go to your bbPress page with the sidebar, and with what the file activated you look in your WOrdPress toolbar and see what bbPress template file it is.
    • Then find the file in your theme, copy it and rename it to `bbpress.php’ and remove any unwanted code such as the sidebar code.</li>
      </ul>

      Usually in a theme the sidebar code is similar to this, so remove this to remove the sidebar.

      <?php get_sidebar(); ?>

    #164958
    Robkk
    Moderator

    You copy the loop-single-reply.php file in your child theme in a folder called bbpress.

    when you look at the code of theme template in your code editor, you will see an tag called

    <?php bbp_reply_author_link( array( 'sep' => '<br />', 'show_role' => true ) ); ?>

    This peice of code has attributes to display your avatar and user role. You can place similar code around each other to reorder it to the layout you want.

    For more information about cusotmizing the reply author link see here.

    bbp_reply_author_link

    Also I think you can reorder the reply content to show up first with CSS and just switch it around in the template file.

    #164957
    Robkk
    Moderator

    Since you found out it is your theme, you may need to contact your theme author especially if you are using a paid theme. There might be conflicting code in the theme.

    If bbPress worked out of the box before, but doesn’t anymore.

    Did you add custom bbPress templates??
    Did you add any code to your functions.php file in a child theme??

    #164955

    In reply to: Full width and sidebar

    davidnsfw
    Participant

    I have added that code to css editor.

    It would be perfect if you could instruct how to remove sidebar step by step.

    #164954

    In reply to: Can’t Add Topics

    Robkk
    Moderator

    try some Plugin/Theme troubleshooting

    Troubleshooting

    You can try increasing memory and see if that works, but only try it after you seen it is not another plugin or your current theme causing the issue and you have also tried some of the additional solutions listed.

    Blank Pages

    #164951
    Robkk
    Moderator

    Funny thing is that bbPress has listed at least 6 German languages, maybe the one you would want needs to be the German → German (Formal)??

    German
    Swiss German
    German (Switzerland)
    German → German (Formal)
    Swiss German → Swiss German (Formal)
    German (Switzerland) → German (Switzerland) Informal
    #164940

    In reply to: Private forum

    Emma_Jones
    Participant

    Hi,

    This might be helpful:

    Forum visibility:
    Public – Anyone can see these forums
    Private – Only logged in registered users with a forum role can see these forums
    Hidden: Only Moderators/keymasters can see these forums

    This is from the step by step guide:

    Step by step guide to setting up a bbPress forum – Part 1

    #164914

    In reply to: Full width and sidebar

    davidnsfw
    Participant

    Probably after updating the theme, this sidebar is showing there.

    Can you be more precise where I should remove this code?

    #164901
    Robkk
    Moderator

    I think it is pretty much when 2.6 is done it gets released.

    I think the version you want to revert to would be fine.

    The import being stuck could be normal, or there could be a post causing all the hold up.

    Import Troubleshooting

    Robkk
    Moderator

    Oh this worked, not the other one. I tried it to see if it would do anything and forgot to change it back.

    <?php if ( $post->post_content=="" ) { echo "yes";};?>

    #164897
    Robkk
    Moderator

    Did you try to see if it was another plugin, possibly causing the issue??

    Troubleshooting

    Robkk
    Moderator

    This works when I tested it.

    <?php if ( $forum->post_content=="" ) { echo "yes";};?>

    #164895

    In reply to: Full width and sidebar

    Robkk
    Moderator

    THis is all the CSS you need.

    .bbpress .post-section {
    margin: 0 2% 20px;
    width: 96%;
    }
    
    .bbpress #content-main {
    width: 100%;
    margin-right: 0;
    }
    
    @media screen and (max-width: 1002px) and (min-width: 768px)
    .bbpress #content-main-inner {
        margin-right: 0;
    }

    To remove the sidebar you have to follow this guide and remove the sidebar PHP code.

    Getting Started in Modifying the Main bbPress Template

    #164891
    davidnsfw
    Participant

    I have added this code to my css editor:

    .bbpress .post-section {
    	margin: 0 2% 20px;
    	width: 96%;
    }
    
    .bbpress #content-main {
    	width: 100%;
    	margin-right: 0;
    }

    But the left sidebar still shows up below the forum.

    http://bit.ly/1NQj9fO NSFW

    #164882
    Robkk
    Moderator

    I cannot duplicate the issue you are experiencing.

    I renamed my admin user
    changed the user ID to something besides 1
    And also changed my database table prefix.

    I then installed bbPress and saw the About Page fine.

    I also went to Tools > Forums then went to Repair Forums and still see no error.

    No new menu is added neither in the admin panel, so I have no way to use it, activate it or see it.

    This is forum bbPress menu items like Forums, Topics, and Replies right?? This is not just the About Page and the Repair FOrums page??

    The about Page can be accessed by going to the plugin in your plugin list and hitting the About link, and the Repair Forums Page can be accessed by going to Tools > Forums then went to Repair Forums.

    I tried several database changes as mentioned in the forum, but nothing worked.

    Well just so you know code in topics more than 2-3 years might be for the old standalone version of bbPress which might be useless and may break your site even.

    #164875
    Robkk
    Moderator

    You have to create a new role and it has to have these set capabablites

    'publish_topics' => false,

    and

    'publish_replies' => true,

    While what I listed is oversimplified, you may need to adjust extra capabilities to your liking. To learn how to create a new user role with its own custom capabilities read this guide.

    Custom Capabilities

    You then set the default role in the forum settings in Settings > Forums in the WordPress backend.

    To change existing users you have to change their forum role in Users > All Users in the WordPress backend.

    #164873

    In reply to: bbPress problem

    Robkk
    Moderator

    You might need your permalinks refreshed.

    Navigation Links Return 404s Errors

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