12-12-2017, 01:31 PM
Hey,
I'd like to make a template code say If User has less than 10 posts then set .underPostNotification visible to inline else then set to none.
Basically, I'd like to show users a message if they have under 10 posts (to warn them about spamming is not tolerated and remind them of posting rules)
I haven't seen any in-depth tutorials on how to use Template Conditionals.
I have knowledge of CSS, JS, HTML, and PHP. I'm also familiar with how the MyBB template system works.
If someone could point me to an in-depth tutorial or give me some tips on how to do this that would be awesome!
Here is a quick code I whipped up from some posts I've seen.
I'd like to make a template code say If User has less than 10 posts then set .underPostNotification visible to inline else then set to none.
Basically, I'd like to show users a message if they have under 10 posts (to warn them about spamming is not tolerated and remind them of posting rules)
I haven't seen any in-depth tutorials on how to use Template Conditionals.
I have knowledge of CSS, JS, HTML, and PHP. I'm also familiar with how the MyBB template system works.
If someone could point me to an in-depth tutorial or give me some tips on how to do this that would be awesome!
Here is a quick code I whipped up from some posts I've seen.
PHP Code:
|
Thanks,
DrBaja