Search Results for 'test'
-
AuthorSearch Results
-
February 3, 2011 at 7:18 pm #104093
thebreiflabb
MemberWhat errors does it give you?
February 3, 2011 at 7:05 pm #98992csabamarosi
MemberWell, 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.
February 3, 2011 at 7:05 pm #104092csabamarosi
MemberWell, 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.
February 3, 2011 at 6:37 pm #98991thebreiflabb
MemberIf 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.
February 3, 2011 at 6:37 pm #104091thebreiflabb
MemberIf 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.
February 3, 2011 at 5:18 pm #98990csabamarosi
MemberThere is something wrong with your site, it says fatal error so the plugin is kinda unreachable.
February 3, 2011 at 5:18 pm #104090csabamarosi
MemberThere is something wrong with your site, it says fatal error so the plugin is kinda unreachable.
February 2, 2011 at 6:48 pm #99119In reply to: bots spamming in my forum w/ human test!
Ramiuz
ParticipantI´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.
February 2, 2011 at 6:46 pm #99118In reply to: bots spamming in my forum w/ human test!
Rich Pedley
MemberI don’t need to know how akismet marks things as spam – but I noticed you didn’t answer my earlier question.
February 2, 2011 at 2:52 pm #98989jaapmarcus
MemberJust 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.
February 2, 2011 at 2:52 pm #104089jaapmarcus
MemberJust 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.
February 2, 2011 at 2:30 pm #98988lespionage
MemberAh 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.
February 2, 2011 at 2:30 pm #104088lespionage
MemberAh 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.
February 2, 2011 at 8:50 am #98987lespionage
MemberGreat 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.
February 2, 2011 at 8:50 am #104087lespionage
MemberGreat 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.
February 1, 2011 at 11:32 pm #99117In reply to: bots spamming in my forum w/ human test!
Ramiuz
ParticipantYou 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.
February 1, 2011 at 7:25 pm #98986csabamarosi
MemberThanks man, I’ll check it out as soon as I can!
February 1, 2011 at 7:25 pm #104086csabamarosi
MemberThanks man, I’ll check it out as soon as I can!
February 1, 2011 at 7:11 pm #98985jaapmarcus
MemberHello 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.
February 1, 2011 at 7:11 pm #104085jaapmarcus
MemberHello 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.
February 1, 2011 at 6:14 pm #98984csabamarosi
MemberHi 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
February 1, 2011 at 6:14 pm #104084csabamarosi
MemberHi 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
February 1, 2011 at 4:34 pm #91146_ck_
ParticipantDowngrade tool is on permanent delay.
Sorry, I simply do not have the time.
Restore backups from before upgrading 0.9 to 1.x
February 1, 2011 at 4:15 pm #99116In reply to: bots spamming in my forum w/ human test!
Rich Pedley
MemberI 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.
February 1, 2011 at 4:07 pm #99115In reply to: bots spamming in my forum w/ human test!
-
AuthorSearch Results