![]() |
if category x contains new posts
How do you write an if condition to show something if if category x contains new posts?
Dummy code explaination: Code:
<if condition="category 3 has new posts">Show this text</if> |
Where are you trying to add that code?
|
Quote:
|
In a plugin on global_start add this code
Code:
include('includes/functions_forumlist.php'); This works for me, I repeat this code multiple times in the plugin to check multiple forumids- Code:
$forumidx = 998; //Set your forum id to check here |
Thank you BOP but dosen't seem to work for me, I did everything as instructed and the execution code is just a simple if else
PHP Code:
|
What template are you putting $newmsg in?
|
Have tried, forumhome, forumhome_forumbit_level2_post and forumhome_forumbit_level1_nopost
|
This exact code works for me...
Code:
include('includes/functions_forumlist.php'); In your vBulletin Options -> General Settings -> Thread/Forum Read Marking Type, is it set to Database (automatic forum marking)? It may need to be for this to work. |
All times are GMT. The time now is 06:51 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|