Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'test'

Viewing 25 results - 8,976 through 9,000 (of 11,598 total)
  • Author
    Search Results
  • chandersbs
    Member

    I think this:

    <?php if( $topic->forum_id == 9 ) { ?>

    Is not working actually :(

    chandersbs
    Member

    Hi,

    How can I number the topics displayed in the Latest Discussion section?

    I know that by adding this code:

    <?php if( $topic->forum_id == 9 ) { ?>

    I get to choose which forum topics will be shown ONLY. I just want to know what exactly I should add so I can decide by giving a number which section will have how many number of topics.

    Thanks.

    #56567
    deadlyhifi
    Participant

    In fact, it’s important to do it the way I mention, because just checking for forum id when outputting will still count the topics, therefore the number of topics appearing on the page will be inconsistent.

    e.g. If you have 5 topics in the forum you are not showing, and output the latest 50 on the front-page (Reading Settings > Items per page). You’ll actually get 45 listed.

    #56566
    deadlyhifi
    Participant

    you can do this with a plugin if you like.

    function filter_front_page_topics($where){
    $exclude_forums=array ("3"); // enable this to manually specify specific forums by id #
    if ( is_front() ) {foreach($exclude_forums as $forum) { $where.=" AND forum_id != ".$forum." "; }}
    return $where;
    }
    add_filter( 'get_latest_topics_where', 'filter_front_page_topics');
    add_filter( 'get_latest_posts_where', 'filter_front_page_topics');

    If you have front page paging (1,2,3,4 etc) then the paging count will be wrong. You need to edit the bb-includes/function.bb-template.php file

    function bb_latest_topics_pages() {
    global $page;
    static $bb_latest_topics_count;
    if (!$bb_latest_topics_count) {
    global $bbdb;
    $bb_latest_topics_count = $bbdb->get_var('SELECT COUNT(<code>topic_id</code>) FROM <code>' . $bbdb->topics . '</code> WHERE <code>topic_open</code> = 1 AND <code>topic_status</code> = 0 AND <code>topic_sticky</code> != 2 AND <code>forum_id</code> != 3;');
    }
    echo apply_filters( 'bb_latest_topics_pages', get_page_number_links( $page, $bb_latest_topics_count ), $bb_latest_topics_count );
    }

    Note the addition of AND "forum_id" != 3 to the query.

    EDIT: just noticed that use of backticks in the code has been turned into <code>, so amend as necessary.

    #56565
    chandersbs
    Member

    This still works! I’m using 1.0.1

    This is how my code looks like:

    <?php if( $topic->forum_id != 29 ) { ?>

    <tr<?php topic_class(); ?>>

    <td><?php bb_topic_labels(); ?> “><?php topic_title(); ?><?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_time(); ?></td>

    </tr><?php }?>

    Thanks

    grassrootspa
    Member

    Not sure if its just me but there creates an error.

    #76731
    incirus
    Member

    Thanks for the answer but that’s the problem.I just couldnt pull that out. I am actually trying to configure the rss feed with the author image. This way I can publish latest posts out of WP or forum in a nice way with the author pictures and posts.

    kickerman360
    Member
    <td class="num">
    <?php
    function gs_get_topic_last_poster_profile_link() {
    global $topic;
    if ($topic)
    return sprintf('<a href="%s">%s</a>', get_user_profile_link($topic->topic_last_poster), get_topic_last_poster($topic->topic_id));
    return false;
    }
    ?>
    </td>

    grassrootspa
    Member

    Thanks for your help, Detective. How would I implement your code with:

    <td class="num"><?php topic_last_poster(); ?></td>

    Which is in Forum.php and Front-Page.php

    #52180
    anandasama
    Member

    I still dont know if you people managed to fix this but here is what worked for me after alot of trial and error:

    From the first-page:

    This code will generate a link to the original author’s profile and that one’s username.

    <a href="<?php user_profile_link(($topic->topic_poster)) ?>"><?php topic_author(); ?></a>

    And this code will make a link to the last user who posted and that one’s username.

    <a href="<?php user_profile_link($topic->topic_last_poster) ?>" class="latest-disc-last-poster"><?php topic_last_poster(); ?></a>

    Hope it helps!

    Detective
    Member
    function gs_get_topic_last_poster_profile_link() {
    global $topic;
    if ($topic)
    return sprintf('<a href="%s">%s</a>', get_user_profile_link($topic->topic_last_poster), get_topic_last_poster($topic->topic_id));
    return false;
    }

    grassrootspa
    Member

    Hmm, this doesn’t seem to work. Anyone else have any ideas?

    #74866
    Göran
    Member

    Thanks Tommie! My forum looks better and better thanks to you and plrk.

    A small suggested change in the registration form: “Position” should be changed to “Plats”.

    I use bbPress 1.0.1. To make it possible for users to register with Swedish or other non-acii names I use Cyrillian Nickname http://bbpress.ru/downloads/plugins/

    To prevent spam robots I also use Human Test available at https://bbpress.org/plugins/topic/human-test/ I have translated the few phrases in the plugin. Write me a pm if you want it (I tried to make it available at my site but could not place a php-file there. Should it be zipped?)

    #74863
    Göran
    Member

    Dear plrk I downloaded your latest .mo-file and it solved my problem with ugly letters for Swedish characters. Thank you!

    It is still “sullat” but I now know how to change that. And did so. However I also have English words for months. I do not know how to change that.

    My almost good enough forum is at http://www.32astolf.se/forum/

    #76664
    Kar-l
    Member

    Tested, not working right with Kakumei, all plugins disabled, v1.01.

    #17646
    Dreamcolor
    Participant

    Make bbPress fonts of backend minimum to 12px. And fix fonts style from inherit to normal. So bbPress can display chinese (not only chinese) better.

    该插件主要的用途,是那些将 bbPress 后台汉化为中文或其他双字节语种的用户。它将会把后台的字体大小控制在最小 12px,并且将原有的斜体文字变成正常字体。这样,后台在现实中文的时候就不会出现字体过小看不清楚的现象了。

    现在将该插件做成了两种方式。一种是以正常的 bbPress 插件的形式发布。下载后需要将插件目录上传到 bbPress 根目录的 my-plugins 目录中,然后在后台插件管理页面进行启用。这样,即使后台为英文状态下,也可以把后台中出现的中文进行美化。另外一种是做成随语言包自动启动的方式。下载后,将 php 文件上传到语言包目录中。这种方式只有激活了相应的语言包时才会生效。

    由于 bbPress 每次更新,也许会涉及到 CSS 样式表的修改。所以该插件存在一定的针对性。也就是说不是总向下兼容的。所以,插件发布的时候,会把对应的 bbPress 版本标识出来。各位可以从插件的版本号上看出来。例如:1.0.1-1 标识针对的 bbPress 版本为 1.0.1,而后面的“-1”标识是第一个修订版本。以后发布的“1.0.1-2”,“1.0.1-3”等等都是对应的 bbPress 1.0.1。只是插件作出了某些修改。只有前面的版本号变了,才表示对应的 bbPress 版本发生了变化。

    http://dreamcolor.net/2009/07/bbpress-admin-beautifier-testing/

    You can download it here:

    http://dreamcolor.net/project/bbpress-admin-fonts-beautifier/

    Anybody can translate this topic to english? THX…

    sonnygahir
    Member

    The physical directory structure is as follows:

    Directory of D:InetpubNewwwwrootforums

    20/07/2009 10:59 <DIR> .

    20/07/2009 10:59 <DIR> ..

    19/07/2009 15:14 <DIR> bb-admin

    19/07/2009 12:32 <DIR> bb-cache

    19/07/2009 12:32 <DIR> bb-plugins

    19/07/2009 12:32 <DIR> bb-includes

    19/07/2009 12:32 <DIR> bb-images

    19/07/2009 12:32 <DIR> bb-templates

    20/07/2009 13:17 1,691 bb-config.php

    05/03/2008 04:32 816 bb-load.php

    12/02/2009 00:21 1,037 bb-login.php

    24/04/2008 19:06 1,673 bb-config-sample.php

    23/04/2008 11:29 1,647 bb-post.php

    30/12/2008 23:14 445 bb-reset-password.php

    26/08/2008 20:15 13,433 bb-settings.php

    12/02/2009 00:21 822 bb-edit.php

    26/02/2007 22:48 651 edit.php

    12/02/2009 00:21 1,076 favorites.php

    22/01/2007 08:40 449 forum.php

    22/01/2007 08:40 450 index.php

    03/01/2008 00:57 17,986 license.txt

    12/02/2009 00:21 308 profile-base.php

    17/12/2008 07:57 4,782 profile-edit.php

    15/03/2008 02:40 851 profile.php

    03/01/2008 00:57 855 readme.txt

    05/03/2008 04:32 1,623 register.php

    25/04/2008 14:09 4,349 rss.php

    29/01/2008 20:11 1,402 search.php

    05/03/2008 04:32 238 statistics.php

    12/02/2009 00:21 574 tag-add.php

    12/03/2008 07:46 661 tag-remove.php

    22/01/2007 08:40 433 tags.php

    19/07/2009 15:46 3,293 testdb.php

    03/01/2008 00:57 1,312 topic.php

    03/01/2008 00:57 756 view.php

    27 File(s) 63,613 bytes

    kickerman360
    Member

    Maybe this will work:

    <a href='<?php bb_uri(); ?>/profile/<?php topic_last_poster(); ?>"><?php topic_last_poster(); ?></a>

    Not 100% sure it would work since <?php topic_last_poster(); ?> grabs the display name, not the user name I think. Well there’s a start.

    #76345
    Gautam
    Member

    I think, for the front page, where all topics are shown, you should put this:

    <?php
    $limit = bb_get_option('page_topics');
    $offset = ($page-1)*$limit;
    $all_topics = $bbdb->get_results("SELECT * FROM $bbdb->topics WHERE topic_status = 0 AND topic_sticky = 0 ORDER BY topic_id DESC LIMIT $limit OFFSET $offset");
    $all_topic_posts = get_thread( $topic->topic_id);
    $topics = $all_topics;
    ?>

    Haven’t tested it, but should work.

    #76598
    bb-gian
    Member

    crackpixels,

    In bbPress Comments are generally called Posts.

    I think the Posts column is set up by default.

    In the Latest Discussions table, look for this cell: <th><?php _e(‘Posts’); ?></th>, which is the title of the column, and this:<td class=”num”><?php topic_posts(); ?></td>, which is the content of the comuns, displaying the number of Posts (Comments).

    #15404

    On both Chrome and Safari (latest stable on both, and up-to trunk on Chrome) these do not work for me:

    – Adding/Removing from favorites ajax script within a viewed topic: Clicking on the span wrapped anchor shows animation but state unchanged.

    – keymaster removal of posts: input box and animation plays, upon refreshing page (Manual F5) posts re-appear.

    These situations do not occur with FireFox or I.E.

    I’ve also replaced jQuery 1.2.6 with jQuery 1.3.2 (without errors, and requires a few php changes to the script loader) but this does not work. I had thought maybe there were fixes to 1.3.2 ajax code.

    Still not discounting my own server config, and I haven’t fully debugged the javascript yet. I have jQuery debug up and running, just going to be a while.

    Stack is: WPMU 2.8.1 >> BBPress 1.0.1

    Anyone have similar issues?

    #76516
    bb-gian
    Member

    Cool, Gautam! Thank you.

    I can’t go and test it right now, as I am too busy on a development, but will definitely install it tonight and let you know.

    Thanks!

    #76339
    deadlyhifi
    Participant

    I do this on one of my forums (a classified forum that I didn’t want users ‘bumping’ on constantly.) Just add

    <?php
    if ($forum_id == 3) {
    $limit = bb_get_option('page_topics');
    $offset = ($page-1)*$limit;
    $forum_one_topics = $bbdb->get_results("SELECT * FROM $bbdb->topics WHERE forum_id = $forum_id AND topic_status = 0 AND topic_sticky = 0 ORDER BY topic_id DESC LIMIT $limit OFFSET $offset");
    $forum_one_topic_posts = get_thread( $topic->topic_id);
    $topics = $forum_one_topics;
    }
    ?>

    to the top of the forum.php file in your template. Take out the if ($forum_id == 3) { and trailing } if you want to apply it to all your forums.

    To show topic creation date instead of freshness replace topic_time(); with get_topic_start_time(); in the forum.php, and front-page.php template files – though I haven’t tested that bit.

    #76512
    johnhiler
    Member

    This plugin seems to have some compatibility issues, but might be worth checking out:

    https://bbpress.org/plugins/topic/live-comment-preview/

    As an fyi, plugins are generally made by users and aren’t necessarily supposed to work with version 1.0.1; they work with whatever version each developer has tested the plugin on. In most cases, that’s version 0.9.

    Right now, very few plugins are officially compatible (i.e. tested) with version 1.0 and 1.0.1. But a number of them are unofficially compatible – they worked on 0.9 and still work (inadvertently) on 1.0.

    Good luck!

    #76338
    blah
    Member

    After posting a reply. I know it’s normal for the topic to be bumped to the top along w/ the “Freshness” but I would like the Freshness to be replaced by the exact date when topic was created and for it not to bump to the top when someone replies.

    I’m using the latest 1.0.1.

Viewing 25 results - 8,976 through 9,000 (of 11,598 total)
Skip to toolbar