Solved

vBulletin: Get first unread post

Posted on 2010-08-22
1
319 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
As technology users and professionals, we’re always learning. Our universal interest in advancing our knowledge of the trade is unmatched by most industries. It’s a curiosity that makes sense, given the climate of change. Within that, there lies a…
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

856 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