![]() |
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"> |
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']"> Aceman and I'll wait before I post again to hear from someone. |
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. |
Array indexes should be quoted within the <if> condition, but not elsewhere in the templates ;)
|
btw the class might overright that color Xenon for tborder... just a note
might want to use style instead |
Quote:
as for the conditional, hmm, it works for me, as i have used it several times already.. |
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 |
Quote:
|
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] --> |
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. :) |
All times are GMT. The time now is 04:04 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|