1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 12:48:26 +02:00

tagwords updated use $e107 object

This commit is contained in:
lisa
2009-01-17 22:46:38 +00:00
parent b576d1bbe5
commit 77053d2e54
11 changed files with 580 additions and 562 deletions

View File

@@ -1,21 +1,20 @@
<?php <?php
/* /*
+ ----------------------------------------------------------------------------+ * e107 website system
| e107 website system *
| * Copyright (C) 2001-2008 e107 Inc (e107.org)
| <20>Steve Dunstan 2001-2002 * Released under the terms and conditions of the
| http://e107.org * GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
| jalist@e107.org *
| * Tagwords Admin
| Released under the terms and conditions of the *
| GNU General Public License (http://gnu.org). * $Source: /cvs_backup/e107_0.8/e107_plugins/tagwords/admin_tagwords_config.php,v $
| * $Revision: 1.2 $
| $Source: /cvs_backup/e107_0.8/e107_plugins/tagwords/admin_tagwords_config.php,v $ * $Date: 2009-01-17 22:46:37 $
| $Revision: 1.1 $ * $Author: lisa_ $
| $Date: 2008-12-29 20:51:07 $ *
| $Author: lisa_ $
+----------------------------------------------------------------------------+
*/ */
require_once("../../class2.php"); require_once("../../class2.php");
if (!getperms("P")) if (!getperms("P"))
{ {
@@ -23,12 +22,8 @@ if (!getperms("P"))
exit ; exit ;
} }
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");
e107_require_once(e_HANDLER.'arraystorage_class.php');
$eArrayStorage = new ArrayData();
require_once(e_PLUGIN."tagwords/tagwords_class.php"); require_once(e_PLUGIN."tagwords/tagwords_class.php");
$tag = new tagwords(); $tag = new tagwords();

View File

@@ -1,20 +1,18 @@
<?php <?php
/* /*
+ ----------------------------------------------------------------------------+ * e107 website system
| e107 website system *
| * Copyright (C) 2001-2008 e107 Inc (e107.org)
| <20>Steve Dunstan 2001-2002 * Released under the terms and conditions of the
| http://e107.org * GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
| jalist@e107.org *
| * Tagwords Event Handler
| Released under the terms and conditions of the *
| GNU General Public License (http://gnu.org). * $Source: /cvs_backup/e107_0.8/e107_plugins/tagwords/e_event.php,v $
| * $Revision: 1.2 $
| $Source: /cvs_backup/e107_0.8/e107_plugins/tagwords/e_event.php,v $ * $Date: 2009-01-17 22:46:37 $
| $Revision: 1.1 $ * $Author: lisa_ $
| $Date: 2008-12-29 20:51:07 $ *
| $Author: lisa_ $
+----------------------------------------------------------------------------+
*/ */
if (!defined('e107_INIT')) { exit; } if (!defined('e107_INIT')) { exit; }

View File

@@ -1,21 +1,20 @@
<?php <?php
/* /*
+ ----------------------------------------------------------------------------+ * e107 website system
| e107 website system *
| * Copyright (C) 2001-2008 e107 Inc (e107.org)
| Steve Dunstan 2001-2002 * Released under the terms and conditions of the
| http://e107.org * GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
| jalist@e107.org *
| * Tagwords Meta Handler
| Released under the terms and conditions of the *
| GNU General Public License (http://gnu.org). * $Source: /cvs_backup/e107_0.8/e107_plugins/tagwords/e_meta.php,v $
| * $Revision: 1.2 $
| $Source: /cvs_backup/e107_0.8/e107_plugins/tagwords/e_meta.php,v $ * $Date: 2009-01-17 22:46:37 $
| $Revision: 1.1 $ * $Author: lisa_ $
| $Date: 2008-12-29 20:51:07 $ *
| $Author: lisa_ $
+----------------------------------------------------------------------------+
*/ */
if (!defined('e107_INIT')) { exit; } if (!defined('e107_INIT')) { exit; }
if (is_readable(THEME."tagwords_css.php")) if (is_readable(THEME."tagwords_css.php"))

View File

