Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 18 Apr 2016, 22:01
greigeh greigeh is offline
 
Join Date: Jan 2015
Real name: Greig David
Can you do if conditions based on the =action and not just THIS_SCRIPT?

title says it all, i'm sure you can but not sure on the condition
Reply With Quote
  #2  
Old 18 Apr 2016, 23:42
Dr.CustUmz's Avatar
Dr.CustUmz Dr.CustUmz is offline
 
Join Date: Aug 2013
Real name: Ryan

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

is this what you mean?
__________________
Sorry been away so long, new baby, got married, got into GM, just got to the point I can resume developing.
I'm working on a bunch of products, some free, some paid, and will release them all at once.
Dirt RIF CustUmz
Reply With Quote
  #3  
Old 19 Apr 2016, 18:11
greigeh greigeh is offline
 
Join Date: Jan 2015
Real name: Greig David
Originally Posted by Dr.CustUmz View Post
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

is this what you mean?
This is technically what i mean, but is that string not available as a pre-made if condition? cause to me that looks like to be used in a script or something.
Reply With Quote
  #4  
Old 19 Apr 2016, 18:52
squidsk's Avatar
squidsk squidsk is offline
 
Join Date: Nov 2010
If you're trying to do something in a template then just put the condition part of the if statement in the quotes of the condition attribute of the if tag otherwise.


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

Of course your template would be far neater if you set a the value you wanted output in the script (based on the condition) and then just had the template output the final value.
Reply With Quote
  #5  
Old 19 Apr 2016, 21:10
Dr.CustUmz's Avatar
Dr.CustUmz Dr.CustUmz is offline
 
Join Date: Aug 2013
Real name: Ryan
Originally Posted by greigeh View Post
This is technically what i mean, but is that string not available as a pre-made if condition? cause to me that looks like to be used in a script or something.
just for learning =) what i posted is a real if condition, what vbulletin uses is it's own variation of php / html so

in php

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

or even better:

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

is the same as
vBulletin php/html

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

all 3 blocks of code are the same and its good to know these ways for plugins / templates
__________________
Sorry been away so long, new baby, got married, got into GM, just got to the point I can resume developing.
I'm working on a bunch of products, some free, some paid, and will release them all at once.
Dirt RIF CustUmz
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 16:13.

Layout Options | Width: Wide Color: