Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 16,601 through 16,625 (of 32,581 total)
  • Author
    Search Results
  • #112414

    Great, you had most of it figured out though.

    That’s totally understandable – I couldn’t remember it off the top of my head either and had to go dig through some code – but that’s the best way to learn :)

    #112352

    In reply to: Forum specific sidebar

    I think I solved it! I just put the same code that you gave me in the CSS-file but changed .forum to .topic. Apparently the topic pages have their own class…

    I do however have another related problem. As it is now, when you click on the Forum-link in the top menu, you end up at a WP page where I simply put a shortcode to load the forum. This means that you at the first page now see the WP sidebar, which seems not so logical. I would like to end up at this page right away instead: http://demo.agxe.se/forums/forum/forum/ (Btw, does the URL have to be so long and with so many “forum”?)

    Any ideas?

    #112412

    You are close. bbPress does not use the tag taxonomy, that is strictly for posts.

    You’ll need to use tax_query as you mentioned. This is untested but should give you a general idea :)

    $mytopics_args = array(
    'post_type' => 'topic',
    'numberposts' => 15,
    'tax_query' => array(
    array(
    'taxonomy' => bbp_get_topic_tag_tax_id(),
    'field' => 'slug',
    'terms' => 'you-tag-slug'
    )
    )
    );
    $mytopics = new WP_Query( $mytopics_args );

    #43296
    cookiebear
    Member

    I am working on a wordpress template page.

    i am trying to retrieve a list of topic threads and filtering by tag.

    I can get topics without tag filtering by using something like this

    $forumargs = array(    'post_type' => 'topic', 'numberposts' => 15 );
    $mytopics = new WP_Query( $forumargs );

    while ( $mytopics->have_posts() ) : $mytopics->the_post();
    the_title();
    echo '<div class="entry-content">';
    the_content();
    echo '</div>';
    endwhile;

    but when i try to filter by tag , it returns nothing.

    $forumargs = array( 'tag'=>'mytagname', 'post_type' => 'topic', 'numberposts' => 15 );

    i have seen that there is something called tax_query, but i cannot figure out if i can use that, or how to use it.

    how should this work?

    #112368

    In reply to: Forums not showing up?

    Dan Griffiths
    Participant

    Already did, theme author isn’t supporting bbPress. I’m more than willing to do the work myself, if I knew what bbPress needed, problem is there doesn’t seem to be any documentation on what it actually does at that point in the codebase.

    #112406

    In reply to: Forumicon

    Tgg1990
    Member

    I’m not very familiar with CSS, but shall look around the internet and check, thanks for all help ;)

    #112397
    Tgg1990
    Member

    Ok,thanks for all the help ;)

    #112405

    In reply to: Forumicon

    I can’t tell you exactly what code to use because I don’t know you use case.

    As I said each forum has it’s own CSS class, such as bbp-forum-4. You can use this sto style the various areas however you see fit.

    Are you familiar with CSS? If not then there really isn’t going to be an easy way, unfortunately.

    #112404

    In reply to: Forumicon

    Tgg1990
    Member

    Do you know which code I should use?

    #112393
    Tgg1990
    Member

    Don’t understand that completely. Is it possible to make a new comment field and field when you post a topic with shortcodes?

    #112392

    I have not personally tried that, so I’m not 100% sure. However I think you best bet is going to be using shortcodes to try and do this.

    https://bbpress.org/forums/topic/bbpress-20-shortcodes

    #112376

    This is totally possible, bit you need to piggy back off a better foundation.

    For example, bbPress 2.1 + Genesis Framework + bbPress Genesis Extend plugin allows exactly this.

    It provides ton’s of layout options for bbPress – you can inherit the site-wide Genesis layout, set your own site-wide layout just for bbPress, or set layouts on a per forum basis – like I said, tons of options.

    Bottom line is using the Genesis Framework (or anything similar) it’s really simply to provide this functionality as the foundation is already there.

    Trying to tackle this – and have it work for all themes and use cases – within bbPress seems like a logistic nightmare.

    Having dealt directly with tons of frameworks, I can say this with pretty good confidence :)

    #112106

    In reply to: Best SEO Plugin?

    Closing this topic as it’s attracting bozos. Plenty of solid recommendations above :)

    #110537

    Yep, that’s a some-what common issue.

    In 2.1 table layouts have been ditched for the much preferred clean xhtml (lists, and what not) however some theme’s choke on it.

    There are some wrappers in place (such as #bbpress-forums) you should be able to use to reset the styles that are needed,

    #112362

    In reply to: Forums not showing up?

    raphaelsuzuki
    Participant

    Ok.

    In the forum page you created, try adding this shortcode: [bbp-forum-index]

    It’s not the natural thing to do, but will force WordPress to display bbPress.

    #43080
    Martin
    Participant

    Hi,

    When I created my forum menu, I used the permalink i.e /forum

    Now I find I would like to add some preface instructions to give my users (especially casual posters) some informative instructions on how to post. How to do this is often lost on people wanting to post first time questions.

    Is there a way to do this? Can I convert from the permalink to an actual Page with a shortcode and still keep the same URLs / permalink setup I have now?

    Clues?

    #112345

    If you edit the topic in the WordPress admin dashboard, you will see the topic ID in the URL.

    For example http://wptrunk/wp-admin/post.php?post=6&action=edit where the topic ID would be 6,

    #109252

    There is a filter in place you can use to tweak this, bbp_get_title_max_length

    See bbp-core-options.php around line 370 or so.

    #112328

    Appears like you got this figured out (by the way your site looks) :)

    deanso
    Member

    Hmm, actually I think this works for my case

    <?php echo do_shortcode(‘[bbp-topic-index]‘); ?>

    Still if someone have another code let me know. Thanks :)

    deanso
    Member

    Thanks a lot, Jon. Very nice that you post the whole code.

    My problem is – as I can’t use WP page, as I need to display this on custom homepage (index.php), not on the separate WP page.

    so I try to use

    <?php echo do_shortcode(‘[bbp-topic-index]‘); ?>

    As it is outside loop, but it doesn’t work. Not sure what I am doing wrong.

    Not sure what I doing wrong.

    dorsetjon
    Member

    I didn’t change the whole forum to look like bbprress.org, but instead wanted the first page users see to look like .org. That is, with a forum list on the left, tag cloud below that and on the right a list of recent topic updates. I achieved that with the following page code:

    <div style="display: inline; float: left; position: relative; width: 400px;">
    <div style="margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent;">
    <h2>Forums</h2>
    [bbp-forum-index]
    </div>
    <div style="margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent;">
    <h2>Hot Tags</h2>
    [bbp-topic-tags]
    </div>
    </div>
    <div style="display: inline; float: left; position: relative; width: 400px; margin-left: 25px;">
    <h2>Topics<span><a title="New Forum Topic" href="http://your-url-here/?page_id=232" style="font-weight: normal;"> — Start New</a></span></h2>[bbp-topic-index]</div>

    I also made some CSS changes to change formatting and remove some text.

    Jon

    deanso
    Member

    hey Jon & Jim & JJJ & Jaredatch

    did u manage to get something like https://bbpress.org/forums/ ?

    what was shortcode or php code I can use to create it? My problem is that I can use it in the new page, but on custom homepage of my site – so I need php code (or wrapup php code with shortcode) that will display something like https://bbpress.org/forums/

    your help is greatly appreciated!

    – – – – – – – – – – – –

    otherwise bbPress looks great and i’m looking forward to learn more about it and build some big website. previously i build websites with 750,000 visitors in drupal. but now trying to figure out myself how to use wordpress :)

    #112339
    deanso
    Member

    I forget to mentioned I am using bbPress 2 and WP 3, all updated and running fine.

    I would appreciate help on this topic please :)

    How to get nice looking page with latest threads, topics and reply on the custom homepage. Not on the WP page.

    Where can I find php code that could pull this from bbPrss 2?

    Thank a LOT!

    Jimfire
    Member

    I’m working on what you said.

    I’m a little stuck on the shortcodes. To display a single topic, the short code needs an ID code, but I’m not sure what the ID code or name is for each of my topics.

    I’ve played with a few obvious choices, but nothing is working yet.

Viewing 25 results - 16,601 through 16,625 (of 32,581 total)
Skip to toolbar