![]() |
|
Thread Tools |
#1
|
||||
|
||||
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:
No members have liked this post.
Last edited by PinkMilk; 16 Aug 2013 at 05:50. |
#2
|
|||
|
|||
Where are you trying to add that code?
No members have liked this post.
|
#3
|
|||
|
|||
On forumhome, I don't use forumhome_forumbit_level1_nopost so I'm probably just going to have to write a plugin to query db, tbh I have kind of given up on the idea but if you have a solution it would be much appreciated.
No members have liked this post.
Last edited by PinkMilk; 17 Aug 2013 at 01:59. |
#4
|
||||||||
|
||||||||
In a plugin on global_start add this code
Replace 999 with the forumid of the forum (or category) you want to check This works for me, I repeat this code multiple times in the plugin to check multiple forumids-
__________________
-Joe Former vb.org Moderator. Retired. @BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic Note - I no longer making new VB mods, sorry. |
#5
|
||||
|
||||
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
and added $newmsg to templates, so not sure where I'm going wrong. No members have liked this post.
|
#6
|
||||
|
||||
What template are you putting $newmsg in?
__________________
-Joe Former vb.org Moderator. Retired. @BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic Note - I no longer making new VB mods, sorry. No members have liked this post.
|
#7
|
|||
|
|||
Have tried, forumhome, forumhome_forumbit_level2_post and forumhome_forumbit_level1_nopost
No members have liked this post.
|
#8
|
||||
|
||||
This exact code works for me...
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.
__________________
-Joe Former vb.org Moderator. Retired. @BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic Note - I no longer making new VB mods, sorry. No members have liked this post.
|
![]() |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Show Thread Enhancements Hide Forum Posts in Activity Stream and Unread Posts Link | SnaKe |WiH| | vBulletin 4.x Add-ons | 4 | 14 Feb 2014 20:44 |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 21:08.