Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 48,651 through 48,675 (of 64,509 total)
  • Author
    Search Results
  • #31771
    InvTrdr
    Member

    If I change the default theme in bbPress from Kakumei to a different one I lose the image uploading ability even though it is an active plugin and works on Kakumei.

    Thank you.

    #31770
    InvTrdr
    Member

    If I change the default theme in bbPress from Kakumei to a different one I lose the image uploading ability even though it is an active plugin and works on Kakumei.

    Thank you.

    #79248

    I already answered this in your other thread: https://bbpress.org/forums/topic/adding-images-to-a-topic

    Please don’t start another one for exactly the same thing. Unless you mean, can you upload an image without having to upload it to a server of some kind? In which case, not very practically no.

    #31768
    InvTrdr
    Member

    How is a “Sticky” post made in bbPress? I am using Kakumei, the default template.

    Thanks.

    #79205

    That code is probably fine, the version number is okay anyway but it’s slightly different to the one above.

    There’s an upload plugin for PostImage: https://bbpress.org/forums/topic/request-image-upload-with-free-image-hosting#post-56890

    That’s the only one I know of

    #79203
    InvTrdr
    Member

    That code above did not work for me chandersbs. The one below did. Is it safe to use the one below?

    <?php

    /*

    Plugin Name: Allow Images

    Plugin URI: https://bbpress.org/#

    Description: Allows <img /> tags to be posted in your forums. The image must be a png, gif or jpeg.

    Author: Michael D Adams

    Author URI: http://blogwaffe.com/

    Version: 0.7.1

    */

    // You can add more tags here

    function allow_images_allowed_tags( $tags ) {

    $tags = array(‘src’ => array(), ‘title’ => array(), ‘alt’ => array());

    return $tags;

    }

    function allow_images( $text ) {

    if ( preg_match_all(‘/<img(.+?)src=(“|’)(.+?)\2(.*?)>/i’, $text, $matches, PREG_SET_ORDER ) ){

    foreach( $matches as $match ){

    if (preg_match(‘/src=/i’, $match[4]) /* multiple src = someone’s trying to cheat */ || !in_array(substr($match[3], -4), array(‘.png’, ‘.jpg’, ‘.gif’)) /*only match .jpg, .gif, .png*/ && ‘.jpeg’ != substr($match[3], -5) /*and .jpeg*/){

    $text = str_replace($match[0], ”, $text);

    }

    }

    }

    return $text;

    }

    add_filter( ‘pre_post’, ‘allow_images’, 52 );

    add_filter( ‘bb_allowed_tags’, ‘allow_images_allowed_tags’ );

    ?>

    #31759

    Topic: Mail me after post

    in forum Themes
    davidgv
    Participant

    I like that bbPress send me an email after that somebody posts a message to forums. Is possible to make this from templates? Or is neccesary write a plugin?

    #79174

    You are correct. I downloaded it from https://bbpress.org/latest.zip and there it was. Strange that it doesn’t come with the .zip package from the trac site.

    On a new note there is now a new installation error:

    Warning: Cannot modify header information – headers already sent by (output started at /XXXXX/StealthEmployed/forum/bb-config.php:64) in /XXXXX/StealthEmployed/forum/bb-includes/functions.bb-pluggable.php on line 232

    I have a feeling this is probably easier to fix than the last one. Any ideas?

    #79237

    In reply to: Link to Home Page.

    InvTrdr
    Member

    I am using the default K theme in bbPress.

    Thank you.

    #69768

    Whoops, my bad – I missed it. The link in the first post still works – reposting it here just in case. (You should still read that first post, though, for the directions…)

    #79226

    In reply to: Google Analytics

    So it works similar to WP but just that you cannot do it through Editor in WP, rather do it directly in the files on the server, correct?

    Correct. There’s no theme editor built in to BB at this time, so you have to edit the template file.

    And you can use the same GA code from WP to BB without changing anything, but as it’s a different page, you have to edit the bbPress and WordPress templates separately.

    #79206

    In reply to: Members Only

    chrishajer
    Participant

    InvTrdr, you will find most of the functionality you want to add is available as a plugin. Check here:

    https://bbpress.org/plugins/topic/hidden-forums/

    #79201
    chrishajer
    Participant

    https://bbpress.org/plugins/topic/allow-images/page/4/

    There was a problem with it working with 1.0 though. I thought someone posted a fix in the comments.

    #79220
    chrishajer
    Participant

    Do not upload to bb-templates of bb-plugins. Make two new folders, if they’re not already there, called my-templates and my-plugins, and put your unzipped templates and plugins in those folders. There is no upload in the admin for themes or plugins, like there is with WordPress.

    bbPress for a while was coming with those two folders, empty, but with the wrong permissions. Follow the link from ashfame to see how to fix the permissions issue.

    #79234

    In reply to: Link to Home Page.

    chrishajer
    Participant

    If you browse the sidebar tag here, you will find people who’ve added a sidebar. You can do it in your template files.

    https://bbpress.org/forums/tags/sidebar

    If you just want a link up top in your header, to the website home page, just add it, wherever you want, in your template’s header.php.

    #31764
    InvTrdr
    Member

    Is it possible to have a sidebar or a small navigation menu in bbPress that can have a link pointing to the main site or pages on it?

    Thank you.

    #31763

    Topic: Google Analytics

    in forum Installation
    InvTrdr
    Member

    Is it possible to add Google Analytics code to a bbPress forum? Did not see Editor under Appearance.

    Thank you.

    #79219

    Instead of uploading to bb-templates folder, create a folder my-templates in the bbPress root and upload the theme to my-templates folder.

    Then you can activate it under the Appearance options.

    If you face issues, then fix out their permisison issue by following this tutorial : http://blog.ashfame.com/2009/09/fix-my-templates-my-plugins-folder-not-working-bbpress/

    #79199
    chandersbs
    Member

    Copy and paste this code and save it as allow-images.php

    <?php

    /*

    Plugin Name: Allow Images

    Plugin URI: https://bbpress.org/#

    Description: Allows <img /> tags to be posted in your forums. The image must be a png, gif or jpeg.

    Author: Michael D Adams

    Author URI: http://blogwaffe.com/

    Version: 0.7.1

    */

    // You can add more tags here

    function allow_images_allowed_tags( $tags ) {

    $tags = array(‘src’ => array(), ‘title’ => array(), ‘alt’ => array());

    return $tags;

    }

    function allow_images_encode_bad( $text ) {

    $text = wp_specialchars( $text );

    $text = preg_replace(‘|
    |’, ‘
    ‘, $text);

    foreach ( bb_allowed_tags() as $tag => $args ) {

    if ( ‘br’ == $tag )

    continue;

    if ( $args )

    $text = preg_replace(“|<(/?$tag.*?)>|”, ‘<$1>’, $text);

    else

    $text = preg_replace(“|<(/?$tag)>|”, ‘<$1>’, $text);

    }

    $text = preg_replace(“|(.*?)|se”, “‘' . encodeit('$1') . '‘”, $text);

    return $text;

    }

    function allow_images( $text ) {

    if ( preg_match_all(‘/<img(.+?)src=(“|’)(.+?)\2(.+?)>/i’, $text, $matches, PREG_SET_ORDER ) )

    foreach( $matches as $match )

    if (

    preg_match(‘/src=/i’, $match[4]) // multiple src = someone’s trying to cheat

    ||

    !in_array(substr($match[3], -4), array(‘.png’, ‘.jpg’, ‘.gif’)) // only match .jpg, .gif, .png

    &&

    ‘.jpeg’ != substr($match[3], -5) // and .jpeg

    )

    $text = str_replace($match[0], ”, $text);

    return $text;

    }

    remove_filter( ‘pre_post’, ‘encode_bad’ );

    add_filter( ‘pre_post’, ‘allow_images_encode_bad’, 9 );

    add_filter( ‘pre_post’, ‘allow_images’, 52 );

    add_filter( ‘bb_allowed_tags’, ‘allow_images_allowed_tags’ );

    ?>

    Upload it to your my-plugins folder, create if it doesn’t exist. And activate it.

    #79218
    chandersbs
    Member

    Unzip and upload it to your bb-templates folder, login as admin and go to Appearance, there you will see all your uploaded themes, click to activate.

    #31761
    InvTrdr
    Member

    I did not see a way to upload new themes into bbPress like as in WP. Is there a way to upload new themes downloaded from the web in bbPress and activate them? I saved a couple in zip format and cannot see where to upload them.

    Thank you.

    #79137
    InvTrdr
    Member

    The error message was “DB Error: cannot find”. Figured out that for some reason the database name filled in during step1 was not caught by the bbpress-config.php file as you can see in the code above. The BBDB_NAME has been left “bbpress” as in default. Changed it in the file and it worked. Now onto Step2.

    Thanks.

    #79173
    chrishajer
    Participant

    I just checked out 1.0.2 via svn and I see backpress is included as an external:

    Fetching external item into 'bb-includes/backpress/pomo'
    A bb-includes/backpress/pomo/mo.php
    A bb-includes/backpress/pomo/sample
    A bb-includes/backpress/pomo/sample/app.php
    A bb-includes/backpress/pomo/sample/languages
    A bb-includes/backpress/pomo/sample/languages/app.pot
    A bb-includes/backpress/pomo/sample/languages/bg.mo
    A bb-includes/backpress/pomo/sample/languages/app-side.pot
    A bb-includes/backpress/pomo/sample/languages/bg-side.mo
    A bb-includes/backpress/pomo/sample/languages/bg.po
    A bb-includes/backpress/pomo/sample/languages/bg-side.po
    A bb-includes/backpress/pomo/po.php
    A bb-includes/backpress/pomo/streams.php
    A bb-includes/backpress/pomo/entry.php
    A bb-includes/backpress/pomo/translations.php
    Checked out external at revision 191.

    It’s actually included in the packaged download here too:

    https://bbpress.org/latest.zip

    https://bbpress.org/latest.tar.gz

    I don’t think using trac to grab the source is the same as actually downloading the package. Maybe that was the problem?

    #79172
    chrishajer
    Participant

    Interesting. I recall a while back that backpress had to be added manually, but I thought that was resolved. backpress has it’s own trac:

    http://backpress.automattic.com/browser/tags

    Maybe you can grab it from there and create a backpress directory in bb-includes and put the files there? Maybe an svn:external failed? It’s a weird error that I have not seen before, at least not since the alpha versions of 1.0.

    https://bbpress.org/forums/topic/beta-problem#post-23312

    #31754

    Topic: Usability ideas

    in forum Showcase
    chandersbs
    Member

    Guys,

    Which things (hacks, plugins, tweaks), will make a forum the most bad-ass forum out there.

    I usually go around and see what other sites have and try to incorporate some of the things I like. Sometimes I come with own ideas.

    Its always nice to hear from other webmasters what they think are the bad-ass things.

    So, question is, how can we make our bbpress forums, more user friendly?

Viewing 25 results - 48,651 through 48,675 (of 64,509 total)
Skip to toolbar