Solved

vBulletin: Get first unread post

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

Suggested Solutions

Title # Comments Views Activity
hasing a url 16 24
php extract($_REQUEST) 5 46
showing loader for php/mysql/ajax live search 13 23
error in my cursor 5 21
Creating and Managing Databases with phpMyAdmin in cPanel.
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to dynamically set the form action using jQuery.

813 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

16 Experts available now in Live!

Get 1:1 Help Now