Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Extension: Discussion Tags
This discussion has been closed.
Comments
I still get this error:
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result ressource in ../extensions/DiscussionTags/gettags.php on line 31
...when I edit tags separated by commas. Anybody encountered this problem?
while ($row = mysql_fetch_row($result)) { if ($Loop > 1) echo ','; $Name = FormatStringForDisplay($row[0], 1); echo $Name; $Loop++; }
to
while ($row = mysql_fetch_row($result)) { if ($Loop > 1) echo ','; $Name = FormatStringForDisplay($row[0], 1); echo $Name; $Loop++; } echo mysql_error();
and tell me what error message is displayed
What looks like the most is this, at lines 12 to 15:
while ($row = mysql_fetch_row($result)) { if ($i++ > 0) echo ', '; echo $row[0]; }
Illegal mix of collations (latin1_swedish_ci IMPLICIT) and (utf8_general_ci COERCIBLE) for operation 'like'
Sounds like the old non-latin characters compatibility problem.
But I think you my need to setup the vanilla tables completely new...
Would there be a way to just disable this MySQL warning? I mean, it causes no other harm than displaying an error. The only problem is it confuses my users when it occurs.
while ($row = mysql_fetch_row($result)) {
to
while ($row = @mysql_fetch_row($result)) {
Thanks a lot for the tip!
I found the following line of code:
$result = mysql_query("SELECT count(A.TagID) AS number,B.Tag,B.TagID FROM ".$DatabasePrefix."DiscussionHasTags A INNER JOIN ".$DatabasePrefix."DiscussionTags B ON (A.TagID = B.TagID) WHERE TO_DAYS(NOW()) - TO_DAYS(A.Created) <= 365 GROUP BY A.TagID ORDER BY number DESC LIMIT 0,30",$Context->Database->Connection);
and I changed the 0,30 at the end of the line to 0,10 and it seemed to reduce the number of items in the panel down to 10 nicely.
However, the 10 that are displayed aren't the most recent tags. It seems like the tags that are being displayed are only the 10 most popular tags.
Above, it says that one of the features of this add-on is the "Viewing of recently popular tags." Do newer tags that aren't as popular ever make it onto the list? It doesn't seem so as far as I can tell.
Unless I'm mistaken — or did something wrong when I changed the setting — the list of tags in the panel are only the "most popular" tags at any given moment (or at least in the 365 days, it seems). Can you confirm?
Thanks.
is there a way to regulate the fontsize of the diplayed tags in the panel?
its actually on somthing like 18-20 px or such .. very mighty at least
thx
around line 250
else $color = 'your textcolor'; $toreturn .= ' <a style="font-size:XXpx; text-decoration:XX;font-weight:XX;font-stretch:XX; color:'.$color.';" href="index.php?TagFilter='.$Value[2].'">'.$Value[0].'</a> '; } $toreturn .= '<div style="text-align:right; padding-right:5px;"><a style="font-size:XXpx; text-decoration:XX;" href="extension.php?PostBackAction=DiscussionTags">All tags ...</a></div>';
now im looking for a solution to display those tags in various fontsizes like on bbpress.org... anyone?
if you add
$Configuration['CLOUD_COLOR_80'] = '#ff0000'; $Configuration['CLOUD_COLOR_90'] = '#ff0000';
and so on to conf/settings.php you can change the colors from the different font sizes