vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=318952

Original Poster Plugin
by Black Snow
05 Jun 2015 13:43

If we use this condition in vB templates to show and icon etc on the original posters posts,:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

What would I write to put that into a plugin? Is it:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

or

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Not quite sure how to put it.

MarkFL 05 Jun 2015 16:12

You would use the same conditional in your plugin code that you would use in the template. For example, if you are adding to the postbit of all of the posts in a thread belonging to the OP, then in your plugin, you could use:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Black Snow 05 Jun 2015 16:16

Thanks MarkFL! That's great!

I think we should have a thread where all variables are shown and what they do. Like $post['BLAH'] is used on 'X' template(s) and does 'Y'. This would be helpful to everyone I think.


All times are GMT. The time now is 01:29.

Powered by vBulletin® Version 3.8.13
Copyright © 2019, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.