Feature request: Change the date displayed

Phoca Guestbook - creating guestbooks in Joomla! CMS
dax702
Phoca Enthusiast
Phoca Enthusiast
Posts: 85
Joined: 10 May 2008, 21:11

Hi, I want to use yo

Post by dax702 »

Hi, I want to use your guestbook to transfer a bunch of testimonials from an old website, but I would like to show the dates that they were submitted originally. I looked in the edit edit item screen but did not see a way to change the date (as you can with articles in Joomla) Can you add this feature?

Thanks! I was hesitant to move to Joomla 1.5 because of these types of components but so far I'm 2 for 2 with your Gallery and Guestbook!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48689
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Hi, there is no such

Post by Jan »

Hi, there is no such a function to change the date. The date is created if user leave the message (automatically and you cannot change it) ... the easiest way how to do it, is changing it in databese, e.g. via PhpMyAdmin ... I think the better way how to trasfer old data is inserting them via PhpMyAdmin - backup you old database and then copy only messages from the backup and paste them vie SQL query itno you new site database... (it is quickest and easiest way)
If you find Phoca extensions useful, please support the project
dax702
Phoca Enthusiast
Phoca Enthusiast
Posts: 85
Joined: 10 May 2008, 21:11

Well two problems -

Post by dax702 »

Well two problems - this old data from the guestbook did not use an SQL database. The entries are just stored in a file. Second problem is that I wouldn't know how to do that anyways. I have enough knowledge to go in and change them manually like you said though.

Here's another question - can I hide the date completely on the entries?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48689
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

entries are just

Post by Jan »

entries are just stored in a file... only manually adding it into a database will help you...

can I hide the date completely on the entries ... no, you can only disable the name or e-mail..
If you find Phoca extensions useful, please support the project
dax702
Phoca Enthusiast
Phoca Enthusiast
Posts: 85
Joined: 10 May 2008, 21:11

Re: Feature request: Change the date displayed

Post by dax702 »

Hi Jan,
I think there should be some way to hide the date in the display page of the entries? I got all my dates messed up during the transfer from CSV to SQL, and some of them didn't even have dates so I just want to hide the date altogether. There's got to be some code in the PHP that tells the guestbook to display the date down in the lower right side?

EDIT: I found it! views/phocaguestbook/tmpl/default.php and comment out line 180 and the date disappears from the front end entries display :twisted:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48689
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Feature request: Change the date displayed

Post by Jan »

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