Length of "Title" in Guesbookview.

Phoca Guestbook - creating guestbooks in Joomla! CMS
raydesign
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 27 Nov 2009, 22:50

Length of "Title" in Guesbookview.

Post by raydesign »

Hi,

Is there a way to extend the maximum characters of the "Title" in Guestbook view?
Somehow it seems to be limited to 40 charachters, then it is cut off with ...

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

Re: Length of "Title" in Guesbookview.

Post by Jan »

Hi, title is limited to 200 characters maxlength="200" (in form and in database)

Jan
If you find Phoca extensions useful, please support the project
raydesign
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 27 Nov 2009, 22:50

Re: Length of "Title" in Guesbookview.

Post by raydesign »

Jan,

Why is it then "cut off" after 40 characters in the Component guestbook view?
In the header of the guestbook entry's, I get the full name, then after the ":" the title...which is cut off after 40 characters...

-raydesign
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49138
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Length of "Title" in Guesbookview.

Post by Jan »

Hi, can I see where this occurs, there are limits for table width, maybe the title cannot be displayed in the widht?
If you find Phoca extensions useful, please support the project
raydesign
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 27 Nov 2009, 22:50

Re: Length of "Title" in Guesbookview.

Post by raydesign »

Jan,

take a look here:

http://www.esclivemusic.com/index.php/petition

thanks,

-raydesign
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49138
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Length of "Title" in Guesbookview.

Post by Jan »

Hi, sorry, now I see it, there is a protection in the code, it is obsolete and will be changed in the next version, for now you can change it:

in:
components\com_phocaguestbook\views\phocaguestbook\tmpl\default.php

line 140:
FROM:
$msgpg .= PhocaguestbookHelper::wordDelete($values->title,40,'...');
TO:
$msgpg .= PhocaguestbookHelper::wordDelete($values->title,200,'...');

This was obsolete protection against overflow the heading.

Jan
If you find Phoca extensions useful, please support the project
raydesign
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 27 Nov 2009, 22:50

Re: Length of "Title" in Guesbookview.

Post by raydesign »

Jan,

Thanks man - that did the trick !!

Also...a little request...
You see I am using the guestbook to collect signatures for this petition/cause.

What do you think about adding a few more fields to the entry form?
Like Country, Occupation, or even customizable.... a couple of fields that the user
can decide what text to use, and if they show or not.

And if there was a way to display in the front end how many guest book entries you have,
it would be great.
Maybe that could be a feature for your "Latest Entries" module. To show "10 of 245 entries"
in the top of the module...

Just some ideas.

Awesome extensions !

-raydesign
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49138
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Length of "Title" in Guesbookview.

Post by Jan »

Hi, the custom field is planned but still not time to do it :(
If you find Phoca extensions useful, please support the project
Post Reply