Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 9,976 through 10,000 (of 32,519 total)
  • Author
    Search Results
  • #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).

    #155509
    jmodine
    Participant

    changing it to 0 would be best. Just make sure you are using a child theme. If you aren’t you will lose the changes with the first update to bbpress or your theme. you can find child theme info on the codex or use this plug in to create it for you If you already have a child them just add the code above to your style.css in you child theme. It will override the bbpress css I would just recommend commenting off the css so its easy to find if you need to add more changes.

    #155508
    jmodine
    Participant

    This has been a difficult one for me. I have multiple forums on my site dealing in multiple categories.
    When I click any of the forums to view topics there are topics from other forums showing. example

    Forum A
    topic 1 (has)
    topic 2 (has)

    Forum B
    topic 1 (has)
    topic 2 (has)

    when clicked Forum B to view topics, forum A topics show up like so
    Topic 1 (from forum A)
    Topic 1 (from forum B) {organized according to freshness }
    Topic 2 (from forum A)
    Topic 2 (from forum B)

    What I want is when clicking forum A (or B) you see

    Topic 1 (from correct forum only)
    Topic 2 (from correct forum only)

    Now the topics being organized according to freshness I thought it was a freshness issue so I went changed some loops. I had no luck getting this not to happen. I have removed the freshness from every loop and every content then returned them to normal having no results.
    If this is related to freshness then I am having a problem getting bbpress to read the custom loop-“tag”.php I have them placed in childtheme>bbpress which is how I was told this worked from the duccumentation. You can see the specific problem on this page

    #155505
    jmodine
    Participant

    The easiest way is to do a custom CSS. make a child theme first i recomend this plug in “Child theme configuration” Down load the zip file once you chose your settgings. upload the child theme through dashboard> appearance > theme > add new then use a text editor and make a style.css for your theme (bbpress will be overridden with it) I use eclipse for a text editor but notepad will work in the style css add this code
    (this came directly from my site so it has a few changes you can change anything you like on it for more customization) you can see my forums lay out here

    
    #bbpress-forums .bbp-forums-list li {
    display: none !important;
    min-height: 50px;
    font-size: 18px;
    border: 3px solid black;
    border-top: 8px solid #871A1A;
    boder-bottom-left-radius:5px;
    boder-bottom-right-radius:5px;
    boder-top-left-radius:5px;
    boder-top-right-radius:5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    margin-top: 10px;
    margin-bottom: 10px;
    }
    
    .bbp-forum-title{
       display: block !important;
       font-size: 22px;
       font-weight: bold;
    	border-top: 15px solid blue;
    	boder-top-left-radius:5px;
    	boder-top-right-radius:5px;
    	-moz-border-radius: 5px;
    	-webkit-border-radius: 5px;
    	margin-top: 10px;
    	margin-bottom: 10px;
    }
    
    .bbp-topic-title {
    	 font-size: 16px !important;
    }
    

    Like I said any of these values are changeable and you can add more or take some out. hope this helps.

    #155491
    Dirk
    Participant

    I deleted the user on a local test-installation with MAMP, where I could reproduce the problem. It made no difference.

    Here is what I can see and do in WP frontend and backend:

    Frontend
    – Logged in as Keymaster, I can do everything. I can see all bbPress related menu items in the WP Toolbox on top of the page.
    – Logged in as Moderator, I can see the bbPress related menu items Topic and Answer in the WP toolbox, but not Forum. I can start a new forum on a page with the shortcode [bbp-forum-form] as a child-forum (same behaviour as Keymaster starting a forum with this shortcode).
    – Logged in as Contributor I don´t have any bbPress related menu item in the WP toolbox, but I can start Topics and answer in the forum itself.

    Backend (Dashboard)
    – Logged in as Keymaster I have every bbPress menu item.
    – Logged in as Moderator I only have Topics and Answers as menu items.
    – Logged in as Contributor I don´t have a bbPress menu at all.

    For me it looks like every role has the corresponding capability, but the menu items of the role below, except the Keymaster.

    What I also tried was changing capabilities with the plugin bbPress Advanced Capabilities and restoring the WP default capabilities with Capability Manager Advanced. No difference.

    #155486
    Jeffro
    Participant

    On the homepage, you’ll want to look at the following code and either change the border to 0 pixels or change its color.

    
    #bbpress-forums li.bbp-body ul.forum, #bbpress-forums li.bbp-body ul.topic {
        border-top: 1px solid #eee;
        overflow: hidden;
        padding: 8px;
    }
    

    The other borders on the homepage appear to be controlled by this code:

    
    #bbpress-forums li.bbp-header, #bbpress-forums li.bbp-footer {
        background: none repeat scroll 0 0 #f3f3f3;
        border-top: 1px solid #eee;
        font-weight: bold;
        padding: 8px;
        text-align: center;
    }
    
    #155477

    In reply to: Logout Shortcode

    Incoking
    Participant

    Im trying this too on my site under the folder forum.
    If you can see here on bbpress the code works that way in my case

    https://bbpress.org/wp-login.php?action=logout&_wpnonce=fa9b4484b8&redirect_to=https%3A%2F%2Fbbpress.org%2Fforums%2Ftopic%2Flogout-shortcode%2F%3Floggedout%3Dtrue

    So my guess is that you can create a custom php for example http://www.mysite.com/logout which will redirect on a file like wp-login.php which will fetch the id from the user and then will do the redirect to the page you want.

    #155444
    Robin W
    Moderator

    ok, partial solution for you – I have done some further testing

    In dashboard>settings>forums make the forum slug /forums

    The create a page called ‘forum’ and put

    [bbp-forum-index] into this. Save and view to make sure you can see this

    Right now change the heading to ‘Forums’, the page slug will stay as forum, and as long as that doesn’t match the forum slug in settings it seems to be ok.

    Then create a menu item for this page

    That seems to function BUT the breadcrumbs will still go to the wrong place, so for the moment take these out

    Layout and functionality – Examples you can use

    That will at least get you a working forum and recipe. All that’s missing are the breadcrumbs

    Let me know how you get on

    #155439
    Robin W
    Moderator

    I’ve just tried having both these plugins on my test site, and can see exactly what you mean, my forums become archive posts just as yours did, and I’m using a shortcode so that way won’t work.

    So definite conflict between how these two forums are using slugs, and I suspect that the recipe one is overwriting a forum one, but don’t know how, possibly via a filter on wordpress.

    I’d suggest since the recipe plugin author will have far better knowledge (as he has slug settings in his plugin) that you go back with a fresh post, and explain that on a base theme (mine was twentyten) with just bbpress and his plugin and nothing else

    http://www.mysite.com/forums takes you to blog archives page

    and see what he comes back with

    Robin W
    Moderator

    see

    Custom Capabilities

    https://codex.bbpress.org/bbpress-user-roles-and-capabilities/

    for how to set up a custom roles that will let you do what you want

    #155420
    EvolveWorkforce
    Participant

    I want to add a logout option to my login page. I see the login shortcode. How can I add logout? Thanks.

Viewing 25 results - 9,976 through 10,000 (of 32,519 total)
Skip to toolbar