Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 28,226 through 28,250 (of 64,518 total)
  • Author
    Search Results
  • #122689

    In reply to: Forum Icons ?

    Stephen Edgar
    Keymaster

    Sounds great Darren would love to see it, feel free to Pimp your site here.

    A plugin would be cool and like Jared there is much on my plate at the moment.

    Similar to Martin’s method above I have been using a custom icon font and targeting each forum like so with CSS where in this case the forum id is 34.

    
    .bbp-forum-34 i:before {
      content: "\e112"; /* glyphicons_ */
    }
    
    #122686

    In reply to: Forum Icons ?

    I think this could be a great plugin. In fact, if memory serves correct, there was one like this for bbPress 1.x or 0.9.

    There is just two main parts really. Optionally assigning icons to the Forums (which could either be a radio to select from a certain set or the featured image could be used to upload your own) and then the actual topics.

    Wouldn’t be hard to execute. I’d actually love to do something like this as I think it would be fun, just don’t have the time at the moment.

    #122683

    In reply to: Lightbox for bbPress?

    EJMorges
    Participant

    I have Light Box Plus installed. I’m not a developer, I haven’t tried to implement anything like that on my own. You make it sound easy but for someone like me I’m sure that it’s not. 😀

    CameraTester
    Participant

    Hi. I am trying to make a forum with Buddypress and BBPress (I clicked the install sitewide forums in Buddypress which installed BBPress), I am liking it so far, but I am definitely not liking how it puts the make new topic form (where the title and text entry form is) at the bottom of where the topics are, so people have to scroll down to make a new topic. I could keep that, but I would require a button to be at the top, or else the form, but I would prefer a button to make a new topic in the chosen category.

    Is there a way to do this? I will need step by step instructions. I don’t know how to use this yet.

    Please help

    Lynq
    Participant

    All I can see at the moment is this: https://codex.bbpress.org/type/actions/

    I think the documentation is continually being worked on, but I believe the focus is more on the actual plugin at the moment, correct me if I am wrong anyone.

    If you do find a list of great actions and hooks then share them! All it takes is for one person to go through, use them and help others out by posting their findings.

    Good luck!

    #122675
    JuaninLAdP
    Participant

    Forgot to put in the details: I’m running WordPress 3.4 and bbpress 2.2.3

    timatooth
    Participant

    Thanks Lynq! I should have stated clearer that I’m looking for more bbPress actions/hooks/filters pages. Are there pages like this for bbPress the page on Actions only describes 10 actions.

    https://codex.bbpress.org/ seems to have articles about some functions and shortcodes but not hooks and filters.

    It would be nice to see a table which contains every action/hook/filter/callback with the argument descriptions or what parameters the callbacks get. Currently Ive been trying to decipher the inline documentation of the core files. 😀

    timatooth
    Participant

    Hi everyone,

    Im new to the worldpress plugin scene coming from a more oop like language like java that uses JavaDoc or Doxygen to describe stuff.

    I was wondering how developers writing plugins are finding the hooks/actions/filters they need to solve something. I haven’t found http://codex.bbpress.org/ very helpful because its seems to only document a small collection of functions.

    I haven’t found it easy because IDEs don’t tend to detect functional apis with their code completion engines. Is it just a matter of slowly grinding through all the core files trying to memorize all the functions and callbacks? I hope not.

    #122664
    AllenPayne
    Participant

    @rsanchez1 Thanks a lot. Your post made me even more confused at first because i’m new to WordPress and PHP but after reading it a couple of more times and actually implementing what you said it made sense and i managed to get it to work.

    I used this code (please look at it and let me know if there are any errors):

    ————————————————————-

    function remove_bbpress_forum_freshness_date( $anchor, $forum_id) {

    $forum_id = bbp_get_forum_id( $forum_id );
    $active_id = bbp_get_forum_last_active_id( $forum_id );

    if ( empty( $active_id ) ) {
    $active_id = bbp_get_forum_last_reply_id( $forum_id );
    }
    if ( empty( $active_id ) ) {
    $active_id = bbp_get_forum_last_topic_id( $forum_id );
    }

    if (bbp_is_topic( $active_id ) ) {
    $link_url = bbp_get_forum_last_topic_permalink( $forum_id );
    } elseif ( bbp_is_reply( $active_id ) ) {
    $link_url = bbp_get_forum_last_reply_url( $forum_id );
    }

    return "View Post";

    }

    add_filter('bbp_get_forum_freshness_link', 'remove_bbpress_forum_freshness_date', 10, 2);

    ——————————————————–

    function remove_bbpress_topic_freshness_date( $anchor, $topic_id) {

    $link_url = bbp_get_topic_last_reply_url( $topic_id );

    $time_since = bbp_get_topic_last_active_time( $topic_id );
    if ( empty( $time_since ) ) {
    return 'No Replies';
    } else {
    return "View Post";
    }

    }

    add_filter('bbp_get_topic_freshness_link', 'remove_bbpress_topic_freshness_date', 10, 2);

    ———————————————————-

    I have one more question. I gave this more thought and i think it would be better if i replace “View Post” with the post’s title on the forums page(not topics).

    To do this is have to change the first function above.

    Any ideas how should i change the code to return the post’s title instead of View Post?

    Thank you for your help. It’s very much appreciated.

    #122663
    risen32
    Participant

    I setup bbpress with a shortcode to display the forums on a page, you can see it here: http://www.clonescriptnews.com/forums/

    When you are on that page everything seems to be fine, however if you click on this:

    http://www.clonescriptnews.com/forum/forums/general/introductions/

    and look at the breadcrumbs, when you try to go back to “forums” by clicking on the breadcrumb Forum link, it’s linked to just “forum” and then it tries to open the forum inside what looks to be a post.

    you can view that here (if you click on the breadcrumb forum link, you’ll see this) http://www.clonescriptnews.com/forum/

    It seems that no matter what I do in the forum settings area with the forums base and forum slug that keeps happening.

    #122651
    rsanchez1
    Participant

    The filter passes the anchor tag HTML and the forum_id to your callback. To do this, you’ll have to change your filter, like so:


    function remove_bbpress_forum_freshness_date( $anchor, $forum_id) {
    }

    add_filter('bbp_get_forum_freshness_link', 'remove_bbpress_forum_freshness_date', 10, 2);

    So you can see that your filter callback would be passed the anchor and the forum id.

    In the bbPress code, it basically just gets the link for the forum, gets the title for the forum, gets the last active time for the forum, and constructs an anchor tag from all this information.

    In your filter callback, you can do like is done in the bbPress code:


    $forum_id = bbp_get_forum_id( $forum_id );
    $active_id = bbp_get_forum_last_active_id( $forum_id );

    if ( empty( $active_id ) ) {
    $active_id = bbp_get_forum_last_reply_id( $forum_id );
    }
    if ( empty( $active_id ) ) {
    $active_id = bbp_get_forum_last_topic_id( $forum_id );
    }

    if (bbp_is_topic( $active_id ) ) {
    $link_url = bbp_get_forum_last_topic_permalink( $forum_id );
    } elseif ( bbp_is_reply( $active_id ) ) {
    $link_url = bbp_get_forum_last_reply_url( $forum_id );
    }

    As you can see, this code gets the ID of the last active item in the forum, be it topic or reply. It checks to see if the last active item was a topic or reply, and gets the appropriate url using the appropriate function.

    With the url, you can then construct an anchor tag, and the link would say “View Post” (or “View Topic” if you want to get specific). Then you would return that from the filter callback.

    For topics, it’s much easier since the last active will only be replies. The way you set up the filter and callback will be the same, just replacing forum with topic. To get the url, for View Post, do this:

    $link_url = bbp_get_topic_last_reply_url( $topic_id );

    In the code, it checks this to see if there have been any replies:

    $time_since = bbp_get_topic_last_active_time( $topic_id );
    if ( empty( $time_since ) ) {
    // there are no replies, you can return "No Replies"
    } else {
    // make anchor tag linking to "View Post"
    }

    I hope this clears things up a bit for you to try it yourself.

    #122645
    Lynq
    Participant

    Just joined, the community feature in G+ looks nice.

    #122643
    Dougal Campbell
    Participant

    I had an old stand-alone version of bbPress running at one time. I’d like to bring it back up, and obviously upgrade to the newest version. I do not want to have forum users added as users in my main blog. Is my only option to install a second copy of WordPress to power bbPress?

     

    #122642
    atburi
    Participant

    John, and people like Justin – thanks for all your hard work.

    #122641

    In reply to: Lightbox for bbPress?

    Lynq
    Participant

    You should be able to install a standard lightbox or thickbox and then look for images that reside inside the forum containers and then call the lightbox on them using jQuery. Shouldn’t be too difficult.

    Have you implemented a lightbox yourself before without a plugin?

    #122639
    on3advertising
    Participant

    I’m so close using Jeff’s solution!

    I added a checker to the customer ID in the initial if statement since it was passing through regardless of what I entered.
    && mysql_num_rows($result) == 1

    So the complete code ended up looking like this:
    function restrictForum(){
    $db_name = 'dbname';
    $con = mysql_connect("url","usr","password");
    mysql_select_db("$db_name")or die("cannot select DB");
    $cust_id = mysql_real_escape_string($_GET['cid']);
    $sql = "SELECT * FROM customer_data WHERE customer_number = $cust_id";
    $result= mysql_query($sql);
    if ( isset( $_GET['cid'] ) && !empty( $_GET['cid'] ) && mysql_num_rows($result) == 1) {
    // cid (customer ID) is present, show the bbPress login form
    echo 'Please enter your username and password to complete the login process ';
    echo do_shortcode('bbp-login');

    } elseif ( $_GET['error'] == true ) {

    // cid entered was not valid
    echo 'The customer ID you entered is not valid.';

    } else {
    echo ('
    Enter Your Customer #
    (form name="cust-form" id="cust-form" method="get")
    (input name="cid" id="cid" type="text" maxlength="6" /)
    (input type="submit" value="Validate"'/)
    (/form));
    // cid is absent so show the form to validate it
    // do your custom form here that asks for the customer ID. Then if the customer ID
    // is correct/valid reload this page like /login?cid=123456 which will show
    // the bbPress login form.
    }
    }
    add_shortcode('forum-login-restrict','restrictForum');

    It’s weird though, whenever I enter an invalid customer ID, I get the MySQL error saying “mysql_num_rows() expects parameter 1 to be resource, boolean”.

    It’s also annoying that the bbpress shortcode I’m embedding is now showing up as text, literally “bbp-login” rather than the actual form using:
    echo do_shortcode('bbp-login');

    #122634
    nickandrea19
    Participant

    Hi there,

    I will be redeveloping a site that was written in the Dinosaur age of web development. It is written in Perl, and my task is to port the existing forum into bbPress. I’m looking for thoughts on how to do this.

    Thank you!

    Andreas
    Participant

    To demonstrate the dilemma – groups are all here, including group forums:

    youthpolicy.org/community/forums/

    But then you go to any group and their forum, and it says ‘This group does not currently have any forums.’ We are on bbPress 2.2-bleeding, as suggested in the codex here.

    Weird.

    Bowe
    Participant

    Details

    Install: WP 3.5  (Multisite) + BBPress 2.2 Bleeding and BuddyPress 1.6.2
    Guide used: http://codex.buddypress.org/buddypress-site-administration/migrating-from-old-forums-to-bbpress-2/

    Procedure: We’ve ran the importer to import from BBPress 1 to BBPress 2. The migration wizard went fine and all the forums/topics and replies have been set. We’ve followed the guide and made sure BBPress 2 is set to be used as the BP Group Forums. For some reason this does not happen. We tried using the various Repair Forums tools, but they do not have effect.

    So right now we have working BBPress 2 Forums that do not integrate with the existing groups. Any suggestions on how to “remap” BBPress 2 forums to BP Groups?

    Thanks in advance!

    #122626

    In reply to: bbPress 2.2.3 Released

    0kee
    Participant

    Hi, since updating everything is working fine except the reply box for the forum isn’t re-sizing. I think it’s the wp-bbp_reply_content-editor-container. Sorry, new to this.
    I’m using wordpress 3.5 and bbpress 2.2.3 with the standard bbPress (twenty ten) theme. Anybody any ideas?
    http://userdrivendesign.org/?topic=music-assistive-technology

    Thanks
    Karl

    #122625
    anallabres
    Participant

    Sorry but I am completly lost with all it’s said.

    My question is: Is there any way to add new roles in bbpress?

    I want some of my users to be identified by their knowledge so the mebers know who is responding and the accuracy of the info provided (ie. Mentor, Advisor, …).

    From the first message in this post

    bbPress comes with filters to allow you to modify the roles, and it’s still possible to add or subtract specific forum capabilities to a user if you needed to, and without all the fuss and danger of bbPress interfering with existing user roles and capabilities.

    I understand it is possible to add new roles but can not find how to do it!

    I am using BBpress 2.2.2 and WordPress 3.4.2

    Thanks!!

    #122624
    McFly83
    Participant

    After upgrading to 2.2.x all users got access to private forums, even those without any assigned (forum) role. How can I fix that? I’m totaly stuck.

    See also here: https://bbpress.org/forums/topic/2-2-permissions-and-404-problems/#post-121248

    #122623
    Destillator
    Participant

    Ok, some more information: I’ve updated WP and BBpress. Reverting BBpress back to version 2.1.2 brings back the forums but removes the BBpress custom post types in the admin-menu.

    Removing the folder “bbp-theme-compat” from version 2.1.2 results in the same view as that of 2.2.3: the page shows but without the forum.

    The template used is a child-template of Twenty-Ten, so there’s nothing too exotic about that. Any suggestions? I’ve found https://bbpress.org/forums/topic/bbpress-2-0-theme-compatibility/ but the described folder-structure is not present in BBpress version 2.2.3.

    #122621
    Milan Petrovic
    Participant

    OK, thanks!

    #122620
    Destillator
    Participant

    Same here, nothing shows after an update to WP 3.5

Viewing 25 results - 28,226 through 28,250 (of 64,518 total)
Skip to toolbar