ich richte derzeit eine Seite für einen kleinen Verein ein.
Meine Programmierkenntnisse sind eher beschränkt
Dennoch hat die erste Einrichtung ohne Schwierigkeiten funktioniert.
Nun wollte ich noch das written_communication plugin einpflegen und da hörts schon auf.
Die zip Datei entpackt und in das plugin Verzeichnis kopiert war nicht schwierig.
Jedoch bei der einpflege in die my_body_bottom.php.
In der readme steht "In der Datei my_body_bottom.php am Ende des Menüs folgenden Link anfügen".
Berechtigung das plugin zu nutzen sollen nur Admin sowie Vorstand bekommen.
Könnte mir das bitte jemand an die richtige Stelle einfügen?
Hier die my_body_bottom.php:
Code: Alles auswählen
<!-- Here you can add your html code. This code will be applied at the end of the <body> area
and after the Admidio module code.
-->
</div><!-- closes "div#left-block" -->
</div><!-- closes "div.col-md-9" -->
<div class="col-md-3">
<div id="right-block" class="admidio-container">
<?php
include(ADMIDIO_PATH . FOLDER_PLUGINS . '/login_form/login_form.php');
?>
<div id="plugin_menu" class="admidio-plugin-content">
<?php
// Module Menu
$moduleMenu = new Menu('modules', $gL10n->get('SYS_MODULES'));
$moduleMenu->addItem('overview', '/adm_program/index.php',
$gL10n->get('SYS_OVERVIEW'), '/icons/home.png');
if($gPreferences['enable_announcements_module'] == 1
|| ($gPreferences['enable_announcements_module'] == 2 && $gValidLogin))
{
$moduleMenu->addItem('announcements', FOLDER_MODULES . '/announcements/announcements.php',
$gL10n->get('ANN_ANNOUNCEMENTS'), '/icons/announcements.png');
}
if($gPreferences['enable_download_module'] == 1)
{
$moduleMenu->addItem('download', FOLDER_MODULES . '/downloads/downloads.php',
$gL10n->get('DOW_DOWNLOADS'), '/icons/download.png');
}
if($gPreferences['enable_mail_module'] == 1 && !$gValidLogin)
{
$moduleMenu->addItem('email', FOLDER_MODULES . '/messages/messages_write.php',
$gL10n->get('SYS_EMAIL'), '/icons/email.png');
}
if(($gPreferences['enable_pm_module'] == 1 || $gPreferences['enable_mail_module'] == 1) && $gValidLogin)
{
$unreadBadge = '';
// get number of unread messages for user
$message = new TableMessage($gDb);
$unread = $message->countUnreadMessageRecords($gCurrentUser->getValue('usr_id'));
if($unread > 0)
{
$unreadBadge = '<span class="badge">' . $unread . '</span>';
}
$moduleMenu->addItem('private_message', FOLDER_MODULES . '/messages/messages.php',
$gL10n->get('SYS_MESSAGES') . $unreadBadge, '/icons/messages.png');
}
if($gPreferences['enable_photo_module'] == 1
|| ($gPreferences['enable_photo_module'] == 2 && $gValidLogin))
{
$moduleMenu->addItem('photo', FOLDER_MODULES . '/photos/photos.php',
$gL10n->get('PHO_PHOTOS'), '/icons/photo.png');
}
if($gPreferences['enable_guestbook_module'] == 1
|| ($gPreferences['enable_guestbook_module'] == 2 && $gValidLogin))
{
$moduleMenu->addItem('guestbk', FOLDER_MODULES . '/guestbook/guestbook.php',
$gL10n->get('GBO_GUESTBOOK'), '/icons/guestbook.png');
}
$moduleMenu->addItem('lists', FOLDER_MODULES . '/lists/lists.php',
$gL10n->get('LST_LISTS'), '/icons/lists.png');
if($gValidLogin)
{
$moduleMenu->addItem('mylist', FOLDER_MODULES . '/lists/mylist.php',
$gL10n->get('LST_MY_LIST'), '/icons/mylist.png');
}
if($gPreferences['enable_dates_module'] == 1
|| ($gPreferences['enable_dates_module'] == 2 && $gValidLogin))
{
$moduleMenu->addItem('dates', FOLDER_MODULES . '/dates/dates.php',
$gL10n->get('DAT_DATES'), '/icons/dates.png');
}
if($gPreferences['enable_weblinks_module'] == 1
|| ($gPreferences['enable_weblinks_module'] == 2 && $gValidLogin))
{
$moduleMenu->addItem('links', FOLDER_MODULES . '/links/links.php',
$gL10n->get('LNK_WEBLINKS'), '/icons/weblinks.png');
}
echo $moduleMenu->show();
// Administration Menu
if($gCurrentUser->approveUsers() || $gCurrentUser->editUsers()
|| $gCurrentUser->manageRoles() || $gCurrentUser->isAdministrator())
{
$adminMenu = new Menu('administration', $gL10n->get('SYS_ADMINISTRATION'));
if($gCurrentUser->approveUsers() && $gPreferences['registration_mode'] > 0)
{
$adminMenu->addItem('newreg', FOLDER_MODULES . '/registration/registration.php',
$gL10n->get('NWU_NEW_REGISTRATIONS'), '/icons/new_registrations.png');
}
if($gCurrentUser->editUsers())
{
$adminMenu->addItem('usrmgt', FOLDER_MODULES . '/members/members.php',
$gL10n->get('MEM_USER_MANAGEMENT'), '/icons/user_administration.png');
}
if($gCurrentUser->manageRoles())
{
$adminMenu->addItem('roladm', FOLDER_MODULES . '/roles/roles.php',
$gL10n->get('ROL_ROLE_ADMINISTRATION'), '/icons/roles.png');
}
if($gCurrentUser->isAdministrator())
{
$adminMenu->addItem('dbback', FOLDER_MODULES . '/backup/backup.php',
$gL10n->get('BAC_DATABASE_BACKUP'), '/icons/backup.png');
$adminMenu->addItem('orgprop', FOLDER_MODULES . '/preferences/preferences.php',
$gL10n->get('SYS_SETTINGS'), '/icons/options.png');
}
echo $adminMenu->show();
}
?>
</div><!-- closes "div#plugin_menu" -->
</div><!-- closes "div#right-block" -->
</div><!-- closes "div.col-md-3" -->
</div><!-- closes "div.row" -->
</div><!-- closes "div#page" -->
<p id="copyright">
<img src="<?php echo THEME_URL; ?>/images/admidio_writing_100.png"
alt="<?php echo $gL10n->get('SYS_ADMIDIO_SHORT_DESC'); ?>"
title="<?php echo $gL10n->get('SYS_ADMIDIO_SHORT_DESC'); ?>"
style="border: 0; vertical-align: bottom;" />
</a><br />
<span style="font-size: 9pt; padding-left: 8px;"><a href="<?php echo $g_root_path; ?>/impressum.php" title=Impressum>Impressum</a></span>
</p>