Log in

View Full Version : How to increase length of forum title


newmasalaboard
10-24-2008, 10:49 AM
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:
print_input_row($vbphrase['title'], 'forum[title]', $forum['title']);

function print_input_row has a default of 35, so pass something else:
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 :

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
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
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/ (http://imagebam.info/)

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
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! :)
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 (http://imagebam.info/)

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: