Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Template Conditionals on newthread
isoka Offline
Junior Member
**
Posts: 11
Joined: Mar 2013
Post: #1
Template Conditionals on newthread
How i can set a template condtion based on input value of xthread field?

something like that naturally don't work

Code:
1
2
3
4
5
6
<td>test4</td>
<td>{$tfinput['test4']} </td>       
</tr>
<if $tfinput['test4']!=X then>
blablabla
</if>

(This post was last modified: 08-03-2015 03:12 AM by isoka.)
08-03-2015 02:58 AM
Find all posts by this user Quote this message in a reply
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #2
RE: Template Conditionals on newthread
this isnt a conditional, but it might work:  http://mybbhacks.zingaburga.com/showthread.php?tid=5138


[Image: leelink.gif]
MYBB1.6 & XThreads
08-03-2015 08:29 AM
Visit this user's website Find all posts by this user Quote this message in a reply
isoka Offline
Junior Member
**
Posts: 11
Joined: Mar 2013
Post: #3
RE: Template Conditionals on newthread
Leefish tnx for your answer Biggrin

but is not what i need Tongue

what i need is a  template condition that check the value in multiple input type....
if a value is equal to "X" with javascript&ccs i hide the submit button

i know how to do all this with javascript or jquery but i want to check with a conditional if is possible Frown
08-04-2015 05:31 AM
Find all posts by this user Quote this message in a reply
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #4
RE: Template Conditionals on newthread
I do know that if you pay attention to the ordering of custom fields you can make one field depend on another?


[Image: leelink.gif]
MYBB1.6 & XThreads
08-04-2015 12:40 PM
Visit this user's website Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: