Solved

vBulletin: Get first unread post

Posted on 2010-08-22
1
314 Views
Last Modified: 2013-12-13
Hello

I'm trying to get the answer number of the first unread post in a thread in vBulletin 4 given a Username.
Anyone has knowledge of this?

Thanks
0
Comment
Question by:Ruttensoft
1 Comment
 
LVL 3

Accepted Solution

by:
shawnmstout earned 500 total points
ID: 33505359
im not sure of the vbulletin database setup but i would suggest something similar to this

$qry = "select answer_number from threads where username = 'whateveruser' AND read = 'no' ORDER BY date DESC limit 1";

above is a mysql query, without seeing specific code and db structure this is the best example i can come up for you
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Shadow IT is coming out of the shadows as more businesses are choosing cloud-based applications. It is now a multi-cloud world for most organizations. Simultaneously, most businesses have yet to consolidate with one cloud provider or define an offic…
This article discusses how to create an extensible mechanism for linked drop downs.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now