If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Date and time in comment  XML
Forum Index » Advanced Guestbook Forum
Author Message
nimf
Beginner

Joined: 02/06/2014 14:28:26
Messages: 18
Offline

Hello,

I have a "little" problem, if someone writes a story in my Guestbook and someone wants to comment on that, lets say three days later, the date and time of that comment is the same as those of the story.
I have been looking how to solve it , but I can't find the solution.
In com.php there is the $DATE and in Body.php is $TPL[GB_TIME],

hope someone can help.

nimf
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4291
Location: Bristol, UK
Offline

What's the address of your guestbook?

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
nimf
Beginner

Joined: 02/06/2014 14:28:26
Messages: 18
Offline

Sorry Carbonize the guestbook is still not online I am working with Xampp.
Hope you can help anyway
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4291
Location: Bristol, UK
Offline

I'll have to go through the code later. Sounds like there is an issue with either the timestamp generation when saving the comments or work the variable used to display the date. Check timestamps in database. book_coms if memory serves.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
nimf
Beginner

Joined: 02/06/2014 14:28:26
Messages: 18
Offline

Hello Carbonize,

I have been looking in database book-com for the timestamps, but I cannot see if annythings wrong, wil I make a print screen of it?
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4291
Location: Bristol, UK
Offline

Well if, as you say, all the comments for a entry display the time of the entry just make several comments on a single entry and check if they have the same timestamp or not.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
nimf
Beginner

Joined: 02/06/2014 14:28:26
Messages: 18
Offline


Hello carbonize,

Sorry for my late reply, I have tried what you said, I made several comments on a story from the 7 th of august but the comments all have the same date and time of the story.
The timestamp of the comments are both different, the first one has timestamp: 1409142223, the seccond: 1409142474
nimf
Beginner

Joined: 02/06/2014 14:28:26
Messages: 18
Offline

hello Carbonize,

I just find out that when I go to ( Admin) Panel Easy, day and time of the comments are what they must be ( in English)
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4291
Location: Bristol, UK
Offline

OK so odds are it's some change you made to either the template files or the lib files. Can you remember what changes you made?

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
nimf
Beginner

Joined: 02/06/2014 14:28:26
Messages: 18
Offline

I have been changing a lot, so I cant remember where i made de changes.
I have downloaded the Guestbook again and I will start comparing the files and hope that I will find some stupid changes.
Thanks annyway
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4291
Location: Bristol, UK
Offline

Possibly you changed the variable name used to display the date in the comment template

This message was edited 1 time. Last update was at 03/09/2014 14:45:31


Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
nimf
Beginner

Joined: 02/06/2014 14:28:26
Messages: 18
Offline

I think that I know what's gone wrong, I want a date in the comments, but there is normaly no date, so I used the $DATE from the Entry.php and placed it in the Com.php.
Do you know the right way to do wat I want? I think it must be possible, but I am not as familiar with PHP as you are
nimf
Beginner

Joined: 02/06/2014 14:28:26
Messages: 18
Offline

Hello Carbonize,

I have been out for a few days so it took a wile before you heard something of me, I wonder if you can be of help with my question?
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4291
Location: Bristol, UK
Offline

Sorry been busy and forgot about this. Remind me on Wednesday.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
nimf
Beginner

Joined: 02/06/2014 14:28:26
Messages: 18
Offline

hello Carbonize,

You asked me to remember, well this is my remindercall
 
Forum Index » Advanced Guestbook Forum
Go to:   
Based on the open source JForum