Search Results for 'test'
-
AuthorSearch Results
-
February 4, 2011 at 2:08 pm #94909
In reply to: bbPress 2.0 – Updates
John James Jacoby
Keymaster@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.
February 3, 2011 at 9:18 pm #98997jaapmarcus
MemberThats why it is also available on wordpress site
February 3, 2011 at 9:18 pm #104097jaapmarcus
MemberThats why it is also available on wordpress site
February 3, 2011 at 7:45 pm #98996csabamarosi
MemberAww man, sorry, I made a typo – now everything’s fine, thanks a lot!
February 3, 2011 at 7:45 pm #104096csabamarosi
MemberAww man, sorry, I made a typo – now everything’s fine, thanks a lot!
February 3, 2011 at 7:31 pm #98995thebreiflabb
MemberIt 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.
February 3, 2011 at 7:31 pm #104095thebreiflabb
MemberIt 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.
February 3, 2011 at 7:25 pm #98994csabamarosi
MemberI’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.
February 3, 2011 at 7:25 pm #104094csabamarosi
MemberI’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.
February 3, 2011 at 7:18 pm #98993thebreiflabb
MemberWhat errors does it give you?
February 3, 2011 at 7:18 pm #104093thebreiflabb
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.
-
AuthorSearch Results