vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Remove thread title in navbits if you have large thread title installed (https://vborg.vbsupport.ru/showthread.php?t=43157)

blackice912 09-14-2002 11:34 AM

Ah, very nice little hack

/me installs

TECK 09-14-2002 11:56 AM

Quote:

Originally posted by Boofo
That's only if you still want it there. I removed it because I have the thread title in big letters at the top (like it is here) so you don't need it in the navbar. It's kind of redundant to have it in both places.


it make alot of sense. you are right. :)

FleaBag 10-29-2002 08:54 PM

Installed on 2.2.8. :D

Chris M 10-29-2002 10:11 PM

Gamer:mad: - https://vborg.vbsupport.ru/showthrea...&postid=316171

Satan

FleaBag 10-29-2002 10:25 PM

Oh what a surprise the same spammed link from Satan once more. Could he have no PM'd it to me? Nah, that'd take common sense!

DrkFusion 10-29-2002 10:27 PM

It also takes common sense to maybe ignore, and possibly take peoples advice. Correct?

Satan, please stop as well, its not worth ruining a perfect support thread over.

-Arunan

FleaBag 10-29-2002 10:28 PM

I took your advice the moment I read it.

Smoothie 10-30-2002 01:07 AM

Quote:

Originally posted by TECK
i think the best way is to use the strlen() to limit the lenght.
for example...
in functions.php, replace:
Code:

      $nav_title=$threadinfo[title];
with:
Code:

      $nav_title=$threadinfo[title];
      if (strlen($threadinfo[title]) > 25) {
        $nav_title = substr($threadinfo[title], 0, 23) . '...';
      }

now all you have to do is change the the values 25 and 23 to whatever you like your title to be in lenght. value 25 represents the total title lenght and 23 represents the total title lenght - 2 characters, because you add the "..." dots at the end.

Good one Teck!


All times are GMT. The time now is 05:52 AM.

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.01657 seconds
  • Memory Usage 1,727KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete