The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
if user has posted in a specific forum
is there a condition that exists already for detecting if a user has posted in a specific forum? I want to provide a link in the navbar if they have not posted in a certain forum. I was looking into how to be able to detect it:
post > threadid & userid thread > threadid & forumid which I could make something with, just dont feel a need to add queries to something that may exist already, so was wondering if anyone knew a way to detect if the user has posted in a specific forum. --------------- Added [DATE]1611812996[/DATE] at [TIME]1611812996[/TIME] --------------- I have just went ahead and made a function with the following query to solve this: Code:
SELECT count(postuserid) as count FROM thread WHERE postuserid = " . $vbulletin->userinfo['userid'] . " AND forumid = 5 AND lastposter != " . $vbulletin->userinfo['username'] . " |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|