Forums
-
- Forum
- Posts
-
- Installation
- 28,100
- Troubleshooting
- 61,404
- Themes
- 10,274
- Plugins
- 15,155
- Requests & Feedback
- 14,774
- Showcase
- 3,251
-
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