The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
please, don't post such often in a line, not everyone is here during the whole day
the first thing: HTML Code:
<if condition="$show['admincplink']">
HTML Code:
<if contidion="in_array($bbuserinfo['usergroupid'], array(5,6,7))">
second condition: HTML Code:
<if condition="$post['isofficial'] == 1"> <table width="100%" border="0" align="center" cellpadding="$stylevar[cellpadding]" cellspacing="0" bgcolor="#990000" class="tborder"> <else /> <table width="100%" border="0" align="center" cellpadding="$stylevar[cellpadding]" cellspacing="0" class="tborder"> </if> |
#12
|
||||
|
||||
I tried your code:
Code:
<if contidion="in_array($bbuserinfo['usergroupid'], array(5,6,7))"> "The following error occurred when attempting to evaluate this template: Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /home/aceman/public_html/forums/includes/adminfunctions_template.php(2998) : eval()'d code on line 148 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." When I put back my orginal code it seems to work, meaning I don't get the error message. As for editing the Postbit_legacy template. I placed the code you indicated above.. made a post in the quickreply and checked the box.. but nothing changes visually when thread is shown. So I'm not sure if my FORM is properly setup so that it looks for the "isoffical" == 1. This is the coding I used in showthread_quickreply" Code:
<if condition="$show['admincplink']"> <label for="qr_isoffical"> <input type="checkbox" name="isoffical" value="1" id="qr_isoffical" tabindex="6" />$vbphrase[isoffical]</label> </if> Aceman and I'll wait before I post again to hear from someone. |
#13
|
|||
|
|||
Quote:
HTML Code:
<if contidion="in_array($bbuserinfo['usergroupid'], array(5,6,7))">
HTML Code:
<if contidion="in_array($bbuserinfo[usergroupid], array(5,6,7))">
Just slap me if Im out of it. thanx. |
#14
|
||||
|
||||
Array indexes should be quoted within the <if> condition, but not elsewhere in the templates
|
#15
|
||||
|
||||
btw the class might overright that color Xenon for tborder... just a note
might want to use style instead |
#16
|
||||
|
||||
Quote:
as for the conditional, hmm, it works for me, as i have used it several times already.. |
#17
|
||||
|
||||
Vigile - Your modified conditional works perfectly.
I'm still trying to get the table to change the background.. when the condition == 1 I'm still pluggin away.. if anyone has an idea lemme know. I'll keep you informed. BTW- Thanks for all the help.. you all are great. Aceman |
#18
|
||||
|
||||
Quote:
|
#19
|
||||
|
||||
Just a quick update. I think I got it working.. and I say "think" because I'm really not sure..
When I made a new post via quickreply the thread appreared "RED" #990000 for a split second then turned blue like the theme I'm in.. so I think somehow the appearance of the thread is getting overriden when it's displayed so I'm now sifting through the code to find where then might be happening. More soon. The Code I used for postbit_legacy is: Code:
<!-- post #$post[postid] --> <if condition="$show['spacer']">$spacer_open<if condition="!$post['islastshown']"><div style="padding:0px 0px $stylevar[cellpadding]px 0px"></if></if> <!-- <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center"> --> <if condition="$post[isofficial] == 1"> <table width="100%" border="0" align="center" cellpadding="$stylevar[cellpadding]" cellspacing="0" class="tborder"> <else /> <table width="100%" border="0" align="center" cellpadding="$stylevar[cellpadding]" cellspacing="0" bgcolor="#990000" class="tborder"> </if> <tr> <td class="thead" style="font-weight:normal" $scrolltothis> <!-- status icon and date --> <a name="post$post[postid]"><img src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" /></a> <if condition="!$show['start_until_end']"> $post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if> <else /> $post[startdate] until $post[enddate] </if> $post[firstnewinsert] <!-- / status icon and date --> </td> REMAINDER IS UNCHANGED. |
#20
|
|||
|
|||
Quote:
any point in a template, that has $sumtin[sumtin] having $sumtin['sumtin'] ,whether inside an if conditional or not, has never worked when I do it. Im not sure why, just told him what works for me. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|