Need exact date format for Guestbook (Gastbuch)

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
jab
Forum Members
Forum Members
Posts: 60
Joined: Sun Oct 30, 2005 4:21 am

Need exact date format for Guestbook (Gastbuch)

Post by jab »

I tried using the SQL date format with the Guestbook and nothing happened.
The option parameter was added as follows: {cms_module module="gastbuch"  dateformat="%M-%d-%Y" }. It doesn't work with single or double quotes.

-Jab
cyberman

Re: Need exact date format for Guestbook (Gastbuch)

Post by cyberman »

Which version of gastbuch you are using?
jab
Forum Members
Forum Members
Posts: 60
Joined: Sun Oct 30, 2005 4:21 am

Re: Need exact date format for Guestbook (Gastbuch)

Post by jab »

I'm using version 0.7. I just noticed that there is a new release. Should I upgrade?
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: Need exact date format for Guestbook (Gastbuch)

Post by Dee »

Use {cms_module module="gastbuch"  dateform="%M-%d-%Y" }.
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: Need exact date format for Guestbook (Gastbuch)

Post by Dee »

jab wrote: I'm using version 0.7. I just noticed that there is a new release. Should I upgrade?
Please do. Quite some improvements and fixes were made.
I made changes to SVN to solve this bug (will be fixed in the next release).
jab
Forum Members
Forum Members
Posts: 60
Joined: Sun Oct 30, 2005 4:21 am

Re: Need exact date format for Guestbook (Gastbuch)

Post by jab »

Thanks!

I installed the latest release and it formated differently than the old version and doesn't show the email addresses. That was after it crashed due to a change in how the "showmessage" option receives an input (i.e. showmessage="2a" instead of showmessage="showmessage2a.tpl". It took me a while to figure out that this was the issue. The help should be updated to reflect this differnce.

-Jab
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: Need exact date format for Guestbook (Gastbuch)

Post by Dee »

No prob. Sorry for the inconvenience, I got involved in the gastbuch module development after 0.7 because lots of things weren't working. Actually most of it works as expected now.
AFAIK the email addresses weren't stored (or shown) in 0.7, in version 0.8 and higher they are.
I believe the only difference in formatting is the fieldname for the country (was countryshow, now country - see the changes in the defautl templates, I'll update the release notes).
The showmessage option takes the short input in the new versions, the help file reflects this (to tell you the truth I didn't even know this was changed, but I'll update the changelog and will see if I can make the help more clear).
You're right about the help file being wrong on the dateformat (so I discovered in this thread), I changed the module in SVN to accept the dateformat parameter instead of dateform, so this'll be fixed with the next release.
I hope you got the the guestbook module working the way you want it. Let me know if you have suggestions for improvements.
jab
Forum Members
Forum Members
Posts: 60
Joined: Sun Oct 30, 2005 4:21 am

Re: Need exact date format for Guestbook (Gastbuch)

Post by jab »

Thank you!  You have been very helpful. I have to admit, overall the members of this forum are the best. Everyone is willing to help and courteous as well.

As far as additional features, I did put in a request fo the addition of city and state/province fields. In the mean time I modified the label on the country field to reflect city and state for one of the sites I have. Also, a "bad word" filter would be nice.

-Jab
Post Reply

Return to “CMSMS Core”