Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 15,701 through 15,725 (of 32,581 total)
  • Author
    Search Results
  • #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 14 years, 3 months ago by apena916.
    • This reply was modified 14 years, 3 months ago by apena916.
    • This reply was modified 14 years, 3 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 14 years, 3 months ago by Stephen Edgar.
    • This reply was modified 14 years, 3 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 14 years, 3 months ago by Good in Today.
    • This reply was modified 14 years, 3 months ago by Good in Today.
    • This reply was modified 14 years, 3 months ago by Good in Today.
    • This reply was modified 14 years, 3 months ago by Good in Today.
    • This reply was modified 14 years, 3 months ago by Good in Today.
    • This reply was modified 14 years, 3 months ago by Good in Today.
    #116257
    sn07
    Participant

    Thanks netweb for creating the ticket.

    Lynq – thanks for the code for the latest posts. Did you create a new php file with this code or put it in an existing file?

    #116243
    Stephen Edgar
    Keymaster

    Sorry, but all three of your the links you referenced are referring to the old stand alone version of bbPress, we are trying to get all the docs updated but as some still use the 1.x versions we still need them though I know it becomes rather confusing if you hit a link relating to that old version.

    bbPress 2.1 has built-in theme support, if you want customize bbPress to closer look like your WordPress theme please see https://codex.bbpress.org/theme-compatibility/ to get started.

    #116239
    viktora
    Member

    OMG! :-(( You still can not see the right code.:-( This bbpress is filtering some strings… I will spell the strings in “”, you should write the code without spaces.

    $content = str_replace(“& l t ;”,”<“,$content);
    $content = str_replace(“& g t ;”,”>”,$content);

    Hopefully I will succeed this (and last) time.:-)

    #116238
    Stephen Edgar
    Keymaster

    This is a known issue for phpBB & Invision forums and the way it looks at the BBCode as its being imported, we are hoping to get this fixed for bbPress 2.2.

    You can see more details on the problems here https://bbpress.trac.wordpress.org/ticket/1884

    #116235
    viktora
    Member

    I do not know whar is happening… the right code again, trying it without “code” formatting…

    add_filter(“bbp_get_reply_content”, “ps_bbp_get_reply_content”);
    function ps_bbp_get_reply_content ($content) {
    $content = str_replace(“<“,””,$content);
    return $content;
    }

    #116234
    viktora
    Member

    Sorry, for some reason, one row was removed from the code. Here is the complete code. Additionally, the characters which were replaced by bbconvertor were replaced by the bbpress.org/forums reply content as well…:-) But you can see from the code what was replaced with what.:-)

    add_filter("bbp_get_reply_content", "ps_bbp_get_reply_content");
    function ps_bbp_get_reply_content ($content) {
    $content = str_replace("&lt;","",$content);
    return $content;
    }
    
Viewing 25 results - 15,701 through 15,725 (of 32,581 total)
Skip to toolbar