Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 15,626 through 15,650 (of 32,503 total)
  • Author
    Search Results
  • #116629
    Siobhan
    Member

    Sounds like a good idea to me – lots of users find videos really useful. I guess see what everyone else thinks?

    I have created an FAQ here: https://codex.bbpress.org/faq/

    It’s not published yet but you can see it if you’re logged it. I realised that one had already been started once I’d done it but it only had one question so I integrated it. At the minute I’m just coding the links using an a name – is this the best way or is there a plugin we should be using?

    Also, once something has been added to the FAQ is there any way to “untag” it? Should I comment on the thread that it has been added to and someone else can remove the tag?

    #116628
    LabSecrets
    Participant

    I was thinking we could provide a “users guide” with videos (think like Shawn has done with WP101) for bbPress “users” and in the same area the “admin guide” with info about running the site. Perhaps we can set aside the user content in a way that can be shared universally by site admins. We have the means and mechanism to deliver the content that way via a plugin, embed codes, etc. so a site owner could have generic “this is how to use it” instructions…. again, very much like wp101. We would donate our time and effort to produce this for bbPress if you guys are open to receiving the same?

    MTPrower
    Member

    How do I override bbp-common-functions.php so that I can safely upgrade bbPress without losing my one change?

    Here is the original:

    // array of time period chunks
    $chunks = array(
        array( 60 * 60 * 24 * 365 , __( 'year',   'bbpress' ), __( 'years',   'bbpress' ) ),
        array( 60 * 60 * 24 * 30 ,  __( 'month',  'bbpress' ), __( 'months',  'bbpress' ) ),
        array( 60 * 60 * 24 * 7,    __( 'week',   'bbpress' ), __( 'weeks',   'bbpress' ) ),
        array( 60 * 60 * 24 ,       __( 'day',    'bbpress' ), __( 'days',    'bbpress' ) ),
        array( 60 * 60 ,            __( 'hour',   'bbpress' ), __( 'hours',   'bbpress' ) ),
        array( 60 ,                 __( 'minute', 'bbpress' ), __( 'minutes', 'bbpress' ) ),
        array( 1,                   __( 'second', 'bbpress' ), __( 'seconds', 'bbpress' ) )
        );
    

    Here is what I want:

    // array of time period chunks
    $chunks = array(
        array( 60 * 60 * 24 * 365 , __( 'y',   'bbpress' ), __( 'y',   'bbpress' ) ),
        array( 60 * 60 * 24 * 30 ,  __( 'm',  'bbpress' ), __( 'm',  'bbpress' ) ),
        array( 60 * 60 * 24 * 7,    __( 'w',   'bbpress' ), __( 'w',   'bbpress' ) ),
        array( 60 * 60 * 24 ,       __( 'd',    'bbpress' ), __( 'd',    'bbpress' ) ),
        array( 60 * 60 ,            __( 'h',   'bbpress' ), __( 'h',   'bbpress' ) ),
        array( 60 ,                 __( 'min', 'bbpress' ), __( 'min', 'bbpress' ) ),
        array( 1,                   __( 's', 'bbpress' ), __( 's', 'bbpress' ) )
        );
    

    I’m trying to make the forums support mobile, and the long words ruin my tables.

    I want to be able to upgrade bbPress without losing this change. What can I do?

    #116624
    Siobhan
    Member

    Yup, I get that. But there is still a distinction between 1) the people who install and use bbPress to run their forum, and b) the forum members. What I’m wondering is whether we need to provide anything for the forum members (like basic stuff on posting etc) or if we can forget about them. In which case there are just Devs & users.

    #116623
    LabSecrets
    Participant

    In the past we’ve found it helpful to have one set of docs and info relating to “use” of the system, and then a second relating to “development” (or “customization”). The differentiation is less on the capability of the person searching, and more about what the point of the information may be.

    Think of it like an automobile. There is the “user manual” in the glove box. But if you are a mechanic, you probably have the Chilton “repair manual” for that car in your shop somewhere.

    If you use bbPress, the default “user manual” would have a variety of useful “how to use and extend this” info… but if you wanted to get into the code (php or css or js or shortcodes) you would look to the “repair manual” (not implying anything broken, just meaning it’s for modifying code)

    Keeping things as simple and flat as possible might help to eliminate hiding good info in a complex heirarchy?

    #116619
    Siobhan
    Member

    Sorry for the delay to this – i’m semi-on holiday 🙂

    So this is an interesting question to do with users, end users etc. In fact, should we be producing stuff for forum users as well? I guess we have three groups: Developers Forum Admins Forum Users

    Would that make more sense?

    How about we adopt the following tagging system:

    faq – for something to be added to the faq document – for something to be documented

    Would that make sense? Is there any way to subscribe to tag feeds?

    • This reply was modified 13 years, 6 months ago by Siobhan.
    #116606
    Sam Srauy
    Member

    Found Phillips’ brilliant code awhile back. I changed it a little bit for more control:

    function lab_logged_in_bbptopics($have_posts){
    if (!bbp_current_user_can_publish_forums()){
    $have_posts = null;
    }
    return $have_posts;
    }
    add_filter(‘bbp_has_topics’, ‘lab_logged_in_bbptopics’);
    add_filter(‘bbp_has_forums’, ‘lab_logged_in_bbptopics’);
    add_filter(‘bbp_has_replies’, ‘lab_logged_in_bbptopics’);
    

    You can then use any of the user role plugins to specify which user (or user level) can publish forums. Of course, logged out users don’t have a bbp_current_user_can_publish_forums() set so they’ll automatically be denied access to the forums. Hope you enjoy!

    Also, I changed the “Oh bother! …” text in bbpress/feedback-no-forums.php to say “You have to be logged in and have permission to see the forums.”

    Hope this helps someone. And, thank you Philip for sharing your code to begin with! It certainly helped me a lot.

    I have absolutely NO IDEA why I can NOT get code to properly display on this website. Sorry, if you need to see the file I’m using I can send it to you but basically it’s the same exact one with everything stripped from it but the forum title.

    I’ve created a Widget that displays several different Forum related items in four different tabs. I’m having trouble with displaying the Forum Categories List properly however. I’ve modified loop-forums.php so that it calls loop-theWidget-single-forum.php and I’ve removed the bits from the loop-single forum that I did not need(in the copied one that’s displaying on the sidebar). This works perfectly EXCEPT … When you are on inside the Forums on the Topics List Page the Categories section of the Widget shows NOTHING AT ALL and then when you actually go inside of a Topic it then displays the infamous “Oh bother! No forums found.” thing. What I’m not fully understanding is that the Widget works EVERYWHERE ELSE on the website just fine.

    Figure I’m missing some bit that I need to add so I came to the experts… What do I need to add / modify to make this tab of my Widget perform as intended? The Widget can be viewed at…

    http://gitfit.tv

    … and the current loop-single-forum.php that I’m utilizing looks like this…

    <tr id="bbp-forum-" >
    
    
    
    
    
            <a class="bbp-forum-title" href="" title="">
    
    
    
    
    
    <!-- bbp-forum- -->
    

    … any help would be most appreciated.

    Thanks, in advance, for your time and assistance.

    Andrew

    #116563
    DNBrawler
    Participant

    I put two asteriks and it made blank pages italic o-o.

    I mean certain portions of my site changed to blank pages after I inserted that code in the content-single-forum.php

    Is there any other way to display the forum description?

    Stephen Edgar
    Keymaster
    #116554
    Stephen Edgar
    Keymaster

    Here’s a lists of the shortcodes available to insert in pages https://codex.bbpress.org/shortcodes/

    [bbp-single-forum id=$forum_id] – Show a single forums topics eg. [bbp-single-forum id=32]
    
    #116535

    Topic: Spam Destroyer

    in forum Plugins
    Ryan Hellyer
    Participant

    Howdy,
    I added support for bbPress into my anti-spam plugin this morning. I don’t actually use bbPress though, so can’t confirm that it is indeed working on a live site, so if any of you kind bbPress folks can help a poor plugin dev. out by testing it for me, that would be really handy 🙂

    It works ninja well on blog comments, so assuming I’ve implemented it correctly, it should (in theory) work just as well for bbPress too.

    Here’s the announcement post for bbPress support:
    http://pixopoint.com/2012/08/05/bbpress-buddypress-and-multisite-spam/

    And here’s the download page at WordPress.org:
    http://wordpress.org/extend/plugins/spam-destroyer/

    It should help block both user registrations via the bbPress user registration shortcode and it should block automated guest posters too.

    #116530
    Anonymous User
    Inactive

    Pastebin doesn’t look like a viable option as far as actually integrating it. Would require tapping into their api which is a level of programming that is waaay over my head.

    An unpleasant, but manageable workaround is to use:

    http://centricle.com/tools/html-entities/

    to encode the code first, wrap it in code tags and cross your fingers.

    Still has issues with quotes and rel=”nofollow”, but going back and editing I managed to get the code to display cleanly how I want it.

    Getting users to do this (even if they knew how) will be impossible so ultimately we’ll just have to settle with the “use Pastebin and share the URL” method.

    There is https://wordpress.org/extend/plugins/bbpress-post-toolbar/ – but it’s not so pretty and still has it’s glitchy moments.

    Another option I suppose would to get in the code and change it so that the code button inserts textarea tags instead and then just style the hell out of them to look and function like they’re not textareas ;). That could sure confuse users though.

    I guess we’ll see what 2.2 brings.

    Thanks, Bryan

    #116522
    fixthemad
    Member

    WordPress version: 3.4.1
    bbPress version: 2.1
    Website: http://www.supercards.com.br

    Hello There
    I´ve been searching this for days.
    Is there a way to show in a custom page the recent topics form specific forums, limiting the number of posts? Either via widget or directly putting code into the template files?
    Thanks in advance.

    #116521
    Anonymous User
    Inactive

    It’s also frustrating that rel=”nofollow” is inserted into HTML inside code tags as this is bad and unintended advice when helping someone.

    #116510

    In reply to: Forum List in Sidebar

    Why when I post code here does it never display properly?
    I don’t get it.

    #116509

    Topic: Forum List in Sidebar

    in forum Themes

    So I found this bit of code that serves my purpose but I can not figure out why it ONLY works on the forms page. How can I make this work from any page via my sidebar?

    `

    `

    #116506
    Anonymous User
    Inactive

    Yeah, I was thinking about child theming or hacking (probably just a custom template really) in a pseudo Pastebin feature/instruction for users. Forums I mod already, I end up just directing people to use Pastebin and then share the URL, seems like the easiest way sometimes.

    This new forum is going to deal heavily and primarily on users working with code so I want to make it painfully simple.

    It’s hard enough to get people to understand how to wrap their code with code tags so it doesn’t execute, that’s a hurtle enough. But, then when it doesn’t work that’s a few more replies to get it worked out.

    I’ve actually never seen any forum do that very well, make it super easy for anyone (as in including beginners/non-tech-savvies) to understand how to add code. I might make a second textarea that says “Paste Your Code Here” in big beautiful letters :).

    One idea might be to just make it so the code button wraps code with code and pre tags.

    If I come up with a decent solution I’ll try and remember to share it.

    Thanks, Bryan

    apena916
    Member

    What i’m experiencing was even before I installed bbPress Moderation. When I installed bbPress alone i still needed to approve all the posts, when the problem persisted then I installed the bbPress Moderation just to see if it allowed what it said, which is after one time approved I wouldn’t have to approve again, but it never fixed the problem, I still had to approve every post So I did what you said and disabled the bbPress Moderation and I’m still getting the same problem, with or without the plugin all posts goes to ‘Pending’ and I have to approve every single one of them which gets really annoying. I disabled bbPress and re-enabled it and still nothing. I even found a function that I tested on functions.php, the function has this included thinking it would force the users capability to publish.

    $role = get_role( 'subscriber' ); // gets the editor role
    $role -> add_cap( 'publish_topics' ); //-> is actually greater than symbol, this forum is not showing it
    

    but that didn’t work, i feel like there’s an option that never got set in my database, i even restored the plugin and its not working. I just don’t understand why its not working for me, or nothing is being set in capability mapping

    • This reply was modified 13 years, 6 months ago by apena916.
    • This reply was modified 13 years, 6 months ago by apena916.
    • This reply was modified 13 years, 6 months ago by apena916.
    #116497
    Lynq
    Participant

    I agree, although I have found it fine to use pastebin for code.

    #116484
    Anonymous User
    Inactive

    Using bbPress 2.1.2

    Happy to see that a toolbar has been added in, however it doesn’t currently work very well for code. It’s allowing basic HTML like strong even though wrapped with code tags to execute.

    I miss the old backtick option that forced ANY and ALL code to display as plain text like a champ.

    Thanks, Bryan

    #116479
    nielsvanrenselaar
    Participant

    Hello,

    I run a custom loop for some replies at a specific part in my template. I would like anyone that has the rights to edit these replies. I use bbp_reply_admin_links for that, but this function gives me NULL. When digging futher in to the code I see that bbp_is_reply equals NULL in bbp_reply_admin_links. Probably because im not in a “official” bbpress loop. Anyone has a solution? Manually calling bbp_get_admin_links($post->ID) does not do the trick. bbp_is_reply still gives false on that, because bbp_get_admin_links does not give the ID trough to bbp_is_reply.

                                 "reply",
                                            "post_parent" => get_the_ID(),
                                            "order" => "ASC", // First comments first
                                            "paged" => get_query_var("paged")
                                        )
                                    );
    
                                    $i = 1;
    
                                    if($replies->have_posts()) :
                                        while($replies->have_posts()) :
    
                                            $replies->the_post();
                                            $class = ($i % 2) ? "" : "mark";
    
                                            ?>
                                            <!-- reply -->
                                            &lt;li class=&quot;"&gt;
    
    
                                                    <!-- author -->
    
    
                                                        &lt;a href=&#039;post_author ); ?&gt;'&gt;post_author); ?&gt;
                                                        Administrator
    
                                                        &lt;img class=&quot;image&quot; src=&quot;/images/ico-27.gif" width="49" height="49" alt="image description" /&gt;
    
    
                                                            Niels van Renselaar 
                                                            Media-Enzo  
    
                                                            Posts:
    
    
    
    
                                                    <!-- reply -->
    
    #116471

    You’re welcome. Look forward to seeing your codex page. 🙂

    #116461

    There is documentation, at codex.bbpress.org. It’s a wiki, so you’re free to teach yourself how bbPress works, and contribute your knowledge upstream so others can learn from you.

    That said, what you want to do is as easy as making a bbpress.php template in the root of your theme. It will act as the wrapper for all bbPress content.

Viewing 25 results - 15,626 through 15,650 (of 32,503 total)
Skip to toolbar