Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'test'

Viewing 25 results - 8,701 through 8,725 (of 11,591 total)
  • Author
    Search Results
  • #52360
    fontadoni
    Participant

    The script worked for me last night and this is the second phpbb 2 board I convert. A few tips I can give whoever will try this script:

    Follow the steps that come in the given file but make sure to:

    1. Install bbPress 0.7 first, then upgrade to 0.8 when you have done the conversion. You can download 0,7 here: https://bbpress.org/forums/topic/download-previous-versions-of-bbpress#post-17770

    Then you can go ahead and upgrade to the latest version (1.0.2). Make sure you update the settings in your admin panel (board path, name, etc) as you will need to get rid of your old config.php file when you upgrade to 0.8

    2. If you’re hosted on 1and1, switch EXPORT_TO_FILE to false and AUTO_IMPORT_EXPORTED_DATA to true. Also add teh following code to your .htaccess file: AddType x-mapp-php5 .php (not sure if this is necessary but it worked for me).

    3. I got an error saying that some query was empty, but it seems that the conversion went without any problems.

    #31969

    Topic: Topic Author Gravatar

    in forum Themes
    arpowers
    Member

    Hey Everyone,

    What is the easiest way (as of the latest BBPress release) to get the avatars for ‘topic’ authors?

    I have avatars showing correctly for ‘posts’ with <?php post_author_avatar_link(); ?>

    but it doesn’t seem to work correctly for the first post in topics and on the front page.

    I’ve seen some other posts on this, but so far no elegant solutions. Any help?

    Thanks!

    #80114
    Peter A. Gebhardt
    Participant

    Changed status back to “not resolved” – My latest idea/post didn’t solve it.

    #80107

    I will help you tomorrow on this. Right now on move..

    #80106
    chandersbs
    Member

    @kawauso I don’t think you understood my first post.

    #80105
    chandersbs
    Member

    How can I make it show the actual post?

    #80104

    What I do in my plugin is I fetch what the user has set in the no of “posts per page” option and then calculate where the post will be (which page) and then conditionally add it to the url.

    #76544
    Gautam
    Member

    Live Demo (for the time being, I might disable the plugin after a few days): http://forum.gaut.am/topic/test-topic#postform

    #80103

    Both the “Freshness”/latest reply and normal links in the Search function should be including the page number in links, as that’s allowed for in the function used, get_topic_link() .

    Sort’ve worrying if it’s not including it! bbPress.org includes the page number…

    It’s not included for any page 1 links though.

    #31956
    chandersbs
    Member

    I noticed today, that the profile page, in the section Recent Replies, that the links are actually to the topics and not the posts itself.

    How do I make this go directly to the post?

    Also, in the search.php, when you search for something, it gives you the actual topic, but not the post which has the information you’re searching for.

    I noticed a missing “page id” in the search results, for example:

    A link in the search result will look like domain/topic.php?id=823#post-32876

    EVEN THOUGH the actual post might be located at

    Domain/topic.php?id=823&page=12#post-32876

    I tested the same thing on this website, BBPRESS.ORG, I think it has the same problem. The posts in the search results page is not taking you to the exact post, but just the topic.

    How do I change it into the exact post?

    I have been going through ashfame’s plugin, but it didn’t make me much wiser.

    #80035
    honestscott
    Participant

    So when there were more than 12 posts, the frontpage would be completely empty?

    No, your latest post would not show up…everything is still there but when you try to post to that topic…it doesn’t appear.

    I heard of this problem some time back. Try searching..

    As fara as I can recall, the new page will show up when there is one more reply.

    I did before posting, but I couldn’t find anything.

    #80048

    <?php bb_profile_link( array( 'id' => $user->ID, 'text' => get_user_display_name( $user->ID ) ) ); ?>

    I’d guess… not really sure on the context where you’re putting it though, so I can’t really test

    Mark Kehn
    Member

    Seriously! You cannot call v1.0.2 beckett stable! Before you even get to step 1…that’s right…BEFORE you get to step one it errors out! Let me repeat that. Where is it erroring out? Uh-huh, it gives errors at STEP ZERO! See screenshot:

    http://www.flickr.com/photos/16731818@N00/3971382000/sizes/o/

    You get the error messages as soon as you enter http://example.com/bbpress to start the install script.

    You get five errors before you even think about pushing button to go to step 1. And the fact you all try to hide it (the error messages) is pretty bogus too. White text on white background? Puhleeze!

    Does anyone even test stuff before putting it out there to the public? Yes, this is a rant. Why? Well because over a week ago I posted a reply and have not gotten any answers and neither has anyone else who are having the same issue and reported it before me.

    Where the hell is Beau Lebens? You all need to let him know about this, HE will fix it in a jiffy if you tell him. Please refer to this thread for screenshots and content:

    Errors After Pure Install

    Thanks

    #79952

    @johnhiler

    Using the plugin to change roles of a member is overkill in my opinion. I am not in favor of hacking core files either. My method of adding a check for user logged in & then spitting out the code should be enough for the required functionality. Along with a user logged in check it should also check if current user is not an admin so that email addresses are not repeated for admins.


    @Kawauso

    I put your code in functions.php and it didn’t seem to work.

    With a normal user on my test setup, I wasn’t able to see the admin’s email id

    #31935

    Topic: Theme issue in Firefox

    in forum Themes
    AlanM04
    Participant

    Hi there,

    My bbpress theme works fine in the latest versions of ie, safari, chrome and opera but the main content area shifts out of position when viewed in firefox. I would be grateful if somebody have a quick look at it please and offer any suggestions as to why this is happening.

    http://www.pctbc.com/web/forum/

    TIA

    AlanM04

    #79959

    In reply to: removing tags

    chrishajer
    Participant

    I just created a new topic and added a tag to it that does not exist elsewhere. Then I deleted that topic. Then I tried to access the tag page and it gave a 500 error. It almost looks like trying to access a page for a tag that does not exist always give a 500 error (at least here it does, anyway.)

    So, maybe deleting the topic DOES delete the tag that was associated with it?

    As a further test, I created a new topic and added an existing tag to it. Then I checked how many times the tag was used (297) and then deleted the topic and checked the count again and it was decremented to 296.

    Lost my train of thought there so I can’t be certain that I tested everything I meant to.

    I guess deleting a topic that has a unique tag deletes the tag, since trying to access the tag page gives a 500 error (or at least a blank screen.) And deleting a topic that had a tag that was used elsewhere doesn’t delete the tag, but does decrement the number of times the tag was used.

    #79382
    fontadoni
    Participant

    I just did some testing and I’m pretty sure the “Subscribe to Topic” plugin was causing the error on my board. I read today _CK_ saying that most of her plugins are not yet supported for version 1.x , so I checked…

    #79944

    On line 2368 of functions.bb-template under bb-includes dir of your bbPress resides the code you want to change.

    bb_current_user_can( 'edit_users' )

    Editing a core file is not recommended but I am unsure of how to mask it to call a custom function instead of the core function.

    If its unmaskable for now (architectural) and you want a fix, then either you can change that bb_current_user_can( 'edit_users' ) with bb_is_user_logged_in() but you will have to do it again when you upgrade (or till someone posts a recommended fix) or you can append this line in your profile.php after the call to the bb_profile_data()

    <?php
    if ( bb_is_user_logged_in() ) {
    echo $user->user_email;
    }?>

    [untested but should work]

    #31925
    arpowers
    Member

    Hey everyone,

    Just started with bbpress.

    I have been trying to do an integration with WP, but as soon as I set it all up and saved it…

    I visited the test ‘forum’ and logged in (with WP log in info) and now I can’t figure out how to reach the forum admin,. It’s disappeared.

    What’s going on?

    #79813
    Gautam
    Member

    Now you can download the plugin from here:

    https://bbpress.org/plugins/topic/ajaxed-chat/

    The above download link for beta version is now dead.

    #79910
    01020230302
    Member

    Do I have to set each user with a specific user level? Right now they are all set to ‘Subscriber’.

    Using latest version with latest v of WPMU.

    raumgleiter
    Member

    Hi,

    With the help of a lot of posts about this topic on this forum I was able to come to a point where I have useres between Wp and BB integrated and I also started the deep integration of WP template and BB press on a test site here:

    http://www.itouchaudio.com/forum

    I added code to my bbpress config to be able to call wordpress functions. Then I copied over the Wp header.php from my wordpress theme into the bbpress theme folder (hope that was right). Now what you see on the above link is the result so far. still got quite a bit of problems I guess. The CSS of the forum seems to be not available so ….

    I am wondering this: What do i do with the CSS files… At the moment I am loading the CSS file from wordpress theme but also the CSS file from the bb press theme…. Of course that doesn’t work 100% as you can see but what should i do? How can you have the CSS for both the Wp and BB theme integrated to work together?

    BTW: In case this is important I am using the bbpress forum theme (the one that mimics the look of the bbpress forum, the one right here).

    I know this goes a bit already into a CSS problem, not specifically BB press anymore but I was hoping some of you might be able to point me into the right direction looking at what I got so far.

    Thanks for any help.

    #79876
    chandersbs
    Member

    The only thing difference from an bbPress + WP website is, compared to a standalone bbPress website, is dat the integrated version, CAN have articles posted that look like normal pages, with a comment form.

    Now if there was a plugin for bbPress, which could give the option to post articles on normal pages and let users leave comments (ehm, replies) on it, I think a lot of users didn’t had to integrate at all.

    It would then all depend on how the template looked like.

    @chrishajer thanks for the plugin, gonna test it later

    #79868
    chandersbs
    Member

    The reason for me asking this question, is the gazillion topics in this forum about integrating WP with bbpress. A lot of users have problems doing it. I tried it as well on my localhost, and couldn’t get it to work. I was also thinking what is the greatest benefit, so that’s why I asked.

    I was wondering, if you integrate WP with bbpress, does that mean that plugins that work on bbpress will also work on bbPress?

    Like, WP has this very cool, SEO for all plugin, you can edit page title, description etc. will this plugin work for bbPress topics?

    If WP plugins don’t work for bbPress, then I really don’t see any great benefit for going through all that trouble of integrating…

    #50311

    Okay, after much lucky guessing with regards to the user object handling, I have an ALPHA VERSION of a plugin to do this. There’s nothing to stop spambots, this is purely a proof of concept, I’ll try adding a captcha or something later if necessary. Email verification sounds like a royal pain though. Save the files exactly where I’ve said and as ever, make sure you leave no whitespace around the PHP tags. Apart from that, please test it but it’s your own risk if you run it on a production server.

    my-plugins/register-post/load.php:

    <?php
    /*
    Plugin Name: Register & Post
    Description: Allows a user to register and make a post at the same time.
    Author: Kawauso
    Version: Alpha
    */

    // Add the post form
    add_action( 'post_post_form', 'register_post_form' );

    function register_post_form() {

    global $h2, $forum, $topic;

    if( bb_is_user_logged_in() )
    return;

    // Setup the register form

    $profile_info_keys = bb_get_profile_info_keys();

    unset( $profile_info_keys['first_name'], $profile_info_keys['last_name'], $profile_info_keys['display_name'], $profile_info_keys['occ'], $profile_info_keys['from'], $profile_info_keys['user_url'], $profile_info_keys['interest'] );

    $bb_register_error = new WP_Error;

    $user_login_error = $bb_register_error->get_error_message( 'user_login' );

    ?>
    <style type="text/css">p#post-form-forum-container{display:none}</style>
    <form class="postform post-form" id="postform" method="post" action="<?php bb_uri( 'my-plugins/register-post/create.php', null, BB_URI_CONTEXT_FORM_ACTION )?>">
    <h2 class="postform">Register and post?</h2>
    <fieldset>
    <table width="100%">
    <tr class="form-field form-required required<?php if ( $user_login_error ) echo ' form-invalid error'; ?>">
    <th scope="row">
    <label for="user_login"><?php _e('Username'); ?></label>
    <?php if ( $user_login_error ) echo "<em>$user_login_error</em>"; ?>
    </th>
    <td>
    <input name="user_login" type="text" id="user_login" size="30" maxlength="30" value="<?php echo $user_login; ?>" />
    </td>
    </tr>
    <?php

    if ( is_array($profile_info_keys) ) :
    foreach ( $profile_info_keys as $key => $label ) :
    $class = 'form-field';
    if ( $label[0] ) {
    $class .= ' form-required required';
    }
    if ( $profile_info_key_error = $bb_register_error->get_error_message( $key ) )
    $class .= ' form-invalid error';

    ?>

    <tr class="<?php echo $class?>">
    <th scope="row">
    <label for="<?php echo $key?>"><?php echo $label[1]?></label>
    <?php if ( $profile_info_key_error ) echo "<em>$profile_info_key_error</em>"; ?>
    </th>
    <td>
    <input name="<?php echo $key?>" type="text" id="<?php echo $key?>" size="30" maxlength="140" value="<?php echo $$key?>" />
    </td>
    </tr>

    <?php

    endforeach; // profile_info_keys
    endif; // profile_info_keys

    ?>
    </table>

    <br />

    <?php
    bb_load_template( 'post-form.php', array('h2' => $h2) );
    bb_nonce_field( bb_is_topic() ? 'create-post_' . $topic->topic_id : 'create-topic' );
    if ( bb_is_forum() ) {
    echo '<input type="hidden" name="forum_id" value="' . $forum->forum_id . '" />' . "n";
    } elseif ( bb_is_topic() ) {
    echo '<input type="hidden" name="topic_id" value="' . $topic->topic_id . '" />' . "n";
    }
    echo "n</fieldset>n</form>n";

    }

    my-plugins/register-post/create.php:

    <?php

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

    $profile_info_keys = bb_get_profile_info_keys();

    unset( $profile_info_keys['first_name'], $profile_info_keys['last_name'], $profile_info_keys['display_name'], $profile_info_keys['occ'], $profile_info_keys['from'], $profile_info_keys['user_url'], $profile_info_keys['interest'] );

    $user_login = '';
    $user_safe = true;

    $bb_register_error = new WP_Error;

    if ( $_POST && 'post' == strtolower($_SERVER['REQUEST_METHOD']) ) {
    $_POST = stripslashes_deep( $_POST );
    $_POST['user_login'] = trim( $_POST['user_login'] );
    $user_login = sanitize_user( $_POST['user_login'], true );
    if ( $user_login !== $_POST['user_login'] ) {
    $bad_input = true;
    if ( $user_login )
    $bb_register_error->add( 'user_login', sprintf( __( "%s is an invalid username. How's this one? <strong>%s</strong>" ), esc_html( $_POST['user_login'] ), $user_login ) );
    else
    $bb_register_error->add( 'user_login', sprintf( __( '%s is an invalid username.' ), esc_html( $_POST['user_login'] ) ) );
    }

    foreach ( $profile_info_keys as $key => $label ) {
    if ( is_string($$key) )
    $$key = esc_attr( $$key );
    elseif ( is_null($$key) )
    $$key = esc_attr( $_POST[$key] );

    if ( !$$key && $label[0] == 1 ) {
    $bad_input = true;
    $$key = false;
    $bb_register_error->add( $key, sprintf( __( '%s is required' ), $label[1] ) );
    }
    }

    if ( !$bad_input ) {

    // Invoke non-user post checks here
    if ( !$post_content = trim($_POST['post_content']) )
    bb_die(__('You need to actually submit some content!'));

    if ( isset($_POST['topic']) && $forum_id = (int) $_POST['forum_id'] ) {

    $topic = trim( $_POST['topic'] );

    if ('' == $topic)
    bb_die(__('Please enter a topic title'));

    } elseif ( isset($_POST['topic_id'] ) ) {
    $topic_id = (int) $_POST['topic_id'];
    bb_check_admin_referer( 'create-post_' . $topic_id );
    }

    if ( !topic_is_open( $topic_id ) )
    bb_die(__('This topic has been closed'));

    // Invoke registration
    $user_id = bb_new_user( $user_login, $_POST['user_email'], null );
    if ( is_wp_error( $user_id ) ) { // Error creating user

    foreach ( $user_id->get_error_codes() as $code )
    $bb_register_error->add( $code, $user_id->get_error_message( $code ) );

    if ( $bb_register_error->get_error_message( 'user_login' ) )
    $user_safe = false;

    } elseif ( $user_id ) { // Registration success

    foreach( $profile_info_keys as $key => $label )
    if ( strpos($key, 'user_') !== 0 && $$key !== '' )
    bb_update_usermeta( $user_id, $key, $$key );

    do_action('register_user', $user_id);

    // Create the current user object

    $wp_auth_object->set_current_user( $user_id );

    $bb_current_user = $wp_auth_object->current;

    // Do last minute post/topic checks
    if ( !empty($topic) && $forum_id = (int) $_POST['forum_id'] ) {

    if ( !bb_current_user_can('write_posts') )
    bb_die(__('You are not allowed to post. Are you logged in?'));

    if ( !bb_current_user_can( 'write_topic', $forum_id ) )
    bb_die(__('You are not allowed to write new topics.'));

    if ( !bb_current_user_can( 'write_topic', $forum_id ) )
    bb_die(__('You are not allowed to write new topics in this forum.'));

    bb_check_admin_referer( 'create-topic' );
    $topic_id = bb_new_topic( $topic, $forum_id, $tags );

    }

    if ( !bb_current_user_can( 'write_post', $topic_id ) )
    bb_die(__('You are not allowed to post in this topic.'));

    // Create the new post
    $post_id = bb_new_post( $topic_id, $_POST['post_content'] );

    $tags = trim( $_POST['tags'] );
    bb_add_topic_tags( $topic_id, $tags );

    $link = get_post_link( $post_id );

    $topic = get_topic( $topic_id, false );

    if ( $topic->topic_posts )
    $link = add_query_arg( 'replies', $topic->topic_posts, $link );

    do_action( 'bb-post.php', $post_id );

    if ( $post_id )
    wp_redirect( $link );
    else
    wp_redirect( bb_get_uri(null, null, BB_URI_CONTEXT_HEADER) );
    exit;
    }
    }
    }

    // If you've reached this point, there must have been an error

    $user_login_error = $bb_register_error->get_error_message( 'user_login' );

    if( empty( $user_login_error ) ) // For some reason, error strings are not always available (i.e. for invalid emails)
    $user_login_error = __( 'Something went wrong! Check what you entered and try again.' );

    bb_die( $user_login_error );

Viewing 25 results - 8,701 through 8,725 (of 11,591 total)
Skip to toolbar