The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
Quote:
|
#12
|
|||
|
|||
Sorry for the bump, the help has been great so far though!
|
#13
|
||||
|
||||
Try this:
PHP Code:
|
#14
|
|||
|
|||
HUZZAH it works, just another quick question though, how do I make a statement if a value is less than something.
So say HTML Code:
<if conditional=$auinfo[total] IS LESS THAN $auinfo[posts]> Less than stuff here <else /> Greater than stuff here </if> HTML Code:
<td class="alt2"> <if condition="$auinfo[field7] == I do not have a package"> N/A </if> <if condition="$auinfo[field7] == SHARED A"> One time 5 posts </if> <if condition="$auinfo[field7] == SHARED B"> 15 P/M </if> <if condition="$auinfo[field7] == SHARED C"> 20 P/M </if> <if condition="$auinfo[field7] == SHARED D"> 20 P/M (VIP ONLY) </if> <if condition="$auinfo[field7] == RESELLER A"> 25 P/M </if> <if condition="$auinfo[field7] == RESELLER B"> 75 P/M </if> <if condition="$auinfo[field7] == RESELLER C"> 200 P/M </if> <if condition="$auinfo[field7] == RESELLER D"> 200 P/M (VIP ONLY) </if> <if condition="$auinfo[field7] == Custom/Other"> Consult Staff Area </if> </td> Parse error: syntax error, unexpected T_DO in /home/geekstep/public_html/includes/adminfunctions_template.php(3938) : eval()'d code on line 9 This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish. |
#15
|
|||
|
|||
Less than...
PHP Code:
PHP Code:
PHP Code:
|
#16
|
||||
|
||||
You should also quote the array key inside a template conditional.
PHP Code:
|
#17
|
|||
|
|||
Now a new problem arises. I am trying to make a variable changeable depending on the users selection so that if their post count does not meet the requirements staff are noted.
Basically I want to make the following HTML Code:
<if condition="$auinfo[field7] <(is less than) $conditional"> Post count not met </if> however the code I am using in my PHP file does not display the stuff set when I add $conditional into my template here is the code PHP Code:
|
#18
|
|||
|
|||
Bump
anyone please?? |
#19
|
|||
|
|||
Sorry for another bump but I really need help on this I am at wits end...
|
#20
|
|||
|
|||
Change...
PHP Code:
PHP Code:
Edit: To clarify, this is what you would use if you're trying to utilize this in the postbit template. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|