View Single Post
  #1  
Old 01-28-2006, 08:13 AM
Kalina's Avatar
Kalina Kalina is offline
 
Join Date: Mar 2005
Location: Canada
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default vbulletin breadcrumbs help!

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> &raquo; $navbits[breadcrumb]</td>
</tr>
<tr>
<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.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01091 seconds
  • Memory Usage 1,767KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete