This user has been denied support.
(2012-04-08, 06:18 PM)wkdwich Wrote: I'm confused.. I uploaded, and activated.. I see no setting anywhere called system tags where is it???
same here..
(2012-04-11, 06:57 PM)msafiq Wrote: Where is the text box available to enter tags.
All this plugin does is create random text as tags. Can you please point me where to enter tags.
does anyone made a fix for this? settings for this doesnt seem to appear in admin area.
(2012-05-01, 01:00 PM)Jockl Wrote: http://validator.w3.org/ shows different errors like "end tag for element "a" which is not open". Any idea to solve this problem?
Edit:
it seems that at least the line 162 of tags.php
$tagcolor[] .= "<a href=\"tags.php?id=".$tagurl."\" onmouseout=\"this.style.color='".$color."'\" style=\"color:".$color.";font-size:".$size."px;text-decoration:none\"/>".$tagurl."</a>";
has to be changed into
$tagcolor[] .= "<a href=\"tags.php?id=".$tagurl."\" onmouseout=\"this.style.color='".$color."'\" style=\"color:".$color.";font-size:".$size."px;text-decoration:none\">".$tagurl."</a>";
and there are a lot of more lines of type
<a href="" />...</a>
in the tags.php and plugin file as well. The a-tags look like img-tags that has no end-tag.....
<?php
/**
* MyBB 1.6
* Copyright 2010 MyBB Group, All Rights Reserved
*
* Website: http://www.facebook.com/EdsonOrdaz
*
* $Id: tags.php 5297 2012-02-10 22:01:14Z EdsonOrdaz $
*/
define("IN_MYBB", 1);
define('THIS_SCRIPT', 'tags.php');
define('TAGS', 'tags');
define("KILL_GLOBALS", 1);
require_once "./global.php";
//ORDEN PARA VER LISTA DE TAGS POR TID
add_breadcrumb("Tags", THIS_SCRIPT);
$activeplug = $cache->read("plugins");
if(!$activeplug['active']['systemtag'])
{
error_no_permission();
exit;
}
// Load global language phrases
$lang->load("tags");
function urlstags($tid)
{
global $db;
$querytagstable = $db->simple_select(TAGS, TAGS, "tid=".$tid);
$tagslist = $db->fetch_field($querytagstable, TAGS);
$convert = explode(", ",$tagslist);
$newtag = array();
foreach($convert as $tag)
{
$url = THIS_SCRIPT."?id=".$tag;
$newtag[$url] = $tag;
}
return $newtag;
}
if($mybb->input['id'])
{
$search = strip_tags($mybb->input['id']);
$search = htmlspecialchars_uni($search);
$search = trim($search);
add_breadcrumb($search, THIS_SCRIPT);
$lang->loadthead = $lang->sprintf($lang->loadtheadid, $search);
$langthead = $lang->loadthead;
$langtitle = " ".$search;
$query_counts = $db->simple_select(TAGS, 'COUNT(aid) AS aids', TAGS." LIKE '%".$db->escape_string_like($search)."%'", array('limit' => 1));
$quantity = $db->fetch_field($query_counts, "aids");
$pagina = intval($mybb->input['page']);
$perpage = 20;
if($pagina > 0)
{
$start = ($pagina - 1) * $perpage;
$pages = $quantity / $perpage;
$pages = ceil($pages);
if($pagina > $pages || $pagina <= 0)
{
$start = 0;
$pagina = 1;
}
}
else
{
$start = 0;
$pagina = 1;
}
$pageurl = "tags.php?id=".$search;
$tids = array();
$querysearch = $db->simple_select(TAGS, "*", TAGS." LIKE '%".$db->escape_string_like($search)."%'", array("order_by" => "tid", "order_dir" => $mybb->settings['systemtag_ascdesclist'], 'limit' => "{$start}, {$perpage}"));
while($whiletag = $db->fetch_array($querysearch))
{
$tids[] = $whiletag['tid'];
}
foreach($tids as $tid)
{
$colortrow = alt_trow();
$thread = get_thread($tid);
$user = get_user($thread['uid']);
$userlast = get_user($thread['lastposteruid']);
$username = format_name($user['username'], $user['usergroup'], $user['displaygroup']);
$username = build_profile_link($username, $user['uid'], "_blank");
$lastuser = format_name($userlast['username'], $userlast['usergroup'], $userlast['displaygroup']);
$lastuser = build_profile_link($lastuser, $userlast['uid'], "_blank");
$time = my_date($mybb->settings['timeformat'], $thread['lastpost']);
$date = my_date($mybb->settings['dateformat'], $thread['lastpost']);
$tagslist = array();
foreach(urlstags($tid) as $url => $tag)
{
$tagslist[] = "<a href=".$url." >".$tag."</a>";
}
$tagslist = implode(", ",$tagslist);
eval("\$listhreads .= \"".$templates->get("tags_listthread")."\";");
}
if(!$tagslist)
{
$lang->notresulttags = $lang->sprintf($lang->emptysearchtag, $search);
eval("\$listhreads = \"".$templates->get("tags_listthread_empty")."\";");
}
$pagination = multipage($quantity, (int)$perpage, (int)$pagina, $pageurl);
eval("\$idtags = \"".$templates->get("tags_threads")."\";");
output_page($idtags);
exit;
}
$arraytags = array();
$newtags = array();
$countfor = 0;
$countwhile = 0;
$querywtag = $db->simple_select(TAGS, TAGS, "", array("order_by" => "RAND();"));
while($tag = $db->fetch_array($querywtag))
{
if($countwhile >= intval($mybb->settings['systemtag_cloudtags']))
{
break;
}
$arraytags[] = explode(", ",$tag['tags']);
++$countwhile;
}
foreach($arraytags as $newarrays)
{
foreach($newarrays as $tag)
{
if($countfor >= intval($mybb->settings['systemtag_cloudtags']))
{
break;
}
$newtags[] = $tag;
++$countfor;
}
}
if($mybb->settings['systemtag_tagscloud'] == "cloud")
{
$etiqueta = "<div class=\"systemtag\">";
foreach($newtags as $tagurl)
{
$etiqueta .= "<div class=\"systemtag_element\"><a href=\"".THIS_SCRIPT."?id=".$tagurl."\" ><span class=\"smalltext\"><strong>".$tagurl."</strong></span></a></div>";
}
$etiqueta .= "</div>";
}
elseif($mybb->settings['systemtag_tagscloud'] == "color")
{
$tagcolor = array();
foreach($newtags as $tagurl)
{
$rand = array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f');
$ransize = array();
for($i=3; $i<=20; $i++)
{
$ransize[] = $i;
}
$size = $ransize[rand(0,30)];
$color = '#'.$rand[rand(0,15)].$rand[rand(0,15)].$rand[rand(0,15)].$rand[rand(0,15)].$rand[rand(0,15)].$rand[rand(0,15)];
$tagcolor[] .= "<a href=\"tags.php?id=".$tagurl."\" onmouseout=\"this.style.color='".$color."'\" style=\"color:".$color.";font-size:".$size."px;text-decoration:none\">".$tagurl."</a>";
}
$etiqueta = implode(", ",$tagcolor);
}
else
{
$simple = array();
foreach($newtags as $tagurl)
{
$simple[] = "<a href=\"tags.php?id=".$tagurl."\" >".$tagurl."</a>";
}
$etiqueta = implode(", ",$simple);
}
$lang->shtagthead = $lang->sprintf($lang->showwtagsthread, $mybb->settings['systemtag_cloudtags']);
eval("\$tagshome = \"".$templates->get("tags_home")."\";");
output_page($tagshome);
exit;
?>
tried it but still not working.
Anyone manage to fixed this? How did you guys did it?
Thanks.