Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 15,976 through 16,000 (of 32,519 total)
  • Author
    Search Results
  • #113979

    If 3.4 + bbPress is causing you get an error saying “bytes exhausted” I recommend either installing this plugin

    https://wordpress.org/extend/plugins/memory-bump/

    or bumping the memory manually through the wp-config.php

    https://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP

    #114132
    shanebp
    Participant

    fyi – BuddyPress has Codex page specifically for setting up Group and Sitewide Forums

    https://codex.buddypress.org/getting-started/installing-group-and-sitewide-forums/

    #45632
    wpmhweb
    Participant

    Hello,

    I am almost finished configuring bbPress and I just notice trying to publish a page with the URL mydomain.com/forums that it shows the default forums template and not the page that I have created with the shotcodes. There is anyway to fix this? I would like to have my own custom /forums page display.

    Thanks for the help!

    #114138
    Lynq
    Participant

    Did you try just doing #bbp_topic_tags { display: none; } ?

    Check it in firebug (which I highly recommend using) and add further elements in front of it to make sure it isn’t hiding something else for example…

    #bbp_topic_tags { display: none; }

    Check it is still hidden

    p #bbp_topic_tags { display: none; }

    Check it is still hidden

    .divelement p #bbp_topic_tags { display: none; }

    Check it is still hidden

    Best way to do it if your not confident with CSS, just check each stage and if it stops being hidden, then you have specified an incorrect element in your CSS.

    Good luck!

    #114170
    Lynq
    Participant

    I think I saw a similar problem to this on the forums recently.

    A page called “Forums” and having your base slug as “Forums” will conflict with each other. If you visit yoursite.com/forums and your forum base slug is set to /forums it takes you to the archive and not the page.

    Check out the post and see if it helps, be warned I didn’t read it 100% through

    https://bbpress.org/forums/topic/how-do-i-use-the-bbp-single-forum-idforum_id-shortcode-in-a-template-file

    Good luck!

    #114167
    Lynq
    Participant

    You could use jQuery…

    jQuery(".bbp-login-form #rememberme").attr('checked','checked');
    jQuery(".bbp-login-form #rememberme").hide();

    Good luck!

    (Also check that jQuery, I don’t know if it is going to work perfectly lol).

    MTPrower
    Member

    I can’t think of much, except for adding a warning stating that if the Forums base is “forums”, then the forums archive is going to override the page http://www.mysite.com/forums if the person chooses to make a forums page at that location.

    On the opposite end, it should be noted that IF they want to put a forums page in that location, then they can’t use “forums” as their archive base.

    Sometimes there is a warning that certain pages conflict with each other or with pages in the WordPress installation. I think that if both a WordPress page/post and a forums base/slug are the same “word”, that the error should say more than just “possible conflict”. I think it should say that the slugs or bases will override your WordPress page or post, and explicitly state that those pages or posts won’t show the WordPress page or post content as intended.

    Helpful and informative warning messages are indispensable. Vague ones aren’t understood and are soon ignored…

    Yeah; the way WordPress handles archives automatically for us makes it a bit strange to figure out at first. Once you get it, it makes perfect sense though.

    Any suggestions on how to better label the fields that would have made it easier to understand?

    MTPrower
    Member

    That was the problem. You see, under the Settings page for bbPress, there is the Archive Slugs section. Under this is two settings: “Forums base” and “Topics base”. Due to the wording, I never knew that having the “Forums base” setting at its default, which is “forums”, I would never be able to use my WordPress-made custom forums page at http://www.mysite.com/forums , always getting the archives page instead of what I put in shortcodes on my custom page.

    Maybe the labels for those settings should be clarified, and the default setting changed. I see lots of people having trouble with this part, and I’ve been using bbPress for a year and just discovered the answer.

    Thanks for replying. I appreciate it. If I knew some PHP, and my site was done and I could spare some time, I’d help you with bbPress a bit. I know it must suck not having very many people helping out…

    MTPrower
    Member

    I found the bug. You cannot make the “Forums” page that you put shortcodes into a parentless page. If the page is http://www.mysite.com/forums , then going to that URL will only take you to the archive page. Actually, it seems there I might be able to edit that in the settings page. I just had no idea that THAT was what that setting meant. I’m going to go take a look.

    I’ve been using bbPress for about a year, and I just NOW discovered what was wrong with my permalinks. I think maybe the “archives” part of the settings page should be set to the word “archives”, not “forums” by default, so people don’t have trouble with this.

    Anyway, I’m gonna go mess with that setting and see what happens. I will post my results here for future people to see…

    Easiest way is to use the shortcode, and use CSS to hide the bits you don’t want.

    If this isn’t satisfactory, you’ll need to make custom template parts to override the output.

    You figuring it out doesn’t usually involve others handing you an answer. ;)

    I think you might be over-thinking things. Rather than trying to overload the WordPress template loader with a new archive-forum.php and trying to run something through a shortcode, why not just use a WordPress page, set the slug to /forums, and put the shortcodes and div’s in there instead?

    #45630
    icandygraphics
    Participant

    I am using a customized child theme, which has a default layout with a sidebar. My activity, members, and register pages are all using the default template of my child theme, and the sidebar is showing. I am having trouble with the forums page, though. If I add a page called “Forums”, select the default template, insert the shortcode [bbp-forum-index], and add the page to my menu, it looks great and has the sidebar. However, if I put “forums” as the Forums Base slug, then the page goes to full-width content with no sidebar. If I put “forum” as the slug, the page looks good, but as soon as you use the breadcrumbs to navigate, it takes you to http://www.example.com/forum, which has the full-width content. I think it might have something to do with the template hierarchy, but I don’t know enough about that to figure this out. Can anyone help?

    MTPrower
    Member

    It’s been 24 hours, and I can’t do anything with my site until I figure this out. So… “bump”.

    #114140
    zuckerbaby
    Member

    I “solved” this by using this plugin.

    It automatically reversed the reply order for me – although the topic description also gets pushed to the bottom. Whatever you do, don’t use this plugin to reorder topics, or you will get an error and will not be able to recover your topic list.

    http://www.nsp-code.com/wordpress-plugins/post-types-order/

    #45585
    Hwyatbig
    Member

    I just installed the bbpress plugin on my wordpress site but I’m dealing with a problem I don’t understand…

    When reading the codex, I see it should be very simple, and I think I’m doing what’s explained to create my forum.

    for the example I just created a forum named “exemple” (and let the attributes as they were) and then when I have a look at the address which has been created I have nothing but the name “Exemple”, and the description I gave. But no way to create a post or anything.

    (you can have access to the page in question in my profile)

    Did I miss something ?

    MTPrower
    Member

    I’m trying to make my forums’ home page display what you get when you put [bbp-single-forum id=$forum_id] in a page. I am editing “archive-forum.php” to do so, since the result will be a more fleshed out version of archive-forum.php anyway.

    “Echo do_shortcode” doesn’t seem to work in the .php file, and I’ve been screwing around with this and trying out different strings of PHP code for about six hours straight.

    In reality, I will be showing two different categories with the [bbp-single-forum-id=$forum_id] code, each with several forums in them. I’ll have to add some extra divs for the names of the categories, but I can do that myself.

    Whatever happens, I don’t care if I use a shortcode or if I use PHP; but if POSSIBLE, I’d rather not add anything to my functions.php. But I’ll do what I must.

    Thanks in advance.

    #45541
    zuckerbaby
    Member

    I’d like to have the topics have the newest replies at the top, rather than the oldest as it is by default.

    Fixes I’ve found here say to edit the topic.php file, but I don’t have a topic.php file.

    I also search for the code and can’t find it in any of my files.

    Which file in Twentyten do I edit, and what lines?

    Thanks!

    ____________

    BTW, This did not work for me.

    “Find get_thread( $topic_id, $page ) in /topic.php and change it to get_thread( $topic_id, $page, true ).”

    Should I be editing page-create-topic.php, form-topic.php, single-topic.php… or what?

    #45527
    zuckerbaby
    Member

    I’ve found 3 different fixes here for hiding the topic tags input field, but nothing works for me.

    ____________________________

    Here is the input on the page:

    <p>

    <label for=”bbp_topic_tags”>Topic Tags:</label>

    <input type=”text” value=”” tabindex=”103″ size=”40″ name=”bbp_topic_tags” id=”bbp_topic_tags” />

    </p>

    ____________________________

    Is this the CSS file I edit?

    wp-content > plugins > bbpress > bbp-twentyten > css > bbpress.css

    ____________________________

    Here is the tags area there:

    div.bbp-breadcrumb,

    div.bbp-topic-tags {

    font-size: 12px;

    }

    #content div.bbp-breadcrumb p,

    #content div.bbp-topic-tags p {

    margin-bottom: 10px;

    }

    div.bbp-topic-tags {

    float: right;

    }

    ____________________________

    Although on the web page, as you can see, there are underscores, not hyphens.

    I’ve tried div.bbp_topic_tags {display: none;} etc. to no avail.

    Please explain clearly for this non-coder how to hide the input.

    Thanks!

    #110062
    TFUME
    Member

    Ah topic views, that points me in the right direction thanks. For reference then if anyone needs it that means you can do stuff like this:

    add_action('bbp_register_views', 'view_popular_topics');
    function view_popular_topics() {
    bbp_register_view('popular-topics', __('Popular Topics'), array('meta_key' => '_bbp_reply_count', 'orderby' => 'meta_value_num'), false );
    }

    Then link to the view with:

    <a href="<?php bbp_view_url('popular-topics'); ?>"><?php bbp_view_title('popular-topics'); ?></a>

    There’s a couple of informative posts re this here:

    http://internet-alacarte.com/adding-custom-fields-to-bbpress-topics-then-filtering-topics-by-custom-fields-using-views/

    http://bbpep.com/blog/2011/04/01/creating-custom-views-in-bbpress/

    katmmad
    Participant

    I’m sure there’s some simple shortcode for this — but is there a way to add a simple phrase like “You must either register or log in to reply.” to topic pages? I’d like that to ONLY be viewable to people who are not logged in.

    Thank you!

    #45473
    Se3ker
    Member

    How do you set up bbPress to show forum list when accessing url like:

    http://localhost:11111/forums/ at my end this is not working, or am I missing something, do I need to create a page and put a shortcode in it??

    Lynq
    Participant

    You could add a new role for your site: https://codex.wordpress.org/Function_Reference/add_role

    #114032
    Lynq
    Participant

    You need to try and customize your theme a little further.

    bbp-reply-author { width: 150px; }

    This will sort out the author box being to large.

    #45448
    ccolotti
    Participant

    I moved the theme files into my theme folder, but for some reason the sidebar is on the bottom of the pages instead of well…..on the side. I can remove it easily enough but do I just need to move the code for it to a new place in the templates?

    http://www.v-fit.us/forums/

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