1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 17:14:42 +02:00

Tagwords plugin, minor clean-up (#90 and GUI)

This commit is contained in:
Tijn Kuyper
2013-02-09 13:00:05 +01:00
parent ddc7927a8d
commit 13dcb3c589
3 changed files with 11 additions and 5 deletions

View File

@@ -21,6 +21,8 @@ if (!getperms("P"))
} }
require_once(e_ADMIN."auth.php"); require_once(e_ADMIN."auth.php");
require_once(e_HANDLER."userclass_class.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"); require_once(e_PLUGIN."tagwords/tagwords_class.php");
$tag = new tagwords(); $tag = new tagwords();
@@ -29,13 +31,16 @@ $tag = new tagwords();
if(isset($_POST['updatesettings'])) if(isset($_POST['updatesettings']))
{ {
$tag->update_prefs(); $tag->update_prefs();
$message = LAN_TAG_ADMIN_1; $mes->addSuccess(LAN_UPDATED);
} }
/*
if(isset($message)) if(isset($message))
{ {
$tag->show_message($message, $caption='', $type='ns'); $tag->show_message($message, $caption='', $type='ns');
} }
*/
$ns->tablerender($caption, $mes->render() . $text);
$tag->tagwords_options(); $tag->tagwords_options();

View File

@@ -36,7 +36,7 @@ define("LAN_TAG_19", "choose sort");
define("LAN_TAG_20", "choose style"); define("LAN_TAG_20", "choose style");
define("LAN_TAG_21", "each tag on a separate line"); 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_1", "tagwords preferences");
define("LAN_TAG_OPT_2", "minimum word appearance needed for tagcloud/taglist"); define("LAN_TAG_OPT_2", "minimum word appearance needed for tagcloud/taglist");

View File

@@ -194,9 +194,10 @@ $TEMPLATE_TAGWORDS['admin_options'] = "
<td>".LAN_TAG_OPT_24."</td> <td>".LAN_TAG_OPT_24."</td>
<td>{TAG_OPT_ACTIVEAREAS}</td> <td>{TAG_OPT_ACTIVEAREAS}</td>
</tr> </tr>
<tr> </table>
<td colspan='2' style='text-align:center'>{TAG_OPT_BUTTON}</td> <div class='buttonsbar center'>
</tr> {TAG_OPT_BUTTON}
</div>
</table> </table>
</form>"; </form>";