The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#3
|
|||
|
|||
![]()
I want to show who are not subscribed. I edited the code to show "sl.status = 1" but it doesn't return any rows. I know that there is row in the "subscriptionlog" table with the "status" using the value "1".
What I want it to do is check if the user's subscription has expired. Code:
SELECT u.userid, u.username, u.planid, p.title as planname, p.title as hostname, sl.status, sl.regdate, sl.expirydate FROM user as u LEFT JOIN hosting_plans as p on (u.planid = p.planid) LEFT JOIN subscription as s on (p.subscriptionid = s.subscriptionid) LEFT JOIN subscriptionlog as sl on (sl.subscriptionid = s.subscriptionid) WHERE u.planid > 0 && sl.status = 1 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|