Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 17,351 through 17,375 (of 32,519 total)
  • Author
    Search Results
  • #109801
    OAEErra
    Member

    Actually, I need to reopen this.

    I can edit the first post of threads, but can’t edit the replies using the edit button on the post.

    I have tried to change the permalink structure then back again to reset it but it doesn’t work.

    I also posted in this thread:

    https://bbpress.org/forums/topic/editing-topics-and-replies-in-bbpress-20

    Which seems to have a possible solution but im nonethewiser as to where the code coes that is mentioned.

    #107094

    In reply to: bbPress 2.0 & BBCode

    antonchanz
    Member

    Well I’ve got bbCode working in my own forums now by creating a mod of the b0ingball bbcode plugin that also supports bbpress. I’ve requested a repository on wordpress for this and will make it available there as soon as my request is approved.

    Its just an alpha version so far. It works for my site and historic posts imported from SMF, Vanilla and Phorum versions of my sites forum (I’ve been through a load), but I had to mod the quote and url tags from the b0ingball version because they didn’t work properly for me. Hopefully by fixing them for myself I haven’t broken it for anyone else. I’m prepared to do a little work to get this universal.

    #109790
    ThemeFUist
    Member

    Oops, last function (A bit too much cut and pasting):

    function tfuey_bbp_user_can_view_forum() {

    $forum_id = bbp_get_forum_id();

    if (tfuey_bbp_is_premium_forum($forum_id)) {

    if (is_user_logged_in()) {

    if (current_user_can(‘administrator’) || current_user_can(‘bbp_moderator’) || current_user_can(‘whatever’)) {

    return true;

    } else {

    bbp_get_template_part(‘bbpress/feedback’, ‘no-access’);

    return false;

    } //End if

    } else {

    bbp_get_template_part(‘bbpress/feedback’, ‘no-access’);

    return false;

    } //End if

    } else {

    return true;

    } //End if

    } //End function

    **EDIT: I changed this a bit more. The bbp_get_template_part lines aren’t needed on my theme but are when using twenty ten for some reason (or when I tested at least). If you get two messages saying you don’t have access just remove them i’m not going to figure out why this happened.

    #39618
    a2cmedia
    Member

    I would like it so that visitors see the latest post from 2 of my forums on the default page. Is there some code to allow me to do this?

    #107429
    OAEErra
    Member

    @slithx0r

    If using the default theme, where exactly would I add/edit the function ‘bbp_get_topic_edit_link’ with the code:

    $uri .= ‘?edit=1’;

    in bbp-topic-template.php?

    Sorry not the best with php!

    #109792
    OAEErra
    Member

    I found a plugin for “quote” links under posts, but if anyone knows how to add a “New Topic” and “reply” to the top/bottom of the thread page it would be much appreciated :)

    #109661
    spigi
    Member

    OK, in one things I probably make mistake :) I try to install bbP 1.0 theme using 2.0 version. bbP 2.0 use WordPress theme, am I right? (sorry for my stupid question but I’m just started with bbPress.)

    I install Frisco theme (one of this: https://buddypress.org/extend/themes/)

    And I still can’t see “add Topic” button. I try everything, every official theme and nothing :(

    What should I do to have “Add topic” button? Exactly like on this forum :(

    PS. I don’t know why but I’m still have this notice:

    “Your active theme does not include bbPress template files. Your forums are using the default styling included with bbPress.”

    I use Frisco theme, bbPress 2.0, buddyPress 1.5 and WP 3.2.1:

    http://autonomia.nazwa.pl/test/

    Justin Mason
    Member

    Try the bbpress-post-topics plugin. :)

    #109788
    ThemeFUist
    Member

    How about using a metabox on your edit forum page to specifiy if the forum is premium:

    Add this to your forum functions.php and edit the current_user_can bit at the bottom.

    add_action('bbp_forum_metabox', 'tfuey_bbp_support_forum_metabox');

    add_action('bbp_forum_attributes_metabox_save', 'tfuey_bbp_support_forum_metabox_save');

    add_filter ('bbp_user_can_view_forum', 'tfuey_bbp_user_can_view_forum', 1);

    function tfuey_bbp_support_forum_metabox($forum_id) {

    if (tfuey_bbp_is_premium_forum($forum_id)) {

    $premium_checked = ‘checked’;

    } else {

    $premium_checked = ”;

    } //End if

    echo ‘<hr />

    <p>

    Premium Forum:

    <input type=”checkbox” name=”tfuey_bbp_premium_forum” value=”1″ ‘.$premium_checked.’ />

    </p>’;

    } //End function

    function tfuey_bbp_support_forum_metabox_save($forum_id) {

    if (isset($_POST) && $_POST != ”) {

    update_post_meta($forum_id, ‘_tfuey_bbp_premium_forum’, $_POST);

    } else {

    update_post_meta($forum_id, ‘_tfuey_bbp_premium_forum’, ”);

    } //End if

    } //End function

    function tfuey_bbp_is_premium_forum($forum_id) {

    $tfuey_premium_forum = get_post_meta($forum_id, ‘_tfuey_bbp_premium_forum’, true);

    if ($tfuey_premium_forum == 1) {

    return true;

    } else {

    return false;

    } //End if

    } //End function

    function tfuey_bbp_user_can_view_forum() {

    $forum_id = bbp_get_forum_id();

    if (tfuey_bbp_is_premium_forum($forum_id)) {

    if (current_user_can(‘administrator’) || current_user_can(‘bbp_moderator’) || current_user_can(‘whatever_you_want’)) {

    return true;

    } else {

    return false;

    } //End if

    } //End if

    } //End function

    Leave the forum public and if the premium forum metabox is ticked and the user doesn’t meet the required criteria they will get a “You do not have permission to view this forum” message.

    PS. Untested outside my own site plugin and unnecessary bits have been removed but you should get the gist.

    PPS. Code doesn’t paste too well here apologies if it looks all over the place.

    Steveorevo
    Participant

    Just wanted to let everyone know that I’ve released my Search bbPress 2.0, a unified search plugin. It has the following features:

    * Unified search extends WordPress native search to bbPress 2.0 content

    * Corrected hyperlink search results to the actual forum/topic/reply so that users can participate in the forum right away.

    * Fixes bbPress login widget typo for all languages (the Log in button)

    I’ve had this on my site for a while for testing (it is working great!) but have just submitted it to the WordPress.org repository. Hopefully if will appear soon. I also submitted a bug report to bbPress trac about the typo and how I performed search a while back (but a little too late for 2.0 release), so hopefully these items will be corrected / become native in future releases! Rather then wait for the repository, feel free to download it from my new site (free):

    http://serverpress.com/products/search-bbpress/

    If you like it, please let others know and/or tweet about it! My site is brand new, so any traffic would be greatly appreciated. Donations would be to just take a moment to review my other wares. :-)

    Thanks!

    Steveorevo

    #108216
    Dan Milward
    Member

    I don’t suppose you’re a programmer willing to join the team :D

    To be honest folks, I’d say that based on all the feedback there is another days worth of work. But I can’t guarantee we’re going to be able to put that day aside until later next week or the week after. Our #1 priority right now is the next getshopped.org update.

    So if there are any hard core devs out there that love open source… let me know!!

    #109885
    spicynodes
    Member

    Sorry, I searched before, but just saw that user sulliwane2 asked a similar question 4 weeks ago in https://bbpress.org/forums/topic/bbpress-20-shortcodes

    Adding a few arguments would be very useful!

    #40286
    spicynodes
    Member

    Are there options for short code [bbp-topic-index]?

    e.g.

    [bbp-topic-index max=7 pagination=off breadcrumbs=off]

    If not, a few arguments would be a welcome addition to this and other short codes.

    #109640

    In reply to: bbp_shortcodes

    travis.hill
    Participant

    I’ve done the same thing to my installation, however, you may want to use a check to check a users role so only certain roles can post shortcode.

    travis.hill
    Participant

    On this same page it would be great if I could have the bbp-forum-description, currently listed under the sub-forums, to be shown under the bbp-forum-title.

    This can be accomplished with modifications to template files.

    How can I list the sub-forums in a single line order

    This is a style issue. Dig into the CSS and turn those list items into display:list-item; from #content table tbody tr ul.bbp-forums li in bbpress.css on line 285.

    You’ll probably want to get rid of the pipe separator, as well.

    Pass some $args through bbp_list_forums.

    If your using custom templates, locate the loop-single-forum.php file. Somewhere around line 25 you should find the bbp_list_forums function. Pass it some $args like so:

    <?php bbp_list_forums(array('separator' => '','show_topic_count' => false, 'show_reply_count' => false)); ?>

    I’d really like to have the ‘Remember Me’ phrase be inline with the checkbox

    In your stylesheet http://pacificbeach.me/wp-content/themes/jq/lib/css/style_ext.css on line 161, the label rule is throwing it off. Try adding a rule similar to this:

    p.rememberme label: display: inline;

    That worked for me in Chrome.

    Hope I’ve gotten you closer!

    #109852
    travis.hill
    Participant

    Your request can be accomplished with a little grunt work. Are you asking for an “all-in-one” shortcode?

    …with the exception of being able to hide the sidebars.

    Content areas and sidebars are independent areas within a WordPress installation. Hiding the sidebar can be accomplished a few different ways: Within Appearance > Widgets, or you could comment out the code in the template files. But sidebars/widgets are always independent of content areas.

    Why can’t the whole forum be put into a short-code so it can be applied inside a full-width page?

    Why can’t a full width page be created and the shortcode placed inside? That is more in tune with what WordPress is built to do. Create a page. Give it a full width template (if your theme provides it), and place the shortcode within that page. Anything after that is accomplished is a style issue. I just wrote a post about full-width forums in your other topic:

    Full-Width Forum

    You can also read up on shortcodes here:

    bbPress 2.0 – Shortcodes

    bbPress does a good job of being a forum out of the box. Sure, there are issues, but the code is still in its infancy. Any cosmetic customization is up to the user, however.

    bizwizkid22
    Member

    On my bbp forum at pacificbeach dot me I’m trying to sort forums by order id as I assigned them when creating the forums. The primary forums sorted properly but, sub-forum ordering seems to be ignored. It’s not helpful for there to be any kind of auto-sorting i.e. based on sub-forum popularity.

    On this same page it would be great if I could have the bbp-forum-description, currently listed under the sub-forums, to be shown under the bbp-forum-title.

    How can I list the sub-forums in a single line order – as even though it eats up more room my users aren’t going to easily figure out how the current listing works.

    Lastly, I’d really like to have the ‘Remember Me’ phrase be inline with the checkbox and cannot for the life of me figure out how to do that. I’ve been through every stylesheet so many times I think I can quote some of them :p

    I’ve spent a good, solid eight hours on these issues so am at a loss :) and would really appreciate the help.

    Thanks.

    #109733
    highexistence
    Participant

    That fixes the first error but I’m still getting this one:

    topic.js:39Uncaught TypeError: Object #<Object> has no method ‘wpList’

    I’ve tried deactivating all plugins besides BBpress, switching to the default theme and re-installing BBpress. The errors still comes up.

    wplist.js is being called before topic.js so it must be something in the code…?

    #109842

    In reply to: Displaying Forum

    webowner
    Member

    Hello,

    Thank you so much for your suggestions. I have done that, actually re-installed 3 times to no avail with “adding a new topic” in the forum (with just the BuddyPress installed).

    Then, I deleted everything, set up a new domain, new database and did a clean installation alltogether – and this time it works :). Thank heavens!

    New link is: http://community.focusonedesign.ca

    I will be working on it over the coming days, and hope all works well.

    Thanks again :)

    #40275
    PureRover
    Member

    I have tested several forums with WordPress. Both as separate program and as integrated program/plugin. Every forum we tested had major issues that would prevent being used on our site.

    We have installed bbpress plugin and found it very flexible with the exception of being able to hide the sidebars.

    Why can’t the whole forum be put into a short-code so it can be applied inside a full-width page?

    This forum is full of questions and requests for ppPress to be imbedded via short-code right into a full-width page. Why is it so hard to accomplish this. Afterall, ppPress is written by the same people that created wordpress.

    This is very frustrating.

    -Mark

    #40274
    ptruong
    Member

    Hi, I recently install bbpress on my site. I created a login using the shortcodes but for one it prompts that you can’t register and also if you do sign in using my admin it will show already signed in and will not go to the forum. For the forum I cannot find a way to connect it to a page either. Perhaps if anyone could shed some light on this that would be great. Thank you very much

    #40270
    Anointed
    Participant

    I am adding a number of new options to bbPress and want to add the user inputs to the bbPress options page. Instead of messing around with the default options page, I simply want to add a few tabs to the page where I can add my options.

    I do know how to do this when writing my own page from scratch, but do not yet know how to add tabs and options to an existing bbPress options page.

    example of what I am talking about:

    http://digitalraindrops.net/2011/02/tabbed-options-page/

    Can anyone point me to a plugin, or code snippet that would show me how to extend the bbPress options page with tabs and options?

    thnx

    #108897
    ThemeFUist
    Member

    It looks like wpList is set up in:

    **YOUR SITES WP DIRECTORY**/wp-includes/js/wp-lists.js

    Have a look at the page source in your browser and see if the above file is called BEFORE:

    **YOUR SITES FORUM THEME DIRECTORY**/js/topic.js

    #109822
    Andre
    Participant

    That would probably require bbPress 2.0. You could insert a topic specific short code into the discussion tab. You’d also have a separate area that has all of the forum content, but you wouldn’t have to put a visible link to the forum anyplace.

    [bbp-single-topic id=$topic_id] – Show a single topic

    Justin Mason
    Member

    Hello,

    On my current homepage, I was displaying 3 comments at a time per blog post by using the following code :

    <?php

    $number=3; // number of recent comments desired

    $post_id = get_the_ID();

    $comments = $wpdb->get_results(“SELECT * FROM $wpdb->comments WHERE comment_post_ID=$post_id AND comment_approved = ‘1’ ORDER BY comment_date_gmt DESC LIMIT $number”);

    ?>

    <?php if ($comments) :

    foreach ( (array) $comments as $comment) :

    echo ‘<div class=”ddcomment”>’;

    echo ‘<p>‘, comment_author() . ‘ says:</p>’;

    echo comment_text();

    echo ‘</div>’;

    endforeach;

    endif; ?>

    This code works perfectly in displaying my comments on the homepage. However, I’ve decided to add bbpress forums and sync my topics with my posts.

    If you add a reply now to a post, it is not reflected on the homepage comments (since it is a reply from bbpress, not a wp comment). I am trying modify this code so I can pull the correct replies for that particular Post or Topic ID, since it is now synced together.

    The site is currently located at http://www.propaintball.tv

    Is there a specific database query I can use to replace my $comments variable with the topic replies? Thank You for your help!

Viewing 25 results - 17,351 through 17,375 (of 32,519 total)
Skip to toolbar