Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'test'

Viewing 25 results - 8,201 through 8,225 (of 11,578 total)
  • Author
    Search Results
  • #86300

    In reply to: All forums RSS feed?

    zaerl
    Participant

    File rss.php at line 182. It seems that bbPress retrieves the last 35 posts if called like /rss

    if ( !$posts = bb_get_latest_posts( 35 ) )
    die();

    you can add a new case on top of that file but I don’t think that it’s a wise choice expecially if you have a huge forum.

    #86161
    jomontvm
    Participant

    Hi Pagal,

    I have customized the permalink for bbpress, and it works fine. It’s still on the testing stage, though you can try this. The following is the modifications I have done.

    Step 1:


    Open ‘bb-admin/options-permalinks.php’

    You will find a permalink options declaration. Add one more option as shown below, it will add one more option in the permalink options in the backend. You can make the custom option with a text field, in order to customize in your own way (I have done in a predefined format in order to make it simple).


    $permalink_options = array(
    'mod_rewrite' => array(
    'title' => __( 'Permalink type' ),
    'type' => 'radio',
    'options' => array(
    '0' => sprintf( __( '<span>None</span> %s' ), bb_get_uri( 'forum.php', array( 'id' => 1 ), BB_URI_CONTEXT_TEXT ) ),
    '1' => sprintf( __( '<span>Numeric</span> %s' ), bb_get_uri( 'forum/1', null, BB_URI_CONTEXT_TEXT ) ),
    'slugs' => sprintf( __( '<span>Name based</span> %s' ), bb_get_uri( '/forum/first-forum', null, BB_URI_CONTEXT_TEXT ) ),
    'custom' => sprintf( __( '<span>Custom</span> %s' ), bb_get_uri( '/forum/%parent_slug%/%forum_slug%', null, BB_URI_CONTEXT_TEXT ))
    )
    )
    );

    Step 2:


    Now we have to create the custom format of permalinks for forums and topics.

    Open ‘bb-includes/functions.bb-template.php’

    We have to modify two functions ‘get_forum_link’ and ‘get_topic_link’. See the changes I have done for the custom permalink option.


    function get_forum_link( $forum_id = 0, $page = 1, $context = BB_URI_CONTEXT_A_HREF ) {
    $forum = bb_get_forum( get_forum_id( $forum_id ) );

    if (!$context || !is_integer($context)) {
    $context = BB_URI_CONTEXT_A_HREF;
    }

    $rewrite = bb_get_option( 'mod_rewrite' );

    if ( $rewrite ) {
    $page = (1 < $page) ? '/page/' . $page : '';
    if ($rewrite === 'custom') {
    if ($forum->forum_parent > 0) {
    $parent = bb_get_forum($forum->forum_parent);
    $parent_slug = $parent->forum_slug;
    $custom_link = $parent_slug . '/' . $forum->forum_slug;
    } else {
    $custom_link = $forum->forum_slug;
    }
    $link = bb_get_uri('forum/' . $custom_link . $page, null, $context);
    } else {
    if ( $rewrite === 'slugs' ) {
    $column = 'forum_slug';
    } else {
    $column = 'forum_id';
    }
    $link = bb_get_uri('forum/' . $forum->$column . $page, null, $context);
    }
    } else {
    $query = array(
    'id' => $forum->forum_id,
    'page' => (1 < $page) ? $page : false
    );
    $link = bb_get_uri('forum.php', $query, $context);
    }

    return apply_filters( 'get_forum_link', $link, $forum->forum_id, $context );
    }

    function get_topic_link( $id = 0, $page = 1, $context = BB_URI_CONTEXT_A_HREF ) {
    $topic = get_topic( get_topic_id( $id ) );
    if (!$context || !is_integer($context)) {
    $context = BB_URI_CONTEXT_A_HREF;
    }

    $args = array();

    $rewrite = bb_get_option( 'mod_rewrite' );
    if ( $rewrite ) {
    $page = (1 < $page) ? '/page/' . $page : '';
    if ($rewrite === 'custom') {
    $custom_link = '';
    if ($topic->forum_id > 0) {
    $forum = bb_get_forum($topic->forum_id);
    if ($forum->forum_parent > 0) {
    $parent = bb_get_forum($forum->forum_parent);
    $custom_link = $parent->forum_slug;
    }
    $custom_link .= '/' . $forum->forum_slug;
    }
    if (!empty($custom_link)) {
    $custom_link .= '/topic/' . $topic->topic_slug;
    } else {
    $custom_link .= 'topic/' . $topic->topic_slug;
    }
    $link = bb_get_uri($custom_link . $page, null, $context);
    } else {
    if ( $rewrite === 'slugs' ) {
    $column = 'topic_slug';
    } else {
    $column = 'topic_id';
    }
    $link = bb_get_uri('topic/' . $topic->$column . $page, null, $context);
    }
    } else {
    $page = (1 < $page) ? $page : false;
    $link = bb_get_uri('topic.php', array('id' => $topic->topic_id, 'page' => $page), $context);
    }

    return apply_filters( 'get_topic_link', $link, $topic->topic_id, $context );
    }

    Step 3:


    Now we have to define the htaccess rules.

    Open ‘.htaccess’ file in bbpress root folder, and add following two lines just above the code line – RewriteRule ^topic/?$ /forums/ [R=302,L,QSA].


    RewriteRule ^(.+)/topic/(.+) /forums/topic.php?id=$2 [L,QSA]
    RewriteRule ^forum/(.+)/(.+) /forums/forum/$2/ [L,QSA]

    Here is how my URLs looks after making these modifications:

    Forum URL: mysite.com/forums/forum/en/first-forum-in-english

    Topic URL: mysite.com/forums/en/first-forum-in-english/topic/the-ipad-developers-challenge

    #84562

    In reply to: bbPress mobile version

    bforeste
    Member

    Strong interest in this plugin…will be waiting for details.

    I can do basic testing as well – happy to help.

    bforeste

    #33864
    56alifar
    Blocked

    Hi there,

    If you are looking for a BBpress and WordPress developer, than i’m your man!

    I’m studying WP for about 4 years and BBpress for about 1 year now.

    I make high premium WP sites with fully BBpress integrated.

    See my latest project: http://www.jahw.nl / forum: http://www.jahw.nl/forums

    I have an updated list with the best plugins and latest hacks for both WP and BBPress.

    If you are looking for help, don’t hesitate to contact me via my contact page on my website: http://www.jahw.nl/contact

    #33856
    zaerl
    Participant

    Hi there. I’m writing a small plugin and I need to check if the actual page is the last page of a topic. I’ve seen that this is the standard way:

    if(bb_current_user_can('write_posts') && bb_is_topic())
    {
    global $topic, $page;
    $add = topic_pages_add();
    $last_page = get_page_number( $topic->topic_posts + $add );

    if($last_page == $page) do whatever you want
    }

    but I want to use this code during the bb_init callback. It doesn’t work and after some simple tests I’ve seen that $topic isn’t defined (yet). Is there a way to get last page during this callback?

    Thanks in advance.

    #84750

    In reply to: Plugins You Want !!!

    chrishajer
    Participant

    I am not sure when the next release will be, and I’m not certain how difficult how hard it would be to get ‘subscribe to topic’ working. You could upgrade to the trunk release to get the functionality, but I don’t think I would recommend that in a production setting. Maybe you can install a test setup and see if everything you need works (especially plugins.)

    #86225

    Did it work when YOU tested it?

    #86209
    Alex Luft
    Participant

    Thanks for your reply, Chris.

    I haven’t tested it out yet, but it looks like that plugin will hide forums from members. I want regular “members” to be able to see the forum and read and reply to it but not be able to start their own topics.

    Does that make sense?

    #33847

    Topic: No Categories

    in forum Troubleshooting
    gbmphillips
    Member

    So yesterday everything looked great had Categories and topics under those Categories. Now this morning all I am seeing are the latest discussions and no Categories or topics. Not sure what happened.

    http://wings-pbem.net/bbpress

    absolutex
    Member

    I have changed server

    ERROR: Could not establish a database connection

    problem with

    define( ‘BBDB_USER’, ‘user_bbpress’ ); ?

    i have underscore in BBDB_USER and i get this error

    ERROR: Could not establish a database connection

    my old server is

    define( ‘BBDB_USER’, ‘bbpress’ ); is work!

    ….

    BBpress Latest Discussions (1.7.2) in wordpress could connect this database with Bbpress DB User: user_bbpress

    Kevin Ryman
    Participant

    Even though you changed your mind, this question of yours may come in handy to someone else. Thank you for asking. :)

    #86117
    chrishajer
    Participant

    First, you can use the Human Test plugin to prevent or at least minimize spammer logins.

    https://bbpress.org/plugins/topic/human-test/

    Second, not linking to the forum URL is not really hiding it. Spammers know to look for URLs like /forum, /forums, /bbpress, etc. No surprise there.

    If the forums are not active, why not just drop all the tables and reinstall?

    If they’re not active but have existing data, then you will need some SQL to drop all the users and all their posts and related meta info, if any. Did the spammers post anything, or just register? Or can you drop the tables and reinstall?

    #33832

    Hi,

    This would be my third post I made on this now (Sorry) (I seemed to have been bozo’ed on my other posts as my posts aint showing on my other computer which I think is off MOD’s – why would you do this ?) but really think this is a serious issue for the bbPress community.

    I like many others have the bb_rel_nofollow filter in place to help against the fight against spam. It some what works but… if I put rel=”follow” in the html markup in a post I can over ride the nofollow filters.

    A example can be seen on post 82/83 of my beta forum: http://www.diyextra.com/forum/topic/this-is-a-test-of-the-lenght-of-the-forum-title-test-123-and-again?replies=19#post-82

    Does anyone know of this problem and does anyone have a patch to this.

    Many Thanks in Advance.

    Chris

    #77528

    In reply to: All RSS Feeds Broken?

    Dailytalker
    Member

    I solved the problem!

    I removed all “»” in the rss.php

    Replace the code of your rss.php with the following code and it should work:

    <?php<br />
    require('./bb-load.php');</p>
    <p>// Determine the type of feed and the id of the object<br />
    if ( isset($_GET['view']) || bb_get_path() == 'view' ) {</p>
    <p> // View<br />
    $feed = 'view';<br />
    $feed_id = isset($_GET['view']) ? $_GET['view'] : bb_get_path(2);</p>
    <p>} elseif ( isset($_GET['topic']) || bb_get_path() == 'topic' ) {</p>
    <p> // Topic<br />
    $feed = 'topic';<br />
    $topic = get_topic(isset($_GET['topic']) ? $_GET['topic'] : bb_get_path(2));<br />
    $feed_id = $topic->topic_id;</p>
    <p>} elseif ( isset($_GET['profile']) || bb_get_path() == 'profile' ) {</p>
    <p> // Profile<br />
    $feed = 'profile';<br />
    $feed_id = isset($_GET['profile']) ? $_GET['profile'] : bb_get_path(2);</p>
    <p>} elseif ( isset($_GET['tag']) || bb_get_path() == 'tags' ) {</p>
    <p> if ( isset($_GET['topics']) || bb_get_path(3) == 'topics' ) {<br />
    // Tag recent topics<br />
    $feed = 'tag-topics';<br />
    } else {<br />
    // Tag recent posts<br />
    $feed = 'tag-posts';<br />
    }<br />
    $feed_id = isset($_GET['tag']) ? $_GET['tag'] : bb_get_path(2);</p>
    <p>} elseif ( isset($_GET['forum']) || bb_get_path() == 'forum' ) {</p>
    <p> if ( isset($_GET['topics']) || bb_get_path(3) == 'topics' ) {<br />
    // Forum recent topics<br />
    $feed = 'forum-topics';<br />
    } else {<br />
    // Forum recent posts<br />
    $feed = 'forum-posts';<br />
    }<br />
    $forum = bb_get_forum(isset($_GET['forum']) ? $_GET['forum'] : bb_get_path(2));<br />
    $feed_id = $forum->forum_id;</p>
    <p>} elseif ( isset($_GET['topics']) || bb_get_path() == 'topics' ) {</p>
    <p> // Recent topics<br />
    $feed = 'all-topics';</p>
    <p>} else {</p>
    <p> // Recent posts<br />
    $feed = 'all-posts';</p>
    <p>}</p>
    <p>// Initialise the override variable<br />
    $bb_db_override = false;<br />
    do_action( 'bb_rss.php_pre_db' );</p>
    <p>if ( !$bb_db_override ) {</p>
    <p> // Get the posts and the title for the given feed<br />
    switch ($feed) {<br />
    case 'view':<br />
    if ( !isset($bb_views[$feed_id]) )<br />
    die();<br />
    if ( !$bb_views[$feed_id]['feed'] )<br />
    die();<br />
    if ( !$topics_object = new BB_Query( 'topic', $bb_views[$feed_id]['query'], "bb_view_$feed_id" ) )<br />
    die();</p>
    <p> $topics = $topics_object->results;<br />
    if ( !$topics || !is_array($topics) )<br />
    die();</p>
    <p> $posts = array();<br />
    foreach ($topics as $topic) {<br />
    $posts[] = bb_get_first_post($topic->topic_id);<br />
    }</p>
    <p> $title = esc_html( sprintf( __( '%1$s View: %2$s' ), bb_get_option( 'name' ), $bb_views[$feed_id]['title'] ) );<br />
    $link = get_view_link($feed_id);<br />
    $link_self = bb_get_view_rss_link($feed_id);<br />
    break;</p>
    <p> case 'topic':<br />
    if ( !$topic = get_topic ( $feed_id ) )<br />
    die();<br />
    if ( !$posts = get_thread( $feed_id, 0, 1 ) )<br />
    die();<br />
    $title = esc_html( sprintf( __( '%1$s Topic: %2$s' ), bb_get_option( 'name' ), get_topic_title() ) );<br />
    $link = get_topic_link($feed_id);<br />
    $link_self = get_topic_rss_link($feed_id);<br />
    break;</p>
    <p> case 'profile':<br />
    if ( bb_get_option( 'mod_rewrite' ) === 'slugs' ) {<br />
    $user = bb_get_user_by_nicename( $feed_id );<br />
    } else {<br />
    $user = bb_get_user( $feed_id );<br />
    }<br />
    if ( !$user ) {<br />
    die();<br />
    }<br />
    if ( !$posts = get_user_favorites( $user->ID ) ) {<br />
    die();<br />
    }<br />
    $title = esc_html( sprintf( __( '%1$s User Favorites: %2$s' ), bb_get_option( 'name' ), $user->user_login ) );<br />
    $link = bb_get_profile_link($feed_id);<br />
    $link_self = get_favorites_rss_link($feed_id);<br />
    break;</p>
    <p> case 'tag-topics':<br />
    if ( !$tag = bb_get_tag( $feed_id ) )<br />
    die();<br />
    if ( !$topics = get_tagged_topics( array( 'tag_id' => $tag->tag_id, 'page' => 0 ) ) )<br />
    die();</p>
    <p> $posts = array();<br />
    foreach ($topics as $topic) {<br />
    $posts[] = bb_get_first_post($topic->topic_id);<br />
    }</p>
    <p> $title = esc_html( sprintf( __( '%1$s Tag: %2$s - Recent Topics' ), bb_get_option( 'name' ), bb_get_tag_name() ) );<br />
    $link = bb_get_tag_link($feed_id);<br />
    $link_self = bb_get_tag_topics_rss_link($feed_id);<br />
    break;</p>
    <p> case 'tag-posts':<br />
    if ( !$tag = bb_get_tag( $feed_id ) )<br />
    die();<br />
    if ( !$posts = get_tagged_topic_posts( array( 'tag_id' => $tag->tag_id, 'page' => 0 ) ) )<br />
    die();<br />
    $title = esc_html( sprintf( __( '%1$s Tag: %2$s - Recent Posts' ), bb_get_option( 'name' ), bb_get_tag_name() ) );<br />
    $link = bb_get_tag_link($feed_id);<br />
    $link_self = bb_get_tag_posts_rss_link($feed_id);<br />
    break;</p>
    <p> case 'forum-topics':<br />
    if ( !$topics = get_latest_topics( $feed_id ) )<br />
    die();</p>
    <p> $posts = array();<br />
    foreach ($topics as $topic) {<br />
    $posts[] = bb_get_first_post($topic->topic_id);<br />
    }</p>
    <p> $title = esc_html( sprintf( __( '%1$s Forum: %2$s - Recent Topics' ), bb_get_option( 'name' ), get_forum_name( $feed_id ) ) );<br />
    $link = get_forum_link($feed_id);<br />
    $link_self = bb_get_forum_topics_rss_link($feed_id);<br />
    break;</p>
    <p> case 'forum-posts':<br />
    if ( !$posts = bb_get_latest_forum_posts( $feed_id ) )<br />
    die();<br />
    $title = esc_html( sprintf( __( '%1$s Forum: %2$s - Recent Posts' ), bb_get_option( 'name' ), get_forum_name( $feed_id ) ) );<br />
    $link = get_forum_link($feed_id);<br />
    $link_self = bb_get_forum_posts_rss_link($feed_id);<br />
    break;</p>
    <p> // Get just the first post from the latest topics<br />
    case 'all-topics':<br />
    if ( !$topics = get_latest_topics() )<br />
    die();</p>
    <p> $posts = array();<br />
    foreach ($topics as $topic) {<br />
    $posts[] = bb_get_first_post($topic->topic_id);<br />
    }</p>
    <p> $title = esc_html( sprintf( __( '%1$s Recent Topics' ), bb_get_option( 'name' ) ) );<br />
    $link = bb_get_uri();<br />
    $link_self = bb_get_topics_rss_link();<br />
    break;</p>
    <p> // Get latest posts by default<br />
    case 'all-posts':<br />
    default:<br />
    if ( !$posts = bb_get_latest_posts( 35 ) )<br />
    die();<br />
    $title = esc_html( sprintf( __( '%1$s Recent Posts' ), bb_get_option( 'name' ) ) );<br />
    $link = bb_get_uri();<br />
    $link_self = bb_get_posts_rss_link();<br />
    break;<br />
    }<br />
    }</p>
    <p>bb_send_304( $posts[0]->post_time );</p>
    <p>if (!$description = esc_html( bb_get_option('description') )) {<br />
    $description = $title;<br />
    }<br />
    $title = apply_filters( 'bb_title_rss', $title, $feed );<br />
    $description = apply_filters( 'bb_description_rss', $description, $feed );<br />
    $posts = apply_filters( 'bb_posts_rss', $posts, $feed );<br />
    $link_self = apply_filters( 'bb_link_self_rss', $link_self, $feed );</p>
    <p>bb_load_template( 'rss2.php', array('bb_db_override', 'title', 'description', 'link', 'link_self'), $feed );</p>
    <p>?>

    #33818
    Taeo
    Member

    Just over the past two days I’ve been noticing some strange issues on my site with post times. Several of the latest threads have shown as being posted “-1 years ago”. Sometimes, inexplicably, when refreshing the page it will change to show the correct time and sometimes it will revert back. I’m at a loss to explain why this is occurring.

    I also just now noticed a thread that showed as being posted “5 hours ago” with a reply that was posted “6 hours ago”. With my theme this really causes an issue because I have the “first” post in a thread styled differently.

    Anyone else having issues like these?

    http://www.wowuigallery.com

    #84740

    In reply to: Plugins You Want !!!

    chrishajer
    Participant

    That ‘subscribe to topic’ functionality is included in the latest trunk version and will be in the next release. It’s active here now.

    #86003
    cloner
    Participant

    John,

    It’s rather an odd situation, as I just took over administration of this board, so I’m not really familiar with the interactions of bbPress and WordPress. The WordPress installation had only one user (the original admin), and as part of the transition we intended to upgrade both utilities to their latest, greatest versions to leave me with a “clean slate” to work from. Our intended first step was to upgrade WordPress, which the original admin hadn’t updated in some time. I had, and still have, no credentials in WordPress.

    Our intent was to simply delete the original install of WordPress and install the latest version. I took care of the file end, but upon install the program told me that there was already an installation in place that had to be deleted first. The previous admin then wiped the WP database. I believe this began our problem. Upon installing the latest verison of bbP, I discovered that bbP stores it’s user info in the WP database, so I think that killed us. I think that if the orignial admin restores that db we should be able to salvage our installs.

    I don’t know the release of the original WP install, but if you’ll tell me where to look I have a local backup of the original site on my harddrive. Ditto bbP, though I think it was 0.8.3.

    Yes, http://www.mh900e.org

    The discussion forums (the only really relevant part of the site, to my way of thinking) is at http://www.mh900e.org/parlare. I’ve installed 1.1.11 at the root (I was thinking about removing WP, anyway) and put up a single message telling users that we’re working on resolving other issues.

    #85974

    In reply to: WP and bbp integration

    chrishajer
    Participant

    It should be updated. I would do it myself if I ever got around to testing integration and found out which procedure worked best.

    #74663

    In reply to: Testing Embeded Video

    analytico
    Member

    How to embed video using bbcode ? What syntax?

    Hi all,

    I am in the process of developing a new site (which is currently in beta and not meant for the public yet…) but I have a few concerns…

    Website: http://www.diyextra.com

    1) Have I chosen the right forum for the project, I keep hearing bbpress is dead or it will not be developed as much when/if it becomes a plugin… Should I be using a larger scale forum package like vbulletin or phpbb ? … My thoughts on the subject originally was to go bbpress as it may tie in well with the CMS side of the site which is controlled by wordpress, I did look in to buddypress but the whole group forum thing is off putting and the fact it is not SEO friendly and the slugs (urls) are way to long… Anyone have any comments or thoughts on this would be great….

    2) Plugins – Ok so I understand the forum is very basic in its core state and you add plugins to achieve options you require, but quite a number of plugins I have tried to use seem not to work, Also I have a concern that there will be a limited number of plugins developed for bbpress when/if it becomes a plugin.

    3) Here is a bug I have found – maybe its just on my forum… The freshness (time/date) is incorrect a lot of the test posts I have posted on the forum are from weeks and months ago, but yet they are show up as 3 weeks… yes I have heavily modified the templet files but only the html and header/footer locations… any ideas ?

    4) RSS – Also I am getting RSS error – “This page contains the following errors: error on line 10 at column 33: Entity ‘raquo’ not defined

    Below is a rendering of the page up to the first error.” Anyone else have this problem or any suggestions…

    Many Thanks Guys,

    Chris

    #33790
    guarda-faro
    Member

    I an new in bbpress, traying to help my greater daughter to install a forum, and we found the peacemaker bbpress theme, a very interesting 3 columns theme, just we was looking for. But it has not complete the templates files, (register.php and register-sucess.php do not exist) so is not posible a register for the users, and works like a demo site as it just says.

    I found an one year old topic about in this forum, but I am not clear if it is the same problem.

    http://bbpress.org/forums/topic/why-regisration-disabled-this-is-a-demo-site#post-19644

    http://bbpress.org/forums/topic/demo-site-wordpress-integrations-problem

    I have installed bbpress (not integrated with WP) and a few aditionals themes to test, buy I like peacemaker. Somebody has a complete version?

    ipunkbali
    Member

    thank you chrishajer. it works!

    But I changed my mind, i prefer latest discussion on top. :)

    What it is necessary to make, that this function operated on each page of a forum?

    checkfront
    Member

    Hello,

    Just wondering what the status is on 1.1. Is there a beta available to test?

    We really need people to be able to post without creating a account. Also email notifications are pretty essential.

    We are tried some of the existing plugins, but they don’t seem to cut it.

    #85899

    In reply to: Sticky

    leander8728
    Member

    On the latest post’s section, they must seen as every other post. So that the sticky’s aren’t more important then the freshness of every post.

    Example:

    I made a normal post on 16 march 12:11

    I have made a sticky post: 16 march 12:12

    Now is the sticky post the newest post in the latest post section. That is good, but when i made another topic / reaction at 16 march 12:40.

    The sticky topic stay’s above the newest post. I want that the sticky topic at that moment comes under that other post (16 march 12:40). Because that post is newer then the sticky.

    I hope you understand me.

Viewing 25 results - 8,201 through 8,225 (of 11,578 total)
Skip to toolbar