Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'test'

Viewing 25 results - 7,401 through 7,425 (of 11,581 total)
  • Author
    Search Results
  • #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.

    #99117
    Ramiuz
    Participant

    You just got pwnd Pedley.

    _CK_ SHould I be using Human test or recaptcha now?

    I can confirm that recaptcha almost prevented spammer completely, but I´ve had some spammers register still. Only a small percentage of what was before though.

    Somehow, even though their IP, name and email already exist in the databases for StopForumSpam and Project HoneyPot – they still manage to get through.

    #98986
    csabamarosi
    Member

    Thanks man, I’ll check it out as soon as I can!

    #104086
    csabamarosi
    Member

    Thanks man, I’ll check it out as soon as I can!

    #98985
    jaapmarcus
    Member

    Hello csabamarosi,

    I just have made some small changes and it will now show as well the fressness. The last version is now on my website. Its slightly different from the plugin on the wordpress website because those features are missing at this moment.

    Later on this week i will also update the wordpress plugin with this functionality and and a few other options. Like time format instead of freshness and show / disable time format or author.

    #104085
    jaapmarcus
    Member

    Hello csabamarosi,

    I just have made some small changes and it will now show as well the fressness. The last version is now on my website. Its slightly different from the plugin on the wordpress website because those features are missing at this moment.

    Later on this week i will also update the wordpress plugin with this functionality and and a few other options. Like time format instead of freshness and show / disable time format or author.

    #98984
    csabamarosi
    Member

    Hi jaapmarcus,

    Am I able to display latest forum posts with timestamps (freshness) in a WP sidebar with your plugin? I’m currently using another one (https://wordpress.org/extend/plugins/bbpress-latest-discussion) but it doesn’t support displaying any date information, so I’ll give your one a try if it does.

    Thanks in advance,

    Csaba

    #104084
    csabamarosi
    Member

    Hi jaapmarcus,

    Am I able to display latest forum posts with timestamps (freshness) in a WP sidebar with your plugin? I’m currently using another one (https://wordpress.org/extend/plugins/bbpress-latest-discussion) but it doesn’t support displaying any date information, so I’ll give your one a try if it does.

    Thanks in advance,

    Csaba

    _ck_
    Participant

    Downgrade tool is on permanent delay.

    Sorry, I simply do not have the time.

    Restore backups from before upgrading 0.9 to 1.x

    #99116
    Rich Pedley
    Member

    I do not know but I would hazard a guess that it uses rules similar to Spam Assassin to start with. Then assesses against common features for other things that have marked as spam.

    #99115
    DKB
    Participant

    @Rich Pedley: on what basis marks Akismet a post as spam?

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