![]() |
Need help picking out a thread using SELECT (mySQL)
I'm trying to rewrite a hack to fit my needs and what the original hack does is take the first thread from a forum that you specify and display it on FORUMHOME.
I've successfully modified it to show views and replies but I can't get it to pick out the second thread in the forum and display it as well. Here's the plugin code: Code:
// ### LATEST NEWS BY TANTAWI ############################################ Thanks in advance. Edit: Haha, I'm so stupid, I just noticed the variable name. That'll probably fix it. Let me go give it a try. Edit2: Didn't work, updated code with what I'm trying to use now. It still displays the first thread, not the second. Edit3: Nevermind, figured it out. I'll repost another topic when I'm all done and ask if there's a way to optimize my code. |
That is because you are using query_first() which only takes the first one it finds. Use query_read().
|
All times are GMT. The time now is 01:44 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|