@@ -6,6 +6,8 @@ class e_tagwords_download
{ {
function e_tagwords_download() function e_tagwords_download()
{ {
$this->e107 = e107::getInstance();
$this->settings = array(); $this->settings = array();
$this->settings['plugin'] = ""; $this->settings['plugin'] = "";
@@ -16,28 +18,25 @@ class e_tagwords_download
function getLink($id) function getLink($id)
{ {
global $tp;
if($this->row=='') if($this->row=='')
{ {
$this->row = $this->getRecord($id); $this->row = $this->getRecord($id);
} }
$url = e_BASE."download.php?view.".$this->row['download_id']; $url = e_BASE."download.php?view.".$this->row['download_id'];
return "<a href='".$url."'>".$tp->toHTML($this->row['download_name'], TRUE, '')."</a>"; return "<a href='".$url."'>".$this->e107->tp->toHTML($this->row['download_name'], TRUE, '')."</a>";
} }
function getRecord($id) function getRecord($id)
{ {
global $sql;
$this->row = ''; $this->row = '';
$qry = "SELECT d.* $qry = "SELECT d.*
FROM #download as d FROM #download as d
WHERE d.download_id='{$id}' AND d.download_class REGEXP '".e_CLASS_REGEXP."' "; WHERE d.download_id='{$id}' AND d.download_class REGEXP '".e_CLASS_REGEXP."' ";
if($sql->db_Select_gen($qry)) if($this->e107->sql->db_Select_gen($qry))
{ {
$this->row=$sql->db_Fetch(); $this->row=$this->e107->sql->db_Fetch();
} }
return $this->row; return $this->row;
} }

View File

@@ -6,6 +6,8 @@ class e_tagwords_news
{ {
function e_tagwords_news() function e_tagwords_news()
{ {
$this->e107 = e107::getInstance();
$this->settings = array(); $this->settings = array();
$this->settings['plugin'] = ""; $this->settings['plugin'] = "";
@@ -16,20 +18,18 @@ class e_tagwords_news
function getLink($id) function getLink($id)
{ {
global $tp;
if(empty($this->row)) if(empty($this->row))
{ {
$this->row = $this->getRecord($id); $this->row = $this->getRecord($id);
} }
$url = e_BASE."news.php?item.".$this->row['news_id']; $url = e_BASE."news.php?item.".$this->row['news_id'];
return "<a href='".$url."'>".$tp->toHTML($this->row['news_title'], TRUE, '')."</a>"; return "<a href='".$url."'>".$this->e107->tp->toHTML($this->row['news_title'], TRUE, '')."</a>";
} }
function getRecord($id) function getRecord($id)
{ {
global $sql;
$this->row = ''; $this->row = '';
$qry = "SELECT n.* $qry = "SELECT n.*
FROM #news as n FROM #news as n
WHERE n.news_id='{$id}' WHERE n.news_id='{$id}'
@@ -37,9 +37,9 @@ class e_tagwords_news
AND (n.news_end=0 || n.news_end>".time().") AND (n.news_end=0 || n.news_end>".time().")
AND n.news_class REGEXP '".e_CLASS_REGEXP."' "; AND n.news_class REGEXP '".e_CLASS_REGEXP."' ";
if($sql->db_Select_gen($qry)) if($this->e107->sql->db_Select_gen($qry))
{ {
$this->row=$sql->db_Fetch(); $this->row=$this->e107->sql->db_Fetch();
} }
return $this->row; return $this->row;
} }

View File

@@ -6,6 +6,8 @@ class e_tagwords_page
{ {
function e_tagwords_page() function e_tagwords_page()
{ {
$this->e107 = e107::getInstance();
$this->settings = array(); $this->settings = array();
$this->settings['plugin'] = ""; $this->settings['plugin'] = "";
@@ -16,28 +18,25 @@ class e_tagwords_page
function getLink($id) function getLink($id)
{ {
global $tp;
if($this->row=='') if($this->row=='')
{ {
$this->row = $this->getRecord($id); $this->row = $this->getRecord($id);
} }
$url = e_BASE."page.php?".$this->row['page_id']; $url = e_BASE."page.php?".$this->row['page_id'];
return "<a href='".$url."'>".$tp->toHTML($this->row['page_title'], TRUE, '')."</a>"; return "<a href='".$url."'>".$this->e107->tp->toHTML($this->row['page_title'], TRUE, '')."</a>";
} }
function getRecord($id) function getRecord($id)
{ {
global $sql;
$this->row = ''; $this->row = '';
$qry = "SELECT p.*, u.user_id, u.user_name FROM #page AS p $qry = "SELECT p.*, u.user_id, u.user_name FROM #page AS p
LEFT JOIN #user AS u ON p.page_author = u.user_id LEFT JOIN #user AS u ON p.page_author = u.user_id
WHERE p.page_id='{$id}' AND p.page_class IN (".USERCLASS_LIST.") "; WHERE p.page_id='{$id}' AND p.page_class IN (".USERCLASS_LIST.") ";
if($sql->db_Select_gen($qry)) if($this->e107->sql->db_Select_gen($qry))
{ {
$this->row=$sql->db_Fetch(); $this->row=$this->e107->sql->db_Fetch();
} }
return $this->row; return $this->row;
} }

View File

@@ -1,20 +1,18 @@
<?php <?php
/* /*
+ ----------------------------------------------------------------------------+ * e107 website system
| e107 website system *
| * Copyright (C) 2001-2008 e107 Inc (e107.org)
| <20>Steve Dunstan 2001-2002 * Released under the terms and conditions of the
| http://e107.org * GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
| jalist@e107.org *
| * Tagwords Page
| Released under the terms and conditions of the *
| GNU General Public License (http://gnu.org). * $Source: /cvs_backup/e107_0.8/e107_plugins/tagwords/tagwords.php,v $
| * $Revision: 1.2 $
| $Source: /cvs_backup/e107_0.8/e107_plugins/tagwords/tagwords.php,v $ * $Date: 2009-01-17 22:46:37 $
| $Revision: 1.1 $ * $Author: lisa_ $
| $Date: 2008-12-29 20:51:07 $ *
| $Author: lisa_ $
+----------------------------------------------------------------------------+
*/ */
require_once('../../class2.php'); require_once('../../class2.php');

View File

@@ -1,20 +1,18 @@
<?php <?php
/* /*
+ ----------------------------------------------------------------------------+ * e107 website system
| e107 website system *
| * Copyright (C) 2001-2008 e107 Inc (e107.org)
| <20>Steve Dunstan 2001-2002 * Released under the terms and conditions of the
| http://e107.org * GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
| jalist@e107.org *
| * Tagwords Class
| Released under the terms and conditions of the *
| GNU General Public License (http://gnu.org). * $Source: /cvs_backup/e107_0.8/e107_plugins/tagwords/tagwords_class.php,v $
| * $Revision: 1.2 $
| $Source: /cvs_backup/e107_0.8/e107_plugins/tagwords/tagwords_class.php,v $ * $Date: 2009-01-17 22:46:37 $
| $Revision: 1.1 $ * $Author: lisa_ $
| $Date: 2008-12-29 20:51:07 $ *
| $Author: lisa_ $
+----------------------------------------------------------------------------+
*/ */
if(!defined("TAG_TEXTAREA_COLS")){ define("TAG_TEXTAREA_COLS", "70"); } if(!defined("TAG_TEXTAREA_COLS")){ define("TAG_TEXTAREA_COLS", "70"); }
@@ -41,15 +39,15 @@ class tagwords
*/ */
function tagwords() function tagwords()
{ {
global $pref, $tp, $TEMPLATE_TAGWORDS, $tagwords_shortcodes; global $pref, $TEMPLATE_TAGWORDS, $tagwords_shortcodes;
$this->tp = $tp; $this->e107 = e107::getInstance();
//language //language
include_lan(e_PLUGIN."tagwords/languages/".e_LANGUAGE.".php"); include_lan(e_PLUGIN."tagwords/languages/".e_LANGUAGE.".php");
//shortcodes //shortcodes
require_once(e_PLUGIN.'tagwords/tagwords_shortcodes.php'); require_once(e_PLUGIN.'tagwords/tagwords_shortcodes_class.php');
$this->shortcodes = $tagwords_shortcodes; $this->shortcodes = $tagwords_shortcodes;
//template //template
@@ -159,10 +157,10 @@ class tagwords
$this->word = false; $this->word = false;
if( $ret = $this->getRecords($tag_type, $tag_itemid) ) if( $ret = $this->getRecords($tag_type, $tag_itemid) )
{ {
$this->word = $this->tp->toForm($ret); $this->word = $this->e107->tp->toForm($ret);
} }
$caption = $this->tp->parseTemplate($this->template['caption'], FALSE, $this->shortcodes); $caption = $this->e107->tp->parseTemplate($this->template['caption'], true, $this->shortcodes);
$text = $this->tp->parseTemplate($this->template['form'], FALSE, $this->shortcodes); $text = $this->e107->tp->parseTemplate($this->template['form'], true, $this->shortcodes);
return array('caption'=>$caption, 'text'=>$text); return array('caption'=>$caption, 'text'=>$text);
} }
@@ -174,13 +172,13 @@ class tagwords
* @param boolean $link return hyperlink to taglist on words * @param boolean $link return hyperlink to taglist on words
* @return array $ret array of tagwords * @return array $ret array of tagwords
*/ */
function getRecords($tag_type='', $tag_itemid='', $returnwordsonly=FALSE, $link=TRUE) function getRecords($tag_type='', $tag_itemid='', $returnwordsonly=false, $link=true)
{ {
$sqlgr = new db; $sqlgr = new db;
$qry = " $qry = "
SELECT tag_word FROM #".$this->table." SELECT tag_word FROM #".$this->table."
WHERE tag_type='".$this->tp->toDB($tag_type)."' WHERE tag_type='".$this->e107->tp->toDB($tag_type)."'
AND tag_itemid='".intval($tag_itemid)."' AND tag_itemid='".intval($tag_itemid)."'
ORDER BY tag_word "; ORDER BY tag_word ";
@@ -196,7 +194,7 @@ class tagwords
$arr = array(); $arr = array();
foreach($ret as $word) foreach($ret as $word)
{ {
$word = $this->tp->toHTML($word,TRUE,'no_hook, emotes_off'); $word = $this->e107->tp->toHTML($word,true,'no_hook, emotes_off');
$arr[] = ($link ? trim($this->createTagWordLink($word)) : $word); $arr[] = ($link ? trim($this->createTagWordLink($word)) : $word);
} }
return implode($this->pref['tagwords_word_seperator'], $arr); return implode($this->pref['tagwords_word_seperator'], $arr);
@@ -272,9 +270,9 @@ class tagwords
function createTagWordLink($word, $class='') function createTagWordLink($word, $class='')
{ {
$word = trim($word); $word = trim($word);
$qry = $this->tp->toDB($word); $qry = $this->e107->tp->toDB($word);
$qry = str_replace(' ', '+', $qry); $qry = str_replace(' ', '+', $qry);
$word = $this->tp->toHTML($word,TRUE,'no_hook, emotes_off'); $word = $this->e107->tp->toHTML($word,true,'no_hook, emotes_off');
$class = ($class ? "class='tag".intval($class)."'" : ""); $class = ($class ? "class='tag".intval($class)."'" : "");
return "<a href='".e_PLUGIN."tagwords/tagwords.php?q=".$qry."' ".$class." title=''>".$word."</a> "; return "<a href='".e_PLUGIN."tagwords/tagwords.php?q=".$qry."' ".$class." title=''>".$word."</a> ";
} }
@@ -288,14 +286,12 @@ class tagwords
*/ */
function dbTagWords($tag_type='', $tag_itemid='', $tag_word='') function dbTagWords($tag_type='', $tag_itemid='', $tag_word='')
{ {
global $sql;
//prepare data //prepare data
$tag_type = $this->tp->toDB($tag_type); $tag_type = $this->e107->tp->toDB($tag_type);
$tag_itemid = intval($tag_itemid); $tag_itemid = intval($tag_itemid);
//get existing word records //get existing word records
$existing_array = $this->getRecords($tag_type, $tag_itemid, FALSE); $existing_array = $this->getRecords($tag_type, $tag_itemid, false);
$existing = explode("\n", $existing_array); $existing = explode("\n", $existing_array);
//create array of new posted words //create array of new posted words
@@ -306,8 +302,8 @@ class tagwords
foreach($delete_diff as $word) foreach($delete_diff as $word)
{ {
$word = trim($word); $word = trim($word);
$word = $this->tp->toDB($word); $word = $this->e107->tp->toDB($word);
$sql->db_Delete($this->table, "tag_type='".$tag_type."' AND tag_itemid='".$tag_itemid."' AND tag_word='".$word."'"); $this->e107->sql->db_Delete($this->table, "tag_type='".$tag_type."' AND tag_itemid='".$tag_itemid."' AND tag_word='".$word."'");
} }
//insert the differences (insert what has been added) //insert the differences (insert what has been added)
@@ -315,8 +311,13 @@ class tagwords
foreach($insert_diff as $word) foreach($insert_diff as $word)
{ {
$word = trim($word); $word = trim($word);
$word = $this->tp->toDB($word); $word = $this->e107->tp->toDB($word);
$sql->db_Insert($this->table, "'0', '".$tag_type."', '".$tag_itemid."', '".$word."' "); $args = array();
$args['tag_id'] = 0;
$args['tag_type'] = $tag_type;
$args['tag_itemid'] = $tag_itemid;
$args['tag_word'] = $word;
$this->e107->sql->db_Insert($this->table, $args);
} }
return "<br />".LAN_TAG_3; return "<br />".LAN_TAG_3;
} }
@@ -328,8 +329,7 @@ class tagwords
*/ */
function dbDelete($tag_type='', $tag_itemid='') function dbDelete($tag_type='', $tag_itemid='')
{ {
global $sql; $this->e107->sql->db_Delete($this->table, "tag_type='".$tag_type."' AND tag_itemid='".$tag_itemid."' ");
$sql->db_Delete($this->table, "tag_type='".$tag_type."' AND tag_itemid='".$tag_itemid."' ");
} }
/* /*
@@ -339,8 +339,6 @@ class tagwords
*/ */
function getAllTagWords($tagarea='') function getAllTagWords($tagarea='')
{ {
global $sql;
$tag_type=''; $tag_type='';
$allowed = $this->getAllowedAreas(); $allowed = $this->getAllowedAreas();
@@ -383,13 +381,13 @@ class tagwords
WHERE tag_word!='' ".$typeqry." WHERE tag_word!='' ".$typeqry."
GROUP BY tag_word HAVING COUNT(tag_word)>=".intval($this->pref['tagwords_min'])." ".$menuqry." "; GROUP BY tag_word HAVING COUNT(tag_word)>=".intval($this->pref['tagwords_min'])." ".$menuqry." ";
if($sql->db_Select_gen($qry)) if($this->e107->sql->db_Select_gen($qry))
{ {
$ret=array(); $ret=array();
while($row=$sql->db_Fetch()) while($row=$this->e107->sql->db_Fetch())
{ {
$word = trim($row['tag_word']); $word = trim($row['tag_word']);
$word = $this->tp->toHTML($word,TRUE,'no_hook, emotes_off'); $word = $this->e107->tp->toHTML($word,true,'no_hook, emotes_off');
$ret[$word] = $row['number']; $ret[$word] = $row['number'];
} }
return $ret; return $ret;
@@ -504,8 +502,7 @@ class tagwords
break; break;
case 'ns': case 'ns':
default: default:
global $ns; $this->e107->ns->tablerender($caption, "<div style='text-align:center'><b>".$message."</b></div>");
$ns->tablerender($caption, "<div style='text-align:center'><b>".$message."</b></div>");
break; break;
} }
} }
@@ -517,9 +514,7 @@ class tagwords
*/ */
function TagRender() function TagRender()
{ {
global $ns; $type = false;
$type = FALSE;
//decide whether to show the taglist or the tagcloud //decide whether to show the taglist or the tagcloud
@@ -549,13 +544,13 @@ class tagwords
//show the taglist or tagcloud //show the taglist or tagcloud
if($type=='list') if($type=='list')
{ {
$text = $this->tp->parseTemplate($this->template['cloudlist'], FALSE, $this->shortcodes); $text = $this->e107->tp->parseTemplate($this->template['cloudlist'], true, $this->shortcodes);
$ns->tablerender(LAN_TAG_17, $text); $this->e107->ns->tablerender(LAN_TAG_17, $text);
} }
else else
{ {
$text = $this->tp->parseTemplate($this->template['cloud'], FALSE, $this->shortcodes); $text = $this->e107->tp->parseTemplate($this->template['cloud'], true, $this->shortcodes);
$ns->tablerender(LAN_TAG_16, $text); $this->e107->ns->tablerender(LAN_TAG_16, $text);
} }
return; return;
} }
@@ -568,17 +563,16 @@ class tagwords
*/ */
function getRecordsByTag($word='') function getRecordsByTag($word='')
{ {
global $sql;
$typeqry = ''; $typeqry = '';
$allowed = $this->getAllowedAreas(); $allowed = $this->getAllowedAreas();
if(count($allowed)>0) if(count($allowed)>0)
{ {
$typeqry = " AND tag_type IN ('".implode("','", $allowed)."') "; $typeqry = " AND tag_type IN ('".implode("','", $allowed)."') ";
} }
if($sql->db_Select_gen("SELECT tag_type, tag_itemid FROM #".$this->table." WHERE tag_word REGEXP('".$this->tp->toDB($word)."') ".$typeqry." ")) if($this->e107->sql->db_Select_gen("SELECT tag_type, tag_itemid FROM #".$this->table." WHERE tag_word REGEXP('".$this->e107->tp->toDB($word)."') ".$typeqry." "))
{ {
$ret = array(); $ret = array();
while($row=$sql->db_Fetch()) while($row=$this->e107->sql->db_Fetch())
{ {
$ret[$row['tag_type']][] = $row['tag_itemid']; $ret[$row['tag_type']][] = $row['tag_itemid'];
} }
@@ -593,7 +587,7 @@ class tagwords
*/ */
function TagSearchResults() function TagSearchResults()
{ {
global $sql, $ns, $row; global $row;
//the full search query + every single word in the query will be used to search //the full search query + every single word in the query will be used to search
$_GET['q'] = str_replace('+', ' ', $_GET['q']); $_GET['q'] = str_replace('+', ' ', $_GET['q']);
@@ -635,7 +629,7 @@ class tagwords
$this->num = count($records, 1) - count($records); $this->num = count($records, 1) - count($records);
$text = $this->tp->parseTemplate($this->template['intro'], FALSE, $this->shortcodes); $text = $this->e107->tp->parseTemplate($this->template['intro'], true, $this->shortcodes);
foreach($records as $type=>$ids) foreach($records as $type=>$ids)
{ {
@@ -646,7 +640,7 @@ class tagwords
$this->area = $this->$ins; $this->area = $this->$ins;
//area (news, content, ...) //area (news, content, ...)
$text .= $this->tp->parseTemplate($this->template['area'], FALSE, $this->shortcodes); $text .= $this->e107->tp->parseTemplate($this->template['area'], true, $this->shortcodes);
//records for found related tagword //records for found related tagword
$text .= $this->template['link_start']; $text .= $this->template['link_start'];
@@ -656,13 +650,13 @@ class tagwords
if(method_exists($this->area, 'getRecord')) if(method_exists($this->area, 'getRecord'))
{ {
$this->area->getRecord($this->id); $this->area->getRecord($this->id);
$text .= $this->tp->parseTemplate($this->template['link_item'], FALSE, $this->shortcodes); $text .= $this->e107->tp->parseTemplate($this->template['link_item'], true, $this->shortcodes);
} }
} }
$text .= $this->template['link_end']; $text .= $this->template['link_end'];
} }
} }
$ns->tablerender(LAN_TAG_1, $text); $this->e107->ns->tablerender(LAN_TAG_1, $text);
return; return;
} }
@@ -673,8 +667,6 @@ class tagwords
*/ */
function TagCloud($mode='') function TagCloud($mode='')
{ {
global $sql;
if($mode=='menu') if($mode=='menu')
{ {
$t_start = $this->template['menu_cloud_start']; $t_start = $this->template['menu_cloud_start'];
@@ -722,7 +714,7 @@ class tagwords
$class = ceil($min_size + (($value - $min_qty) * $step)); $class = ceil($min_size + (($value - $min_qty) * $step));
$this->word = $this->createTagWordLink($key, $class); $this->word = $this->createTagWordLink($key, $class);
$this->number = $value; $this->number = $value;
$text .= $this->tp->parseTemplate($t_item, FALSE, $this->shortcodes); $text .= $this->e107->tp->parseTemplate($t_item, true, $this->shortcodes);
} }
$text .= $t_end; $text .= $t_end;
return $text; return $text;
@@ -734,8 +726,6 @@ class tagwords
*/ */
function TagCloudList() function TagCloudList()
{ {
global $sql;
$tags = $this->getAllTagWords(); $tags = $this->getAllTagWords();
$tags = $this->TagSort($tags); $tags = $this->TagSort($tags);
if(!is_array($tags)) if(!is_array($tags))
@@ -744,11 +734,11 @@ class tagwords
} }
$text = $this->template['cloudlist_start']; $text = $this->template['cloudlist_start'];
foreach ($tags as $key => $value) foreach($tags as $key => $value)
{ {
$this->word = $this->createTagWordLink($key); $this->word = $this->createTagWordLink($key);
$this->number = $value; $this->number = $value;
$text .= $this->tp->parseTemplate($this->template['cloudlist_item'], FALSE, $this->shortcodes); $text .= $this->e107->tp->parseTemplate($this->template['cloudlist_item'], true, $this->shortcodes);
} }
$text .= $this->template['cloudlist_end']; $text .= $this->template['cloudlist_end'];
return $text; return $text;
@@ -794,18 +784,16 @@ class tagwords
*/ */
function get_prefs() function get_prefs()
{ {
global $sql, $eArrayStorage; $num_rows = $this->e107->sql->db_Select_gen("SELECT * FROM #core WHERE e107_name='".$this->table."' ");
$num_rows = $sql->db_Select_gen("SELECT * FROM #core WHERE e107_name='".$this->table."' ");
if($num_rows == 0) if($num_rows == 0)
{ {
$p = $this->default_prefs(); $p = $this->default_prefs();
$tmp = $eArrayStorage->WriteArray($p); $tmp = $this->e107->arrayStorage->WriteArray($p);
$sql->db_Insert("core", "'".$this->table."', '{$tmp}' "); $this->e107->sql->db_Insert("core", "'".$this->table."', '{$tmp}' ");
$sql->db_Select_gen("SELECT * FROM #core WHERE e107_name='".$this->table."' "); $this->e107->sql->db_Select_gen("SELECT * FROM #core WHERE e107_name='".$this->table."' ");
} }
$row = $sql->db_Fetch(); $row = $this->e107->sql->db_Fetch();
$p = $eArrayStorage->ReadArray($row['e107_value']); $p = $this->e107->arrayStorage->ReadArray($row['e107_value']);
//validation //validation
if(!array_key_exists('tagwords_activeareas', $p)) if(!array_key_exists('tagwords_activeareas', $p))
@@ -821,33 +809,31 @@ class tagwords
*/ */
function update_prefs() function update_prefs()
{ {
global $sql, $eArrayStorage; $num_rows = $this->e107->sql->db_Select_gen("SELECT * FROM #core WHERE e107_name='".$this->table."' ");
$num_rows = $sql->db_Select_gen("SELECT * FROM #core WHERE e107_name='".$this->table."' ");
if ($num_rows == 0) if ($num_rows == 0)
{ {
$p = $this->default_prefs(); $p = $this->default_prefs();
$tmp = $eArrayStorage->WriteArray($p); $tmp = $this->e107->arrayStorage->WriteArray($p);
$sql->db_Insert("core", "'".$this->table."', '{$tmp}' "); $this->e107->sql->db_Insert("core", "'".$this->table."', '{$tmp}' ");
} }
else else
{ {
$row = $sql->db_Fetch(); $row = $this->e107->sql->db_Fetch();
//assign new preferences //assign new preferences
foreach($_POST as $k => $v) foreach($_POST as $k => $v)
{ {
if(preg_match("#^tagwords_#",$k)) if(preg_match("#^tagwords_#",$k))
{ {
$tagwords_pref[$k] = $this->tp->toDB($v); $tagwords_pref[$k] = $this->e107->tp->toDB($v);
} }
} }
$this->pref = $tagwords_pref; $this->pref = $tagwords_pref;
//create new array of preferences //create new array of preferences
$tmp = $eArrayStorage->WriteArray($tagwords_pref); $tmp = $this->e107->arrayStorage->WriteArray($tagwords_pref);
$sql->db_Update("core", "e107_value = '{$tmp}' WHERE e107_name = '".$this->table."' "); $this->e107->sql->db_Update("core", "e107_value = '{$tmp}' WHERE e107_name = '".$this->table."' ");
} }
return; return;
} }
@@ -858,11 +844,11 @@ class tagwords
*/ */
function validate() function validate()
{ {
global $sql, $sql2; global $sql2;
if($sql->db_Select_gen("SELECT * FROM #".$this->table." GROUP BY tag_type, tag_itemid ORDER BY tag_id")) if($this->e107->sql->db_Select_gen("SELECT * FROM #".$this->table." GROUP BY tag_type, tag_itemid ORDER BY tag_id"))
{ {
while($row=$sql->db_Fetch()) while($row=$this->e107->sql->db_Fetch())
{ {
if(array_key_exists($row['tag_type'], $this->mapper)) if(array_key_exists($row['tag_type'], $this->mapper))
{ {
@@ -882,12 +868,10 @@ class tagwords
*/ */
function tagwords_options() function tagwords_options()
{ {
global $ns;
$this->validate(); $this->validate();
$text = $this->tp->parseTemplate($this->template['admin_options'], FALSE, $this->shortcodes); $text = $this->e107->tp->parseTemplate($this->template['admin_options'], true, $this->shortcodes);
$ns->tablerender(LAN_TAG_OPT_1, $text); $this->e107->ns->tablerender(LAN_TAG_OPT_1, $text);
} }
} //end class } //end class

View File

@@ -1,24 +1,24 @@
<?php <?php
/* /*
+ ----------------------------------------------------------------------------+ * e107 website system
| e107 website system *
| * Copyright (C) 2001-2008 e107 Inc (e107.org)
| <20>Steve Dunstan 2001-2002 * Released under the terms and conditions of the
| http://e107.org * GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
| jalist@e107.org *
| * Tagwords Menu
| Released under the terms and conditions of the *
| GNU General Public License (http://gnu.org). * $Source: /cvs_backup/e107_0.8/e107_plugins/tagwords/tagwords_menu.php,v $
| * $Revision: 1.2 $
| $Source: /cvs_backup/e107_0.8/e107_plugins/tagwords/tagwords_menu.php,v $ * $Date: 2009-01-17 22:46:37 $
| $Revision: 1.1 $ * $Author: lisa_ $
| $Date: 2008-12-29 20:51:07 $ *
| $Author: lisa_ $
+----------------------------------------------------------------------------+
*/ */
global $tag; global $tag;
$e107 = e107::getInstance();
require_once(e_PLUGIN."tagwords/tagwords_class.php"); require_once(e_PLUGIN."tagwords/tagwords_class.php");
$tag = new tagwords(); $tag = new tagwords();
@@ -27,8 +27,8 @@ if(varsettrue($tag->pref['tagwords_class']) && !check_class($tag->pref['tagwords
return; return;
} }
$text = $tp->parseTemplate($tag->template['menu_cloud'], FALSE, $tag->shortcodes); $text = $e107->tp->parseTemplate($tag->template['menu_cloud'], true, $tag->shortcodes);
$caption = ($tag->pref['tagwords_menu_caption'] ? $tag->pref['tagwords_menu_caption'] : LAN_TAG_16); $caption = ($tag->pref['tagwords_menu_caption'] ? $tag->pref['tagwords_menu_caption'] : LAN_TAG_16);
$ns->tablerender($caption, $text); $e107->ns->tablerender($caption, $text);
?> ?>

View File

@@ -1,13 +1,54 @@
<?php <?php
if (!defined('e107_INIT')) { exit; }
include_once(e_HANDLER.'shortcode_handler.php');
$tagwords_shortcodes = $tp->e_sc->parse_scbatch(__FILE__);
/* /*
* e107 website system
*
* Copyright (C) 2001-2008 e107 Inc (e107.org)
* Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*
* Tagwords Shortcodes
*
* $Source: /cvs_backup/e107_0.8/e107_plugins/tagwords/tagwords_shortcodes.php,v $
* $Revision: 1.2 $
* $Date: 2009-01-17 22:46:37 $
* $Author: lisa_ $
*
*/
if (!defined('e107_INIT')) { exit; }
SC_BEGIN TAG_SEARCH /*
global $tp, $tag; $codes = array(
'tag_search', 'tag_area_heading', 'tag_link', 'tag_cloud', 'tag_word', 'tag_number', 'tag_sort', 'tag_type', 'tag_area', 'tag_button', 'tag_options', 'tag_opt_min', 'tag_opt_class', 'tag_opt_default_sort', 'tag_opt_default_style', 'tag_opt_view_sort', 'tag_opt_view_style', 'tag_opt_view_area', 'tag_opt_view_search', 'tag_opt_view_freq', 'tag_opt_caption', 'tag_opt_seperator', 'tag_opt_activeareas', 'tag_opt_button'
);
*/
$value = (isset($_GET['q']) ? $tp->toForm($_GET['q']) : ''); $codes = array();
$tmp = get_class_methods('tagwords_shortcodes');
foreach($tmp as $c)
{
if(strpos($c, 'get_') === 0)
{
$codes[] = substr($c, 4);
}
}
register_shortcode('tagwords_shortcodes', $codes);
initShortcodeClass('tagwords_shortcodes');
class tagwords_shortcodes
{
var $e107;
function tagwords_shortcodes()
{
$this->e107 = e107::getInstance();
}
function get_tag_search($parm, $sc_mode)
{
global $tag;
$value = (isset($_GET['q']) ? $this->e107->tp->toForm($_GET['q']) : '');
switch($sc_mode) switch($sc_mode)
{ {
case 'menu': case 'menu':
@@ -47,15 +88,16 @@ SC_BEGIN TAG_SEARCH
<input class='button' type='submit' name='s' value='".LAN_TAG_SEARCH_2."' />"; <input class='button' type='submit' name='s' value='".LAN_TAG_SEARCH_2."' />";
break; break;
} }
}
SC_END function get_tag_area_heading()
{
SC_BEGIN TAG_AREA_HEADING
global $tag; global $tag;
return varsettrue($tag->area->settings['caption']); return varsettrue($tag->area->settings['caption']);
SC_END }
SC_BEGIN TAG_LINK function get_tag_link($parm, $sc_mode)
{
global $tag; global $tag;
switch($sc_mode) switch($sc_mode)
{ {
@@ -72,9 +114,10 @@ SC_BEGIN TAG_LINK
} }
break; break;
} }
SC_END }
SC_BEGIN TAG_CLOUD function get_tag_cloud($parm, $sc_mode)
{
global $tag; global $tag;
switch($sc_mode) switch($sc_mode)
{ {
@@ -88,23 +131,25 @@ SC_BEGIN TAG_CLOUD
return $tag->TagCloud(); return $tag->TagCloud();
break; break;
} }
SC_END }
SC_BEGIN TAG_WORD function get_tag_word($parm, $sc_mode)
global $tag, $tp; {
global $tag;
switch($sc_mode) switch($sc_mode)
{ {
case 'result': case 'result':
return "<b>".$tag->num."</b> ".($tag->num==1 ? LAN_TAG_8 : LAN_TAG_9)." '<b>".$tp->toHTML($_GET['q'],TRUE)."</b>'"; return "<b>".$tag->num."</b> ".($tag->num==1 ? LAN_TAG_8 : LAN_TAG_9)." '<b>".$this->e107->tp->toHTML($_GET['q'],true)."</b>'";
break; break;
case 'form': case 'form':
default: default:
return $tag->word; return $tag->word;
break; break;
} }
SC_END }
SC_BEGIN TAG_NUMBER function get_tag_number($parm, $sc_mode)
{
global $tag; global $tag;
switch($sc_mode) switch($sc_mode)
{ {
@@ -124,12 +169,12 @@ SC_BEGIN TAG_NUMBER
} }
break; break;
} }
SC_END }
SC_BEGIN TAG_SORT function get_tag_sort()
{
global $tag; global $tag;
$sort=FALSE;
if(varsettrue($tag->pref['tagwords_view_sort'])==1) if(varsettrue($tag->pref['tagwords_view_sort'])==1)
{ {
$s = varset($_GET['sort'],''); $s = varset($_GET['sort'],'');
@@ -155,12 +200,12 @@ SC_BEGIN TAG_SORT
return $text; return $text;
} }
return; return;
SC_END }
SC_BEGIN TAG_TYPE function get_tag_type()
{
global $tag; global $tag;
$type=FALSE;
if(varsettrue($tag->pref['tagwords_view_style'])==1) if(varsettrue($tag->pref['tagwords_view_style'])==1)
{ {
$t = varset($_GET['type'],''); $t = varset($_GET['type'],'');
@@ -186,9 +231,10 @@ SC_BEGIN TAG_TYPE
return $text; return $text;
} }
return; return;
SC_END }
SC_BEGIN TAG_AREA function get_tag_area()
{
global $tag; global $tag;
if(varsettrue($tag->pref['tagwords_view_area'])==1) if(varsettrue($tag->pref['tagwords_view_area'])==1)
{ {
@@ -209,49 +255,56 @@ SC_BEGIN TAG_AREA
return $text; return $text;
} }
return; return;
SC_END }
SC_BEGIN TAG_BUTTON function get_tag_button()
{
return "<input class='button' type='submit' name='so' value='".LAN_TAG_SEARCH_3."' />"; return "<input class='button' type='submit' name='so' value='".LAN_TAG_SEARCH_3."' />";
SC_END }
SC_BEGIN TAG_OPTIONS function get_tag_options()
global $tp, $tag; {
global $tag;
if( varsettrue($tag->pref['tagwords_view_search'])==1 || varsettrue($tag->pref['tagwords_view_sort'])==1 || varsettrue($tag->pref['tagwords_view_style'])==1 || varsettrue($tag->pref['tagwords_view_area'])==1 ) if( varsettrue($tag->pref['tagwords_view_search'])==1 || varsettrue($tag->pref['tagwords_view_sort'])==1 || varsettrue($tag->pref['tagwords_view_style'])==1 || varsettrue($tag->pref['tagwords_view_area'])==1 )
{ {
return $tp->parseTemplate($tag->template['options'], FALSE, $tag->shortcodes); return $this->e107->tp->parseTemplate($tag->template['options'], true, $tag->shortcodes);
}
} }
SC_END
//##### ADMIN OPTIONS ------------------------- //##### ADMIN OPTIONS -------------------------
SC_BEGIN TAG_OPT_MIN function get_tag_opt_min($parm, $sc_mode)
{
global $tag; global $tag;
$id = ($sc_mode=='menu' ? 'tagwords_menu_min' : 'tagwords_min'); $id = ($sc_mode=='menu' ? 'tagwords_menu_min' : 'tagwords_min');
return "<input class='tbox' type='text' id='".$id."' name='".$id."' value='".$tag->pref[$id]."' size='3' maxlength='3' />"; return "<input class='tbox' type='text' id='".$id."' name='".$id."' value='".$tag->pref[$id]."' size='3' maxlength='3' />";
SC_END }
SC_BEGIN TAG_OPT_CLASS function get_tag_opt_class()
{
global $tag; global $tag;
$id = 'tagwords_class'; $id = 'tagwords_class';
return r_userclass($id,$tag->pref[$id],"","admin,public,guest,nobody,member,classes"); return r_userclass($id,$tag->pref[$id],"","admin,public,guest,nobody,member,classes");
SC_END }
SC_BEGIN TAG_OPT_DEFAULT_SORT function get_tag_opt_default_sort($parm, $sc_mode)
{
global $tag; global $tag;
$id = ($sc_mode=='menu' ? 'tagwords_menu_default_sort' : 'tagwords_default_sort'); $id = ($sc_mode=='menu' ? 'tagwords_menu_default_sort' : 'tagwords_default_sort');
return "<label><input type='radio' name='".$id."' value='1' ".($tag->pref[$id] ? "checked='checked'" : "")." /> ".LAN_TAG_OPT_5."</label>&nbsp;&nbsp; return "<label><input type='radio' name='".$id."' value='1' ".($tag->pref[$id] ? "checked='checked'" : "")." /> ".LAN_TAG_OPT_5."</label>&nbsp;&nbsp;
<label><input type='radio' name='".$id."' value='0' ".($tag->pref[$id] ? "" : "checked='checked'")." /> ".LAN_TAG_OPT_6."</label>"; <label><input type='radio' name='".$id."' value='0' ".($tag->pref[$id] ? "" : "checked='checked'")." /> ".LAN_TAG_OPT_6."</label>";
SC_END }
SC_BEGIN TAG_OPT_DEFAULT_STYLE function get_tag_opt_default_style()
{
global $tag; global $tag;
$id = 'tagwords_default_style'; $id = 'tagwords_default_style';
return "<label><input type='radio' name='".$id."' value='1' ".($tag->pref[$id] ? "checked='checked'" : "")." /> ".LAN_TAG_OPT_8."</label>&nbsp;&nbsp; return "<label><input type='radio' name='".$id."' value='1' ".($tag->pref[$id] ? "checked='checked'" : "")." /> ".LAN_TAG_OPT_8."</label>&nbsp;&nbsp;
<label><input type='radio' name='".$id."' value='0' ".($tag->pref[$id] ? "" : "checked='checked'")." /> ".LAN_TAG_OPT_9."</label>"; <label><input type='radio' name='".$id."' value='0' ".($tag->pref[$id] ? "" : "checked='checked'")." /> ".LAN_TAG_OPT_9."</label>";
SC_END }
SC_BEGIN TAG_OPT_VIEW_SORT function get_tag_opt_view_sort()
{
global $tag; global $tag;
$id = 'tagwords_view_sort'; $id = 'tagwords_view_sort';
$sel = ($tag->pref[$id] ? "checked='checked'" : ""); $sel = ($tag->pref[$id] ? "checked='checked'" : "");
@@ -259,9 +312,10 @@ SC_BEGIN TAG_OPT_VIEW_SORT
<label for='".$id."'> <label for='".$id."'>
<input type='checkbox' name='".$id."' id='".$id."' value='1' ".$sel." /> ".LAN_TAG_OPT_12." <input type='checkbox' name='".$id."' id='".$id."' value='1' ".$sel." /> ".LAN_TAG_OPT_12."
</label>"; </label>";
SC_END }
SC_BEGIN TAG_OPT_VIEW_STYLE function get_tag_opt_view_style()
{
global $tag; global $tag;
$id = 'tagwords_view_style'; $id = 'tagwords_view_style';
$sel = ($tag->pref[$id] ? "checked='checked'" : ""); $sel = ($tag->pref[$id] ? "checked='checked'" : "");
@@ -269,9 +323,10 @@ SC_BEGIN TAG_OPT_VIEW_STYLE
<label for='".$id."'> <label for='".$id."'>
<input type='checkbox' name='".$id."' id='".$id."' value='1' ".$sel." /> ".LAN_TAG_OPT_13." <input type='checkbox' name='".$id."' id='".$id."' value='1' ".$sel." /> ".LAN_TAG_OPT_13."
</label>"; </label>";
SC_END }
SC_BEGIN TAG_OPT_VIEW_AREA function get_tag_opt_view_area()
{
global $tag; global $tag;
$id = 'tagwords_view_area'; $id = 'tagwords_view_area';
$sel = ($tag->pref[$id] ? "checked='checked'" : ""); $sel = ($tag->pref[$id] ? "checked='checked'" : "");
@@ -279,9 +334,10 @@ SC_BEGIN TAG_OPT_VIEW_AREA
<label for='".$id."'> <label for='".$id."'>
<input type='checkbox' name='".$id."' id='".$id."' value='1' ".$sel." /> ".LAN_TAG_OPT_14." <input type='checkbox' name='".$id."' id='".$id."' value='1' ".$sel." /> ".LAN_TAG_OPT_14."
</label>"; </label>";
SC_END }
SC_BEGIN TAG_OPT_VIEW_SEARCH function get_tag_opt_view_search($parm, $sc_mode)
{
global $tag; global $tag;
$id = ($sc_mode=='menu' ? 'tagwords_menu_view_search' : 'tagwords_view_search'); $id = ($sc_mode=='menu' ? 'tagwords_menu_view_search' : 'tagwords_view_search');
$sel = ($tag->pref[$id] ? "checked='checked'" : ""); $sel = ($tag->pref[$id] ? "checked='checked'" : "");
@@ -289,9 +345,10 @@ SC_BEGIN TAG_OPT_VIEW_SEARCH
<label for='".$id."'> <label for='".$id."'>
<input type='checkbox' name='".$id."' id='".$id."' value='1' ".$sel." /> ".LAN_TAG_OPT_19." <input type='checkbox' name='".$id."' id='".$id."' value='1' ".$sel." /> ".LAN_TAG_OPT_19."
</label>"; </label>";
SC_END }
SC_BEGIN TAG_OPT_VIEW_FREQ function get_tag_opt_view_freq($parm, $sc_mode)
{
global $tag; global $tag;
if($sc_mode=='menu') if($sc_mode=='menu')
{ {
@@ -306,21 +363,24 @@ SC_BEGIN TAG_OPT_VIEW_FREQ
<label for='".$id."'> <label for='".$id."'>
<input type='checkbox' name='".$id."' id='".$id."' value='1' ".$sel." /> ".LAN_TAG_OPT_20." <input type='checkbox' name='".$id."' id='".$id."' value='1' ".$sel." /> ".LAN_TAG_OPT_20."
</label>"; </label>";
SC_END }
SC_BEGIN TAG_OPT_CAPTION function get_tag_opt_caption()
global $tp, $tag; {
global $tag;
$id = 'tagwords_menu_caption'; $id = 'tagwords_menu_caption';
return "<input class='tbox' type='text' id='".$id."' name='".$id."' value='".$tp->toForm($tag->pref[$id],"","defs")."' size='30' maxlength='100' />"; return "<input class='tbox' type='text' id='".$id."' name='".$id."' value='".$this->e107->tp->toForm($tag->pref[$id],"","defs")."' size='30' maxlength='100' />";
SC_END }
SC_BEGIN TAG_OPT_SEPERATOR function get_tag_opt_seperator()
global $tp, $tag; {
global $tag;
$id = 'tagwords_word_seperator'; $id = 'tagwords_word_seperator';
return "<input class='tbox' type='text' id='".$id."' name='".$id."' value='".$tp->toForm($tag->pref[$id])."' size='3' maxlength='10' />"; return "<input class='tbox' type='text' id='".$id."' name='".$id."' value='".$this->e107->tp->toForm($tag->pref[$id])."' size='3' maxlength='10' />";
SC_END }
SC_BEGIN TAG_OPT_ACTIVEAREAS function get_tag_opt_activeareas()
{
global $tag; global $tag;
$id = 'tagwords_activeareas'; $id = 'tagwords_activeareas';
$text = ""; $text = "";
@@ -337,12 +397,12 @@ SC_BEGIN TAG_OPT_ACTIVEAREAS
} }
return $text; return $text;
SC_END }
SC_BEGIN TAG_OPT_BUTTON function get_tag_opt_button()
{
return "<input class='button' type='submit' name='updatesettings' value='".LAN_UPDATE."' />"; return "<input class='button' type='submit' name='updatesettings' value='".LAN_UPDATE."' />";
SC_END }
*/
}
?> ?>

View File

@@ -1,20 +1,18 @@
<?php <?php
/* /*
+ ----------------------------------------------------------------------------+ * e107 website system
| e107 website system *
| * Copyright (C) 2001-2008 e107 Inc (e107.org)
| <20>Steve Dunstan 2001-2002 * Released under the terms and conditions of the
| http://e107.org * GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
| jalist@e107.org *
| * Tagwords Template
| Released under the terms and conditions of the *
| GNU General Public License (http://gnu.org). * $Source: /cvs_backup/e107_0.8/e107_plugins/tagwords/tagwords_template.php,v $
| * $Revision: 1.2 $
| $Source: /cvs_backup/e107_0.8/e107_plugins/tagwords/tagwords_template.php,v $ * $Date: 2009-01-17 22:46:37 $
| $Revision: 1.1 $ * $Author: lisa_ $
| $Date: 2008-12-29 20:51:07 $ *
| $Author: lisa_ $
+----------------------------------------------------------------------------+
*/ */
if (!defined('e107_INIT')) { exit; } if (!defined('e107_INIT')) { exit; }
@@ -200,17 +198,5 @@ $TEMPLATE_TAGWORDS['admin_options'] = "
</tr> </tr>
</table> </table>
</form>"; </form>";
/*
<tr>
<td class='forumheader3'>".LAN_TAG_OPT_26."</td>
<td class='forumheader3'>
{TAG_OPT_VIEW_SORT} ".LAN_TAG_OPT_12."<br />
{TAG_OPT_VIEW_STYLE} ".LAN_TAG_OPT_13."<br />
{TAG_OPT_VIEW_AREA} ".LAN_TAG_OPT_14."<br />
{TAG_OPT_VIEW_SEARCH} ".LAN_TAG_OPT_19."<br />
{TAG_OPT_VIEW_FREQ} ".LAN_TAG_OPT_20."<br />
</td>
</tr>
*/
?> ?>