mirror of
https://github.com/e107inc/e107.git
synced 2025-08-11 09:04:38 +02:00
Tagwords plugin, minor clean-up (#90 and GUI)
This commit is contained in:
@@ -21,6 +21,8 @@ if (!getperms("P"))
|
||||
}
|
||||
require_once(e_ADMIN."auth.php");
|
||||
require_once(e_HANDLER."userclass_class.php");
|
||||
require_once(e_HANDLER."message_handler.php");
|
||||
$mes = e107::getMessage();
|
||||
|
||||
require_once(e_PLUGIN."tagwords/tagwords_class.php");
|
||||
$tag = new tagwords();
|
||||
@@ -29,13 +31,16 @@ $tag = new tagwords();
|
||||
if(isset($_POST['updatesettings']))
|
||||
{
|
||||
$tag->update_prefs();
|
||||
$message = LAN_TAG_ADMIN_1;
|
||||
$mes->addSuccess(LAN_UPDATED);
|
||||
}
|
||||
|
||||
/*
|
||||
if(isset($message))
|
||||
{
|
||||
$tag->show_message($message, $caption='', $type='ns');
|
||||
}
|
||||
*/
|
||||
$ns->tablerender($caption, $mes->render() . $text);
|
||||
|
||||
$tag->tagwords_options();
|
||||
|
||||
|
@@ -36,7 +36,7 @@ define("LAN_TAG_19", "choose sort");
|
||||
define("LAN_TAG_20", "choose style");
|
||||
define("LAN_TAG_21", "each tag on a separate line");
|
||||
|
||||
define("LAN_TAG_ADMIN_1", "preferences updated");
|
||||
//define("LAN_TAG_ADMIN_1", "preferences updated");
|
||||
|
||||
define("LAN_TAG_OPT_1", "tagwords preferences");
|
||||
define("LAN_TAG_OPT_2", "minimum word appearance needed for tagcloud/taglist");
|
||||
|
@@ -194,9 +194,10 @@ $TEMPLATE_TAGWORDS['admin_options'] = "
|
||||
<td>".LAN_TAG_OPT_24."</td>
|
||||
<td>{TAG_OPT_ACTIVEAREAS}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2' style='text-align:center'>{TAG_OPT_BUTTON}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class='buttonsbar center'>
|
||||
{TAG_OPT_BUTTON}
|
||||
</div>
|
||||
</table>
|
||||
</form>";
|
||||
|
||||
|
Reference in New Issue
Block a user