plugin:userhomepage
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:userhomepage [2018-02-27 06:57] – Added PublicNS template and skeleton as well as wikilink classes Geekitude | plugin:userhomepage [2022-08-29 07:34] (current) – Added [userlink_icons] setting to choose image style Geekitude | ||
---|---|---|---|
Line 4: | Line 4: | ||
description: | description: | ||
author | author | ||
- | email : simon.geekitude@gmail.com | + | email : sdelage@gmail.com |
- | type : Action | + | type : Action |
- | lastupdate : 2018-02-27 | + | lastupdate : 2022-08-29 |
- | compatible : Ponder Stibbons, | + | compatible : Ponder Stibbons, |
depends | depends | ||
conflicts | conflicts | ||
Line 20: | Line 20: | ||
screenshot_img : http:// | screenshot_img : http:// | ||
---- | ---- | ||
+ | |||
+ | :!: if you installed this plugin before 2021-12-16, note that instructions in [[plugin: | ||
===== Installation ===== | ===== Installation ===== | ||
- | Install | + | Search and install |
- | :!: **Important: | + | :!: **Important: |
+ | :-) | ||
==== Upgrading from version 3.0.4 ==== | ==== Upgrading from version 3.0.4 ==== | ||
Line 40: | Line 43: | ||
===== Settings ===== | ===== Settings ===== | ||
- | :!: **Warning about Avatar plugin** : if local avatar images and UHP's private namespaces are stored in same place, UHP's ACL rules might block avatars for visitors. Consider changing | + | :!: **Warning about Avatar plugin** : if local avatar images and UHP's private namespaces are stored in same place, UHP's ACL rules might block avatars for visitors. Consider changing |
:!: **Warning about templates** : some templates include an option for users' pages namespace wich default doesn' | :!: **Warning about templates** : some templates include an option for users' pages namespace wich default doesn' | ||
Line 64: | Line 67: | ||
* **acl_all_templates** : ACL for @user group on plugin' | * **acl_all_templates** : ACL for @user group on plugin' | ||
* **no_acl** : absolutely no ACL rule will be automatically set (ACL options above will be ignored), including any protection on page templates. Rules allready set will have to be manually removed. Only enable this option if you know what you're doing and have a specific need not covered by the options above. [default : disabled] | * **no_acl** : absolutely no ACL rule will be automatically set (ACL options above will be ignored), including any protection on page templates. Rules allready set will have to be manually removed. Only enable this option if you know what you're doing and have a specific need not covered by the options above. [default : disabled] | ||
- | * **redirection** : enable or disable redirection (note that it will however occur on page creation). [default : enabled] //(added on 2015/ | + | * **redirection** : enable or disable redirection (note that it will however occur on page creation |
* **action** : choose wich action is used on redirection to public page right after it's creation between ' | * **action** : choose wich action is used on redirection to public page right after it's creation between ' | ||
* **userlink_replace** : if '' | * **userlink_replace** : if '' | ||
- | * **userlink_classes** : wich CSS classes will be applied to the replacement link(s). | + | * **userlink_classes** : wich CSS classes will be applied to the replacement link(s). |
+ | * **userlink_icons** : choose between old school png or modern svg images for replacement link(s). [default : '' | ||
* **userlink_fa** : if enabled, this option will switch from image icons to Fontawesome icons for the links sent with '' | * **userlink_fa** : if enabled, this option will switch from image icons to Fontawesome icons for the links sent with '' | ||
Line 96: | Line 100: | ||
==== Private or Public Namespace Skeleton ==== | ==== Private or Public Namespace Skeleton ==== | ||
- | If tou create a folder named '// | + | If you create a folder named '// |
* You can add as many page templates as you want in skeleton (even in sub folders if you wish) | * You can add as many page templates as you want in skeleton (even in sub folders if you wish) | ||
Line 138: | Line 142: | ||
* **getComplexLoggedInAs()** returns an <li> element like the " | * **getComplexLoggedInAs()** returns an <li> element like the " | ||
* **getAnyPublicLink(" | * **getAnyPublicLink(" | ||
- | * **getElements()** returns an array containing id and localized string | + | * **getElements()** returns an array containing id, strings |
==== User links ==== | ==== User links ==== | ||
Line 152: | Line 156: | ||
</ | </ | ||
...with... | ...with... | ||
- | <code php>if (!plugin_isdisabled(' | + | <code php> |
- | $userhomepageHelper = plugin_load(' | + | if ((!plugin_isdisabled(' |
- | } | + | $userhomepageHelper = plugin_load(' |
- | // If User HomePage helper is loaded, replace standard ' | + | } |
- | if ($userhomepageHelper) { | + | // If User HomePage helper is loaded, replace standard ' |
- | echo $userhomepageHelper-> | + | if ($userhomepageHelper) { |
- | } else { | + | echo $userhomepageHelper-> |
- | echo '< | + | } else { |
- | tpl_userinfo(); | + | echo '< |
- | echo '</ | + | tpl_userinfo(); |
- | } | + | echo '</ |
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ==== Editor/ | ||
+ | |||
+ | Dokuwiki' | ||
+ | |||
+ | The file to change depends on template but with //Dokuwiki template//, it would be the file '' | ||
+ | <code php> | ||
+ | </ | ||
+ | ...with... | ||
+ | <code php> | ||
+ | <?php | ||
+ | // If Userhomepage helper is loaded | ||
+ | if ($userhomepageHelper != null) { | ||
+ | $userhomepageHelper-> | ||
+ | // Else if Userhomepage helper is not loaded yet but enabled | ||
+ | } elseif (!plugin_isdisabled(' | ||
+ | $userhomepageHelper = plugin_load(' | ||
+ | $userhomepageHelper-> | ||
+ | // Otherwise use plain text | ||
+ | } else { | ||
+ | tpl_pageinfo(); | ||
+ | } | ||
+ | ?> | ||
+ | </ | ||
</ | </ | ||
Line 214: | Line 245: | ||
{{rss> | {{rss> | ||
+ | |||
+ | See [[https:// | ||
===== Known Bugs and Issues ===== | ===== Known Bugs and Issues ===== |
plugin/userhomepage.1519711071.txt.gz · Last modified: 2018-02-27 06:57 by Geekitude