Title Character Limit

Phoca Download - download manager
koif
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 25 Mar 2009, 04:32

Title Character Limit

Post by koif »

Hi,

Is there a way to increase the maximum limit of the display title for a file download?

Thanks
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48714
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Title Character Limit

Post by Jan »

Hi, there is 250 characters in the database, so you can change the column in database table to e.g. TEXT type.

Jan
If you find Phoca extensions useful, please support the project
koif
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 25 Mar 2009, 04:32

Re: Title Character Limit

Post by koif »

Hi Jan,

Thanks for replying! I tried editing the joomla database for the table jos_phocadownload. I changed the title to be TEXT, and even VARCHAR(350) instead of VARCHAR(250), however it still doesn't let me type more than 250 in the input box when using the site.

Thanks
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48714
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Title Character Limit

Post by Jan »

Hi, varchar can get at the most 255 chars, so you need to set TEXT there then you should be able save there more then 255 characters... Title is not save in textarea type but in input type text, so you need to change the values there too:

E.g. line 60
administrator\components\com_phocadownload\views\phocadownload\tmpl\form.php

Code: Select all

<input class="text_area" type="text" name="title" id="title" size="32" maxlength="250" value="<?php echo $this->phocadownload->title;?>" />
You should change the maxlength
If you find Phoca extensions useful, please support the project
koif
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 25 Mar 2009, 04:32

Re: Title Character Limit

Post by koif »

Thank you very much Jan!!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48714
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Title Character Limit

Post by Jan »

:wink:
If you find Phoca extensions useful, please support the project
Post Reply