vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   vbulletin breadcrumbs help! (https://vborg.vbsupport.ru/showthread.php?t=106527)

Kalina 01-28-2006 08:13 AM

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.


All times are GMT. The time now is 03:26 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
  • Page Generation 0.01043 seconds
  • Memory Usage 1,709KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (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_navbar_search
  • (1)printthread
  • (1)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete