Markus Pezold (@markus-pezold)

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 73 total)
  • @markus-pezold

    Participant

    Alright. Everything fixed. ๐Ÿ˜‰

    To set the post positions newโ€‹โ€‹, I created a curious script using the function ‘bb_update_post_positions’ and an sql-query to get all topics by id. I loop through the topics and make an function call for an modified ‘bb_update_post_positions’.

    I describe here only my approach to solve the problem. My php codeย itself could be dangerous. ๐Ÿ™‚

    But if someone has the same problems importing old data (bbPress 1.x)ย  I’ll help via email.

     

     

     

     

    @markus-pezold

    Participant

    Hi JJJ,

    after studying the bbPress 1.1 converter code and an deep look into the mySQL data I know the error. In my installation the field post_position is set for all old post to ‘0’. It’s possible that this is an error form the originally convert from phpBB to bbPress 0.9 some years ago.

    From the import:
    ‘join_expression’ => ‘USING (topic_id) WHERE posts.post_position IN (0,1)’

    So for now – i’m searching for an solution to reset the post_position.

    @markus-pezold

    Participant

    Hi John,

    in my situation is the correct version not the problem.
    The original forum is on version 1.1 since months. And updated to 1.2 yesterday.
    It’s an old forum (since 2002) – migrated to bbPress 0.9 and then 1.0 -> 1.1.
    Since May 2011 the forum was deactivated – after some problems with an user. ๐Ÿ™

    Hmmm… I think the problem may lie in the fact that the forum has a lot of anonymous posters. In 0.9 there was an plugin for anonymous posters with meta data. But in version >0.9 these posts were all anonoymous posts without an user.

    I’ll test the convertion on a blank installation of WordPress 3.5 today (without any other plugins). And the i’ll report again.

    By the way. JJJ – carry on with your great work on bbPress. ๐Ÿ™‚

    @markus-pezold

    Participant

    Hi castresna,

    i’ve the same problem you describe above. After importing from bbPress 1.2 the replys and topics are mixed up. I’ve tried it a ten times – but no results.

    How have you solved this problem for your forum?

    I appreciate any advice. ๐Ÿ™‚
    Thanks.

    @markus-pezold

    Participant

    Thx for fixing this issue. The next time i’ll create an ticket on trac. :)

    @markus-pezold

    Participant

    Thx for fixing this issue. The next time i’ll create an ticket on trac. :)

    @markus-pezold

    Participant

    Oh – fault. :/ thx for correction

    @markus-pezold

    Participant

    Oh – fault. :/ thx for correction

    @markus-pezold

    Participant

    For individual classes for author post you can use

    class="highlight_<?php post_author_id();?>"

    Anonther good starting point to search:

    http://phpxref.ftwr.co.uk/bbpress/nav.html?_functions/index.html

    There are always different ways to achieve an objective. It is only a question of whether the target should be achieved easily, quickly or safely.

    :)

    @markus-pezold

    Participant

    For individual classes for author post you can use

    class="highlight_<?php post_author_id();?>"

    Anonther good starting point to search:

    http://phpxref.ftwr.co.uk/bbpress/nav.html?_functions/index.html

    There are always different ways to achieve an objective. It is only a question of whether the target should be achieved easily, quickly or safely.

    :)

    @markus-pezold

    Participant

    Here is one solution described for all keymasters and admins:

    https://bbpress.org/forums/topic/different-style-for-key-master-and-administrator-replies-1

    For admins you can also do something like this:

    <?php if( is_bb_admin() ) { ?> class="highlight"<?php } ?>

    @markus-pezold

    Participant

    Here is one solution described for all keymasters and admins:

    https://bbpress.org/forums/topic/different-style-for-key-master-and-administrator-replies-1

    For admins you can also do something like this:

    <?php if( is_bb_admin() ) { ?> class="highlight"<?php } ?>

    @markus-pezold

    Participant

    Hi Zaerl,

    I see – your plugin is a better and bigger way to highlight many topics and forums. :)

    You hang your code to the filter topic_class. The perfect solution.

    @softinfo: You must use <?php bb_forum_class(); ?> in your custom theme.

    @markus-pezold

    Participant

    Hi Zaerl,

    I see – your plugin is a better and bigger way to highlight many topics and forums. :)

    You hang your code to the filter topic_class. The perfect solution.

    @softinfo: You must use <?php bb_forum_class(); ?> in your custom theme.

    @markus-pezold

    Participant

    For specific topics and post you can use:

    get_topic_id();

    post_id();

    Here you’ll find the incomplete documentation:

    https://bbpress.org/documentation/template-tags

    But I think for posts and topics there must be another, better solution. No one wants to write their own CSS definition for each ID. :)

    Maybe it is better to use a term from the tagging to create the unique look of some Posts.

    @markus-pezold

    Participant

    For specific topics and post you can use:

    get_topic_id();

    post_id();

    Here you’ll find the incomplete documentation:

    https://bbpress.org/documentation/template-tags

    But I think for posts and topics there must be another, better solution. No one wants to write their own CSS definition for each ID. :)

    Maybe it is better to use a term from the tagging to create the unique look of some Posts.

    @markus-pezold

    Participant

    Ok – here is a small “solution” :)

    For a specific forum you can use this code.

    Put this in the front-page-php:

    id="forum_<?php echo get_forum_id()?>"

    _________________________________

    Here is the example with the standard theme kakumei

    <?php if ( bb_forums() ) : ?>

    <h2><?php _e('Forums'); ?></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’); ?> id=”forum_<?php echo get_forum_id()?>”>

    <td colspan=”3″><?php bb_forum_pad( ‘<div class=”nest”>’ ); ?>“><?php forum_name(); ?><?php forum_description( array( ‘before’ => ‘<small> – ‘, ‘after’ => ‘</small>’ ) ); ?><?php bb_forum_pad( ‘</div>’ ); ?></td>

    </tr>

    <?php continue; endif; ?>

    <tr<?php bb_forum_class(); ?> id=”forum_<?php echo get_forum_id()?>>

    <td><?php bb_forum_pad( ‘<div class=”nest”>’ ); ?>“><?php forum_name(); ?><?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; // bb_forums() ?>

    So you can style with CSS the background and the font-color.

    eg. #forum_1 {background-color: #ddd; color: #333}

    @markus-pezold

    Participant

    Ok – here is a small “solution” :)

    For a specific forum you can use this code.

    Put this in the front-page-php:

    id="forum_<?php echo get_forum_id()?>"

    _________________________________

    Here is the example with the standard theme kakumei

    <?php if ( bb_forums() ) : ?>

    <h2><?php _e('Forums'); ?></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’); ?> id=”forum_<?php echo get_forum_id()?>”>

    <td colspan=”3″><?php bb_forum_pad( ‘<div class=”nest”>’ ); ?>“><?php forum_name(); ?><?php forum_description( array( ‘before’ => ‘<small> – ‘, ‘after’ => ‘</small>’ ) ); ?><?php bb_forum_pad( ‘</div>’ ); ?></td>

    </tr>

    <?php continue; endif; ?>

    <tr<?php bb_forum_class(); ?> id=”forum_<?php echo get_forum_id()?>>

    <td><?php bb_forum_pad( ‘<div class=”nest”>’ ); ?>“><?php forum_name(); ?><?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; // bb_forums() ?>

    So you can style with CSS the background and the font-color.

    eg. #forum_1 {background-color: #ddd; color: #333}

    @markus-pezold

    Participant

    Hi softinfo,

    give me a few hours – i’ll post an example.

    Which template do you use?

    @markus-pezold

    Participant

    Hi softinfo,

    give me a few hours – i’ll post an example.

    Which template do you use?

    @markus-pezold

    Participant

    Hi Softinfo,

    i think it is possible to write a small php script to use the forum-id or the forum-name as css class.

    From the standard theme:

    <tr class="bb-category bb-parent bb-follows-niece bb-root alt "></tr>

    Here you can add the new class. Then you can use the CSS class analogous to the standard class “alt”.

    Greets Markus

    black-forever

    http://black-forever.de

    http://twitter.com/blackforever_de

    @markus-pezold

    Participant

    Hi Softinfo,

    i think it is possible to write a small php script to use the forum-id or the forum-name as css class.

    From the standard theme:

    <tr class="bb-category bb-parent bb-follows-niece bb-root alt "></tr>

    Here you can add the new class. Then you can use the CSS class analogous to the standard class “alt”.

    Greets Markus

    black-forever

    http://black-forever.de

    http://twitter.com/blackforever_de

    @markus-pezold

    Participant

    Hi dsmasters,

    it seems that there is no feature in the backend from WordPress to disable the anonymous postings. Maybe it’s possible to disable to post-form via conditional tags?

    <?php if ( $user_ID ) { ?>

    postform

    <?php } ?>

    @markus-pezold

    Participant

    You can download the trunk version via this link:

    https://trac.bbpress.org/changeset/2540/trunk?old_path=%2F&format=zip

    On trac.bbpress.org you can choose the version (Browse Source) and there you have the download link on the bottom of the page. (“

    Download in other format: Zip Archive”)

    Greets

    Markus

    @markus-pezold

    Participant

    You can download the trunk version via this link:

    https://trac.bbpress.org/changeset/2540/trunk?old_path=%2F&format=zip

    On trac.bbpress.org you can choose the version (Browse Source) and there you have the download link on the bottom of the page. (“

    Download in other format: Zip Archive”)

    Greets

    Markus

Viewing 25 replies - 1 through 25 (of 73 total)