Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 05 Jun 2015, 12:43
Black Snow Black Snow is offline
 
Join Date: Jul 2012
Original Poster Plugin

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.
Reply With Quote
  #2  
Old 05 Jun 2015, 15:12
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
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.

Reply With Quote
  #3  
Old 05 Jun 2015, 15:16
Black Snow Black Snow is offline
 
Join Date: Jul 2012
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.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 23:31.

Layout Options | Width: Wide Color: