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 
Removing time  XML
Forum Index » Advanced Guestbook Modifications
Author Message
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
aim icon
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4291
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
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
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.
aim icon
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4291
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
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
ronpaul53
Newbie

Joined: 21/02/2009 18:41:21
Messages: 3
Location: United Kingdom
Offline

Thanks for that, it has worked, much appreciated.
aim icon
 
Forum Index » Advanced Guestbook Modifications
Go to:   
Based on the open source JForum