Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:2.0:probleme_rund_um_admidio [2018/06/24 12:39] – fasse | en:2.0:probleme_rund_um_admidio [2024/11/29 17:23] (current) – [Mass assignment of roles using the import] greno | ||
---|---|---|---|
Line 5: | Line 5: | ||
This information includes (Examples): | This information includes (Examples): | ||
- | * PHP version (v7.1.2) | + | * PHP version (v8.2.5) |
* Database type + version (MySQL v10.1.2) | * Database type + version (MySQL v10.1.2) | ||
- | * Admidio version (v3.2.10) | + | * Admidio version (v4.2.12) |
- | * Used Plugins + versions (login form v1.7.1, sidebar announcements) | + | * Used Plugins + versions (statistics v3.1.2, written communication) |
* Own adjustments were made (different design, own code changes) | * Own adjustments were made (different design, own code changes) | ||
- | * Exception Messages -> View [[en: | + | * Exception Messages -> View [[en: |
- | * Logdatei Auszüge -> View [[en: | + | * Logdatei Auszüge -> View [[en: |
* Detailed instructions on how to make the mistake -> Non-reproducible errors are very hard to find | * Detailed instructions on how to make the mistake -> Non-reproducible errors are very hard to find | ||
- | * Screenshots if useful | + | * Screenshots if useful |
* If error after update -> Check if everything has been updated (Plugins, Libs, Theme, ...) | * If error after update -> Check if everything has been updated (Plugins, Libs, Theme, ...) | ||
Line 26: | Line 26: | ||
Now, exceptions and other fatal errors are shown directly to the web page, as well as extended information written to the log files. For each day a separate file is created. You can open and analyze these with any text editor. | Now, exceptions and other fatal errors are shown directly to the web page, as well as extended information written to the log files. For each day a separate file is created. You can open and analyze these with any text editor. | ||
< | < | ||
+ | |||
+ | ===== Include PHP code in template files ===== | ||
+ | Admidio uses the template engine [[https:// | ||
+ | |||
+ | PHP code cannot be included there for security reasons. If you still want to use your own PHP code in a template file, you can do this via a plugin. Create a new folder in the folder '' | ||
===== Problems in Photo Upload ===== | ===== Problems in Photo Upload ===== | ||
- | Some servers | + | Some servers |
* Folder **adm_photos** does not have the rights 777. | * Folder **adm_photos** does not have the rights 777. | ||
* Folder **adm_photos/ | * Folder **adm_photos/ | ||
Line 51: | Line 56: | ||
Here it is quite easy if you know the console and the editor [[http:// | Here it is quite easy if you know the console and the editor [[http:// | ||
- | ===== Not view topics of plugins ===== | + | ===== Mass assignment |
- | Since version 2.2 that most plugins headings that appear above the plug-in content. If these shall not be displayed, because you want to use an own headine on your homepage, or it just does not fit into the layout of the page, so you can remove these headers with a simple CSS snippets. For this you add the following code in the **system.css** in your theme folder in the subfolder **css**: | + | |
- | <code css> | + | |
- | display: | + | |
- | }</ | + | |
- | + | ||
- | ===== Mass role assignment using the import ===== | + | |
If you want to quickly assign multiple users in a specific role, so you can make this even with the import function. For this purpose, you create an Excel list with first name and surname of the person that should get assigned to the role. If necessary, you can export a list from a different role and do your adjustments there. | If you want to quickly assign multiple users in a specific role, so you can make this even with the import function. For this purpose, you create an Excel list with first name and surname of the person that should get assigned to the role. If necessary, you can export a list from a different role and do your adjustments there. | ||
- | This spreadsheet you now choose for the import with selection | + | This spreadsheet you now choose for the import with selection |
- | + | ||
- | ===== Modify graphics ===== | + | |
- | + | ||
- | **Icons**\\ | + | |
- | In the folder icons of the selected Theme you can find all the icons that are used in Admidio. All icons are either 16x16 (eg {{: | + | |
- | + | ||
- | + | ||
- | **Other used graphics**\\ | + | |
- | Some of the graphics used for the " | + | |
- | + | ||
- | **no_profile_pic**\\ | + | |
- | This graphic is displayed when a user has uploaded no own avatar to the profile.[[http:// | + | |
===== Move Admidio folder ===== | ===== Move Admidio folder ===== | ||
Line 84: | Line 71: | ||
Now Admidio is running in the new folder. | Now Admidio is running in the new folder. | ||
- | ===== Change the menu to the database | + | ===== Insert back link into theme ===== |
- | + | From time to time it is useful | |
- | With version 3.3, the menu is no longer statically assembled in the file ** my_body_bottom.php **. It's stored in the database and will be created out of it. In order for this to work for you, you have to adjust | + | <!-- Add link to previous page --> |
- | + | <a id="admidio-back-link" class="" | |
- | You have the following 3 possibilities: | + | {/ |
- | - If you have not made any adjustments in our standard theme, you can simply replace the theme folder ** adm_themes ** during the update. | + | |
- | - Have you made adjustments in the theme, but not in the file ** my_body_bottom.php **, then just replace this file. | + | |
- | - If you have the file **my_body_bottom.php** adapted to your needs, you have to do some changes in the code. \\ To do so, please remove | + | |
- | <?php | + | |
- | // Module Menu | + | |
- | $moduleMenu = new Menu(' | + | |
- | $moduleMenu-> | + | |
- | | + | |
- | if($gPreferences[' | + | |
- | || ($gPreferences[' | + | |
- | | + | |
- | $moduleMenu-> | + | |
- | | + | |
- | } | + | |
- | | + | |
- | { | + | |
- | $moduleMenu-> | + | |
- | | + | |
- | | + | |
- | | + | |
- | { | + | |
- | $moduleMenu-> | + | |
- | | + | |
- | } | + | |
- | if(($gPreferences[' | + | |
- | { | + | |
- | $unreadBadge = ''; | + | |
- | // get number of unread messages for user | + | |
- | $message = new TableMessage($gDb); | + | |
- | $unread = $message-> | + | |
- | | + | |
- | { | + | |
- | $unreadBadge = '<span class="badge">' | + | |
- | } | + | |
- | $moduleMenu-> | + | |
- | | + | |
- | } | + | |
- | if($gPreferences[' | + | |
- | || ($gPreferences[' | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | if($gPreferences[' | + | |
- | || ($gPreferences[' | + | |
- | { | + | |
- | $moduleMenu-> | + | |
- | | + | |
- | } | + | |
- | $moduleMenu-> | + | |
- | | + | |
- | if($gValidLogin) | + | |
- | { | + | |
- | $moduleMenu-> | + | |
- | | + | |
- | } | + | |
- | if($gPreferences[' | + | |
- | || ($gPreferences[' | + | |
- | { | + | |
- | $moduleMenu-> | + | |
- | | + | |
- | } | + | |
- | if($gPreferences[' | + | |
- | || ($gPreferences[' | + | |
- | { | + | |
- | $moduleMenu-> | + | |
- | | + | |
- | } | + | |
- | echo $moduleMenu->show(); | + | |
- | // Administration Menu | + | |
- | if($gCurrentUser-> | + | |
- | || $gCurrentUser-> | + | |
- | | + | |
- | $adminMenu = new Menu(' | + | |
- | if($gCurrentUser-> | + | |
- | { | + | |
- | $adminMenu-> | + | |
- | $gL10n-> | + | |
- | | + | |
- | if($gCurrentUser-> | + | |
- | { | + | |
- | $adminMenu-> | + | |
- | $gL10n->get(' | + | |
- | } | + | |
- | if($gCurrentUser-> | + | |
- | { | + | |
- | $adminMenu-> | + | |
- | $gL10n-> | + | |
- | } | + | |
- | | + | |
- | { | + | |
- | $adminMenu-> | + | |
- | $gL10n-> | + | |
- | $adminMenu-> | + | |
- | $gL10n-> | + | |
- | | + | |
- | echo $adminMenu-> | + | |
- | } | + | |
- | ?> | + | |
- | </ | + | |
- | $page = new HtmlPage(); | + | |
- | echo $page-> | + | |
- | Now the sidebar should always show the menu you configured | + |