Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 15,651 through 15,675 (of 32,519 total)
  • Author
    Search Results
  • #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, 11 months ago by apena916.
    • This reply was modified 13 years, 11 months ago by apena916.
    • This reply was modified 13 years, 11 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.

    #116437
    Stephen Edgar
    Keymaster

    Do you still see the same theme behavior if you switch ‘theme packages’

    https://codex.bbpress.org/forums-settings/#theme-packages

    #116426
    Stephen Edgar
    Keymaster

    I started to write some doc’s but like you got confused pretty quickly with all the different info available. Did you see the 2.1 install info here?

    I’ll do some testing and and fix up the docs, once completed it should be available here:
    https://codex.bbpress.org/bbpress-in-your-language/ โ€Ž

    • This reply was modified 13 years, 11 months ago by Stephen Edgar.
    • This reply was modified 13 years, 11 months ago by Stephen Edgar.
    #116420
    RockwareIT
    Member

    I have a website at http://rockwareit.net. I am using CheerApp, which was built to utilize the bbpress forum structure. Everything was fine, until I updated to bbpress, v 2.0, I think – not exactly sure, but it was the update before this last one. Now, with the new version activated, I get a fatal error:

    Fatal error: Call to undefined function royal_login() in /home/content/31/8787131/html/wp-content/themes/cheerapp/header.php on line 69

    I have attempted to remove/edit problematic code on line 69, to no avail.

    I also can not seem to find a proper older version of bbpress, all the links to older versions are broken….can someone please help either with a fix to the issue, or an older version of bbpress?

    Thanks!

    Nicole

    #116404
    Jeff Hester
    Participant

    This page describing the bbPress core implies that there are notes on how to import from vBulletin, stating:

    > Import Forums
    >
    > Published on July 3rd, 2012 by netweb Supported Platforms bbPress v1.x
    > phpBB v.3.x (For Invision or vBulletin see notes below.)

    But there are no “notes below” that reference vBulletin. Does bbPress support vBulletin import?

    #116356

    Wow. Thanks for responding so FAST. I guess I worded my question badly. I knew to place it in that file, I’ve already done so, what I mean is that I’ve tried several variations of calling the function and it returns nothing so I’m evidently not calling it correctly. For instance, my last effort was…

    $reply_id = bbp_get_reply_id(); bbp_get_reply_last_active_time( $reply_id );

    … and I’ve also tried to call it with just…

    bbp_get_reply_last_active_time( $reply_id );
    

    … which also returned nothing at all.

    #116355

    Most likely directly in a custom theme’s template file, where ever it’s appropriate.

    /bbpress/loop-single-reply.php

    maybe?

    A few things. First, this won’t work in bbPress 2. It’s already done for you, and the function names are different. Also, it’s a bad idea to trust any global value to be output directly to the screen, as any plugin can manipulate them directly. You’ll want to wrap that output in an esc_url() call. Lastly, this post is almost 4 years old; bumping it with a simple ‘thanks’ type reeks of being spam.

    Closing this so it doesn’t get bumped again, and anyone that finds this should take heed using that code in bbPress or WordPress going forward, as there are more elegant solutions.

    #116327

    Geesh, sorry for all the edits but I guess I don’t get your insert code thing. Anyway I used bbp reply author id to pull the id but this all together returns just that, the author id number. Any further ideas?

    #116320

    First of all, thank you for your help.

    Now, I came up with…

    $user = get_userdata( bbp_reply_author_id() ); 
    

    if ( !empty( $user->user_nicename ) ) {
    $user_nicename = $user->user_nicename;
    }

    … but it returns the user ID number, not the nicename. Any further thoughts?

    • This reply was modified 13 years, 11 months ago by Good in Today.
    • This reply was modified 13 years, 11 months ago by Good in Today.
    • This reply was modified 13 years, 11 months ago by Good in Today.
    • This reply was modified 13 years, 11 months ago by Good in Today.
    • This reply was modified 13 years, 11 months ago by Good in Today.
    • This reply was modified 13 years, 11 months ago by Good in Today.
Viewing 25 results - 15,651 through 15,675 (of 32,519 total)
Skip to toolbar