Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 12,951 through 12,975 (of 32,585 total)
  • Author
    Search Results
  • #141428
    piccart
    Participant

    I’ve just made a button on the topic listing page, which send the variable using a GET url:

    <a href="<?php bloginfo( 'url' ); ?>/new-topic/?related_forum_id=<?php bbp_forum_id(); ?>" >New Topic</a>

    then in the template to display the new topic form, you add this:

    <?php // get the var from the new-topic button
    $related_forum_id = $_GET['related_forum_id'];
    // display a warning if there is no info about the id
    if ($related_forum_id=="") {
    	echo "WARNING! Something is wrong here! there is no info about the Related Forum where to append this Topic.<br/>Do not submit the new topic. Please go back and try again.";
    }
    // create a string with the shortcode
    $form_shortcode = '[bbp-topic-form forum_id="'.$related_forum_id.'"]';
    // execute the shortcode to display the form
    echo do_shortcode($form_shortcode); ?>
    #141426
    WPDragon
    Participant

    Hi @avgmatt — Well, the category is kindda what I had in mind, but still wish there was a built in way in bbpress to structure a forum more like phpBB or vbullentin.

    However, if you want the Categories to not be side by side..and List them under the main forum..check this link out. https://codex.bbpress.org/layout-and-functionality-examples-you-can-use/

    If you look at #1 – it gives you the exact line of code to put into your CSS to make it inline.

    Hope that helps.

    #141420

    Topic: Forum root

    in forum Troubleshooting
    koendb
    Participant

    I want my forum root to display the a list of forums instead of their parent categories.
    I am able to do this using these shortcodes on a page I added myself:

    [bbp-single-forum id=10621]
    [bbp-single-forum id=10623]
    [bbp-single-forum id=10625]
    [bbp-single-forum id=10627]
    [bbp-single-forum id=10611]

    You can see this working on my forum page. This is how I want my forum root to look.

    But when navigating the forum, the breadcrumbs link to the ‘real’ forum root. When I add
    echo do_shortcode('[bbp-single-forum id=10621]');
    to the template file of this page it adds the categories index again (just like [bbp-forum-index] would).

    How could I get the individual forums on the forum root OR change the links in my breadcrumb?
    Thank!

    WP 3.8
    bbPress 2.5.1
    Website: 24Baby

    #141416
    Lynqoid
    Participant

    .post-content #bbpress-forums p

    #bbpress-forums is inside .post-content by the look of it?

    #141400
    nzguyyy
    Participant

    I am new to CSS and trying to change the formatting of my post-content div. My forum home page, and topic pages look okay but the margin in my post content page isnโ€™t quite right. I can fix it by inspecting element and performing the change below, but then it reverts to being broke again.

    I change it to this:

    #bbpress-forums .post-content p {
    margin: 0px 0px 0px !important;
    display: block;
    }

    but then it reverts to this:

    #bbpress-forums .post-content p {
    margin: 0px 0px 20px;
    display: block;
    }

    Any idea what Iโ€™m doing wrong? Forum is here:

    http://www.planitnz.com/new-zealand-travel-forum

    #141389
    DarraghDevEire
    Participant

    Hi, I’m looking for a solution to display a list of sticky posts. I currently have a list of all recent topics displaying -> http://kohler.surefiresocial.com/featured-articles/ but I want to restrict this to just sticky posts. I am using the short-code [bbp-topic-index] to display the topic index.

    Basically, I am stuck as to should i modify and create a short-code or drop in a custom query? any help would be greatly appreciated.

    Thanks in advance.

    WP Version – 3.8
    BBPress Version – 2.5.1
    URL – http://kohler.surefiresocial.com/featured-articles/

    #141382
    wiste
    Participant

    In which file(s)/locations can I find the code for the built in bbpress widgets? Most specifically I’m looking for the recent topics widget. Sorry if this is a dumb question, but I’ve never needed to modify a widget before now and my searches have turned up nothing.

    I am wanting to make my own version that will allow it to recursively check sub forums of the specified parent forum as well so a category can be specified instead of just a single forum.

    Thanks!

    #141379

    In reply to: Thousands of revisions

    Stephen Edgar
    Keymaster

    I had a look at the data in both your previous posts and I can only find SELECT SQL statements, there are no INSERT INTO or UPDATE SQL statements that cause the creation or updates into the database so these don’t help us much, not sure what/where we should be looking for more help here.

    There is the following plugin by one of the WordPress core devs @dd32 https://wordpress.org/plugins/revision-control/

    I have sent him an email asking for some tips on what else we should be looking for.

    #141377
    Stephen Edgar
    Keymaster

    It looks like you have a page at http://www.ladiesbalance.com/forums/

    When viewing a topic or forum eg:
    http://www.ladiesbalance.com/forum/forums/chat-beauty/
    http://www.ladiesbalance.com/forum/topic/this-is-a-test/

    The breadcrumb link is pointing to /forum

    It looks like you have your ‘Forums Prefix’ and ‘Single Forum Slugs’ around the wrong way.

    Use forums as your forum prefix (the same as your forums page)

    Use forum as the single forum slug.

    Stephen Edgar
    Keymaster

    @wiste What I think/expect is the following:

    1. \wp-content\plugins\bbpress\templates\default\bbpress\loop-forums.php
    2. \wp-content\themes\mytheme\bbpress\loop-forums.php
    3. \wp-content\themes\mychildtheme\bbpress\loop-forums.php

    I’ll try to have a closer look at this sometime in the next few days and report back ๐Ÿ™‚

    #141366

    In reply to: Help please!

    Stephen Edgar
    Keymaster

    Much of this is theme related, we have a ticket in Trac for some microdata additions for breadcrumbs be the actual format for forums, topics & replies doesn’t have an ‘official’ spec so there really isn’t an easy way of supporting scheme.org or microformats with bbPress at this stage.

    Your best workaround is to customize your bbPress templates to fit a markup of your choice and this really comes down to how your theme is currently doing this.

    https://codex.bbpress.org/theme-compatibility/

    https://bbpress.trac.wordpress.org/ticket/2269 “Add rich microdata markup to breadcrumbs”

    #141365
    Stephen Edgar
    Keymaster

    You would probably be best of making a copy of some of the bbPress templates.

    Details on getting started with this are here https://codex.bbpress.org/theme-compatibility/

    Then take a look at the content-statistics.php template and add that code with the styling you want to content-archive-forum.php

    #141364
    Stephen Edgar
    Keymaster

    Thanks for the follow up, your right you probably don’t need the bbpress.php file now.

    (I replied to your other topic about the admin replies link.)

    #141359
    Stephen Edgar
    Keymaster

    You would need to customize your templates. To get started with this follow the steps here to make copies of your templates for use in your theme.

    https://codex.bbpress.org/theme-compatibility/

    Then start by taking a look at loop-replies.php

    #141352
    Stephen Edgar
    Keymaster

    That was a Google Summer of Code (GSoC) project and is an awesome plugin.

    You should take a look at @rmccue’s bbPress plugin https://github.com/rmccue/bbPress-Reply-by-Email. It works quite well but is a little complex to setup.

    There are no current plans to integrate this feature into bbPress core and the recommendation is to use a plugin for this feature.

    #141349
    nzguyyy
    Participant

    I am new to CSS and trying to change the formatting of my post-content div. My forum home page, and topic pages look okay but the margin in my post content page isn’t quite right. I can fix it by inspecting element and performing the change below, but then it reverts to being broke again.

    I change it to this:

    #bbpress-forums .post-content p {
    margin: 0px 0px 0px !important;
    display: block;
    }

    but then it reverts to this:

    #bbpress-forums .post-content p {
    margin: 0px 0px 20px;
    display: block;
    }
    

    Any idea what I’m doing wrong? Forum is here:

    http://www.planitnz.com/new-zealand-travel-forum/

    #141344
    Stephen Edgar
    Keymaster

    Try making a copy of the Twenty Eleven page template sidebar-page.php file and rename it to bbpress.php

    #141327
    LabSecrets
    Participant

    @benjik

    Sounds like the problem is that you actually “do” have a page called “forums” that is in the trash and you have to EMPTY the trash to get rid of it. Once you do, then you can create it again with the proper short codes and page slug of “forums” (instead of “/forums2”)

    Cheers!
    spence

    #141325
    benjik
    Participant

    I am having the same problem. When I install bbpress the index is showing up as a blank page. If I create a forum page and put the index short code on that page the permalinks to do allow the page to be /forums, It will rename it to /forums-2. I assume this is happening because the bbpress forum plugin is reserving the /forums. If I click view on a topic from the admin panel I am able to see that topic but as soon I click in the bread crumbs to the root forum I am brought back to the blank page. Help?

    #141324

    In reply to: Help please!

    Denver Prophit Jr.
    Participant

    @netweb I’m getting this also. I’m using a page with shortcode at http://www.hosting-4-oscommerce.com/forums/ and google rich snippet test results at http://www.google.com/webmasters/tools/richsnippets?q=http%3A%2F%2Fwww.hosting-4-oscommerce.com%2Fforums%2F

    #141323
    WPDragon
    Participant

    Hi..I assume this is a CSS thing, but can someone please help with.

    I’m trying to get my Forum to look as close as possible as the current popular Forums today…one thing I wanna add is the Stats at the bottom of the page..for example:

    WHO IS ONLINE?
    In total there are 115 users online :: 35 registered, 0 hidden and 80 guests (based on users active over the past 5 minutes)

    If someone can assist with what line of code I need to use to make the STATS Horizontal across the bottom, rather than Vertical – I would appreciate it!

    Thank you!

    #141319
    Robin W
    Moderator

    I’m afraid that I am a bit lost, because I’m not sure what you are showing me under this link.

    However if you want to remove parts of the breadcrumb you can add a function to your functions file

    eg

    function mycustom_breadcrumb_options() {
    	// Home - default = true
    	$args['include_home']    = false;
    	// Forum root - default = true
    	$args['include_root']    = false;
    	// Current - default = true
    	$args['include_current'] = true;
    
    	return $args;
    }
    
    add_filter('bbp_before_get_breadcrumb_parse_args', 'mycustom_breadcrumb_options' );

    If you want to lose the breadcrumb all together you can use

    function bm_bbp_no_breadcrumb ($param) {
    
    return true;
    
    }
    
    add_filter ('bbp_no_breadcrumb', 'bm_bbp_no_breadcrumb');

    Otherwise come back and explain a bit further about what your link is taking me to eg is this a page and what is the content of that page

    #141314
    MT
    Participant

    I’ve been trying different variations of things and I assume that’s probably what you mean by “Try just leaving the page with the default template”. To make it work I had to name the copied “Full Width Page” file “forum.php” (to get rid of sidebar widgets) and to extend bbp over the entire page I added this width to css…

    #bbpress-forums {
    	width: 900px;
    	background: transparent;
    	clear: both;
    	margin-bottom: 20px;
    	overflow: hidden;
    	font-size: 12px;
    }

    I do also have a bbpress.php file but it doesn’t work alone and haven’t wanted to delete it, just in case, now that the forum.php has resolved things. But again I assume that it’s not needed–the bbp.php file, in my case.

    So now that that is done, the “Replies” button in Admin will not open “All Replies”, only the “New Replies”. I started a new topic as this may be unrelated.

    Thank you much.

    #141308
    Stephen Edgar
    Keymaster

    I can directly add the vimeo url to the topic and it seems to work. Is that the best way to do it?

    This is the easiest and best way to do it as WordPress is actually controlling this rather than you having to use shortcodes.

    See this for more info (and other links that work the same way) https://codex.wordpress.org/Embeds

    #141307

    In reply to: remove columns

    Stephen Edgar
    Keymaster

    Your trial and error is 100% spot on for what you should be doing ๐Ÿ™‚

    That said you want to make a copy of the bbPress templates so your hard work isn’t overridden when you update bbPress, how to do this is here https://codex.bbpress.org/theme-compatibility/

    Everything you need to do to achieve your end goal is in these templates, you don’t need to go looking elsewhere to change things.

    Basically all the changes you need to make are to the loop-xxxx.php templates, primarily loop-forums.php, loop-single-forum.php, loop-topics.php, loop-single-topic.php, loop-replies.php, loop-single-reply.php and later the loop-search.php templates.

    In the ‘loop-xxxx.php’ remove the headers as you’ve already done in ‘loop-topics.php’ and in the ‘loop-single-xxx.php’ remove the columns.

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