vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How to increase length of forum title (https://vborg.vbsupport.ru/showthread.php?t=194421)

newmasalaboard 10-24-2008 10:49 AM

How to increase length of forum title
 
Hello,

As the title say, " How to increase length of forum title " ...

Actually i need to add some HTML codes and the forum title is limited to certain no. of characters, so how can i increase that ??

Lynne 10-24-2008 04:33 PM

It is set at size="35" in the page source. The page is admincp/forum.php. So, you can change it in there on line 38:
PHP Code:

    print_input_row($vbphrase['title'], 'forum[title]'$forum['title']); 

function print_input_row has a default of 35, so pass something else:
PHP Code:

function print_input_row($title$name$value ''$htmlise true$size 35$maxlength 0$direction ''$inputclass false

Just don't change it to anything larger than 100 since that is the database type - varchar(100)

newmasalaboard 10-25-2008 09:34 AM

Lynne i couldn't find this :

PHP Code:

function print_input_row($title$name$value ''$htmlise true$size 35$maxlength 0$direction ''$inputclass false

Where should i look for it ??

Lynne 10-25-2008 03:42 PM

You don't need to know where that line is, but it is in includes/adminfuctions.php if you need to see it. I was simply showing you what the function accepts as parameters. You need to modify the other line in admincp/forum.php to pass something in the fifth spot so that the default of 35 is not used.

Brandon Sheley 10-25-2008 03:48 PM

I don't know why you would think it's a good idea to have a longer title tag :rolleyes:

Lynne 10-25-2008 04:07 PM

Quote:

Originally Posted by Loco.M (Post 1652484)
I don't know why you would think it's a good idea to have a longer title tag :rolleyes:

Sometimes it is important if you have titles in a foreign language because a single character may take four or so 'spaces' instead of just one.

newmasalaboard 10-26-2008 04:39 AM

Quote:

Originally Posted by Loco.M (Post 1652484)
I don't know why you would think it's a good idea to have a longer title tag :rolleyes:

Actually i wanted to add image tags in front of forum title but the with default length it was not possible.Finally i made it to work!

See an example :

https://vborg.vbsupport.ru/

Lynne 10-26-2008 04:48 AM

That looks nice, however I did remove the link to your board since this is a PG-13 rated site and that site is not. :D

Brandon Sheley 10-26-2008 04:58 AM

Quote:

Originally Posted by Lynne (Post 1652495)
Sometimes it is important if you have titles in a foreign language because a single character may take four or so 'spaces' instead of just one.

ah, I never thought of that. Thanks Lynne! :)
Quote:

Originally Posted by newmasalaboard (Post 1652885)
Actually i wanted to add image tags in front of forum title but the with default length it was not possible.Finally i made it to work!

See an example :

http://imagebam.info/images/d0i86a4s4m0fs0ek5i8z.jpg

I see, it looks good :)

Marco van Herwaarden 10-28-2008 01:28 PM

To allow longer titles, all you need to do is change the column in the database. No code edits needed.

ArnyVee 07-25-2009 07:59 PM

Is this still the way to change the forum title length? I wanted to put an image in front of the forum title and some of the forums are just a little long as far as the number of characters.

Lynne 07-25-2009 08:32 PM

If you want to allow for a longer forum title length, then yes, you need to change the column in the database. I don't know that this is the best method to add an image in front of the forum title though - I am pretty sure there are mods to do this or just a condition to add in the templates you want to do this in.

ArnyVee 07-25-2009 08:53 PM

Thanks Lynne, I'll keep searching for mods to add the images to the forum title. :up:


All times are GMT. The time now is 04:45 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.01943 seconds
  • Memory Usage 1,747KB
  • 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
  • (3)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (13)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