Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'test'

Viewing 25 results - 8,951 through 8,975 (of 11,584 total)
  • Author
    Search Results
  • anandasama
    Member

    One thing I have an issue with is the first page; I want to make an own “Latest Discussions” loop with all forums EXCEPT one forum. And then an own “latest discussions” With only the entries on that one forum (It’s linked in RSS posts) on the same page.

    Problem is When i used this inside the loop

    //Show latest discussions with all forums except id 17

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

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

    codeblock

    <?php } endif;?>

    <?php endforeach; endif; // $topics ?>

    //Show latest discussions but only forum 17

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

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

    codeblock

    <?php } endif;?>

    <?php endforeach; endif; // $topics ?>

    The pagination gets an error (Shows me fewer posts than the actual limit), and I cant use the same loop (With different conditions) twice.. Then I get a blank page. :S

    So how should I do? Have any Idea? Im not so used to the bbpress loop yet..

    #77169
    anandasama
    Member

    R-a-y: Thank you! The theme is a heavily modified version of Scoun.

    Although I am soon to write a new template because of the css/html isnt that great on it. ;)

    Just my way of learning the ropes.

    About the RSS feeds: I use feedwordpress plugin to feed it into my wordpress. In wordpress then, I put in some arguments to filter out the RSS feed so it won’t show up there. Somehow it still shows up in my WordPress RSS so I need to find a way to filter it out from the RSS too.

    The RSS syndication plugin can hold a number of RSS feeds with alot of options and automatically post articles.

    Then I use BBpress WordPress Synchronization plugin and when bbpress finds a new post in WordPress it automatically syncs and creates a post in one of my bbpress subforums.

    Somehow i dont want all my stuff to go into BbPress so when I write some new article in WordPress I can choose manually wether to sync this to BbPress or not.

    One thing I have an issue with is the first page; I want to make an own “Latest Discussions” loop with all forums EXCEPT RSS. And then an own “latest discussions” With only RSS forum.

    Problem is When i used this inside the loop

    //Show latest discussions with all forums except id 17
    <?php if ( $topics ) : foreach ( $topics as $topic ) : ?>
    <?php if( $topic->forum_id != 17 ) { ?>
    codeblock
    <?php } endif;?>
    <?php endforeach; endif; // $topics ?>

    //Show latest discussions but only forum 17
    <?php if ( $topics ) : foreach ( $topics as $topic ) : ?>
    <?php if( $topic->forum_id == 17 ) { ?>
    codeblock
    <?php } endif;?>
    <?php endforeach; endif; // $topics ?>

    The pagination gets an error (Shows me fewer posts than the actual limit), and I cant use the same loop (With different conditions) twice.. Then I get a blank page. :S

    So how should I do? Have any Idea? Im not so used to the bbpress loop yet..

    #77377

    In reply to: Why integrate BB & WP?

    chrishajer
    Participant

    AFAIK, there are just a couple reasons to want integration.

    1. If you want users to be able to log in once, and comment in WordPress and participate in the forums, then integrated user data is useful.

    2. Some people want to integrate their WordPress footer, sidebar and header, so access to WordPress functions get_sidebar(), get_header() and get_footer() are useful.

    3. Sometimes people want to share data between the forum and the blog. Maybe a list of latest forum topics in the blog. Maybe they want a new topic created in the forum for every blog post. Integration is useful for that.

    I don’t use integration, but I can understand why some people want it.

    anandasama
    Member

    I posted this elsewhere but this works for me on the frontpage:

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

    #77108

    In reply to: Topic paging issue

    _ck_
    Participant

    I’ve now made a plugin to do a few kinds of fast recounting much faster than bbPress does it and with only a few queries vs the hundreds or thousands bbPress can do.

    I highly recommend you backup your database first since I’ve only barely tested it (in theory if it went wrong you could do the recount the long way via the regular functions)

    http://bbshowcase.org/plugins/fast-recount.zip

    The new recount selections will appear under the regular recount menu.

    DO NOT use this plugin under bbPress 1.0, it’s assumes bbPress 0.9 table structures.

    #77105

    In reply to: Topic paging issue

    deadlyhifi
    Participant

    So to use just one of the recount functions on a forum with a half million topics, you currently pull an array of the topic id’s several megabytes in size into ram, then proceed to use 500,000 x 3 = 1.5 MILLION QUERIES to update the meta.

    that’s me! Thanks _ck_.

    Is this the same issue that’s causing the paging to be wrong? The user has just reported:

    It commonly happens with the 41st post on a thread, where you if you click on “latest post” link you get sent to the 40th post at the bottom of page 1, with no link to page 2 (note in the example I sent you “latest post” sent you to the bottom of page 3).

    #28864
    deadlyhifi
    Participant

    I’ve just had a report from one of my forum users saying that occasionally the topic will not return the actual number of posts, and therefore the last page link doesn’t show up.

    In the example there was a topic with 122 posts over 4 pages. The forum stated there were 120 posts over three pages. Latest reply listed the last person who posted but had a link to the last post on page 3 (post 120), and not post 122 on page 4.

    I deleted one post and then undeleted it. This solved the problem.

    I’m not sure what caused it, or how to replicate it. Could this be a bug in bbP or perhaps something I’m doing?

    #28351
    DebraWomen
    Member

    I have just set up WPMU with BuddyPress and BBPress. When I try to post a test message to a group from BuddyPress, I get “There was an error posting that topic.” I have followed all the instructions in the set-up. Can anyone give me any ideas about what is going wrong?

    #76728
    gravitydk
    Member

    Hi smf, I tested Simple forums (I also tested Joomla with Kunena and ccborad, and phbb, and Vanilla).

    In the end, I am settling for bbPress for forums because I need single-user sign on with my content system, and I settled on wordpress for that (Joomla was too slow and I wanted a very fast, responsive site).

    So if you need forum integration with something, you have more factors to consider than just the forum software itself.

    Simple Forums does provide single-user signon with WordPress, but it’s UGLY and there are no good-looking themes. That said, simpleForums is a highly functional forum system and seamless integration with both user and menu-system.

    #28005
    Perry
    Member

    Hey.

    I was clearing my test forums on my bbPress install, I deleted all forums and when I try to load my forums I get this message;

    Oh dear!

    Please complete your installation before attempting to include WordPress within bbPress

    bbPress is already installed.

    Perhaps you meant to run the upgrade script instead?

    What on earth has gone wrong? All I have done is deleted forums?

    Thanks.

    #27996
    QuickD
    Member

    Is this possible? This is what developer said that plugin shuts down and then forum posting cannot be viewed. Have to go in and reactivate plugin to make forum work. Also I cannot activate plugins saying that it is activated at the top but not in the list where it remains as deactivated. I am using the latest version of 0.9.

    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/

Viewing 25 results - 8,951 through 8,975 (of 11,584 total)
Skip to toolbar