Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 26,951 through 26,975 (of 32,467 total)
  • Author
    Search Results
  • #3749
    bmc_webdev
    Member

    I have an installation of bbpress 0.9 (installed independent from WordPress).

    When I pull the rss feed, I get code that looks like this:

    <item>
    <title>Anonymous on "Hello"</title>
    <link>http://forums.brynmawr.edu/topic.php?id=2#post-8</link>
    <pubDate>Fri, 29 Aug 2008 21:45:22 +0000</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <guid isPermaLink="false">8@http://forums.brynmawr.edu/</guid>
    <description><p>test
    </p></description>
    </item>

    The <p> is a <p> tag that is entity-encoded (I presume so that <p> won’t be parsed as an XML tag by an XML parser).

    This is causing an issue with the feed parser that I am using (lastRSS): the parser is passing the <description> contents through unchanged, and so I’m getting literal “<p>” and “<p/>” on the pages that use lastRSS.

    I believe that the standard method of embedding HTML into an XML feed (or any XML document) is to use CDATA blocks:

    <description><![CDATA[<p>test
    </p>]]></description>

    and this is the way feeds from wordpress, blogger, etc are formatted. bbpress should really do the same thing so that feed parsers like lastRSS will pass through correct HTML (in this example, text wrapped by a paragraph tag, rather than text with character entities that cause the browser to display the literal characters)

    Can the feed generator code be changed to use CDATA blocks?

    Thank you.

    #67127
    benzilla069
    Member

    I’m just trying ghetto solutions at the moment just to see if I can actually get something to work.

    $SQLtopic_id = 3;

    $SQLtopic_title = 'Test';

    $SQLtopic_slug = 'topic-test-slug';

    $SQLtopic_poster = '1';

    $SQLtopic_poster_name = 'admin';

    $SQLtopic_last_poster = 1;

    $SQLtopic_last_poster_name = 'admin';

    $SQLtopic_start_time;

    $SQLtopic_topic_time;

    $SQLtopic_forum_id = 1;

    $SQLtopic_topic_status = 0;

    $SQLtopic_open = 1;

    $SQLtopic_last_post_id = 1;

    $SQLtopic_topic_sticky = 0;

    $SQLtopic_posts = 1;

    $SQLtopic_tag_count = 0;

    //$SQLtopic_id, $SQLtopic_title, $SQLtopic_slug, $SQLtopic_poster, $SQLtopic_poster_name, $SQLtopic_last_poster, $SQLtopic_last_poster_name, $SQLtopic_start_time, $SQLtopic_topic_time, $SQLtopic_forum_id, $SQLtopic_topic_status, $SQLtopic_open, $SQLtopic_last_post_id, $SQLtopic_topic_sticky, $SQLtopic_posts, $SQLtopic_tag_count

    // set database server access variables:

    $host = “”;

    $user = “”;

    $pass = “”;

    $db = “”;

    // open connection

    $connection = mysql_connect($host, $user, $pass) or die (“Unable to connect!”);

    // select database

    mysql_select_db($db) or die (“Unable to select database!”);

    mysql_query(“INSERT INTO bb_topics (topic_id, topic_title, topic_slug, topic_poster, topic_poster_name, topic_last_poster, topic_last_poster_name, topic_start_time, topic_time, forum_id, topic_status, topic_open, topic_last_post_id, topic_sticky, topic_posts, tag_count)

    VALUES ($SQLtopic_id, $SQLtopic_title, $SQLtopic_slug, $SQLtopic_poster, $SQLtopic_poster_name, $SQLtopic_last_poster, $SQLtopic_last_poster_name, $SQLtopic_start_time, $SQLtopic_topic_time, $SQLtopic_forum_id, $SQLtopic_topic_status, $SQLtopic_open, $SQLtopic_last_post_id, $SQLtopic_topic_sticky, $SQLtopic_posts, $SQLtopic_tag_count)”);

    mysql_close($connection);

    Adds nothing to the database.

    #67261
    meitershaker
    Member

    hi ck! i try to do that for the delete_link: http://pastebin.com/m1152200f

    but nothing happens :( why?

    #3928
    kannued
    Participant

    I run multiple forums using a single database. I successfully upgraded my first forum. Now, I’m trying to upgrade my second. In my install of the upgrade for the second forum, at the second step, it flipped out of the install to my first forum. In bb-config, I changed this line to my database name for this forum.

    $bb_table_prefix = 'clubs'; // Only letters, numbers and underscores please!

    Then when I called the url for the second forum, the install re-occurred at the second step which I was able to continue successfully to the end.

    When I called on the url for the second forum, it did appear. But when I try to login on the second forum, I get an error message “Could not determine site URI”. The url is suddenly my first forum “http://www.example.com/firstforum/bb-login.php&#8221;

    What do I need to change so I can login to my second forum?

    #67304
    eliza_ann
    Member

    Thank you so much ck! I hadn’t resolved a cookies issue and was still logged in without realizing it, so I didn’t realize I was still viewing it with admin privs. If I’d just stopped for the night like I knew I should, and looked at it fresh in the morning, I wouldn’t have troubled anyone. Lesson learned. Listen to your inner clock! :D

    Thanks again. Your plugins and support are top notch, and your hard work is greatly appreciated.

    #67339

    In reply to: All setting use cache

    _ck_
    Participant

    leoleoleo (and everyone) put this line into bb-config.php (before the “stop editing” part)

    $bb->load_options = true;

    That should slice at least 100ms off that time and reduce the queries by half. I still don’t understand why it’s not the bbPress default.

    “Forum is category” is not needed under bbPress 1.0 which does category forums internally.

    Also, the bb-gzip plugin is only necessary if your server does not already compress pages, which is rare these days, so make sure you are not duplicating the effort.

    Some of my plugins are still not optimized for 1.0 so they might be slower or cause more queries than under 0.9

    #67338

    In reply to: All setting use cache

    leoleoleo
    Member

    Because my bbpress “Page made in 0.317 seconds, 29 queries. ” . I am using bbPress 1.0 Alpha

    and installed plugins is

    bb-rating

    bbPress Polls

    BBcode Buttons Toolbar

    All Settings

    Allow Images

    bbPress Web Compression (bb-gzip)

    Forum is category

    BBPress Private Messaging

    BB-Ads

    Quote

    #67336

    In reply to: All setting use cache

    chrishajer
    Participant

    From the FAQ:

    serialized and boolean data (true/false) cannot be edited at this time for safety reasons - that may eventually change

    Based on that, I don’t think you can, at least not with this version.

    #67326
    kannued
    Participant

    What is this Add button for?

    <p>

    184<input name="tag" type="text" id="tag" size="10" maxlength="30" />

    185<input type="hidden" name="id" value="36" />

    186<input type="submit" name="Submit" id="tagformsub" value="Add »" />

    187</p>

    #3922
    kannued
    Participant

    I upgraded from 8.3 to 9.0.2. The main forum pages are fine but I have style sheet problems when I go to a topic. My style sheet is three columns. In IE6, in a post, the main column is wrapping onto my left column, and obliterating most of my right column. I never had this problem with 8.3.

    Firefox2 is readable. But there is a blank box with an “Add” button that is creating width problems. Otherwise the columns are sizing correctly.

    Here is my code:

    #main {
    position: relative;
    width: auto;
    margin: 0px 0px 0px 0px;
    color: #000000;
    background: #ffffff;
    padding: 10px;
    z-index: 3;
    }

    It appears that I need a special style now for the topics in my style sheet?

    #67274
    _ck_
    Participant

    This all comes down to the ldap so you are going to have to ask the author directly (apparently Sam who is very busy these days on bbPress 1.0 development) or hope that there are other ldap users who know. Personally I have to go lookup what the heck ldap is in the first place ;-)

    I will suggest this much – if you are using 1.0 alpha, the plugin has probably broken compatibility with it and is only meant for 0.9

    #67299

    In reply to: Is BBPress Any Good?

    _ck_
    Participant

    bbPress is also very young so expectations should not be as high as WordPress (ie. robust plugin library). It’s about equal to WordPress back in 2003. While it benefits from code development on WordPress, it’s still 5 years younger.

    But writing plugins for bbPress is as easy for WordPress (and in some cases easier because of improvements over WordPress’s legacy design). I’m definitely an example of this as I had never written a full PHP program or plugin of any kind before my bbPress plugins.

    #3919
    meitershaker
    Member

    Hi,

    like phpBB, i think it is interesting to open a wiki (with dokuwiki? :) )

    why? because for example, i have many ideas of plugins, but the documentation is too small for i can understand how to do that :/

    so, it is possible or not? :p

    please please please :p

    #67296

    In reply to: Is BBPress Any Good?

    thion
    Member

    For me it’s clear – bbPress puts user first, but it sucks without developer – I’m talking about board developer, not script developers ;). Someone need to set up forum first, and he is using this great engine-core as I’m calling it with additional plugins he need – if one is creating forum for php coders, then he don’t need bbcode or any form of editor, as users will know stuff. This forum for example don’t need editor because its target is people who are developing using bbPress.

    For me, it’s a library of functions ready to set up a great, huge and fast forum – if you want a board like “set up and forget about it” then go and use phpbb3 – huge, slow with thousands of useless options. But if you’re a developer, then there’s nothing better than bbPress for you.

    #67295

    In reply to: Is BBPress Any Good?

    lstelie
    Member

    Hello,

    Notice : there is no pun intended in what follow, no troll intended, no critic, no aggressive talk and so on.

    Pat1953 question is an interesting one, a question that I asked to myself sometimes.

    The « problem » with BBpress is that for an average user (perhaps it’s different for developers) there is no clear direction about where the software is going.

    I was very early WP user (and I’m still a very happy WP user) so when BBPress appears a lot of years (in internet time) ago, i tried it.

    Then I used several other package more polished, more feature packed and so on.

    I came back to BBPress learning that Automattic was founded hopping this could mean a strong development for the forum software and hopefully a real integration with WP.

    What is strange with BBPress is that despite it’s a rather old forum software, it is still (from a user perspective) far behind scripts that are developped by a single guy (for example in the WP world, Simple :Press is far more sophisticated and integrated) and it has a very strange way of describing it self.

    For example reading The Philisophy it’s written “Put the user first”… despite the fact BBpress is now probably the only forum script without any editor (even a BB code functionality requires a third part plug in), the only one which end users are supposed to know a little bit of HTML.

    The integration with WP is also a very strange aspect. By integration I’m not talking about sharing users base and connection, but real semantic integration.

    WP lacks a forum part. I maintain a personal website since now close to 10 years and it’s clear for me now (it was not clear at first) that comments, and forum discussions are not the same things, and that they address different needs.

    A comment will be buried in the weblog archives after a few days so finding it will be near impossible for a classic visitor.

    On the other hand, forum post are better ordered, easier and more natural to find out and son on.

    So if I write a blog post about my holidays and two readers answer “cool, it seem it was great”.. comments are exactly what I need.

    If I write a blog post about a very interesting thing that will be still of a great interest two years later (even two months later) its better to redirect people to a forum topic, because the discussion will be interesting and deserve to be kept and easy to find out.

    So after many years of WP use, I think BBpress is a required integrated part of WP.

    But nothing is very clear in BBpress documentation about where the project is heading.

    Luc

    #3915
    meitershaker
    Member

    Hi,

    with this plugin: http://bbpress.org/plugins/topic/live-comment-preview/

    with the 1.0 alpha, the ajax effect doesn’t work, i have only the button :/

    the author is here?

    i think it is necessary to put a “last visit” field in the profile of developers here lol

    Bye!

    #66702

    In reply to: bbPress 1.0 alpha

    thion
    Member

    So how do you think, when Official 1.0 will be ready? :)

    #67294

    In reply to: Is BBPress Any Good?

    thion
    Member

    > What do I get with bbPress?

    The most coder-friendly Engine Core I ever seen :P. If you know how to code of course – coding plugins for bbPress is a pure pleasure.

    #3913
    pab1953
    Member

    In vBulletin, if I want to pay $180, I could get the Porsche (reportedly) of message boards. In phpBB, if I want to grapple with a sizable infrastructure, I could get perhaps the most seasoned of the free forum systems.

    What do I get with bbPress? Is it secure? Will it get spammed to death? Is it stable? Is it designed for personal sites or can businesses use it with confidence?

    Here’s one very specific question: How do I add a link to bbPress to take people back to my WordPress home page?

    BTW, the installation was a breeze. :)

    #67275

    In reply to: Dreampush.com

    meitershaker
    Member

    very nice! bravo!

    little question: how to add “Joined: Apr ’08, Posts: 11” under the avatar in posts? thanks :p

    nice theme ;)

    ++

    #3907

    Topic: Dreampush.com

    in forum Showcase
    haagendazs1
    Member

    Come check out my bbpress forum for lucid dreamers!

    http://dreampush.com is the main site

    http://dreampush.com/forums/ is the bbpress forum

    Tell me what you think! :)

    #67258
    _ck_
    Participant

    You’d need to add a filter, something like this (untested)

    function edit_link_icon($r,$post_id) {return "<img src='/images/edit_link_icon.png'>".$r;}
    add_filter('bb_get_post_edit_link', 'edit_link_icon',10,2);

    #3900
    meitershaker
    Member

    Hi,

    i would like to add icons at the function bb_post_admin in post;php

    i see that is template-functions. but how to add this within edit the core files?

    example, add icon at:

    1401 function bb_get_post_edit_link( $post_id = 0 ) {

    1402 $bb_post = bb_get_post( get_post_id( $post_id ) );

    1403 if ( bb_current_user_can( 'edit_post', $bb_post->post_id ) ) {

    1404 $uri = bb_get_uri('edit.php', array('id' => $bb_post->post_id));

    1405 $r = "post_id ) ) . "'>". __('Edit') ."";

    1406 return apply_filters('bb_get_post_edit_link', $r, get_post_id( $post_id ) );

    1407 }

    1408 }

    in $r

    thanks,

    bye!

    _ck_
    Participant

    Technically you’re not supposed to have more than one H1 on any given html page (though browsers don’t care and will render anyway). The trailing BR is a problem with bbPress’s parser.

    Why don’t you use the built in ability of BBcode to do SIZE instead?

    Large Text
    [size=+1]text larger than default size[/size]
    default size
    [size=-1]text smaller than default size[/size]

    meitershaker
    Member

    help please, i’m very lost lol.

    so, it is possible to add colors in bbcode, like in phpbb or punbb?

    thanks.

Viewing 25 results - 26,951 through 26,975 (of 32,467 total)
Skip to toolbar