Kalina
01-28-2006, 08:13 AM
Ok, this code is from a vbulletin 3.0.6 skin, problem areas are bold. Having trouble getting it to work with 3.5.3.
<table cellpadding="0" cellspacing="0" border="0">
<tr valign="bottom">
<td class="breadcrumb<if condition="strlen(trim($navbits[breadcrumb])) > 165">3<else /><if condition="strlen(trim($navbits[lastelement])) > 37">3<else /><if condition="strlen(trim($navbits[lastelement])) > 30">2</if></if></if>"><a href="http://www.somesite.com" accesskey="1">Home</a> » $navbits</td>
</tr>
<tr>
[B]<td class="forumtitle<if condition="strlen(trim($navbits[breadcrumb])) > 165">3<else /><if condition="strlen(trim($navbits[lastelement])) > 37">3<else /><if condition="strlen(trim($navbits[lastelement])) > 30">2</if></if></if>"><h1 ><strong>$navbits[lastelement]</strong></h1></td>
</tr>
</table>
Ok, what that bold code does is tells the skin to call a certain class based on how many characters are in the forum or topic title, this way if it's a long title, it will use forumtitle3 and make the font smaller.
Now, vbulletin 3.5.3 doesn't like this.
I cannot use "strlen" nor can I use "trim".
I tried some of the available suggestions the vbulletin help gave me and can't get it to go.
I can replace the two variables with any of these but which ones is the question.
in_array() is_array() is_numeric() isset() empty() defined() array() can_moderate() can_moderate_calendar() exec_switch_bg() is_browser() is_member_of()
I didn't make this skin, I am updating it for a client and this really has me stumped. I am only familiar with vbulletin 3.0.8 and up.
Please, any help??
Thanks.
Does anyone know how to help me with this?
I was told I'd have to add strlen and trim to a safelist, is this true?
Thanks.
<table cellpadding="0" cellspacing="0" border="0">
<tr valign="bottom">
<td class="breadcrumb<if condition="strlen(trim($navbits[breadcrumb])) > 165">3<else /><if condition="strlen(trim($navbits[lastelement])) > 37">3<else /><if condition="strlen(trim($navbits[lastelement])) > 30">2</if></if></if>"><a href="http://www.somesite.com" accesskey="1">Home</a> » $navbits</td>
</tr>
<tr>
[B]<td class="forumtitle<if condition="strlen(trim($navbits[breadcrumb])) > 165">3<else /><if condition="strlen(trim($navbits[lastelement])) > 37">3<else /><if condition="strlen(trim($navbits[lastelement])) > 30">2</if></if></if>"><h1 ><strong>$navbits[lastelement]</strong></h1></td>
</tr>
</table>
Ok, what that bold code does is tells the skin to call a certain class based on how many characters are in the forum or topic title, this way if it's a long title, it will use forumtitle3 and make the font smaller.
Now, vbulletin 3.5.3 doesn't like this.
I cannot use "strlen" nor can I use "trim".
I tried some of the available suggestions the vbulletin help gave me and can't get it to go.
I can replace the two variables with any of these but which ones is the question.
in_array() is_array() is_numeric() isset() empty() defined() array() can_moderate() can_moderate_calendar() exec_switch_bg() is_browser() is_member_of()
I didn't make this skin, I am updating it for a client and this really has me stumped. I am only familiar with vbulletin 3.0.8 and up.
Please, any help??
Thanks.
Does anyone know how to help me with this?
I was told I'd have to add strlen and trim to a safelist, is this true?
Thanks.