Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'test'

Viewing 25 results - 8,726 through 8,750 (of 11,584 total)
  • Author
    Search Results
  • #31874
    brad_langdon
    Member

    I dont know what happened but my images have stopped showing up in posts…

    http://harrismarine.co.nz/bbpress/topic.php?id=233

    I didn’t touch anything. What the hell is going on. I am running latest version.

    They are all showing up with the cross icon as in the can’t be found.

    #76884
    Josh Leuze
    Member

    Disregard my last post, that link is ooooold as dirt :)

    Let’s cross our fingers that someone is on the job though!

    #77216

    I’m having this exact problem.

    Fresh install of 1.0.2, integrated with WordPress (finally!), and even though I deactivated all plugins and tested it again, and it’s still doing it.

    Any ideas?

    #76883
    Josh Leuze
    Member

    just had two revisions come through on 0.9 and trunk by mdawaffe. Is he our new esteemed leader?

    It sure looks like he is!

    #79425

    All my code is written against 1.0.2 SVN, so it’s not 0.9-only :) and yeah, $allowed_tags is meant to be changed and then back again, not the cleanest way of doing things, but it should work. The copy that’s working live at the moment is below (I just realised I forgot to turn on the validation code too, oops):

    <?php
    /*
    Plugin Name: Restrict Topic Tags
    Description: Restricts tags to a pre-defined list.
    Author: Kawauso
    Version: 0.1.1
    */

    $allowed_tags = array(
    'test4',
    'test 3',
    'test3',
    'test2',
    );

    function restrict_topic_tags_form( $args = null )
    {
    $defaults = array( 'topic' => 0, 'submit' => __('Add »'), 'list_id' => 'tags-list' );
    $args = wp_parse_args( $args, $defaults );
    extract( $args, EXTR_SKIP );

    if ( !$topic = get_topic( get_topic_id( $topic ) ) ) {
    return false;
    }

    if ( !bb_current_user_can( 'edit_tag_by_on', bb_get_current_user_info( 'id' ), $topic->topic_id ) ) {
    return false;
    }

    global $page, $allowed_tags;

    $current_tags = bb_get_topic_tags( $topic->topic_id );
    $allowed_tags = array_flip( $allowed_tags ); // CHANGE PLACES!
    foreach( $current_tags as $tag ) {
    if( isset( $allowed_tags[ $tag->name ] ) )
    unset( $allowed_tags[ $tag->name ] );
    }
    $allowed_tags = array_flip( $allowed_tags ); // CHANGE PLACES!

    if( is_array( $allowed_tags ) && !empty( $allowed_tags ) ) { ?>
    <form id="tag-form" method="post" action="<?php bb_uri('tag-add.php', null, BB_URI_CONTEXT_FORM_ACTION + BB_URI_CONTEXT_BB_ADMIN); ?>" class="add:<?php echo esc_attr( $list_id ); ?>:">
    <p>
    <select name="tag" id="tag">
    <option value=""><?php _e("Select a tag")?></option>
    <?php foreach( $allowed_tags as $tag ) { ?>
    <option value="<?php echo $tag?>"><?php echo $tag?></option>
    <?php } ?>
    </select>
    <input type="hidden" name="id" value="<?php echo $topic->topic_id; ?>" />
    <input type="hidden" name="page" value="<?php echo $page; ?>" />
    <?php bb_nonce_field( 'add-tag_' . $topic->topic_id ); ?>
    <input type="submit" name="submit" id="tagformsub" value="<?php echo esc_attr( $submit ); ?>" />
    </p>
    </form>
    <?php
    } // End if

    } // End function

    function restrict_topic_tags( $tag ) {

    global $allowed_tags;

    if( !in_array( $tag, $allowed_tags ) )
    return array();

    return array($tag);
    }

    add_filter( 'bb_add_topic_tags', 'restrict_topic_tags' );

    #76882
    deadlyhifi
    Participant

    just had two revisions come through on 0.9 and trunk by mdawaffe. Is he our new esteemed leader?

    #79462

    I got it. Thanks buddy!

    Offtopic : Any pointers on how to add plugins to the extend section. i have the latest code in trunk. I will probably figure out to tag them too but how to add information on the plugin page itself

    #31864
    RahimTSNE
    Member

    Recently i launched my forum at http://explore.maheroo.com. I am facing problem using theme rather than default.I uploaded four theme in my-templates directory created by the bbpress installer (latest version). But when i switch to the any of the templates, none of them is working. I added a link upward to visit the site looking for the problem. could anybody help me out of this. at present i activated peacemaker and remaining three are inove, guangzhou and WPmimic.

    thanks

    #79670
    johnhiler
    Member

    I don’t know the default number of tags… should be straightforward to test.

    You might want to try this hot tags plugin, which is much more powerful/flexible than the standard bbpress hot tag calls…

    https://bbpress.org/plugins/topic/hot-tags-plus/

    #79422

    Whoops, I need to use more test data next time.

    Change:

    foreach ($current_tags as $tag_key => $tag ) {
    if( in_array( $tag->name, $allowed_tags ) )
    unset( $allowed_tags[ $tag_key ] );
    }

    to

    $allowed_tags = array_flip( $allowed_tags ); // CHANGE PLACES!
    foreach( $current_tags as $tag ) {
    if( isset( $allowed_tags[ $tag->name ] ) )
    unset( $allowed_tags[ $tag->name ] );
    }
    $allowed_tags = array_flip( $allowed_tags ); // CHANGE PLACES!

    The closing ?> isn’t really important if there’s no non-PHP data after it

    #79421

    You, sir, are awesome.

    As soon as I can test this out, I will. One question: for the plugin, should I add a ?> to the end of the chunk of code you’ve put there?

    #79420
    <?php
    /*
    Plugin Name: Restrict Topic Tags
    Description: Restricts tags to a pre-defined list.
    Author: Kawauso
    Version: 0.1
    */

    $allowed_tags = array(
    'test',
    'test2',
    );

    function restrict_topic_tags_form( $args = null )
    {
    $defaults = array( 'topic' => 0, 'submit' => __('Add »'), 'list_id' => 'tags-list' );
    $args = wp_parse_args( $args, $defaults );
    extract( $args, EXTR_SKIP );

    if ( !$topic = get_topic( get_topic_id( $topic ) ) ) {
    return false;
    }

    if ( !bb_current_user_can( 'edit_tag_by_on', bb_get_current_user_info( 'id' ), $topic->topic_id ) ) {
    return false;
    }

    global $page, $allowed_tags;

    $current_tags = bb_get_topic_tags( $topic->topic_id );
    foreach ($current_tags as $tag_key => $tag ) {
    if( in_array( $tag->name, $allowed_tags ) )
    unset( $allowed_tags[ $tag_key ] );
    }

    if( is_array( $allowed_tags ) && !empty( $allowed_tags ) ) { ?>
    <form id="tag-form" method="post" action="<?php bb_uri('tag-add.php', null, BB_URI_CONTEXT_FORM_ACTION + BB_URI_CONTEXT_BB_ADMIN); ?>" class="add:<?php echo esc_attr( $list_id ); ?>:">
    <p>
    <select name="tag" id="tag">
    <option value=""><?php _e("Select a tag")?></option>
    <?php foreach( $allowed_tags as $tag ) { ?>
    <option value="<?php echo $tag?>"><?php echo $tag?></option>
    <?php } ?>
    </select>
    <input type="hidden" name="id" value="<?php echo $topic->topic_id; ?>" />
    <input type="hidden" name="page" value="<?php echo $page; ?>" />
    <?php bb_nonce_field( 'add-tag_' . $topic->topic_id ); ?>
    <input type="submit" name="submit" id="tagformsub" value="<?php echo esc_attr( $submit ); ?>" />
    </p>
    </form>
    <?php
    } // End if

    } // End function

    function restrict_topic_tags( $tag ) {

    global $allowed_tags;

    // if( !in_array( $tag, $allowed_tags ) )
    // return array();

    return array($tag);
    }

    add_filter( 'bb_add_topic_tags', 'restrict_topic_tags' );

    Then in your theme’s topic-tags.php, change <?php tag_form(); ?> to:

    <?php
    if( function_exists( 'restrict_topic_tags_form' ) )
    restrict_topic_tags_form();
    else
    tag_form();
    ?>

    #79656
    johnhiler
    Member

    I don’t see one either. I’m sure you could write a plugin to do this, if you wanted?

    Although it’s tricky – a lot of plugins touch the posting process (polls, bb-attachment, etc.)… and most of those wouldn’t work with an admin-centric posting system (or you’d have to test all your posting-based plugins twice).

    #79581
    Jim R
    Participant

    Ok…after further testing and striking out, here is what a guy helping me and I have found out. We go through the ‘deep integration’ process, requiring the wp-load.php file in bb-config.php. Then we change all the bb_get_header(); with get_header();. That passes through the Hybrid News header’s style information but not the navigation.

    When you link directly to the front-page.php, it shows the whole header, which is navigation, a banner ad I have in the header, everything. The same applies when you link directly to any of the affected pages in bbPress. However, it stops executing from there. So you just have the header and that’s it. There aren’t any errors showing up either.

    So using my limited knowledge of PHP and my only slightly more developed since of deduction, one thing we can think which is different is we are bypassing:

    path to bbpress / index.php

    Here is that code:

    <?php

    require('./bb-load.php');

    bb_repermalink();

    $bb_db_override = false;
    do_action( 'bb_index.php_pre_db' );

    if ( isset($_GET['new']) && '1' == $_GET['new'] ) :
    $forums = false;
    elseif ( !$bb_db_override ) :
    $forums = bb_get_forums(); // Comment to hide forums
    if ( $topics = get_latest_topics( false, $page ) ) {
    bb_cache_last_posts( $topics );
    }
    if ( $super_stickies = get_sticky_topics() ) {
    bb_cache_last_posts( $super_stickies );
    }
    endif;

    bb_load_template( 'front-page.php', array('bb_db_override', 'super_stickies') );

    ?>

    This has to be easy (for those who really know PHP and WP). Right? Sadly, I’m not that kind of guy. It’s a bummer to have this kicka$$ WP theme and not have it be able to merge thematically with bbPress.

    #31849
    brucini
    Member

    have the latest version of bbpress and installed bbpm

    when i try to send a pm all i get is a 404 Not Found message.

    any idea why?

    #79624
    johnhiler
    Member

    Olaf – The big reasons for me to stay on the older version are:

    * Many plugins work on 0.9 but aren’t compatible with 1.0.

    * 0.9 is really stable and battle-tested, while 1.0 is just a few months old.

    * 0.9 is very fast, but 1.0 has a lot more overhead (like BackPress) which slows it down considerably.

    It’s really a decision that each webmaster has to make for themselves!

    In my case, I’m sticking with 0.9… but I recognize that as time goes on and 1.0 matures, the upgrade will become more compelling for me! But YMMV…

    #79623
    Olaf Lederer
    Participant

    I used the 0.9 branch until version 1.02 got released. While there are not so much reasons to upgrade from 0.9 to 1.02, people should always use latest versions. Why should I start with an older version?

    makes no sense…

    #31848
    gerikg
    Member

    Why not call v0.9 “BBpress Lite v0.9″and call 1.0+ just BBpress (or BBpress Full v1.0.3)? or something in that nature

    When you come first to this site you see the two versions. Most of us I think pick the higher version not thinking about the other. Some of us (the people who understands bbpress better as a stand alone) prefer 0.9 version still after the “higher” version came out.

    The reason is not to confuse the new users that 0.9 is not a lesser version or that 1.0 is a more updated version. What I’ve read the two version are different enough to continue it’s own path. and it shows because you’re asking for users to test the new .9 version. “call for testers on the 0.9 branch and 1.0 trunk” If I wasn’t around for a couple of years I would think 1.0 is more stable than 0.9.

    #79505
    gerikg
    Member

    here’s another way of forming my question….

    this

    <h2>Latest Forum Discussions</h2>
    <ul>
    <?php
    global $wpdb;
    $query="SELECT * FROM bb_topics WHERE topic_status=0 ORDER BY topic_time DESC LIMIT 10";
    $results=$wpdb->get_results($query);
    foreach ($results as $result) {
    echo "<li><a href='/forums/topic.php?id=".$result->topic_id."'>".$result->topic_title."</a></li>";
    }
    ?>
    </ul>

    gets the Latest Forum Discussions, how do I get a USER SPECIFIC Latest Forum Discussions?

    #79579
    Jim R
    Participant

    Now…we can at least state between the require code and the get_header();, it works on an otherwise blank page. So this can’t be a WP template issue. Using just the following:

    <?php
    require_once('/home/jwrbloom/public_html/wp-load.php');
    get_header();
    ?>

    I get this: http://www.hoosierhoopsreport.com/wp-test.php

    That works as it should. When I put the code in the bbPress template (the require code in bb-config and the get_header wherever bb_get_header is, it doesn’t work.

    #31839
    brad_langdon
    Member

    I just upgraded to the latest version from 0.9 or whatever the number was. It all went perfectly except for one thing.

    Now when I go to my profile apge and click “Upload an image for your profile” it just takes me back the forum front page. The same thing happens when I click the “Avatar” tab in the profile page.

    Anyone have any ideas because I am stuck with this one?

    mptyuser
    Member

    Hi everyone,

    I’m seriously considering dropping FluxBB (that i’m currently using for a large messageboard) and using BBPress.

    I would stop using FLuxBB for various reasons (mostly because i feel like FluxBB isn’t really alive anymore development-wise and also because i’ve been using wordpress for many many years and really digg the WP/BBpress community & coding) but… i was wondering is BBPress would do the job for a large messageboard with many users and connections everyday ?

    I’ve tested BBPress many times, installed the latest version again yesterday for a test run and tested many plugins, tried customizing themes to see if it would fit my needs etc. and it looks sweet but there’s one thing i can’t tell: would BBPress work fine with many users ? Would it be just as good and even better than FluxBB once i’ve installed the plugins needed and export everything from FluxBB to BBPress ?

    Do any of you use BBPress with hundreds of users on a daily basis ? It is running smoothly ? Is it responsive and fast ? It is made to work with huge amount of users and connections ?

    Thanx for your feedback. I’d really appreciate any experience you have / had.

    #79561

    In reply to: First Poster

    view.php

    <?php bb_get_header(); ?>

    <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> &raquo; <?php view_name(); ?></div>

    <?php if ( $topics || $stickies ) : ?>

    <table id="latest" role="main">
    <tr>
    <th><?php _e('Topic'); ?></th>
    <th><?php _e('Posts'); ?></th>
    <th><?php _e('Voices'); ?></th>
    <th><?php _e('Last Poster'); ?></th>
    <th><?php _e('Author'); ?></th>
    <th><?php _e('Freshness'); ?></th>
    </tr>

    <?php if ( $stickies ) : foreach ( $stickies as $topic ) : ?>
    <tr<?php topic_class(); ?>>
    <td><?php bb_topic_labels(); ?> <big><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></big></td>
    <td class="num"><?php topic_posts(); ?></td>
    <td class="num"><?php bb_topic_voices(); ?></td>
    <td class="num"><?php topic_last_poster(); ?></td>
    <td class="num"><?php topic_author(); ?></td>
    <td class="num"><a href="<?php topic_last_post_link(); ?>"><?php topic_time(); ?></a></td>
    </tr>
    <?php endforeach; endif; ?>

    <?php if ( $topics ) : foreach ( $topics as $topic ) : ?>
    <tr<?php topic_class(); ?>>
    <td><?php bb_topic_labels(); ?> <a href="<?php topic_link(); ?>"><?php topic_title(); ?></a><?php topic_page_links(); ?></td>
    <td class="num"><?php topic_posts(); ?></td>
    <td class="num"><?php bb_topic_voices(); ?></td>
    <td class="num"><?php topic_last_poster(); ?></td>
    <td class="num"><?php topic_author(); ?></td>
    <td class="num"><a href="<?php topic_last_post_link(); ?>"><?php topic_time(); ?></a></td>
    </tr>
    <?php endforeach; endif; ?>
    </table>

    <p class="rss-link"><a href="<?php bb_view_rss_link(); ?>" class="rss-link"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr> feed for this view'); ?></a></p>

    <div class="nav">
    <?php view_pages(); ?>
    </div>
    <?php endif; ?>

    <?php bb_get_footer(); ?>

    #79560

    In reply to: First Poster

    tag-single.php

    <?php bb_get_header(); ?>

    <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> &raquo; <a href="<?php bb_tag_page_link(); ?>"><?php _e('Tags'); ?></a> &raquo; <?php bb_tag_name(); ?></div>

    <?php do_action('tag_above_table'); ?>

    <?php if ( $topics ) : ?>

    <table id="latest" role="main">
    <tr>
    <th><?php _e('Topic'); ?> — <?php bb_new_topic_link(); ?></th>
    <th><?php _e('Posts'); ?></th>
    <th><?php _e('Voices'); ?></th>
    <th><?php _e('Last Poster'); ?></th>
    <th><?php _e('Author'); ?></th>
    <th><?php _e('Freshness'); ?></th>
    </tr>

    <?php foreach ( $topics as $topic ) : ?>
    <tr<?php topic_class(); ?>>
    <td><?php bb_topic_labels(); ?> <a href="<?php topic_link(); ?>"><?php topic_title(); ?></a><?php topic_page_links(); ?></td>
    <td class="num"><?php topic_posts(); ?></td>
    <td class="num"><?php bb_topic_voices(); ?></td>
    <td class="num"><?php topic_last_poster(); ?></td>
    <td class="num"><?php topic_author(); ?></td>
    <td class="num"><a href="<?php topic_last_post_link(); ?>"><?php topic_time(); ?></a></td>
    </tr>
    <?php endforeach; ?>
    </table>

    <p class="rss-link"><a href="<?php bb_tag_posts_rss_link(); ?>" class="rss-link"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr> link for this tag') ?></a></p>

    <?php tag_pages( array( 'before' => '<div class="nav">', 'after' => '</div>' ) ); ?>

    <?php endif; ?>

    <?php post_form(); ?>

    <?php do_action('tag_below_table'); ?>

    <?php manage_tags_forms(); ?>

    <?php bb_get_footer(); ?>

    #79559

    In reply to: First Poster

    and forum.php

    <?php bb_get_header(); ?>

    <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a><?php bb_forum_bread_crumb(); ?></div>

    <?php if ( $topics || $stickies ) : ?>

    <table id="latest" role="main">
    <tr>
    <th><?php _e('Topic'); ?> — <?php bb_new_topic_link(); ?></th>
    <th><?php _e('Posts'); ?></th>
    <th><?php _e('Voices'); ?></th>
    <th><?php _e('Last Poster'); ?></th>
    <th><?php _e('Last Poster'); ?></th>
    <th><?php _e('Freshness'); ?></th>
    </tr>

    <?php if ( $stickies ) : foreach ( $stickies as $topic ) : ?>
    <tr<?php topic_class(); ?>>
    <td><?php bb_topic_labels(); ?> <big><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></big><?php topic_page_links(); ?></td>
    <td class="num"><?php topic_posts(); ?></td>
    <td class="num"><?php bb_topic_voices(); ?></td>
    <td class="num"><?php topic_last_poster(); ?></td>
    <td class="num"><?php topic_author(); ?></td>
    <td class="num"><a href="<?php topic_last_post_link(); ?>"><?php topic_time(); ?></a></td>
    </tr>
    <?php endforeach; endif; ?>

    <?php if ( $topics ) : foreach ( $topics as $topic ) : ?>
    <tr<?php topic_class(); ?>>
    <td><?php bb_topic_labels(); ?> <a href="<?php topic_link(); ?>"><?php topic_title(); ?></a><?php topic_page_links(); ?></td>
    <td class="num"><?php topic_posts(); ?></td>
    <td class="num"><?php bb_topic_voices(); ?></td>
    <td class="num"><?php topic_last_poster(); ?></td>
    <td class="num"><?php topic_author(); ?></td>
    <td class="num"><a href="<?php topic_last_post_link(); ?>"><?php topic_time(); ?></a></td>
    </tr>
    <?php endforeach; endif; ?>
    </table>
    <p class="rss-link"><a href="<?php bb_forum_posts_rss_link(); ?>" class="rss-link"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr> feed for this forum'); ?></a></p>
    <?php forum_pages( array( 'before' => '<div class="nav">', 'after' => '</div>' ) ); ?>
    <?php endif; ?>

    <?php if ( bb_forums( $forum_id ) ) : ?>
    <h2><?php _e('Subforums'); ?></h2>
    <table id="forumlist">

    <tr>
    <th><?php _e('Main Theme'); ?></th>
    <th><?php _e('Topics'); ?></th>
    <th><?php _e('Posts'); ?></th>
    </tr>

    <?php while ( bb_forum() ) : ?>
    <?php if (bb_get_forum_is_category()) : ?>
    <tr<?php bb_forum_class('bb-category'); ?>>
    <td colspan="3"><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><?php forum_description( array( 'before' => '<small> – ', 'after' => '</small>' ) ); ?><?php bb_forum_pad( '</div>' ); ?></td>
    </tr>
    <?php continue; endif; ?>
    <tr<?php bb_forum_class(); ?>>
    <td><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><?php forum_description( array( 'before' => '<small> – ', 'after' => '</small>' ) ); ?><?php bb_forum_pad( '</div>' ); ?></td>
    <td class="num"><?php forum_topics(); ?></td>
    <td class="num"><?php forum_posts(); ?></td>
    </tr>
    <?php endwhile; ?>
    </table>
    <?php endif; ?>

    <?php post_form(); ?>

    <?php bb_get_footer(); ?>

Viewing 25 results - 8,726 through 8,750 (of 11,584 total)
Skip to toolbar