Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 15,676 through 15,700 (of 32,519 total)
  • Author
    Search Results
  • #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;
    }
    
    #116233

    In reply to: Index page

    viktora
    Member

    Another observation + summary to the topic “bbpress is ignoring my customized index page file page-front-forums.php in my template directory”…

    Default setup for forum base slug is “forums”. With this setup page-front-forums.php is being ignored. After change to “discussions”, the /discussion/ URL still ignores the template file BUT /forums/ URL is still working and it is working fine! (no shortcode usage).

    BUT only for logged in users.:-)) Other users are redirected to web index page.

    Anyway, I am happy to have at least some progress here.:-))

    #116231
    viktora
    Member

    I have found the problem. bbConverter has imported all the first topic posts from my old forum to bbpress 2 with small modification: all “” characters were replaced with “<” and “>” (probably to remove HTML tags). I have resolved the issue by following code in my bbpress-functions.php file:

    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;
    }
    
    #116212
    klo-wp
    Member

    Hi everybody,

    After a long “war” with spams in lost in end. I cant prevent them with plugins or even ban IP on .htaccess.

    Now, I’m planing to close new registration, and to leave forum like it is, no new posts.

    I have deleted code from register.php but again bot get registered on forum, I dont really know how they do it, since humans sent me emails why cant register on forum.

    Anyway, I need help to stop them!!!!

    if is needed here is forum im talking about
    http://www.deluxetemplates.net/forums/

    #116206
    Stephen Edgar
    Keymaster

    The codex is currently setup with a ‘context’ category that lets us split the docs between developer and user.
    https://codex.bbpress.org/context/developer/ & https://codex.bbpress.org/context/user/

    Building on that already existing theory as we reply to questions in the forum we should start tagging them appropriately ‘user’ or ‘developer’ and thus being able to follow each tag.
    https://bbpress.org/forums/topic-tag/user/ & https://bbpress.org/forums/topic-tag/developer/

    Should we also add other tags like ‘faq’ or ‘addtofaq’ or something along those lines so we can add tags to be able to follow topics we think need docs/updated docs/better docs and priority of that need etc etc… Suggestions?

    Is ‘User” to dis-ambiguous in the ‘docs’ vs ‘end user username’ context for bbPress though?

    (If we were able to edit the current topic tags we could quickly tag the past couple of weeks topics, als that will have to wait a little while longer)

    • This reply was modified 13 years, 11 months ago by Stephen Edgar.
    #116202
    ryan_m27
    Participant

    Hi All,

    The strategy that’s outlined here seems at odds with the method of integrating bbP into an existing WP theme described here: https://codex.bbpress.org/theme-compatibility/. In that recent post, it describes how I’m to copy files from the bbp-theme-compat folder into a subdirectory in my theme. That includes content-archive-forum.php but not archive-forum.php. I can also achieve customization by, as mentioned above, copying archive-forum.php directly into my theme.

    Which is better and why?

    Also, I’d like to add a list of the ten most viewed topics above the forum list on the main forums page. I can’t figure out how to limit the output of the topics list or sort by most views (don’t even know if that information is stored). Any help there would be appreciated.

    Thanks!

    #116195
    Siobhan
    Member

    It’s a good idea to split docs out into Developer Docs and User Docs – the user docs could then be split into installation, troubleshooting, and using.

    @lynq – can you drop links to some of the commonly asked questions in here?

    #116192
    ecoevolver
    Member

    hi there,

    I just installed bbPress and was exploring the options for themes. On the website, the button for “Themes” redirects to “http://bbpress.org/forums/topic/themes/&#8221; which contains a 3 year old thread to a third party website. Why make visitors go through that? Why not just link to the external website directly if thats the only repository? It just makes it more confusing for newcomers…plus as a newcomer if I see a three year old thread my confidence goes way down about the plugin.

    I went to http://bbshowcase.org/forums/view/available-themes to download some of those additional themes for bbPress.

    1. Only some of the themes had a “Download” link. How do I access those themes without the download link?
      For example, I want to download Hellish Simplicity. When I click the “Website” link, I’m taken to a WordPress theme, not a bbPress theme.
    2. Do I install the Hellish Simplicity WordPress theme in the bbPress/my-templates/ folder or my themes folder? The instructions at http://codex.bbpress.org/legacy/themes-and-templating/ suggest that i put in the bbPress folder. But this is confusing…

    I’m looking forward to using bbPress and hope that these questions are easily answered!

    thanks everyone,

    #116191
    tkomuro2k
    Member

    Thanks for the reply… temporarily I solved it by duplicating bbp_has_replies function in my function.php and changing [‘post_parent’] argument to ‘post_parent’ => bbp_get_topic_id()

    It does the job now.. but I am not happy with this because I am unnecessarily duplicating the good function.. I think my add_filter is not working as I intended.. but don’t know what’s wrong with it.. Would you guys please help me?

    in function.php , I have function looks like

    function my_bbp_has_replies($arg = ”)
    {

    $args = array();
    $topic_id = bbp_get_topic_id();
    $args['post_parent'] = $topic_id;
    
    return $arg;
    

    } // function

    and after I call bbp_has_replies() , I had put add_filter(‘bbp_has_replies’, ‘my_bbp_has_replies’); in loop-single-topic.php ..

    I have looked into loop-replies.php and loop-single-reply.php .. as Lynq suggested (btw, thank you) … but there was no function or filter trying to filter the bbp_has_replies..

    Thank you guys..

    #116189
    Lynq
    Participant

    Hey guys,

    I know this has been asked quite a few times as I have come across a few posts. The problem I have is this:

    I am using the Fancy Editor on the front end to edit bbPress replies and topics.

    If as a forum user I edit my post using the visual tab then nofollow is applied to the link as required. If as a forum admin I edit my post using visual or html tab then nofollow is applied aswell.

    The issue comes when I go to save my post as a forum user using the html tab and type out my link tag. This will not apply a nofollow to the reply/topic.

    I have this inside a custom plugin already:

    add_filter('post_author_link', 'bb_rel_nofollow');
    add_filter('post_text', 'bb_rel_nofollow');
    

    Thanks for any help.

    • This topic was modified 13 years, 11 months ago by Lynq.
    #116188
    Stephen Edgar
    Keymaster

    bbPress 2.1 now has built-in theme support, try using the steps outlined here:
    https://codex.bbpress.org/theme-compatibility/

    #116187
    Ronileco
    Participant

    Sorry for the long time it took me to respond.
    This is my problem:
    my bbpress uses permalinks and prettylinks which makes all the user links use the user name instead of ID.

    for example:
    http://www.mysite.com/forum/users/Roni%20Cohen
    this leads to 404.
    instead of
    http://www.mysite.com/forum/users/524 (the user id)
    this leads to the user page.

    What should I change in my wordpress / bbpress in order to support those kind of links.
    I already set mod_rewrite but i guess some rules are missing or that i’m using something in the wrong way.

    I found the part in the code that handles this but I don’t want to change that to use id hard coded.

    Am i clear now?

    #116173
    Lynq
    Participant

    It would be quite nice to have some of the most commonly asked forum questions somewhere and then a couple of useful topics users can check out.

    I know that customizing bbp_list_forums is a popular one.

    #116166
    aaclayton
    Participant

    Ok, this is definitely NOT the most elegant solution, but I contrived a crude fix to the problem. Since the false 404 flagging was happening only on user profile pages, I added the following to my single_user.php template just before the header.

    global $wp_query;
    $wp_query -&gt; is_404 = false;
    get_header(); // Loads the header.php template. ?&gt;
    

    Basically I’m just forcing the profile page to not be 404. I may try to work out a better solution, but for the time being, this appears to work.

    EDIT: looks like the code snippet is having trouble displaying a greater than sign, anywhere you see > above, it should be a greater than sign (>).

    • This reply was modified 13 years, 11 months ago by aaclayton.
    • This reply was modified 13 years, 11 months ago by aaclayton.
    #116162
    LabSecrets
    Participant

    Sounds good… would love to put the emphasis on the end-use of the forums in some way too. A lot of our users come to us with their intended solution (goal of using bbPress) already in mind. Might be helpful to focus one section on that as well, so folks could work backwards.

    How do you want to put up the skeleton of these docs?

    #116159
    tkomuro2k
    Member

    Hello guys!

    I am trying to run a replies loop within topics loop… and scratching my head..
    (more specifically, at loop-single-topic.php compat template .. I am trying to do something like..

            bbp_has_replies();
            while ( bbp_replies() ) : bbp_the_reply();
            $current_topic_reply_id = bbp_get_reply_id();
            echo $current_topic_reply_id ;
            endwhile;
    

    and.. i am getting.. same IDs under every topic..
    would you help me to get reply IDs for each topic including the topic ID itself?
    Thank you very much guys..

    #116150

    In reply to: Wow I need help!

    Stephen Edgar
    Keymaster

    If you use the forum base ‘X’ and forum slug ‘y’ and have ‘Forum Prefix’ checked
    – hxxp://www.example.com/x/y/yournotstupid
    – (default bbPress slugs hxxp://www.example.com/forums/forum/yournotstupid/ )

    If you use the forum base ‘X’ and forum slug ‘y’ and have ‘Forum Prefix’ UNchecked
    – hxxp://www.example.com/y/docscouldbebetter
    – (default bbPress slugs hxxp://www.example.com//forum/docscouldbebetter/ )

    There is some basic doc’s here https://codex.bbpress.org/getting-started-with-bbpress/#creating-your-first-forum and https://codex.bbpress.org/forums-settings/#archive-slugs

    • This reply was modified 13 years, 11 months ago by Stephen Edgar.
    • This reply was modified 13 years, 11 months ago by Stephen Edgar. Reason: formatting
    Stephen Edgar
    Keymaster

    Duplicate, please only post your question once.

    bbPress Login Shortcode NOT for use on sidebar?

    #116146
    Stephen Edgar
    Keymaster
    #116145
    Stephen Edgar
    Keymaster

    Duplicate, please only post your question once.

    bbPress Login Shortcode NOT for use on sidebar?

    • This reply was modified 13 years, 11 months ago by Stephen Edgar.
Viewing 25 results - 15,676 through 15,700 (of 32,519 total)
Skip to toolbar