Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 19,451 through 19,475 (of 32,506 total)
  • Author
    Search Results
  • #103531
    Anonymous User
    Inactive

    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.

    :)

    #98430
    Anonymous User
    Inactive

    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 } ?>

    #103530
    Anonymous User
    Inactive

    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 } ?>

    #98428
    Anonymous User
    Inactive

    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.

    #103528
    Anonymous User
    Inactive

    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.

    #98427
    Anonymous User
    Inactive

    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.

    #103527
    Anonymous User
    Inactive

    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.

    #98426
    zaerl
    Participant

    Zaerl, you must have :), if you are listening to me.

    http://dl.dropbox.com/u/15741404/za-highlight.php

    Change the 4 global vars:

    $za_highlight_topics = array();

    $za_highlight_topic_class = ”;

    $za_highlight_forums = array();

    $za_highlight_forum_class = ”;

    according to your needs. I do not provide support for this plugin.

    #103526
    zaerl
    Participant

    Zaerl, you must have :), if you are listening to me.

    http://dl.dropbox.com/u/15741404/za-highlight.php

    Change the 4 global vars:

    $za_highlight_topics = array();

    $za_highlight_topic_class = ”;

    $za_highlight_forums = array();

    $za_highlight_forum_class = ”;

    according to your needs. I do not provide support for this plugin.

    #98425
    Anonymous User
    Inactive

    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}

    #103525
    Anonymous User
    Inactive

    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}

    #98424
    Pomy
    Participant

    Markus Pezold take your time brother..

    It will be my pleasure to wait your next post.

    Well, I’m using a custom theme. Its not available on internet.

    But If you want from me to show off my template code, then please tell me.

    #103524
    Pomy
    Participant

    Markus Pezold take your time brother..

    It will be my pleasure to wait your next post.

    Well, I’m using a custom theme. Its not available on internet.

    But If you want from me to show off my template code, then please tell me.

    #98502
    _ck_
    Participant

    Thanks, I got the report.

    This is interesting.

    Do you find that WordPress fails this test too? Because it uses a very similar routine.

    I feel the problem should be addressed in function wp_sanitize_redirect which would solve it cross-platform.

    #103602
    _ck_
    Participant

    Thanks, I got the report.

    This is interesting.

    Do you find that WordPress fails this test too? Because it uses a very similar routine.

    I feel the problem should be addressed in function wp_sanitize_redirect which would solve it cross-platform.

    #98422
    Pomy
    Participant

    Markus Pezold thanks brother for your interest…

    I’m looking forward to that small php script, which you’ve mentioned.

    Can you write that code?

    #103522
    Pomy
    Participant

    Markus Pezold thanks brother for your interest…

    I’m looking forward to that small php script, which you’ve mentioned.

    Can you write that code?

    #92684
    spinhead
    Member

    If we read bbPress code, we can. What if we’d like to read it in English?

    Honest, I’ll bet there’s a one-sentence description of the difference between ‘key master’ and ‘administrator’

    #98420
    Anonymous User
    Inactive

    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

    #103520
    Anonymous User
    Inactive

    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

    #36604
    Anonymous User
    Inactive

    Hi,

    Does any of you the current “trunk”version of bbPress? Since the last version of 9 days (mdawaffe) shows my forum a PHP Warning: “Invalid argument supplied for foreach (@ 2718)”- caused by the file functions.bb-users.php. It seems as if the function expects an array, but not get!?

    A Google search for the error message brings up only my own forum. :) Has anyone found this problem, too?

    My forum url: http://www.mysteria3000.de

    I use the trunk version of bbPress with the Beta 2 of WordPress 3.1.

    Perhaps the reason is a change in handling users in WordPress?

    I am grateful for solutions. :)

    Greetings

    Markus Pezold

    black-forever

    http://black-forever.de

    http://twitter.com/blackforever_de

    #98419
    Pomy
    Participant

    Day Passed..Sorry for bumping

    Nobody have answer?

    Zaerl, you must have :), if you are listening to me.

    #103519
    Pomy
    Participant

    Day Passed..Sorry for bumping

    Nobody have answer?

    Zaerl, you must have :), if you are listening to me.

    #98474

    In reply to: Auto Log Off?

    zaerl
    Participant

    2 weeks if the user select the “remember me” button.

    2 days otherwise.

    The values are hardcoded in the core and I don’t think it’s a good idea to change them.

    #103574

    In reply to: Auto Log Off?

    zaerl
    Participant

    2 weeks if the user select the “remember me” button.

    2 days otherwise.

    The values are hardcoded in the core and I don’t think it’s a good idea to change them.

Viewing 25 results - 19,451 through 19,475 (of 32,506 total)
Skip to toolbar