| ... | ... |
@@ -7,7 +7,10 @@ to restore from a failed bridge. |
| 7 | 7 |
This bridge can be used only for efiction installed as the subdirectory of e107 site |
| 8 | 8 |
|
| 9 | 9 |
1. add |
| 10 |
-`@ include_once(UN_FULLAPP_PATH."class2.php");` |
|
| 10 |
+`@ include_once(_BASEDIR.UN_FULLAPP_PATH."class2.php"); |
|
| 11 |
+ |
|
| 12 |
+Note: Full path is important because modules, example: |
|
| 13 |
+`define("UN_FULLAPP_PATH", "../");`
|
|
| 11 | 14 |
|
| 12 | 15 |
after |
| 13 | 16 |
`@ include_once(_BASEDIR."config.php");` |
| ... | ... |
@@ -30,7 +33,17 @@ if your e107 use the same theme as efiction, user will not notice difference |
| 30 | 33 |
|
| 31 | 34 |
|
| 32 | 35 |
|
| 36 |
+## Way how to load e107 theme |
|
| 37 |
+(to have css in one place and use e107 caching) |
|
| 38 |
+ |
|
| 39 |
+`$cssId = "theme_css";` |
|
| 40 |
+`$e_js->renderJs($cssId, false, 'css', false);` |
|
| 41 |
+`$e_js->renderCached('css');`
|
|
| 33 | 42 |
|
| 43 |
+- removed all css from header.php |
|
| 34 | 44 |
|
| 45 |
+## User Profile Settings |
|
| 46 |
+- add panel with /user/settings |
|
| 47 |
+- use modified editbio.php to remove account related info (name, password, email) |
|
| 35 | 48 |
|
| 36 | 49 |
|
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,36 @@ |
| 1 |
+This folder contains the default files for connecting to the default author |
|
| 2 |
+table for eFiction. |
|
| 3 |
+ |
|
| 4 |
+They are included here as a backup in case you need |
|
| 5 |
+to restore from a failed bridge. |
|
| 6 |
+ |
|
| 7 |
+This bridge can be used only for efiction installed as the subdirectory of e107 site |
|
| 8 |
+ |
|
| 9 |
+1. add |
|
| 10 |
+`@ include_once(UN_FULLAPP_PATH."class2.php");` |
|
| 11 |
+ |
|
| 12 |
+after |
|
| 13 |
+`@ include_once(_BASEDIR."config.php");` |
|
| 14 |
+ |
|
| 15 |
+- you can't add this directly in config.php, because than ajax will stop to work |
|
| 16 |
+ |
|
| 17 |
+`UN_FULLAPP_PATH` is constant defined in config.php - path to your e107 installation . |
|
| 18 |
+ |
|
| 19 |
+2. replace files from this directory |
|
| 20 |
+ |
|
| 21 |
+queries.php - allows to use e107 user table as authors |
|
| 22 |
+ |
|
| 23 |
+get_session_vars.php - allows to use e107 constants to detect if user is logged or not. Thanks installation in subdirectory, all cookies/sessions are available for efiction site too. |
|
| 24 |
+ |
|
| 25 |
+using class2.php allows use any e107 feature inside efiction script |
|
| 26 |
+ |
|
| 27 |
+3. change paths in panels for login, signup and user info to e107 urls |
|
| 28 |
+ |
|
| 29 |
+if your e107 use the same theme as efiction, user will not notice difference |
|
| 30 |
+ |
|
| 31 |
+ |
|
| 32 |
+ |
|
| 33 |
+ |
|
| 34 |
+ |
|
| 35 |
+ |
|
| 36 |
+ |