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 |
1686
|
darkviper
|
17 Apr-2012 Build 1664
|
27 |
|
|
----------------------
|
28 |
1666
|
Luisehahne
|
|
29 |
1686
|
darkviper
|
|
30 |
1655
|
Luisehahne
|
01 Apr-2012 Build 1655
|
31 |
|
|
----------------------
|
32 |
|
|
handling replyto in form module
|
33 |
|
|
You can directly answer to the recipient, sending by a authenticated user
|
34 |
|
|
then in from the recipient name is shown
|
35 |
1635
|
Luisehahne
|
|
36 |
1654
|
Luisehahne
|
22 Mar-2012 Build 1639
|
37 |
|
|
----------------------
|
38 |
|
|
Refer: new structure in config.php set by new installation
|
39 |
|
|
backwards compability is given, so const can be defined in /framework/initialize.php
|
40 |
|
|
add const DEBUG to config.php (default = false)
|
41 |
|
|
add const ADMIN_DIRECTORY to config.php (default = admin)
|
42 |
|
|
[code]
|
43 |
|
|
define('DEBUG', false);
|
44 |
|
|
define('DB_TYPE', 'mysql');
|
45 |
|
|
define('DB_HOST', 'localhost');
|
46 |
|
|
define('DB_NAME', 'xxxxxx');
|
47 |
|
|
define('DB_USERNAME', 'xxxxxx');
|
48 |
|
|
define('DB_PASSWORD', 'xxxxxx');
|
49 |
|
|
define('TABLE_PREFIX', 'wb_');
|
50 |
|
|
|
51 |
|
|
define('WB_URL', 'http://xxxxxxxx.xx');
|
52 |
|
|
define('ADMIN_DIRECTORY', 'admin'); // no leading/trailing slash or backslash!! A simple directory only!!
|
53 |
|
|
|
54 |
|
|
require_once(dirname(__FILE__).'/framework/initialize.php');
|
55 |
|
|
[/code]
|
56 |
|
|
|
57 |
|
|
|
58 |
1635
|
Luisehahne
|
09 Mar-2012 Build 1634
|
59 |
|
|
----------------------
|
60 |
|
|
If using the $MESSAGE['MOD_FORM_INCORRECT_CAPTCHA'] in your module, please add
|
61 |
1654
|
Luisehahne
|
following code to your script,
|
62 |
|
|
requires: include_once (WB_PATH.'/framework/functions.php');
|
63 |
1634
|
Luisehahne
|
[code]
|
64 |
1654
|
Luisehahne
|
$aServerEmail = (defined('SERVER_EMAIL') && SERVER_EMAIL != '' ? SERVER_EMAIL : $_SERVER['SERVER_NAME']);
|
65 |
|
|
$replace = array('SERVER_EMAIL' => $aServerEmail );
|
66 |
|
|
$MESSAGE['MOD_FORM_INCORRECT_CAPTCHA'] = replace_vars($MESSAGE['MOD_FORM_INCORRECT_CAPTCHA'], $replace);
|
67 |
1634
|
Luisehahne
|
[/code]
|
68 |
|
|
|