Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 15,651 through 15,675 (of 32,503 total)
  • Author
    Search Results
  • #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, 6 months ago by Stephen Edgar.
    • This reply was modified 13 years, 6 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, 6 months ago by Good in Today.
    • This reply was modified 13 years, 6 months ago by Good in Today.
    • This reply was modified 13 years, 6 months ago by Good in Today.
    • This reply was modified 13 years, 6 months ago by Good in Today.
    • This reply was modified 13 years, 6 months ago by Good in Today.
    • This reply was modified 13 years, 6 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;
    }
    
    #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, 6 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, 6 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/

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