inc/extensions/ext-admins.php -text svneol=unset#text/plain
inc/extensions/ext-admintheme1.php -text svneol=unset#text/plain
inc/extensions/ext-admintheme_default.php -text svneol=unset#text/plain
+inc/extensions/ext-announcement.php -text svneol=unset#text/plain
inc/extensions/ext-autopurge.php -text svneol=unset#text/plain
inc/extensions/ext-autoreg.php -text svneol=unset#text/plain
inc/extensions/ext-bank.php -text svneol=unset#text/plain
templates/de/html/doubler/doubler_index.tpl -text svneol=unset#text/plain
templates/de/html/doubler/doubler_reflink.tpl -text svneol=unset#text/plain
templates/de/html/ext/.htaccess -text svneol=unset#text/plain
+templates/de/html/ext/ext_ -text svneol=unset#text/plain
templates/de/html/ext/ext_active.tpl -text svneol=unset#text/plain
templates/de/html/ext/ext_admins.tpl -text svneol=unset#text/plain
templates/de/html/ext/ext_admintheme1.tpl -text svneol=unset#text/plain
templates/de/html/ext/ext_admintheme_default.tpl -text svneol=unset#text/plain
+templates/de/html/ext/ext_announcement.tpl -text svneol=unset#text/plain
templates/de/html/ext/ext_autopurge.tpl -text svneol=unset#text/plain
templates/de/html/ext/ext_autoreg.tpl -text svneol=unset#text/plain
templates/de/html/ext/ext_bank.tpl -text svneol=unset#text/plain
./inc/loader/load_cache-extension.php:13: * @TODO Rewrite this whole file to load_cache-extensions.php *
./inc/module-functions.php:201: // @TODO Nothing helped???
./inc/module-functions.php:236: // @TODO Rewrite this to a filter
-./inc/modules/admin/admin-inc.php:259: // @TODO Rewrite this to $content = SQL_FETCHARRAY()
-./inc/modules/admin/admin-inc.php:264: // @TODO ACL is 'allow'... hmmm
-./inc/modules/admin/admin-inc.php:330: // @TODO Rewrite this to $content = SQL_FETCHARRAY()
-./inc/modules/admin/admin-inc.php:336: // @TODO ACL is 'allow'... hmmm
-./inc/modules/admin/admin-inc.php:436:// @TODO Try to rewrite this to adminAddMenuSelectionBox()
+./inc/modules/admin/admin-inc.php:262: // @TODO Rewrite this to $content = SQL_FETCHARRAY()
+./inc/modules/admin/admin-inc.php:267: // @TODO ACL is 'allow'... hmmm
+./inc/modules/admin/admin-inc.php:333: // @TODO Rewrite this to $content = SQL_FETCHARRAY()
+./inc/modules/admin/admin-inc.php:339: // @TODO ACL is 'allow'... hmmm
+./inc/modules/admin/admin-inc.php:439:// @TODO Try to rewrite this to adminAddMenuSelectionBox()
./inc/modules/admin/overview-inc.php:162: // @TODO Rewrite this to a filter
./inc/modules/admin/overview-inc.php:275: // @TODO Rewrite this to something with include files and/or filter
./inc/modules/admin/overview-inc.php:309: // @TODO This may also be rewritten to include files
./templates/de/html/member/member_unconfirmed_table_nopoints.tpl:11: <!-- @TODO Nothing to say here? //-->
./templates/de/html/surfbar/surfbar_frame_textlinks.tpl:5: <!-- @TODO These are static lines and should be replaced by a filter (see ext-sponsor) //-->
### ### DEPRECATION FOLLOWS: ### ###
-./inc/modules/admin/admin-inc.php:437:// @DEPRECATED
+./inc/modules/admin/admin-inc.php:440:// @DEPRECATED
./templates/de/emails/profile-updte.tpl:1:@DEPRECATED
./templates/de/html/admin/admin_del_admin_menu_row.tpl:1:<!-- @DEPRECATED //-->
./templates/de/html/admin/admin_del_admin_menu.tpl:1:<!-- @DEPRECATED //-->
// Expression call-back for template functions
function doExpressionTemplate ($data) {
+ // Construct call-back function name
+ $callback = 'doTemplate' . $data['callback'];
+
// Init replacer
- $replacer = '<!-- ['.__FUNCTION__.':'.__LINE__.'] Call-back function doTemplate' . $data['callback'] . ' does not exist. //-->';
+ $replacer = '<!-- ['.__FUNCTION__.':'.__LINE__.'] Call-back function ' . $callback . ' does not exist. //-->';
// Is the function there?
- if (function_exists($data['callback'])) {
+ if (function_exists($callback)) {
// Do the replacement
//* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'template='.$GLOBALS['current_template']);
- $replacer = '{DQUOTE} . doTemplate' . $data['callback'] . "('" . $GLOBALS['current_template'] . "', true";
+ $replacer = '{DQUOTE} . ' . $callback . "('" . $GLOBALS['current_template'] . "', true";
// Is 'value' set?
if (!empty($data['value'])) {
--- /dev/null
+<?php
+/************************************************************************
+ * Mailer v0.2.1-FINAL Start: 09/12/2010 *
+ * =================== Last change: 09/12/2010 *
+ * *
+ * -------------------------------------------------------------------- *
+ * File : ext-announcement.php *
+ * -------------------------------------------------------------------- *
+ * Short description : Announcements for guest/member/sponsor area *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung : Ankuendigungen fuer Gast/Mitglied- und Sponsor- *
+ * bereich *
+ * -------------------------------------------------------------------- *
+ * $Revision:: $ *
+ * $Date:: $ *
+ * $Tag:: 0.2.1-FINAL $ *
+ * $Author:: $ *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2009 by Roland Haeder *
+ * Copyright (c) 2009, 2010 by Mailer Developer Team *
+ * For more information visit: http://www.mxchange.org *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the Free Software *
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, *
+ * MA 02110-1301 USA *
+ ************************************************************************/
+
+// Some security stuff...
+if (!defined('__SECURITY')) {
+ die();
+} // END - if
+
+// Version number
+setThisExtensionVersion('0.0');
+
+// Version history array (add more with , '0.1.0' and so on)
+setExtensionVersionHistory(array('0.0'));
+
+// This extension is in development (non-productive)
+enableExtensionProductive(false);
+
+switch (getExtensionMode()) {
+ case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+ // SQL commands to run
+ break;
+
+ case 'remove': // Do stuff when removing extension
+ // SQL commands to run
+ break;
+
+ case 'activate': // Do stuff when admin activates this extension
+ // SQL commands to run
+ break;
+
+ case 'deactivate': // Do stuff when admin deactivates this extension
+ // SQL commands to run
+ break;
+
+ case 'update': // Update an extension
+ switch (getCurrentExtensionVersion()) {
+ case '0.0.1': // SQL queries for v0.0.1
+ addExtensionSql('');
+
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes('');
+ break;
+ } // END - switch
+ break;
+
+ case 'modify': // When the extension got modified
+ break;
+
+ case 'test': // For testing purposes. For details see file inc/modules/admin/what-extensions.php, arround line 305.
+ break;
+
+ case 'init': // Do stuff when extension is initialized
+ break;
+
+ default: // Unknown extension mode
+ logDebugMessage(__FILE__, __LINE__, sprintf("Unknown extension mode %s in extension %s detected.", getExtensionMode(), getCurrentExtensionName()));
+ break;
+} // END - switch
+
+// [EOF]
+?>
} else {
$content['welcome'] = loadTemplate('admin_welcome', true, $content);
}
+
+ // Load header, footer, render menu
+ $content['header'] = loadTemplate('admin_header' , true, $content);
$content['footer'] = loadTemplate('admin_footer' , true, $content);
$content['menu'] = addAdminMenu($action, $what, true);
$content[rows]
<tr>
<td colspan="2" class="table_footer">
- <input type="hidden" name="ok" value="del" />
+ <input type="hidden" name="ok" value="delete" />
<input type="hidden" name="chk" value="$content[chk]_$content[cnt]" />
<input type="submit" class="form_delete submit" name="submit" value="{--DEL_ENTRIES--}" />
</td>
$content[rows]
<tr>
<td colspan="2" class="table_footer">
- <input type="hidden" name="ok" value="del" />
+ <input type="hidden" name="ok" value="delete" />
<input type="hidden" name="chk" value="$content[chk]_$content[cnt]" />
<input type="submit" class="form_delete" name="submit" value="{--DEL_ENTRIES--}" />
</td>
$content[rows]
<tr>
<td colspan="2" class="table_footer">
- <input type="hidden" name="ok" value="del" />
+ <input type="hidden" name="ok" value="delete" />
<input type="hidden" name="chk" value="$content[chk]_$content[cnt]" />
<input type="submit" class="form_delete" name="submit" value="{--DEL_ENTRIES--}" />
</td>
<td colspan="5" class="table_footer">
<input type="reset" class="form_reset" value="{--UNDO_SELECTIONS--}" />
<input type="submit" class="form_submit" name="edit" value="{--ADMIN_EDIT_MENUS--}" />
- <input type="submit" class="form_delete submit" name="del" value="{--ADMIN_DELETE_MENUS--}" />
+ <input type="submit" class="form_delete submit" name="delete" value="{--ADMIN_DELETE_MENUS--}" />
</td>
</tr>
</table>
<input type="reset" class="form_reset" value="{--UNDO_SELECTIONS--}" />
<input type="submit" class="form_submit" name="edit" value="{--ADMIN_EDIT_MENUS--}" />
<input type="submit" class="form_submit" name="status" value="{--ADMIN_CHANGE_MENUS--}" />
- <input type="submit" class="form_delete submit" name="del" value="{--ADMIN_DELETE_MENUS--}" />
+ <input type="submit" class="form_delete submit" name="delete" value="{--ADMIN_DELETE_MENUS--}" />
</td>
</tr>
</table>
</td>
</tr>
<tr>
- <td align="center" class="{%template,ColorSwitch%} bottom admin_del_link" colspan="3">
+ <td align="center" class="{%template,ColorSwitch%} bottom admin_delete_link" colspan="3">
<a href="{%url=modules.php?module=admin&what=del_email&mid=$content[id]%}">{--ADMIN_DELETE_NORMAL_MAIL--}</a>
</td>
</tr>
</td>
</tr>
<tr>
- <td align="center" class="top admin_del_link" colspan="3">
+ <td align="center" class="top admin_delete_link" colspan="3">
<a href="{%url=modules.php?module=admin&what=del_email&bid=$content[id]%}">{--ADMIN_DELETE_BONUS_MAIL--}</a>
</td>
</tr>
</td>
</tr>
<tr>
- <td align="center" class="top admin_del_link" colspan="3">
+ <td align="center" class="top admin_delete_link" colspan="3">
<a href="{%url=modules.php?module=admin&what=del_email&mid=$content[id]%}">{--ADMIN_DELETE_NORMAL_MAIL--}</a>
</td>
</tr>
</td>
</tr>
<tr>
- <td align="center" class="top admin_del_link" colspan="3">
+ <td align="center" class="top admin_delete_link" colspan="3">
<a href="{%url=modules.php?module=admin&what=del_email&nid=$content[id]%}">{--ADMIN_DELETE_NOTIFY_MAIL--}</a>
</td>
</tr>
<input type="submit" name="assign" value="{--ADMIN_ASSIGN_TASKS--}" class="form_submit" />
<input type="submit" name="unassign" value="{--ADMIN_UNASSIGN_TASKS--}" class="form_submit" />
<input type="submit" name="redir" value="{--ADMIN_REDIRECT_TASKS--}" class="form_submit" />
- <input type="submit" name="del" value="{--ADMIN_DELETE_ENTRIES--}" class="form_delete" />
+ <input type="submit" name="delete" value="{--ADMIN_DELETE_ENTRIES--}" class="form_delete" />
</td>
</tr>
</table>
<input type="submit" name="assign" value="{--ADMIN_ASSIGN_TASKS--}" class="form_submit" />
<input type="submit" name="unassign" value="{--ADMIN_UNASSIGN_TASKS--}" class="form_submit" />
<input type="submit" name="redir" value="{--ADMIN_REDIRECT_TASKS--}" class="form_submit" />
- <input type="submit" name="del" value="{--ADMIN_TASK_DELETE_ENTRIES--}" class="form_delete" />
+ <input type="submit" name="delete" value="{--ADMIN_TASK_DELETE_ENTRIES--}" class="form_delete" />
</td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td colspan="2" align="center" class="table_header">
- $content[welcome]
+ <div align="center">
+ $content[header]
+ </div>
+
+ <div align="center">
+ $content[welcome]
+ </div>
</td>
</tr>
<tr>
<input type="reset" class="form_reset" value="{--UNDO_SELECTIONS--}" />
<input type="submit" class="form_submit" name="edit" value="{--ADMIN_EDIT_MENUS--}" />
<input type="submit" class="form_submit" name="status" value="{--ADMIN_CHANGE_MENUS--}" />
- <input type="submit" class="form_delete" name="del" value="{--ADMIN_DELETE_MENUS--}" />
+ <input type="submit" class="form_delete" name="delete" value="{--ADMIN_DELETE_MENUS--}" />
</td>
</tr>
</table>
<input type="submit" name="assign" value="{--ADMIN_ASSIGN_TASKS--}" class="form_submit" />
<input type="submit" name="unassign" value="{--ADMIN_UNASSIGN_TASKS--}" class="form_submit" />
<input type="submit" name="redir" value="{--ADMIN_REDIRECT_TASKS--}" class="form_submit" />
- <input type="submit" name="del" value="{--ADMIN_DELETE_ENTRIES--}" class="form_delete" />
+ <input type="submit" name="delete" value="{--ADMIN_DELETE_ENTRIES--}" class="form_delete" />
</td>
</tr>
</table>
--- /dev/null
+<div class="para">
+ Hier kommt der Beschreibungstext der Erweiterung rein.
+</div>
--- /dev/null
+<div class="para">
+ Informieren Sie Ihre Gäste, Mitglieder oder Sponsoren über
+ wichtige Ereignisse Ihres {?mt_word2?}. Dazu geben Sie eine kurze
+ Überschrift, optional einen Teaser (mehr dazu weiter unten) und den
+ Text für die Ankündigung ein. Zusätzlich ist ein Ablaufdatum
+ einstellbar, wann die Mail in das Archiv verschoben wird.
+</div>
+
+<div class="para">
+ Der optionale Teaser kann bei Eingabe (nicht leer gelassen) weiter
+ konfiguriert werden. Erstmal wird dieser auf allen Seiten (des jeweiligen
+ Loginbereiches, also Gast-, Mitglied-, oder Sponsorlogin) in Form eines
+ über den eigentlichen Inhalt eingeblendetem Div-Tag angezeigt. Entweder
+ ist das Fenster zusammengeklappt und per Mausklick voll ausklappbar, oder es
+ ist sofort komplett ausgeklappt (einstellbar per Adminbereich). Dann kann
+ eingestellt werden, wie lange und oft der User es sehen soll:
+</div>
+
+<div class="para">
+ <ul>
+ <li>Ist die Id der Ankündigung in der Session gespeichert, wird die
+ Ankündigung nicht mehr angezeigt.</li>
+ <li>Oder ist eine Sperre pro IP eingestellt, wird dem User mit der IP
+ die Ankündigung für die eingestellte Zeit nicht mehr
+ angezeigt.</li>
+ <li>Optional kann die Anzahl (wie oft der User sie sieht) eingestellt
+ werden.</li>
+ </ul>
+</div>
+
+<div class="para">
+ Das Archiv ist automatisch und/oder manuell aufrämbar. Es kann also
+ eine Verfallszeit eingestellt werden. Null heisst keine Verfallszeit.
+ Zusätzlich kann jede Ankündigung per Adminbereich gelöscht
+ werden. "Allgemeine" Templates lassen jede Ankündigung
+ einheitlich aussehen.
+</div>
font-size: 1px;
}
-.member_refbanner, .member_update, .admin_del_link {
+.member_refbanner, .member_update, .admin_delete_link {
background-color: #eeeeff;
}
font-size: 1px;
}
-.member_refbanner, .member_update, .admin_del_link {
+.member_refbanner, .member_update, .admin_delete_link {
background-color: #ddeedd;
}
font-size: 1px;
}
-.member_refbanner, .member_update, .admin_del_link {
+.member_refbanner, .member_update, .admin_delete_link {
background-color: #ddddaa;
}
font-size : 1px;
}
-.member_refbanner, .member_update, .admin_del_link {
+.member_refbanner, .member_update, .admin_delete_link {
background-color : #DDEEDD;
}
font-size : 1px;
}
-.member_refbanner, .member_update, .admin_del_link {
+.member_refbanner, .member_update, .admin_delete_link {
background-color : #69b2ff;
}
font-size : 1px;
}
-.member_refbanner, .member_update, .admin_del_link {
+.member_refbanner, .member_update, .admin_delete_link {
background-color : #EEEEFF;
}