1 |
1634
|
Luisehahne
|
WebsiteBaker 2.8.3 Developing Instructions/Informations
|
2 |
|
|
=======================================================
|
3 |
|
|
|
4 |
1655
|
Luisehahne
|
$Id$
|
5 |
1634
|
Luisehahne
|
|
6 |
|
|
|
7 |
1676
|
Luisehahne
|
|
8 |
|
|
|
9 |
|
|
24 Apr-2012 Build 1676
|
10 |
|
|
----------------------
|
11 |
|
|
If you use function rm_full_dir
|
12 |
|
|
now disable Run-time notices and return boolean:
|
13 |
|
|
create your own error messages
|
14 |
|
|
|
15 |
1666
|
Luisehahne
|
17 Apr-2012 Build 1665
|
16 |
|
|
----------------------
|
17 |
|
|
add developer informations in advanced settings
|
18 |
1676
|
Luisehahne
|
info will be shown in footer only for system admin
|
19 |
1666
|
Luisehahne
|
|
20 |
|
|
add page_icon_dir in advanced settings
|
21 |
|
|
default directory /templates/*/title_images
|
22 |
|
|
/*/ placeholder will be replaced with default template
|
23 |
|
|
put images to show in frontend template
|
24 |
|
|
in page settings you find an additional field to choose an image
|
25 |
|
|
|
26 |
|
|
|
27 |
1655
|
Luisehahne
|
01 Apr-2012 Build 1655
|
28 |
|
|
----------------------
|
29 |
|
|
handling replyto in form module
|
30 |
|
|
You can directly answer to the recipient, sending by a authenticated user
|
31 |
|
|
then in from the recipient name is shown
|
32 |
1635
|
Luisehahne
|
|
33 |
1654
|
Luisehahne
|
22 Mar-2012 Build 1639
|
34 |
|
|
----------------------
|
35 |
|
|
Refer: new structure in config.php set by new installation
|
36 |
|
|
backwards compability is given, so const can be defined in /framework/initialize.php
|
37 |
|
|
add const DEBUG to config.php (default = false)
|
38 |
|
|
add const ADMIN_DIRECTORY to config.php (default = admin)
|
39 |
|
|
[code]
|
40 |
|
|
define('DEBUG', false);
|
41 |
|
|
define('DB_TYPE', 'mysql');
|
42 |
|
|
define('DB_HOST', 'localhost');
|
43 |
|
|
define('DB_NAME', 'xxxxxx');
|
44 |
|
|
define('DB_USERNAME', 'xxxxxx');
|
45 |
|
|
define('DB_PASSWORD', 'xxxxxx');
|
46 |
|
|
define('TABLE_PREFIX', 'wb_');
|
47 |
|
|
|
48 |
|
|
define('WB_URL', 'http://xxxxxxxx.xx');
|
49 |
|
|
define('ADMIN_DIRECTORY', 'admin'); // no leading/trailing slash or backslash!! A simple directory only!!
|
50 |
|
|
|
51 |
|
|
require_once(dirname(__FILE__).'/framework/initialize.php');
|
52 |
|
|
[/code]
|
53 |
|
|
|
54 |
|
|
|
55 |
1635
|
Luisehahne
|
09 Mar-2012 Build 1634
|
56 |
|
|
----------------------
|
57 |
|
|
If using the $MESSAGE['MOD_FORM_INCORRECT_CAPTCHA'] in your module, please add
|
58 |
1654
|
Luisehahne
|
following code to your script,
|
59 |
|
|
requires: include_once (WB_PATH.'/framework/functions.php');
|
60 |
1634
|
Luisehahne
|
[code]
|
61 |
1654
|
Luisehahne
|
$aServerEmail = (defined('SERVER_EMAIL') && SERVER_EMAIL != '' ? SERVER_EMAIL : $_SERVER['SERVER_NAME']);
|
62 |
|
|
$replace = array('SERVER_EMAIL' => $aServerEmail );
|
63 |
|
|
$MESSAGE['MOD_FORM_INCORRECT_CAPTCHA'] = replace_vars($MESSAGE['MOD_FORM_INCORRECT_CAPTCHA'], $replace);
|
64 |
1634
|
Luisehahne
|
[/code]
|
65 |
|
|
|