Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 06:00:23 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155555 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Last Update Info 2 Module  (Read 790 times)
pixeldoc2000

Offline Offline

Posts: 3



WWW
« on: November 24, 2007, 10:15:07 PM »

This Module is based on last_update_info v0.20 by Peter Vroegop.

Type: snippet

Purpose: returns Date, Time and author of a page with correct Data/Time Format like this:
DATE, TIME (USERNAME)

Installation: Download the ZIP and install it in the WebsiteBaker Administration (Add-ons -> Modules -> Install Module).

Usage: insert echo get_modified_when(PAGE_ID) in your template.

Configuration: -

Licence: GNU GPL

Supports: WB 2.6.x
Tested:   WB 2.6.7

Please test this module and let me know if have any problems.
« Last Edit: November 24, 2007, 10:45:37 PM by pixeldoc2000 » Logged
powderbomber

Offline Offline

Posts: 55


« Reply #1 on: November 29, 2007, 01:09:43 AM »

nice work mate, this is getting closer to what im after, which is.....

displaying the last time any page was updated on the site. The site in question doesnt need to show the last update of every page, however if it can display the last time any page was updated, thats good enough for me.

With your snippet I can choose the most updated page ID which will give a better result but its still not exactly what im after. Not sure how I could get what Im after, it would have to collect all the page update timestamp data and search for the most recent one I guess. either way its beyond my php skills Smiley
Logged
Mr._T

Offline Offline

Posts: 36


« Reply #2 on: November 18, 2008, 10:07:18 AM »

Hi,

do you think it is possible to modify the output so, that just the last modified time is displayed, but not the editor?

Regards, Thomas
Logged
Ruud
WebsiteBaker Org e.V.

Offline Offline

Posts: 2298



WWW
« Reply #3 on: November 18, 2008, 10:40:34 PM »

Just change line 46 from include.php into this:

return date($dateformatresult[0]." , ".$timeformatresult[0],$mod_details[0]);

That should do what you want.

Ruud
Logged

Professional WebsiteBaker Solutions
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!