Forums
-
- Forum
- Posts
-
- Installation
- 28,255
- Troubleshooting
- 61,798
- Themes
- 10,301
- Plugins
- 15,221
- Requests & Feedback
- 14,830
- Showcase
- 3,252
-
Oh that’s a simple bug, I forgot the quotes around the time:
$query="SELECT count(topic_id) as position FROM $bbdb->topics WHERE forum_id=$forum_id and topic_time<='$topic->topic_time' ORDER BY topic_time DESC";
$position = $bbdb->get_var($query);
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS