Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 19,551 through 19,575 (of 32,518 total)
  • Author
    Search Results
  • #102988

    what is it that you dont understand?

    Just edit bb-load.php on line 25.

    From

    error_reporting( E_ALL ^ E_NOTICE );

    to

    error_reporting( E_ALL ^ E_DEPRECATED ^ E_NOTICE);

    #97888

    what is it that you dont understand?

    Just edit bb-load.php on line 25.

    From

    error_reporting( E_ALL ^ E_NOTICE );

    to

    error_reporting( E_ALL ^ E_DEPRECATED ^ E_NOTICE);

    #77535

    In reply to: All RSS Feeds Broken?

    Lazza
    Participant

    I think I’ve created a quite strong code for the RSS. It allows plugins to apply their filters (example: smilies!!!). It fixes problems with double apersand encoding and ” ” not working well with UTF-8. It also fixes the date of items which is not valid if you use localization, even if the options array sets “false” on “localize”.

    Feel free to try the code for yourself, it works with stock bbPress 1.0.2. You JUST need to put this content in your rss2.php (check the theme folder).

    <?php
    header( 'Content-Type: text/xml; charset=UTF-8' );
    echo '<' . '?xml version="1.0" encoding="UTF-8"?' . '>' . "n";
    bb_generator( 'comment' );

    function datefix($buffer) {
    /*
    * fix della data in modo da tenerla in inglese, rispettando
    * le specifiche dei feed RSS
    */
    return gmdate('D, d M Y H:i:s +0000', $buffer);
    }

    function callback($buffer)
    {
    /*
    * sistema il codice rimuovendo la doppia codifica di "&" e
    * rimuove il carattere "&nbsp;" che crea problemi con UTF-8
    * in questo modo ho il testo del post dopo che i plugin (tipo
    * le faccine) hanno applicato le loro modifiche html e ritorno
    * il codice html senza entities ma in forma pura
    */

    $single = str_replace("&", "&", $buffer);
    $spaced = str_replace("&nbsp;", " ", $single);
    return html_entity_decode($spaced);
    }

    ?>
    <rss version="2.0"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
    <title><?php echo $title; ?></title>
    <link><?php echo $link; ?></link>
    <description><![CDATA[<?php echo $description; ?>]]></description>
    <language><?php esc_html( bb_option('language') ); ?></language>
    <pubDate><?php echo gmdate('D, d M Y H:i:s +0000'); ?></pubDate>
    <?php bb_generator( 'rss2' ); ?>
    <textInput>
    <title><![CDATA[<?php _e('Search'); ?>]]></title>
    <description><![CDATA[<?php _e('Search all topics from these forums.'); ?>]]></description>
    <name>q</name>
    <link><?php bb_uri('search.php'); ?></link>
    </textInput>
    <atom:link href="<?php echo $link_self; ?>" rel="self" type="application/rss+xml" />

    <?php foreach ($posts as $bb_post) : ?>
    <item>
    <title><?php post_author(); ?> <?php _e('on')?> "<?php topic_title( $bb_post->topic_id ); ?>"</title>
    <link><?php post_link(); ?></link>
    <pubDate><?php

    ob_start("datefix");
    bb_post_time('U');
    ob_end_flush();

    ?></pubDate>
    <dc:creator><?php post_author(); ?></dc:creator>
    <guid isPermaLink="false"><?php post_id(); ?>@<?php bb_uri(); ?></guid>
    <description><![CDATA[<?php

    ob_start("callback");
    post_text();
    ob_end_flush();

    ?>]]></description>
    </item>
    <?php endforeach; ?>

    </channel>
    </rss>

    Sorry for comments in italian.

    BTW @ yoyopop, I don’t remember in which topic, but I read on this forum that the problem is related to some plugins having extra spaces in their code before the opening “<?php” tag. Check it…

    #36395

    Topic: My Style

    in forum Showcase
    MathiasB
    Member

    http://www.webcreatures.be

    There can you take a look at my customized bbPress setup :)

    #36390
    Snat
    Member

    Hey,

    I have currently converted my IP.Board site over to bbPress but having a bit of a design issue.

    I am current looking for a way so that on the index page, only one level of sub forums are shown in a row. So basically like this.

    Main Forum

    – Sub Forum 1, Sub Forum 2

    I have found some examples that shows how to list the sub forums like that but I have played about with it and I haven’t been able just to get it to show just one level of sub forums.

    My current index code is as follow. I would be very grateful if someone could help me with this.

    http://wordpress.pastebin.com/8Gt738EP

    Thanks.

    #103069

    In reply to: bbPress error

    Rich Pedley
    Member

    open up plugins/bbpress/bbpress.php do you see:

    /**
    * Plugin Name: bbPress
    * Plugin URI: http://bbpress.org
    * Description: bbPress is forum software with a twist from the creators of WordPress.
    * Author: The bbPress Community
    * Author URI: http://bbpress.org
    * Version: plugin-bleeding
    */

    #97969

    In reply to: bbPress error

    Rich Pedley
    Member

    open up plugins/bbpress/bbpress.php do you see:

    /**
    * Plugin Name: bbPress
    * Plugin URI: http://bbpress.org
    * Description: bbPress is forum software with a twist from the creators of WordPress.
    * Author: The bbPress Community
    * Author URI: http://bbpress.org
    * Version: plugin-bleeding
    */

    #94702
    Snat
    Member

    Thanks for that John. Will have a look on Trac and see what I can help with.

    Thanks for the reply :)

    Jaja..
    Member

    Okay, i have been reading this forum for a few hours now and i need somebody to tell me what’s best.

    First, i have installed bbPress once before, a few months ago to give it a try and see if it was something for me because i’m a fan of the WordPress system and it’s plugins.

    It worked very good i had no problems because i just needed some basic plugins nothing fancy, but it was only a testing install and never got public before i deleted it.

    But now i need to get things going and start building for some project.

    I have this project where 2 different game-based sites have to match each other and become one, it’s a game-blog and game-forum based site so thats why i was first thinking of a WordPress site along with a bbPress forum. Very simple and deep integrated in each other to keep both working together.

    But when i read this support forum it makes me turn around a few times and not knowing what to do best. Should i go for the bbPress (standalone) version or should i wait for the bbPress WordPress plugin.. I don’t know how things are working out on that side but it feels like this plugin take forever,, No i don’t wanna be rude to all people working on it, (only respect) but is there a time-period set for this plugin to be released?

    And if there is one, will it become Beta first and after 2 or 3 years a final and stable product?

    What will happen to people (forums) using the bbPress standalone version? will there be a settings option so we could update or upgrade our standalone version to the WordPress plugin version without losing the forum-data?

    Or should we start all over again with a fresh clean install?

    And yes, i’m already thinking of switching to the plugin based bbPress because i think the standalone version will not be supported and looked after when the plugin version goes live.

    Also something i would like to know, i’ve also read a few spam topics with people having trouble catching spam bots..

    Is this a regular thing? Because it’s bbPress, it attach spam bots like every clean installed WordPress site will have a spam message in 5 days without doing anything on the site..

    I don’t mind if there is something to catch those gangsters but if bbPress has some kind of “weak” (spam) based code i will not like the forum idea for my site.

    Don’t get me wrong, i don’t mind to delete a spam message once in a while but if i daily need to delete 25 spam messages while i have running a spam-catch plugin it will not make me very happy..

    So could anybody tell me what to do?

    I like the bbPress system because it’s “easy” to customize and you’re not working in all the same community themes like you see on most forums..

    #94700

    Just pushed an update through that is a solid first pass at forum and topic freshness. Some testing would be awesome.

    Things @todo on this front: sub-forum tree topic/reply walking, better hierarchical reply support (topic walker), and go get a burrito (dinner)

    :)

    #94699

    It is not currently in the plugin but is a must-have before beta.

    Depending on your level of experience with writing importers and exporters, it might be a good idea to get started now and prepare for some minor changes in data storage that might happen along the way.

    The plugin isn’t really meant to completely replace the stand-alone version in my eyes, since they are two totally different approaches to a similar need. So without being vague to the point if unhelpful, it really comes down to how urgently you need to make the switch and how much work you’re willing to put into getting there.

    If it were me, I’d concentrate efforts towards the plugin since it could use the most eyes on the code right now, and is more likely to see advancements and enhancements in the future.

    #94698
    Snat
    Member

    Quick question if no one minds (not sure if it has been asked before or not as I can not find it by searching for it).

    Does bbPress Plugin have migration from the current stand alone bbPress in mind or is that something that is planned after the main release or something that is not planned yet ?

    Just wondering as some clients wants to move from IP.Board to bbPress and I am not sure if I should write a import plugin now to the current version or wait until the plugin is fully released.

    Nice work btw :)

    Will pop onto Trac later and see if there is anything I can help out with.

    #103049
    Metal
    Member

    Resim eklemek için veya yazıyı kalınlaştırmak için tıklama yeri butonlar yokmu yaww nasıl bir forum sistemi bu :(

    #97949
    Metal
    Member

    Resim eklemek için veya yazıyı kalınlaştırmak için tıklama yeri butonlar yokmu yaww nasıl bir forum sistemi bu :(

    #94694
    Commentguerir
    Participant

    edit : we can activate anonymous posting on editing file bbp-includes/bbp-users.php on editing this code :

    function bbp_allow_anonymous () {

    return apply_filters( ‘bbp_allow_anonymous’, get_option( ‘bbp_allow_anonymous’, false ) );

    }

    change false -> true

    #102872
    _ck_
    Participant

    This is likely a permissions bug with 1.1 dealing with anonymous posts being edited by admin.

    Someone will have to look through the code (if the bug can be duplicated).

    #97772
    _ck_
    Participant

    This is likely a permissions bug with 1.1 dealing with anonymous posts being edited by admin.

    Someone will have to look through the code (if the bug can be duplicated).

    #92984
    zaerl
    Participant

    Cause wp_head isn’t automatically called by WordPress. It’s a template tag function that themes’ authors usually put between head elements.

    https://codex.wordpress.org/Function_Reference/wp_head

    #94688
    Rich Pedley
    Member

    It’s fairly easy to do ;)

    check the style.css in the included twentyten child theme and you’ll see this:

    /**
    * Theme Name: bbPress - Twenty Ten
    * Theme URI: http://bbpress.org
    * Description: Adds bbPress forums to Twenty Ten theme
    * Author: The bbPress Community
    * Version: 0.1
    * Template: twentyten
    * Tags: bbpress, black, blue, white, two-columns, fixed-width, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style
    */

    The template denotes another available theme that you are making this the child of. If you include the main style sheet, you don’t need to re-reference everything. eg. @import url("../twentyten/style.css");

    So create a new theme directory by including that, and copy all the other files(ie not style.css) from plugins/bbpress/bbp-themes/bbp-twentyten (not forgetting to rename the Theme name)

    However you might want to copy in the default style, this start’s with:

    /* bbPress Style
    
    */

    Then you need to check where the get_header(), get_sidebar() & get_footer() are in your parent theme.

    If they are in this order:

    get_header();
    /* Content */
    get_sidebar();
    get_footer();

    you don’t have to do anything.

    However if they are in a different order you may need to adjust, currently they reside in the following files:

    page-bbp_form.php

    author.php

    taxonomy-bbp_topic.php

    single-bbp_topic.php

    single-bbp_reply.php

    single-bbp_forum.php

    page-bbp_topics.php

    page-bbp_front.php

    and I think that is all that’s needed! (untested though)

    #94687
    gswaim
    Participant

    @JJJ

    I have been waiting for a WP forum plug-in for so long, I don’t mind working with page templates to be one of the early adopters. If short code support comes later, then that would be icing on the cake.

    I do hope, at some point, detailed information is available on how to build the bbPress pages for other themes. As long as this documentation is avaialble, I don’t think this should be a deal breaker for anybody.

    Thanks!

    #103005
    Wiishy
    Member

    Where? In the codes or when you install bbpress?

    #97905
    Wiishy
    Member

    Where? In the codes or when you install bbpress?

    #79428
    3sixty
    Member

    @chrishajer, thanks for this great plugin. I further extended it by hacking the post-form to have a drop down containing allowed tags (albeit I just hard-coded them in a rush) and also to limit the number of tags allowed per post. I further extended it by only enabling it in certain forums.

    These are all fairly Stupid Coding Tricks but if there’s any interest out there, let me know what you need and I’ll post it up here.

    #94684

    All of the theme ideas are things that can be possible, but as a first pass to get something usable it has a child theme of twentyten. It will have it’s own theme that can be used as a parent, and I love the shortcode idea but it will be rather difficult to customize in the long run, since try would be hard coded inside the plugin and not part of a customizable theme.

    #94682

    ricardo:

    Rich Pedley: There won’t be loads, but I’m confident there will be a few. But more importantly there will be documentation on how to adapt existing themes. This is where child themes come in really handy.

    WordPress has themes, and bbpress as a pluggin will have themes aswell?

    Yes, what I think the HUGE misconception is here with Themes and bbPress (Plugin) is because BuddyPress does it differently being that they go down a Parent Theme route (but they have reasons being the way things are done, and the vast array of different templates), whereas we’re going for a Child Theme (where really it’s no different, we’re using the TwentyTen templates, and adding in what extra is needed for bbPress!)

    Anyway …

    ricardouk: Really hope we can “display” the forum in a wordpress page, from what i read when searching these forums a large majority wanted bbpress to have same theme as wordpress.

    I seem to recall that it was Matt Mullenwegs vision of seeing a shortcode or something where you could place it wherever, and a Forum Topic or that would appear! — I’m sure he talked about it on the bbPress Blog at one stage, maybe in the comments?

Viewing 25 results - 19,551 through 19,575 (of 32,518 total)
Skip to toolbar