Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'test'

Viewing 25 results - 7,401 through 7,425 (of 11,591 total)
  • Author
    Search Results
  • #94909

    @chuckmac @LPH2005 – Those meta keys are relatively new, and were an addition that wasn’t backwards compatible with previous development versions. Check this topic for the exact date of the change, but exactly what you found will cause exactly what you describe.

    @Rob Bunch – With any prerelease software, you need to understand the risks involved. Just like @chuckmac and @LPH2005 experienced, it’s still possible for there to be architectural changes in the software that aren’t backwards compatible. There are countless changes between the stand alone and plugin versions since the data schema is so different, so certain things needed to be worked around late in the development cycle.

    That said, it’s available for download so that you may test it however you are comfortable doing so. Just be aware if something crops up on your live site, there is a limited pool of resources to help you.

    #98997
    jaapmarcus
    Member

    Thats why it is also available on wordpress site

    https://wordpress.org/extend/plugins/bbpress-last-topics/

    #104097
    jaapmarcus
    Member

    Thats why it is also available on wordpress site

    https://wordpress.org/extend/plugins/bbpress-last-topics/

    #98996
    csabamarosi
    Member

    Aww man, sorry, I made a typo – now everything’s fine, thanks a lot!

    #104096
    csabamarosi
    Member

    Aww man, sorry, I made a typo – now everything’s fine, thanks a lot!

    #98995
    thebreiflabb
    Member

    It works perfectly for me, though you can try with some debugging, for example try

    echo $counter;

    inside the foreach loop to see if you have any loop at all. Check the source code if you have anything there.

    #104095
    thebreiflabb
    Member

    It works perfectly for me, though you can try with some debugging, for example try

    echo $counter;

    inside the foreach loop to see if you have any loop at all. Check the source code if you have anything there.

    #98994
    csabamarosi
    Member

    I’ve figured out that there were some PHP configuration issues with my XAMPP installation, so the error messages are gone now. Sad thing is, your code doesn’t output anything at all.

    #104094
    csabamarosi
    Member

    I’ve figured out that there were some PHP configuration issues with my XAMPP installation, so the error messages are gone now. Sad thing is, your code doesn’t output anything at all.

    #98993
    thebreiflabb
    Member

    What errors does it give you?

    #104093
    thebreiflabb
    Member

    What errors does it give you?

    #98992
    csabamarosi
    Member

    Well, at first I was trying to do something very similar, but including bb-load.php always gives me errors. Deep integration and all database/cookie connections are working fine, so I’m pretty confused.

    #104092
    csabamarosi
    Member

    Well, at first I was trying to do something very similar, but including bb-load.php always gives me errors. Deep integration and all database/cookie connections are working fine, so I’m pretty confused.

    #98991
    thebreiflabb
    Member

    If your wordpress and bbpress share the same database you can simply edit sidebar.php

    On the top of the file add:

    <?php require_once(ABSPATH."/forum/bb-load.php"); ?>

    This will give you access to the bbpress functions. (Edit to the path of your bbpress installation)

    Then where you are going to output your latest posts add this:

    <?php
    global $wpdb;
    $query = "SELECT * FROM bbp_topics WHERE topic_status='0' ORDER BY topic_time DESC LIMIT 6";
    $topics = $wpdb->get_results($query);
    $counter = 0;
    ?>

    This will find the latest posts, I do it this way so it won’t show the same topic several times if many posts have been made in the same topic. Also edit bbp_ to your bbpress db prefix.

    Finally to output simply add something similar to this:

    <div id="latest-posts" class="border">
    <h2>Latest forum posts</h2>
    <?php foreach($topics as $topic) : ?>
    <div class="<?php echo $counter % 2 ? "gray" : "white"; ?>"><a href="<?php topic_last_post_link($topic->topic_id); ?>"><?php topic_title($post->topic_id); ?></a></div>
    <?php $counter++; ?>
    <?php endforeach; ?>
    </div>

    Edit to your preference on html and css.

    #104091
    thebreiflabb
    Member

    If your wordpress and bbpress share the same database you can simply edit sidebar.php

    On the top of the file add:

    <?php require_once(ABSPATH."/forum/bb-load.php"); ?>

    This will give you access to the bbpress functions. (Edit to the path of your bbpress installation)

    Then where you are going to output your latest posts add this:

    <?php
    global $wpdb;
    $query = "SELECT * FROM bbp_topics WHERE topic_status='0' ORDER BY topic_time DESC LIMIT 6";
    $topics = $wpdb->get_results($query);
    $counter = 0;
    ?>

    This will find the latest posts, I do it this way so it won’t show the same topic several times if many posts have been made in the same topic. Also edit bbp_ to your bbpress db prefix.

    Finally to output simply add something similar to this:

    <div id="latest-posts" class="border">
    <h2>Latest forum posts</h2>
    <?php foreach($topics as $topic) : ?>
    <div class="<?php echo $counter % 2 ? "gray" : "white"; ?>"><a href="<?php topic_last_post_link($topic->topic_id); ?>"><?php topic_title($post->topic_id); ?></a></div>
    <?php $counter++; ?>
    <?php endforeach; ?>
    </div>

    Edit to your preference on html and css.

    #98990
    csabamarosi
    Member

    There is something wrong with your site, it says fatal error so the plugin is kinda unreachable. :)

    #104090
    csabamarosi
    Member

    There is something wrong with your site, it says fatal error so the plugin is kinda unreachable. :)

    #99119
    Ramiuz
    Participant

    I´ve proven it enough times already. Not my fault you´re not informed properly.

    Just trust my judgements of Akismet, several people experiences the exact same thing, so it´s a known problem.

    #99118
    Rich Pedley
    Member

    I don’t need to know how akismet marks things as spam – but I noticed you didn’t answer my earlier question.

    #98989
    jaapmarcus
    Member

    Just commited a new version to the SVN of wordpress plugin.

    Change log:

    + Added Support to show date or freshness.

    + Added Possible to change template

    + Added Possible to change widget title instead using translate function

    – Fixed a small bug in topics fetched from database when fetching with the WP database connection

    – Fixed bug that will show only non deleted topics.

    #104089
    jaapmarcus
    Member

    Just commited a new version to the SVN of wordpress plugin.

    Change log:

    + Added Support to show date or freshness.

    + Added Possible to change template

    + Added Possible to change widget title instead using translate function

    – Fixed a small bug in topics fetched from database when fetching with the WP database connection

    – Fixed bug that will show only non deleted topics.

    #98988
    lespionage
    Member

    Ah never mind. I did my own script with old fashion PHP/MySQL. Here is what I did if someone else are interested.

    <?php

    $query = (‘SELECT * FROM bb_posts ORDER BY post_id DESC LIMIT 5’);

    $result = mysql_query($query) or die(mysql_error());

    while($row = mysql_fetch_array($result))

    {

    echo $row;

    $query2 = (‘SELECT * FROM bb_users WHERE ID=”‘ . $row . ‘”‘);

    $result2 = mysql_query($query2) or die(mysql_error());

    while($row2 = mysql_fetch_array($result2))

    {

    echo $row2;

    }

    }

    ?>

    Just put it in your widget area and your are good to go.

    #104088
    lespionage
    Member

    Ah never mind. I did my own script with old fashion PHP/MySQL. Here is what I did if someone else are interested.

    <?php

    $query = (‘SELECT * FROM bb_posts ORDER BY post_id DESC LIMIT 5’);

    $result = mysql_query($query) or die(mysql_error());

    while($row = mysql_fetch_array($result))

    {

    echo $row;

    $query2 = (‘SELECT * FROM bb_users WHERE ID=”‘ . $row . ‘”‘);

    $result2 = mysql_query($query2) or die(mysql_error());

    while($row2 = mysql_fetch_array($result2))

    {

    echo $row2;

    }

    }

    ?>

    Just put it in your widget area and your are good to go.

    #98987
    lespionage
    Member

    Great work jaapmarcus!

    Is there any way to control your plugin with template tags. I would like to be able to edit the way the topics are displayed.

    #104087
    lespionage
    Member

    Great work jaapmarcus!

    Is there any way to control your plugin with template tags. I would like to be able to edit the way the topics are displayed.

Viewing 25 results - 7,401 through 7,425 (of 11,591 total)
Skip to toolbar