-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
41 lines (26 loc) · 1008 Bytes
/
README
File metadata and controls
41 lines (26 loc) · 1008 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Module : @TITLE@
Version : @VERSION@
Author : @AUTHOR@
@DESCRIPTION@
Install:
--------
- Unpack the archive;
- Move the directory "@MODULE_ID@" to the directory "mods"
within your Phorum installation;
- Login as administrator in Phorum's administrative interface and
go to the "Modules" section;
- Enable the module "@TITLE@".
- Go to the settings screen for the module to configure the module
(e.g. on what pages to replace the standard dates with readable dates).
Integration with other modules:
-------------------------------
Other modules or scripts that want to make use of the readable date
formatting, can make use of a special hook call. If currently code like
this is used for formatting:
$date = phorum_date($PHORUM["short_date_time"], $time);
then it can be replaced with this:
if (!empty($PHORUM['hooks']['format_readable_date'])) {
$date = phorum_hook('format_readable_date', $time);
} else {
$date = phorum_date($PHORUM["short_date_time"], $time);
}