Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 32,801 through 32,825 (of 64,516 total)
  • Author
    Search Results
  • Satish
    Participant

    ok..

    as Guatam suggested, I added the following code to my function.php file

    add_action('bbp_init', '_bbp_allow_pre_tag', 10);

    function _bbp_allow_pre_tag() {

    global $allowedtags;

    $allowedtags = array( 'name', 'class', 'id' );

    }

    but still its not working.

    Can you please directly give me the code I need to paste into my function.php file ?

    I need to allow pre tag with following attributes to it name=”code” class=”c”

    so basically I must allow “pre” tags with “name” and “class” attributes.

    No you should not edit core (*ever*), you should use the filter that is available in the code you just posted bbp_get_allowed_tags.

    You need to look into filters https://codex.wordpress.org/Function_Reference/add_filter

    Satish
    Participant

    got something inside bbpressbbp-includesbbp-common-template.php file.

    /**

    * Output all of the allowed tags in HTML format with attributes.

    *

    * This is useful for displaying in the post area, which elements and

    * attributes are supported. As well as any plugins which want to display it.

    *

    * @since bbPress (r2780)

    *

    * @uses bbp_get_allowed_tags()

    */

    function bbp_allowed_tags() {

    echo bbp_get_allowed_tags();

    }

    /**

    * Display all of the allowed tags in HTML format with attributes.

    *

    * This is useful for displaying in the post area, which elements and

    * attributes are supported. As well as any plugins which want to display it.

    *

    * @since bbPress (r2780)

    *

    * @uses allowed_tags() To get the allowed tags

    * @uses apply_filters() Calls 'bbp_allowed_tags' with the tags

    * @return string HTML allowed tags entity encoded.

    */

    function bbp_get_allowed_tags() {

    return apply_filters( 'bbp_get_allowed_tags', allowed_tags() );

    }

    what should I do with it inorder to make pre tag allowable.

    I feel like, editing the core isn’t a good idea.

    Is there a way to handle this via my template ?

    Can you please give me the code that I must paste inside my function.php file to allow <pre name="code" class="c"> to my forum members.

    Satish
    Participant

    I’m not able to find the file, in which this bbp_get_allowed_tags is present..

    #111797

    Yes, its definitely possible. You will need to make a backup of you all your files and a backup of your mySQL database.

    You will need to change the DB depending if the domain will be the same or not.

    #112187

    What version of bbPress?

    You can filter it using the bbp_get_allowed_tags filter bbPress provides.

    CiaranG
    Participant

    In the meantime, I’ve gone for a) low cache time – 60 minutes, plenty enough to have good performance though, and b) disable cache for logged in users only. This seems to be a satisfactory solution to me.

    I also found, under heavy load, that Super/Total cache didn’t help a great deal, while Quick Cache had a massive impact. YMMV though of course.

    John Conners
    Participant

    I’m working on a simple plugin that effectively fires:

    do_action( 'edit_post', $id );

    on any topic, forum, etc. when edited, created, trashed, spammed, split, etc to flush the topic and forum out of the cache.

    I’ve almost got it working and am just getting trashing / untrashing to work then will put it up somewhere to let others work on it. While it’ll work in my case where I’ve not got a bbPress aware theme it may need some tweaking / improvements for all cases.

    Satish
    Participant

    <b>Gautam Gupta</b> tried to help me with this code:

    global $allowed_tags;

    $allowed_tags=array('name','class','id');

    I pasted it inside function.php file; unfortunately its not working.

    I’m using https://wordpress.org/extend/plugins/google-syntax-highlighter/ plugin. and want my bbpress forum members to make use of pre tag and this plugin highlights the codes they post on the forum.

    It uses the following syntax: <pre name="code" class="c">

    please help.

    #112109
    Zigster
    Member

    Ok, so I’ve worked out that the “forums/forum” thing isn’t actually a problem. The forum layout for bbpress is different than I thought it was, all good.

    I just still have the problem with Buddypress theme buttons not linking to the bbpress forum. I shall ask on the buddypress forum.

    lmoon
    Member

    My bbpress site is now being tested by joe public.

    Every time one view’s a forum category and then chooses a forum from that category, it automatically takes them to a forum under a different category.

    For instance, if I view…

    Forums, North East, Country Durham, the breadcrumb trails shows that’s where I am, but when I click on the “schools” forum the breadcrumb trail changes to show I am in the schools forum but under a different category – and it’s always South West, Devon!!!

    Why do all my forums default back to South West, Devon ??!!

    When they were created, I chose the correct hierarchy and can view this is still correct from the Forum, All Forums in the dashboard.

    You can see the issues here… http://lifeafterlondon.com/?page_id=973

    I would really appreciate someones help with this – THANK YOU.

    #112108
    Zigster
    Member

    Hey Anetz,

    I have “Site Wide” forum enabled (bbpress) and I’ve disabled group forums. They can still make groups, but they don’t have group forums.

    I’m new to WordPress and Website development, just know some basic HTML.

    Thanks, I see how to change the permalink now that’s awesome. I can’t believe I missed it, spent ages looking it. It’s in the “All pages” tab and it’s under the title.

    Whenever I make a “new forum” category it automatically creates it at /forums/forum/new-category.

    I don’t understand why I need “/forums/forum”, I’d rather just have it at /forum if that’s possible.

    I’ll continue to experiment too and I’ll post back if I make any progress.

    Let me know if you find anything. :)

    #42561
    Zigster
    Member

    I am using the BuddyPress Default 1.5.4 theme for the website I’m trying to make:

    http://www.fairdinkumpolitics.com/

    I have BuddyPress installed with site wide forum (bbpress). I’m not sure if this is a bbpress question or a buddypress question, thought I would try here first.

    In the header where there is a link “Forum”, it goes to:

    http://www.fairdinkumpolitics.com/forums/

    I want it to go to:

    http://www.fairdinkumpolitics.com/forums/forum/political-machinations-5/

    How do I control the destination of those buttons?

    And about the above url, can I change it to:

    http://www.fairdinkumpolitics.com/forum

    And have my forum there instead?

    Because the current url looks very messy to me. I’m only going to have one forum, with a few different categories. Can I get rid of the “/forums/forum” and just have “/forum”? And instead of “political-machinations-5” just “political-machinations”? I guess that is because I’ve been messing around creating and deleting categories.

    Thanks!

    #111794
    Everton
    Member

    Hi

    I’m also looking to do this – move my buddypress install to a new url. Is it possible to export/import everything? Do I just need to copy the tables from WordPress?

    Regards

    EB

    #110530
    Jon Brown
    Participant

    Just switched a Genesis based site I’m developing from 2.0 to 2.1-r3774. I was a bit confused by the broken templates, but then realized the Genesis code had been pulled out and found and installed Jared’s BBPress Genesis extend (0.8.1) plugin which now makes everything is look good OOTB again.

    https://wordpress.org/extend/plugins/bbpress-genesis-extend/

    There are only a dozen dummy posts and _no_ custom templates yet so I wouldn’t really expect it to explode, but I start customizing forum templates in a few days and it seemed to make sense to start with 2.1.

    #42618
    tracid
    Member

    I installed bbPress into my blog earlier today. I went back edit content on the blog itself, thus logging back into the blog – and am unable to do so. I’d like to uninstall/reinstall, but can’t because I can’t gain access to the admin side of my site.

    I need help with this. Thanks.

    #110757
    iamhuyngo
    Blocked

    Thanks Jon, your solution help me.

    It depends on what your setup is, however you should be able to put this in your theme’s function.php and get it to work. The reason I know this is because I’m doing it on one of my bbPress installs.

    add_filter( 'bbp_get_single_forum_description','ja_return_blank' );
    add_filter( 'bbp_get_single_topic_description','ja_return_blank' );
    function ja_return_blank() {
    return '';
    }

    #110756

    This is fixed in the upcoming 2.1 release :)

    Griffendahl
    Member

    If I add support for bbPress in my own theming (by adding the provided files into my own theme) the logout fails to work. Whenever I press logout, the screen just goes blank.

    I checked the hyperlink in the logout link, and it is exactly the same as in the theme without the bbPress support. However the difference is that in the theme without the bbPress support it just works.

    #42615
    thetalltree
    Member

    I would like to disable ahref tags in the forum posts so users cannot add links to external websites within a post. In addition to that, I would also like to stop the automatic phrasing of links. For instance, if someone enters ‘http://www.bbpress.org&#8217; I would like it to appear as plain text instead of a clickable link.

    I made a plugin as mentioned by ‘jonich0n’ in the following post but it is not working:

    How can I disable HTML in posts?

    I uploaded this plugin in my wordpress plugins folder and then activated it from the wordpress ‘installed plugins’ page. Is there where it is supposed to be uploaded?

    Milan Dinić
    Participant

    @jjj

    I didn’t understand from your reply do you want to add hooks that’ll purge cache made by caching plugins inside a core?

    Problem with page cache and bbPress (outside relative times) is that when something new is posted, parent post type(s) isn’t cleared (for example, when you post a reply, topic’s and forum’s pages aren’t refreshed until cache expires).

    #59901
    Milan Dinić
    Participant

    Since this topic tops Google SERP, just to note that for bbPress 2.0 (ie. bbPress as a WordPress plugin), there is a plugin bbPress Digest that does something similar as requested in first post.

    #111946
    dorsetjon
    Member

    Hi,

    See the following forum topic for details of the issue and the fix:

    [help] Link Log out error after bbPress installed

    Jon

Viewing 25 results - 32,801 through 32,825 (of 64,516 total)
Skip to toolbar