Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 9,951 through 9,975 (of 32,504 total)
  • Author
    Search Results
  • #155691
    dice2dice
    Participant

    I have found some more information that may be relevant. My forums still exist, here’s one http://whichinvestmenttrust.com/forums/topic/our-top-10-tips-on-where-to-start-as-a-new-investor/

    The option to select a bbPress forum is gone when I’m creating a post but even if I use a short code such as [bbp-single-forum id=8671] the forum still fails to appear in the post.

    I can’t figure out what’s stopping this from working, what is blocking it?

    #155689
    Lumartist
    Participant

    Okay,

    I did a few tests. The Problem also appears if I enable the visual (tab) editor via functions.php, like described here: BBPress Codex, and even if I use this Plugin: bbPress Enable TinyMCE Visual Tab

    This is what it looks like on the Website: directupload.net Image

    And this is how it looks like in chrome dev tools: directupload.net Image

    Can’t believe that I am the only one with this problem… Or am I doing somethings wrong?

    #155679
    Tecca
    Participant

    It’s likely inheriting the bullets from your WordPress style.css rather than something coming from the bbPress stylesheet. So what you can do is add something like the below CSS to your bbPress stylesheet.

    #bbpress-forums li {
        list-style-type: none;
    }

    That will likely remove bullets from forum posts as well, but it’s hard to get specific without seeing the site itself.

    Hopefully that takes you in the right direction.

    #155678
    jmodine
    Participant

    I guess I should have tested that code before I posted it. This gets it in the footer but I cant seem to get the blue bullets this way (although they are there) I even tried placing the

      tag first just in case it needed that which didn’t do it. Also I cant seem to adjust the font size in the footer either. So the table boxes wont increase to fill the footer. I will play with it. See if i can’t come up with a better solution
    #155661
    Lumartist
    Participant

    Hello everyone,

    I am trying to change the tinymce toolbar for the forum (reply & topic). To do so I added this code to the form-reply.php and the same (just different context) for form-topic.php:

    <?php bbp_the_content( array( 
                                'context' 		=> 'reply',                            
                                'media_buttons' => false,
                                'wpautop' 		=> true,
                                'quicktags'		=> true,
                                'teeny'			=> false,
                                'tinymce'       => array(
                                    'toolbar1'      => 'bold,italic,underline,strikethrough,alignleft,aligncenter,alignright,bullist,numlist,blockquote,link,unlink,forecolor,backcolor,undo,redo,removeformat'
                                ),
                            ) ); ?>

    Everything is working so far, except a small detail:

    I am not able to click into the textarea/editor, so that the cursor jumps into the first line. Instead I have to click the first line, which is working.

    I was able to isolte the problem, which is coming from this part of the code:

    'tinymce'       => array(
                                    'toolbar1'      => 'bold,italic,underline,strikethrough,alignleft,aligncenter,alignright,bullist,numlist,blockquote,link,unlink,forecolor,backcolor,undo,redo,removeformat'

    It also appears if I just add:

    'tinymce' => true

    I looks like that the syntax might be wrong, but I read a lot of guides, and in all the syntax was the same.

    I also recognized, that there is a change in the source code, after I add that “tinymce” bit to the array.

    After the changes the appears this code:

    <p><br data-mce-bogus="1"></p>

    —–

    What I read is, that this problem occurs when tinymce is using a <textarea> – But I don’t know how to change that textarea to a div, which is recommended.

    Anyone can help me on this?

    Thank you for your help in advance!

    #155660
    Robin W
    Moderator

    ok, so it sounds like a theme issue, so I googled ‘wordpress theme pinboard bbpress’ and got this

    https://wordpress.org/support/topic/bbpress-forum-homepage-displaying-oddly?replies=8

    the advice is closed to perfect as this looks very strongly like your problem. The only issue might be that the page.php file has been changed in a later version and the lines might be slightly different.

    Read this first for background

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

    so try the following

    1. copy page.php and rename it bbpress.php
    2, edit the bbpress.php file
    line 12:
    <?php post_class(); ?>
    to
    <?php $classes=get_post_class(); echo str_replace(“twocol”, “onecol”, $classes); ?>
    4. modify LOCAL forums.php line 18:
    <?php the_content(); ?>
    to
    $content = get_the_content(); echo str_replace(“twocol”, “onecol”, $content); ?>
    Save this file and reload it to your theme

    As the link says, you should really put it into a child theme

    Functions files and child themes – explained !

    but either way keep a copy of it.

    Come back if this isn’t clear

    #155630
    robertosalemi
    Participant

    Resolved.

    function admin_bar_remove_this(){
    	global $wp_admin_bar;
    	$wp_admin_bar->remove_node('my-account-buddypress');
    }
    add_action('wp_before_admin_bar_render','admin_bar_remove_this');

    I hope this code is useful for someone.

    #155629
    Robin W
    Moderator

    Hey great, glad that you are fixed, an sort of see what he has changed (essentially the code was executing for a page which bbpress is and he’s essentially limited it to categories). Chances are that it won’t affect anything else.

    I presume he will release this as a permanent fix at some stage, but in the meantime, keep a note of this change, in case it gets overwritten by a plugin update.

    #155615
    xprt007
    Participant

    Hi

    The recipe plugin update ended up solving a small connected issue, but not the main one mentioned above. I informed the author again this morning & he quickly acted saying he found the bug in the plugin:

    OK, bug confirmed and (hopefully) found and resolved.

    Could you please edit the file php/class/rpr_core.php in the recipepress-reloaded plugin folder and change line 317 from
    if( !is_page() && ! is_attachment() ){
    to
    if( is_home() || is_category() || is_tag() ){

    This should be it. However this might introduce other problems I couldn’t find so far.

    Editing that file immediately made it possible to get the forum archive at /forums, with the recipe plugin activated, which was not possible before.

    The hope is nothing else is affected by this change. So I am going to check if the forum & other aspects of the site are running normally. I have no experience to tell if that code could affect some other function in WP.
    It seems the cause lies outside, though it affects bbpress.

    I had not yet got time to try the short code solution.

    Very grateful, though for your support.

    Kind regards

    #155614

    Topic: Import Hung?

    in forum Troubleshooting
    Chad
    Participant

    I was importing from my Vbulletin 4 and it went through converting topics, then it started converting tags and hung about 12,900. Is this a known bug? What’s the best way to do this over without losing the imported content and without taking risks of missing content not being imported initially on the hang up? Any ideas why it would hang up like that? It took a pretty long time just to do the topics. It didn’t start the users yet either. You’d think it would import users first?

    Side note, I don’t see any area to set up bbcodes? Is bbcode not a default feature?

    #155612

    In reply to: Forum Dissapeared

    Fugglet
    Participant

    Yea. I see them all in there as they should be.
    I can go to the link of the item to see it on the website.
    It just doesn’t show me the forum on the website, even with use of the shortcode.

    I’ve tried making other test pages, but didn’t work – only shows some upload image bar.

    #155600
    MBenningfield
    Participant

    I installed the GD bbPress Tools plugin and the plugin itself works great. However, when you go to edit profile so that you can edit your signature, everything is “white” and you can’t see what you have written, etc. I originally had this issue on the actual bbPress forums but I downloaded the bbPress UI settings and changed it to a dark theme. I am completely lost in codec’s and css, etc, but I would like to know what to do to change this as it is really annoying some of the people that joined our site. I’m attaching a picture of what the issue appears to be.

    Wordpress Version is 4.0.1.
    Theme is Falcon (Child theme of 2014 themes)
    GD bbPress Tools version is 1.6

    Screenshot from bbPress

    #155597
    Fugglet
    Participant

    Hello Support Forum.
    I really hope that someone can help me out here – struggling..

    Alright so, after my last VPS bugged out, and somehow blocked me out of my wp-admin, database corrupt and so forward. (Which I’m guessing was caused by a bad plugin.)

    I had a backup plugin, and now have the site up and running again at http://www.blazeplay.com
    now if you locate http://www.blazeplay.com/forum there’s nothing.
    The shortcode is still on the forum page, but nothing is showing – I tried disabling plugins adding new forums, but the only thing it shows is some “upload file bar”.

    Is there a way to troubleshoot this, and hopefully find the issue?

    Thank you.

    #155581
    jimbofoxman
    Participant

    Disregard, I atleast have it figured out for now. I copied the theme-styles.php file to the child theme and then searched for;

    	if ( is_page_template('page-landing.php') || is_page_template('page-alt-home.php') ) {
    		$layout = "Full-Width";
    		global $solostream_options;
    		$solostream_options['solostream_layout'] = $layout;

    and added the following right below it…

    	if ( is_bbpress() ) {
              $layout = "Full-Width";
              global $solostream_options;
              $solostream_options['solostream_layout'] = $layout;
         }
    jimbofoxman
    Participant

    I have a child theme setup using the Child Theme Configurator plugin. I have the following in the child theme folder; style.css, function.php and bbpress.php (renamed from page.php).

    I am using the WP-Englightened theme.

    I copied the page.php to the child root and renamed it to bbpress.php. There doesn’t seem to be anything in that file to remove for the sidebar.

    <?php get_template_part( 'content', 'before' ); ?>
    
    <?php 
    	if (have_posts()) : while (have_posts()) : the_post(); 
    	global $do_not_duplicate;
    	$do_not_duplicate[] = $post->ID;
    ?>
    
    						<div <?php post_class('singlepage clearfix'); ?> id="single-page-<?php the_ID(); ?>">
    
    							<div class="entry">
    
    								<h1 class="page-title"><?php the_title(); ?></h1>
    
    								<?php if ( get_post_meta( $post->ID, 'video_embed', true ) ) {
    									$video_embed = get_post_meta( $post->ID, 'video_embed', true );
    									echo '<div class="post-feature-video single">';
    									echo '<div class="single-video">';
    									echo $video_embed;
    									echo '</div>';
    									echo '</div>';
     								} ?>
    
    								<?php the_content(); ?>
    
    								<div style="clear:both;"></div>
    
    								<?php wp_link_pages(); ?>
    
    							</div>
    
    						</div>
    
    <?php endwhile; endif; ?>
    
    <?php get_template_part( 'content', 'after' ); ?>

    I tried putting this in the style.css file based on a thread here.

    .site,
    .site-header {
    	max-width: 100%;
    }
    
    .bbpress-forums .col-2cl .main {
    	background: none repeat-y right 0;
    	padding-right: 0;
    }
    
    .site-content .entry-header,
    .site-content .entry-content,
    .site-content .entry-summary,
    .site-content .entry-meta, 
    .page-content {
    	max-width: 100%;
    }
    
    .form-allowed-tags {
    	display: none;
    }
    
    div.bbp-breadcrumb, 
    div.bbp-topic-tags {
    	font-size: inherit !important;
    }
    
    #bbpress-forums ul.bbp-lead-topic, 
    #bbpress-forums ul.bbp-topics, 
    #bbpress-forums ul.bbp-forums, 
    #bbpress-forums ul.bbp-replies, 
    #bbpress-forums ul.bbp-search-results {
    	font-size: inherit !important;
    }
    
    #bbpress-forums {
    	font-size: inherit !important;
    }
    
    .bbpress .hentry {
    	margin: 0 auto 48px;
    	max-width: 100%;
    }
    
    @media screen and (min-width: 1008px) {
    	.bbpress .site-content {
    		margin-right: 0;
    		margin-left: 182px;
    	}
    }
    
    @media screen and (min-width: 1080px) {
    	.bbpress .site-content {
    		margin-left: 222px;
    	}
    }
    
    @media screen and (min-width: 1218px) {
    	.bbpress .site-content .entry-content {
    		margin-right: 0;
    	}
    }
    
    @media screen and (min-width: 673px) {
    	.bbpress .site-content {
    		margin-right: 0;
    	}
    }

    If I create a page and use the short code for bbpress and tell it in the page options to do full width it works fine for the main page but not for the rest of them.

    #155542
    Robkk
    Moderator
    // Filter wp_nav_menu() to add profile link
    add_filter( 'wp_nav_menu_items', 'my_nav_menu_profile_link' );
    function my_nav_menu_profile_link($menu) {
        if (!is_user_logged_in())
            return $menu;
        else
            $current_user = wp_get_current_user();
            $user=$current_user->user_login ;
            $profilelink = '<li><a href="/forums/users/' . $user . '/">My Profile</a></li>';
            $menu = $menu . $profilelink;
            return $menu;
     
    }

    i just edited the code listed here

    Layout and functionality – Examples you can use

    Robkk
    Moderator

    @situationerdk

    most of the features users wanted in that survey can be achieved with some plugins listed here

    Feature Plugins Tracking

    attachments you would have to use gd-bbPress attachments
    quotes you can use bbPress direct quotes or gd-bbPress tools
    for using bbPress for WordPress comments you can use the bbPress topics for posts plugin

    if you just want users to be able to edit their comments use the simple comment editing plugin

    if you think bbPress needs specific features added to the core of the plugin make a new topic about that.

    #155530

    In reply to: Logout Shortcode

    Robkk
    Moderator

    its really simple to achieve this type of thing , use a plugin like this

    wordpress.org/plugins/log-out-shortcode/

    the plugin basically uses some code already in WordPress that you can use.

    codex.wordpress.org/Function_Reference/wp_logout_url

    #155529

    In reply to: Adding Icons

    Robkk
    Moderator

    @joedostie

    bbpress.org does not insert the icons with html in the topic info area , they just use CSS

    bbpress.org uses this css for any icon for the topic info.

    .sidebar .forum-info li:before, 
    .sidebar .topic-info li:before, .sidebar div ul li a:before {
    font: normal 16px/1 'dashicons';
    margin-right: 5px;
    float: left;
    padding-top: 3px;
    color: #000;
    }

    then they use this to add the star icon packaged with dashicons

    .sidebar .topic-info li.topic-favorite:before {
    content: '\f155';
    }
    #155528
    Robkk
    Moderator

    @skisma

    you create a folder named bbpress in the root of your theme and put the file there.

    heres more info https://codex.bbpress.org/theme-compatibility/

    first create a new forum but change the type to category.

    for each new forum you want in the category , make sure the forums parent is that category.

    to reorder the forums change the id

    I’m pretty sure I need to access my cPanel and then navigate to my file manager, correct?

    well you can do that or FTP , whatever you are comfortable with i guess.

    #155524
    Robkk
    Moderator

    There is two sites that run bbPress that i think should be in this showcase list.

    This one is highly customized that you might think that it does not run bbPress .but if you look at some of the source code of the topic pages you will see it does.

    Discussions

    CSS-TRICKS have been running bbPress for awhile now and i think they they use the plugin quite nicely too.

    http://css-tricks.com/forums/

    #155519
    Jeffro
    Participant

    The showcase page on the bbPress Codex is a bit outdated with some of the sites opting to not have a forum at all. Can you please help me out by sharing URL’s to websites using bbPress you think are worthy of being showcased. I’m looking for 5-10 sites but depending on the response, I may add more.

    #155517
    Talabrina
    Participant

    O M G !
    Thank you so much, both of you!

    The codes were not working, but when I change the border to 0, it worked !

    (@jmodine Yes, I got a child theme already :3)

    #155512

    In reply to: Search by user

    Matthew How About
    Participant

    Hello Wookey,
    Recently I’ve done code for this. This is not the best way to search, because the user can enter a display name instead of user login so it will not work. If someone in the future will know how to get user id from first and(or) last name I’ll be thankful.

    First add this input field to page with search box (remember to put it inside <form> tag)
    <input type="text" name="bbp_search_by_user" placeholder="Input searched username" value="" />

    That snippet doesn’t worked for me, so i made it in different way. I base on @netweb (Stephen Edgar) plugin, which is very similar to sevenspark code. Just added couple things like GET field, add query args if username is set and thats it.

    add_filter ( 'bbp_before_has_search_results_parse_args', 'ha_custom_search_by_username');
     
    function ha_custom_search_by_username() {
    	//Get username from input on search page
    $username = $_GET['bbp_search_by_user'];
    	$default_post_type = array( bbp_get_forum_post_type(), bbp_get_topic_post_type(), bbp_get_reply_post_type() );
    	//check if empty
    	if(!empty($username)){
    		//Make ID from username
    		$user = get_user_by('slug', $username);
    		$user_id = $user->ID;
    	$args['author'] = $user_id;	
    	}
    	$args['post_type'] = $default_post_type;
    	$args['orderby'] = 'date';
    	$args['posts_per_page'] = '5';
    	$args['ignore_sticky_posts'] = 'false';
    	$args['order'] = 'DESC';
    
    	return $args;
    }

    Add this to function.php

    #155510
    jmodine
    Participant

    the solution to this is built in WordPress not not in bbpress. First make sure you have an actual page called forums then use short code to mate it your main forums index page. Once that is confirmed check your permalinks and make sure they are not on default. ( I usually use post name). Now your forums page should be showing as a page on your site. Then go to custom menu Dashboard>appearance>menus once there you can create many different menus and label where they will show up, or even call them through the widget area. But for your particular problem find the one called Main(top primary menu) then just add the pages you want to show up on that menu and delete the ones you don’t want to show up. (Be sure to uncheck automatically add top level pages).

Viewing 25 results - 9,951 through 9,975 (of 32,504 total)
Skip to toolbar