Author |
Message |
22/02/2009 20:05:27
|
ronpaul53
Newbie
Joined: 21/02/2009 18:41:21
Messages: 3
Location: United Kingdom
Offline
|
Can anyone point me to where I can take 'TIME' element out of the header
|
|
22/02/2009 23:07:42
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
Off the top of my head open templates/body.php and delete
$TPL[GB_TIME]<br>
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
23/02/2009 17:43:26
|
ronpaul53
Newbie
Joined: 21/02/2009 18:41:21
Messages: 3
Location: United Kingdom
Offline
|
Thanks for that, had already tried that but it removes the whole string 'Monday, 23. February 2009 16:40'. I just want to remove '16:40'. Any further suggestions.
|
|
23/02/2009 19:51:06
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
It would require some editing of the core files since the function that creates this time also creates the time in the entries.
Open lib/gb.class/php and find
$TPL['GB_TIME'] = $this->db->DateFormat(time());
Replace with
$TPL['GB_TIME'] = $this->db->DateFormat(time(), true);
Close and save
Open lib/vars.class.php and find
function DateFormat($timestamp) {
Replace with
function DateFormat($timestamp, $hideTime = false) {
Next find
return ($newdate=$newdate.$newtime);
Replace with
return ($newdate = ($hideTime) ? $newdate : $newdate.$newtime);
Save and close.
Not tested so no guarantees.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
23/02/2009 20:16:25
|
ronpaul53
Newbie
Joined: 21/02/2009 18:41:21
Messages: 3
Location: United Kingdom
Offline
|
Thanks for that, it has worked, much appreciated.
|
|
|