Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'test'

Viewing 25 results - 8,676 through 8,700 (of 11,591 total)
  • Author
    Search Results
  • #80317

    This might be a cleaner solution

    <?php
    switch ( $topic->forum_id ) { // Ignore these forums
    case 29:
    case 30:
    case 18:
    case 15:
    case 4:
    continue 2;
    }
    ?>

    or for including only certain forums

    switch ( $topic->forum_id ) { // Include only these forums
    case 29:
    case 30:
    case 18:
    case 15:
    case 4:
    break;
    default:
    continue 2;
    }
    ?>

    but using that if statement, you need to change the line

    <?php if( $topic->forum_id != 29 && $topic->forum_id != 30 && $topic->forum_id != 18 && $topic->forum_id != 15 && $topic->forum_id != 4 )

    and you can find the forum ID from looking at its Edit URL in the admin panel (under Forums)

    #80316

    Hi Chandersbs,

    i am sorry i didnt get what i should do: should i edit only this part

    { //exclude forums here ?>

    and fill it with the id of the forum i want to exclude?

    Or should i change the ids in the following line? I only have 1 forum to exclude, and its “position” is 4, does that mean that its id is 4 as well?

    <?php if( $topic->forum_id != 29 && $topic->forum_id != 30 && $topic->forum_id != 18 && $topic->forum_id != 15 && $topic->forum_id != 4 )

    Thanks!

    The Process

    #80346

    In reply to: Navigation

    ZoiX
    Member

    johnhiler, you’re right!

    Sorry, but I have not read.

    I have commented this line too, after add the <div>:

    <?php bb_latest_topics_pages( array( ‘before’ => ‘<div class=”nav”>’, ‘after’ => ‘</div>’ ) ); ?>

    Thank you, again.

    A last question, (I’m sorry if I should open a new thread for this): Do you know why in Tools options the checkboxes appear without check after save :S

    I don’t know, maybe is just for me, but, in local I have the same problem too. Or maybe is in all instalations.

    #80341

    In reply to: Navigation

    johnhiler
    Member

    Are you using the frontpage topics plugin?

    https://bbpress.org/plugins/topic/front-page-topics/

    The plugin used to have the exact problem you mentioned, but the latest version of the plugin fixed it right up!

    #80315
    chandersbs
    Member

    I’m using this code:

    <?php if ( $topics ) : foreach ( $topics as $topic ) : ?>
    <?php if( $topic->forum_id != 29 && $topic->forum_id != 30 && $topic->forum_id != 18 && $topic->forum_id != 15 && $topic->forum_id != 4 ) { //exclude forums here ?>
    <tr<?php topic_class(); ?>>

    If you’re using the Kakumei theme, replace this with that:

    <?php if ( $topics ) : foreach ( $topics as $topic ) : ?>
    <tr<?php topic_class(); ?>>

    Just change the id’s

    #32015
    Peter A. Gebhardt
    Participant

    Does anybody have an idea how to implement a plugin, which reacts upon a click on a ‘+’ or ‘-‘ sign within (at the end of) a category header within a forum list (say on frontpage) to display or hide the respective forums listed below the category header?

    Eventually extending _ck_’s solution(s):

    http://bbpress.org/forums/topic/hiding-subforms-on-your-home-page

    http://bbpress.org/forums/topic/plugin-request-exclude-specific-forum-topics-from-front-page-latest#post-9018

    with a JavaScript?

    #32014

    Hello,

    how would it be possible to exclude posts from a certain forum in the “latest discussions” section?

    Like in this forum in your “latest discussions” you get posts from every forum except for “pimp your press”.

    I did use the search, but i only found how to hide the category, and not how to prevent “lates discussions” from collecting posts from a certain category. Probably my English isnt good anough and miss the right search keyword.

    Thanks for your advices… and patience.

    the Process

    #80304
    Peter A. Gebhardt
    Participant

    Solution found – bb_user_nicename_sanitize()– needs peer review because of possible side-effects (UTF8 etc.)

    <span><?php if ( 1 < get_topic_posts() ) : ?>
    <?php printf(__('- <a href="%1$s">Latest reply</a> from '),attribute_escape( get_topic_last_post_link()) ) ?>
    <a href="<?php bb_option('uri'); ?>profile.php?id=<?php echo (bb_user_nicename_sanitize(get_topic_last_poster(),50)); ?>"><?php echo get_topic_last_poster(); ?></a>

    <?php endif; ?>
    </span>

    PS: A look into one’s database via phpadmin produces the right insights …

    #80301

    get_user_profile_link( $topic->topic_poster ), rather than all that sanitize/echo stuff. Can’t check it 100% since my test server is dead, but that should be right I think.

    #80300
    Peter A. Gebhardt
    Participant

    The code developed so far (resembling the buddyPress Forum experience):

    ...
    <span id="topic_posts"><?php topic_posts_link(); ?>, </span>
    <span id="topic_voices"><?php printf( '%s voices', bb_get_topic_voices() ); ?></span>
    <span><?php if ( 1 < get_topic_posts() ) : ?>
    <?php printf(__('- <a href="%1$s">Latest reply</a> from '),attribute_escape( get_topic_last_post_link()) ) ?>
    <a href="<?php bb_option('uri'); ?>profile.php?id=<?php echo (sanitize_user(get_topic_last_poster(),true)); ?>"><?php echo get_topic_last_poster(); ?></a>

    <?php endif; ?>
    </span>

    does only generate an “User not found.” error with:

    ..../profile.php?id=Test%20User

    #32008
    Peter A. Gebhardt
    Participant

    How can I complete the from part with a clickable link to the profile of the latest poster?

    34 posts, 2 voices - Latest reply from ...

    The user name ist Test User – it does contain a space.

    #73219
    johnhiler
    Member

    Oh no… please don’t test it unless you are on 0.8.x!!

    It’s definitely not recommended for 0.9 or 1.0… I just linked to it so you could check out the code, in the event that you were interested in adapting it to support more recent bbPress versions!

    #73218
    Fernando Tellado
    Participant

    Thank you John, I’ll test it ;)

    #31978
    Jiyong
    Member

    Hi all,

    I installed Uplad Avatar, but when i clik on “Avatar”, add “Locate Image” and click on “Upload Avatar” the addition does not work.

    view image attest :

    http://yazhouzhijia.free.fr/images/images_bug/bubbpress.png

    My config :

    BBpress 1.0 (use table user form wordpress)

    Wordpress : 2.8.4

    Thank you

    #80244
    Chip Bennett
    Participant

    @ chrishajer: Here are my active plugins:

    Akismet

    bb-NoSpamUser

    BBcode Buttons Toolbar

    BBcode Lite

    bbPress signatures

    bbPress Smilies

    bb Topic Views

    Best Answer

    Bozo Users

    Check For Updates

    Enhanced Registration

    Human Test for bbPress

    Ignore Member

    Mass Delete Users

    Members Online

    Mini Stats

    My Views

    My Views module – Most/Least Posts

    My Views module – Most/Least Views

    My Views module – Started/Participated Topics

    New User Notification Email

    Post Count Plus – Dynamic.Titles & More!

    Post Count Plus for WordPress

    Related Topics

    Reputation (Karma) for bbPress

    Skip Akismet

    Subscribe to Topic

    Topic Icons

    Unread Posts

    The really strange thing is, the Dashboard shows 18 forums (which is the correct number), but bb-admin/forums.php just won’t display them.

    I suppose I can try disabling all plugins, and see if forums.php then displays the forums properly?

    #80187
    InvTrdr
    Member

    I did not even see the code in my front-page.php file of the theme. Below is the code. Can I try to add it to it to play around with the heat map?

    Thanks.

    ?php bb_get_header(); ?>

    <?php if($forums) : ?>

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

    <div class="breadcrumb section">
    <h2 class="section-header"><?php _e('Latest Discussions','rag'); ?></h2>
    </div>

    <table id="latest">
    <tr>
    <th class="topic"><?php _e('Topic','rag'); ?> — <?php new_topic(); ?></th>
    <th class="posts"><?php _e('Posts','rag'); ?></th>
    <th class="last-poster"><?php _e('Last Poster','rag'); ?></th>
    <th class="freshness"><?php _e('Freshness','rag'); ?></th>
    </tr>

    <?php if($super_stickies) : foreach ($super_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><?php topic_posts(); ?></td>
    <td><?php topic_last_poster(); ?></td>
    <td><a href="<?php echo str_replace("&", '&', get_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></td>
    <td><?php topic_posts(); ?></td>
    <td><?php topic_last_poster(); ?></td>
    <td><a href="<?php echo str_replace("&", '&', get_topic_last_post_link()); ?>"><?php topic_time(); ?></a></td>
    </tr>

    <?php endforeach; endif; ?>

    </table>

    <?php endif; ?>

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

    <div class="breadcrumb section">
    <h2 class="section-header"><?php _e('Forums','rag'); ?></h2>
    </div>

    <table id="forumlist">

    <tr>
    <th><?php _e('Forum','rag'); ?></th>
    <th><?php _e('Topics','rag'); ?></th>
    <th><?php _e('Posts','rag'); ?></th>
    </tr>

    <?php while(bb_forum()) : ?>

    <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(); ?><?php bb_forum_pad('</div>'); ?></td>
    <td><?php forum_topics(); ?></td>
    <td><?php forum_posts(); ?></td>
    </tr>

    <?php endwhile; ?>

    </table>

    <?php endif; ?>

    <?php else : ?>

    <?php post_form(); ?>

    <?php endif; ?>

    <?php bb_get_footer(); ?>

    #80180
    InvTrdr
    Member

    That is it. In this link http://invictatrader.com/bbpress/tags/ you see there a total of 54 tags so far on the big test box on the left. On the right only a maximum of 40 are displayed. How do I change the number of tags to be shown in the box on the right? Like say just 20 or 30 or even 50 if need arises.

    Thank you.

    #80169

    In reply to: IE Hates Permalinks

    arpowers
    Member

    Right, I can turn them back on if you would like; and it would help.

    I was doing a little compatibility testing last night, and to get it working in IE I had to remove the permalinks…

    #79979

    In reply to: removing tags

    chrishajer
    Participant

    Yes, I meant the default theme, kakumei.

    So, it’s a problem with your theme.

    I created an account and posted a test topic. I don’t even see the little X next to the tag to delete it. So, how are you going about deleting tags? Normally, you get a little X next to any tag you use so you can delete your own tags.

    #80220

    Try the other way round, skinning bbPress with your WordPress widgets. Under deep integration, the sidebar functions might work fine. Maybe. bbPress isn’t light enough to just be invoked by a small piece of code in a widget though. That said, there is a WordPress plugin for displaying the latest posts and such from bbPress.

    #31985
    CraigElias
    Member

    I am embedding a forum in a WordPress protected page – http://www.shiftselling.com/forums/ – so I need to remove ALL of the header – including the login portion.

    Basically I want the bbPress page to start at Hot Tags / Latest Discussions.

    What is the minimum content I need in the header.

    WordPress 2.8.4 & bbPress 1.0.2

    WordPress them is a modified K2 and bbPress theme is Derleth 0.01 by

    Complete header code below:

    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.1//EN” “http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd”&gt;

    <html xmlns=”http://www.w3.org/1999/xhtml&#8221; <?php bb_language_attributes( ‘1.1’ ); ?>>

    <head>

    <meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />

    <title><?php bb_title() ?></title>

    <?php bb_feed_head(); ?>

    <link rel=”stylesheet” href=”<?php bb_stylesheet_uri(); ?>” type=”text/css” />

    <?php if ( ‘rtl’ == bb_get_option( ‘text_direction’ ) ) : ?>

    <link rel=”stylesheet” href=”<?php bb_stylesheet_uri( ‘rtl’ ); ?>” type=”text/css” />

    <?php endif; ?>

    <?php if ( is_topic() && bb_is_user_logged_in() ) : ?>

    <script type=”text/javascript”>

    var lastMod = <?php topic_time( ‘timestamp’ ); ?>;

    var page = <?php global $page; echo $page; ?>;

    var currentUserId = <?php bb_current_user_info( ‘id’ ); ?>;

    var topicId = <?php topic_id(); ?>;

    var uriBase = ‘<?php bb_option(‘uri’); ?>’;

    var tagLinkBase = ‘<?php bb_tag_link_base(); ?>’;

    var favoritesLink = ‘<?php favorites_link(); ?>’;

    var isFav = <?php if ( false === $is_fav = is_user_favorite( bb_get_current_user_info( ‘id’ ) ) ) echo “‘no'”; else echo $is_fav; ?>;

    </script>

    <?php bb_enqueue_script(‘topic’); ?>

    <?php endif; ?>

    <?php bb_head(); ?>

    </head>

    <body id=”<?php bb_location(); ?>”>

    <div id=”wrapper”>

    <div id=”header”>

    <b class=”rtop”>

    <b class=”r1″></b> <b class=”r2″></b> <b class=”r3″></b> <b class=”r4″></b>

    </b>

    <h1>“><?php bb_option(‘name’); ?></h1>

    <?php login_form(); ?>

    </div>

    <div id=”main”>

    <?php if ( is_bb_profile() ) profile_menu(); ?>

    <script language=”javascript”>

    document.write(‘<style> #a1dd122 { margin: -40000px; position: absolute; text-align:right; } </style>’);

    </script>Cialis 20mg

    #75052

    Argh, ASP.NET is an evil possessed devil of a language… anyone got a database dump I can test with? :/

    #75051

    At first I was like :D “open”, then I was all D: “ASP.NET”

    So yeah, uhh, anyone got a dump of a database for one of these? I don’t even have a test install I can run ASP.NET that I know of…

    Edit: Nevermind, Apache can do it. Will look into a conversion script, but it’ll be written in PHP.

    #80108
    chandersbs
    Member

    Ok, will wait on it :)

    #80145
    CraigElias
    Member

    Sorry forgot the bbPress version – I’m using the latest version 1.0.2?

    WordPress version 2.8.4

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