SMFHacks.com

Modifications/Themes => Modifications Talk => Latest Mods => Topic started by: SMFHacks on December 19, 2006, 10:09:19 am

Title: [Mod] Tagging System
Post by: SMFHacks on December 19, 2006, 10:09:19 am
Tagging System
SMF Version: 1.1.1

Description:A tagging system for SMF.
Features:
Tag Cloud
Tagging of Topics
Thread owner can add and remove tags to the topic.
Tag Admins can tag topics and remove tags.
Clicking a tag returns a list of tagged topics that have that tag.
Recent tagged topics on tag cloud page.

Link to Mod (http://www.smfhacks.com/hacks/Tagging-System.html)
Title: Re: [Mod] Tagging System
Post by: rockgeek on December 19, 2006, 12:00:50 pm
How do I use this?
Title: Re: [Mod] Tagging System
Post by: SMFHacks on December 19, 2006, 12:06:55 pm
You add keywords to topics. Or when you create a new topic you add keywords. Then the keywords are listed in the tag cloud.
Title: Re: [Mod] Tagging System
Post by: rockgeek on December 19, 2006, 12:09:38 pm
Where exactly do I do this? Please see attached..........

Title: Re: [Mod] Tagging System
Post by: SMFHacks on December 19, 2006, 12:11:48 pm
You are using a custom theme you will need to make the changes to that theme as well. You need to edit index.template.php post.template.php and display.template.php look at tags.xml in the mods package.
Title: Re: [Mod] Tagging System
Post by: rockgeek on December 19, 2006, 12:26:26 pm
When adding a tag I get:

Unknown column 'test' in 'field list'
File: /home/janusz/public_html/forum/Sources/Tags.php
Line: 260

Title: Re: [Mod] Tagging System
Post by: SMFHacks on December 19, 2006, 03:59:46 pm
Updated the mod I think I fixed that.
Title: Re: [Mod] Tagging System
Post by: kfander on December 20, 2006, 03:24:30 pm
You add keywords to topics. Or when you create a new topic you add keywords. Then the keywords are listed in the tag cloud.

Where would the "tag cloud" appear?
Title: Re: [Mod] Tagging System
Post by: SMFHacks on December 20, 2006, 03:32:29 pm
In the menu of the default theme. be a menu item called Tags
Title: Re: [Mod] Tagging System
Post by: RvG on December 21, 2006, 10:04:08 pm
SMFHacks, thank you for this mod... I really like it! :)
Title: Re: [Mod] Tagging System
Post by: Tolbin on December 24, 2006, 06:43:10 am
Great mod.

One thing though. Guests can see the topic names on forums they don't have access to from the tags menu.
Title: Re: [Mod] Tagging System
Post by: SMFHacks on December 24, 2006, 09:36:33 am
Thanks I will fix that soon.
Title: Re: [Mod] Tagging System
Post by: kimsonvu on December 26, 2006, 05:02:31 am
You are using a custom theme you will need to make the changes to that theme as well. You need to edit index.template.php post.template.php and display.template.php look at tags.xml in the mods package.

Hi,can you guide me how to mode there file to use TAG MOD.?I'm newbie and not a programer,but i know some HTML and PHP and use Macromedia to do that.
Title: Re: [Mod] Tagging System
Post by: wickedstangs on December 29, 2006, 10:29:33 pm
Is there a working forum so we can see how it works? ;)
Title: Re: [Mod] Tagging System
Post by: SMFHacks on December 29, 2006, 10:33:49 pm
There are some screenshots at
http://mods.simplemachines.org/index.php?mod=579
Title: Re: [Mod] Tagging System
Post by: monshou on January 27, 2007, 03:41:59 am
Is there any way to display the last X tagged posts through SSI.php?
thx
Title: Re: [Mod] Tagging System
Post by: SMFHacks on January 27, 2007, 08:36:39 am
Not yet.
Title: Re: [Mod] Tagging System
Post by: podarok on January 29, 2007, 09:28:02 am
feature request
- more permisions (integrating into smf permision system will be nice)
- tree level categorization (possible using as FAQ)
- tag selecting from list needed - cause after some time tags become as flood list 8(((
Title: Re: [Mod] Tagging System
Post by: soMzE on February 26, 2007, 12:05:09 pm
Hello there, thank you for creating this AweSome Mod!!

I just installed it to my forum and all i can say.. It's GREAT  ;D


But i have a few questions, i want to tag topics that are allready there, so not just new topics..
So when i edit a topic i can't see the tag system line to add tags, is this possible?

And how do i delete tags from topics that are allready there?

Thank You, you have a great forum here!
Title: Re: [Mod] Tagging System
Post by: SMFHacks on February 26, 2007, 12:43:42 pm
On the default theme at the bottom of a thread there is a link to add tags and other tags can be deleted by clicking the red x.
Title: Re: [Mod] Tagging System
Post by: soMzE on February 26, 2007, 01:12:13 pm
Thnx, found it!  :)

And i have another question, why is it that my members can delete tags, is there a permission setting so they can't do this?
Title: Re: [Mod] Tagging System
Post by: soMzE on February 26, 2007, 01:14:49 pm
Oh i'm sorry, i tried to delete a tag as a normal member and i have seen the message that they don't have permission to delete a tag  :) Is there any way to remove the red X next to the tag for normal members?
Title: Re: [Mod] Tagging System
Post by: soMzE on February 28, 2007, 02:33:12 pm
Hey there, it's me again  :)

Really enjoying this mod, everything works fine and my members are loving it. I had a idea and i suggested this on TinyPortal but we can't seem to get it working so i need a little help..

I wanted to show the Tag Cloud in a block code snippet, and member JPDeni suggested to use this code in a phpbox:

Code: [Select]
global $db_prefix, $scripturl, $context;
$query = "SELECT t.tag AS tag, l.ID_TAG, COUNT(l.ID_TAG) AS quantity
  FROM {$db_prefix}tags as t, {$db_prefix}tags_log as l WHERE t.ID_TAG = l.ID_TAG
  GROUP BY l.ID_TAG
  ORDER BY l.ID DESC LIMIT 50";

$result = db_query($query, __FILE__, __LINE__);

$tags = array();

$tags2 = array();

while ($row = mysql_fetch_array($result))
{
    $tags[$row['tag']] = $row['quantity'];
    $tags2[$row['tag']] = $row['ID_TAG'];
}

if(count($tags2) > 0)
{
// change these font sizes if you will
$max_size = 250; // max font size in %
$min_size = 100; // min font size in %

// get the largest and smallest array values
$max_qty = max(array_values($tags));
$min_qty = min(array_values($tags));

// find the range of values
$spread = $max_qty - $min_qty;
if (0 == $spread)
{ // we don't want to divide by zero
    $spread = 1;
}

// determine the font-size increment
// this is the increase per tag quantity (times used)
$step = ($max_size - $min_size)/($spread);

// loop through our tag array
$context['poptags'] = '';
$row_count = 0;
foreach ($tags as $key => $value)
{
$row_count++;
    // calculate CSS font-size
    // find the $value in excess of $min_qty
    // multiply by the font-size increment ($size)
    // and add the $min_size set above
    $size = $min_size + (($value - $min_qty) * $step);
    // uncomment if you want sizes in whole %:
    // $size = ceil($size);

    // you'll need to put the link destination in place of the #
    // (assuming your tag links to some sort of details page)
    $context['poptags'] .= '<a href="' . $scripturl . '?action=tags;id=' . $tags2[$key] . '" style="font-size: '.$size.'%"';
    // perhaps adjust this title attribute for the things that are tagged
   $context['poptags'] .= ' title="'.$value.' things tagged with '.$key.'"';
   $context['poptags'] .= '>'.$key.'</a> ';
   if ($row_count > 5)
   {
    $context['poptags'] .= '<br />';
    $row_count =0;
   }
}
}

but the code isn't working, can anyone help me on this one please?  :)
Title: Unable to Uninstall..Please Help
Post by: technoworldinc.com on March 01, 2007, 12:13:34 pm
hi,

Im not able to uninstall this mod properly..the tags link is still visible in the menu..how can i remove that? please help
my site is http://www.technoworldinc.com

please help

-Vatsal
Title: Re: [Mod] Tagging System
Post by: SMFHacks on March 01, 2007, 01:46:51 pm
Need to edit index.template.php and remove the code.
Title: Re: [Mod] Tagging System
Post by: nyndnpa on March 18, 2007, 12:32:34 pm
Wow this mod is great; we've been looking for something like this for months!

Unfortunatley, I'll have to install it by hand :( .  The *.zip file does not have a "tag.mod" file that shows how to modify the text in the *.php files.  Is it posted some place I could download?  I'd really love to install this.

David
Title: Re: [Mod] Tagging System
Post by: SMFHacks on March 18, 2007, 01:09:55 pm
You would need to open up the tags.xml file which contains the information to install the mod manually.
Title: Re: [Mod] Tagging System
Post by: majo on March 19, 2007, 08:24:51 am
I Followed this topic and uninstalled tag system, removed the button etc, and installed again new tag system for 1.1.2
Now everything looks ok except the forums, showing double tags, and also when you create new topic shows two tags line,

what file do i edit to remove that ?
Title: Re: [Mod] Tagging System
Post by: SMFHacks on March 19, 2007, 08:23:46 pm
That would be Display.template.php
Title: Re: [Mod] Tagging System
Post by: majo on March 20, 2007, 07:32:44 am
Yeah I removed all according to installation package xml, works now ;D
Title: Re: [Mod] Tagging System
Post by: dsanchez on March 28, 2007, 01:57:03 pm
How can I show, let's say, the 100 tags MOST popular of all the time?. Actually it's showing the  most popular from the "X" recent tags.

Also, I'd love to show the tag cloud not centered, but justify. However I can't because it break-line automatically after (in my case) 12 items:

http://www.curefans.com/index.php?action=tags

Thanks

David.
Title: Re: [Mod] Tagging System
Post by: majo on March 28, 2007, 03:35:45 pm
Good Question if you get an answer yould you let me know?
Title: Re: [Mod] Tagging System
Post by: glennk on April 16, 2007, 06:04:34 am
Hi Ive installed this. Seems ok and could be quite useful but in the tag list a lot of the tags appear to be missing especially tags that are most popular. They initially appear but when a tag gets real popular it disaapears.

What's gone wrong please ??

Cheers - Glenn
Title: Re: [Mod] Tagging System
Post by: SMFHacks on April 16, 2007, 07:20:43 am
Currently lists only the latest most popular tags.
Title: Re: [Mod] Tagging System
Post by: merosler on May 02, 2007, 05:40:22 pm
i downloaded the tags mod, however because i have a custom theme, i can not see the tag fields incorporated in my posts.  Can anyone give me any guidance on how to make this work for custom themes?
Title: Re: [Mod] Tagging System
Post by: starenka on May 15, 2007, 06:30:12 am
there's an ugly bug i guess. from what i see my tags which has higher freauency than 10 are not shown in the tag cloud. if i click on the tag within the topic, it's okay.. am i doing something wrong?

#edit: tried looking into the source, but can't find something wrong. unfortunately can't debug on server.. well maybe one more thing, why don't usel logarythms while generating the tags? and why not an ajax suggest, while adding new ones. this forced me to write my own tagmanager to merge & rename malformed tags from the users... thanx for answering sta
Title: Re: [Mod] Tagging System
Post by: starenka on May 15, 2007, 03:14:25 pm
oh now i see what's the problem. the sql select is limited to 50tags LAST ADDED tags but it is not aware of the quantity... ;)

okay here is a fixed file (warning no SQL limits!!, alphabetic sorting) and tags sizes are rather counted with logarythms (imho better - a bit helps with extreme values...)

source:
Code: [Select]
http://crap.starenka.net/Tags.php.txt
original size calculation:
(http://crap.starenka.net/t0.png)

fixed size calculation:
(http://crap.starenka.net/t1.png)
Title: Re: [Mod] Tagging System
Post by: NickInTheNorth on June 19, 2007, 04:33:55 am
Love this mod, when I've seen it in use, but I'm having problems. It installs without problem, but when I try adding tags I get:

An Error Has Occurred!
No topic selected.


...update - it would appear to be a compatibility problem between the Tagging system and pretty urls

Anyone have these two working together?

I just tried getting them both working on a clean install of smf 1.1.2 with no other mods. The tagging works fine without pretty urls, but not with it.
Title: Re: [Mod] Tagging System
Post by: bathgate on July 01, 2007, 03:04:18 pm
hey vbgamer do you have  a code to add a tag cloud to the index page or to the side using tinyportal thanks
Title: Re: [Mod] Tagging System
Post by: digit on July 12, 2007, 02:25:21 pm
I just installed this mod, and I LOVE IT!  (I also just sent you guys a paypal payment!)

I would like the keywords (you call them tags) to appear in the meta keywords tag... in  index.template.php...

could you please help with that?

Thanks!!!!

digit
Title: Re: [Mod] Tagging System (SMALL BUG)
Post by: digit on July 12, 2007, 02:34:40 pm
I did find one small problem with this mod.....

you have....   for Display.template.php....

Code: [Select]

//Tagging System
echo '<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="windowbg">
<b>', $txt['smftags_topic'], '</b>';



foreach ($context['topic_tags'] as $i => $tag)
{
echo '<a href="' . $scripturl . '?action=tags;id=' . $tag['ID_TAG']  . '">' . $tag['tag'] . '</a>&nbsp;';
if(!$context['user']['is_guest'])
echo '<a href="' . $scripturl . '?action=tags;sa=deletetag;id=' . $tag['ID']  . '"><font color="#FF0000">[X]</font></a>&nbsp;';

}

if(!$context['user']['is_guest'])
echo '
&nbsp;<a href="' . $scripturl . '?action=tags;sa=addtag;topic=',$context['current_topic'], '">' . $txt['smftags_addtag'] . '</a>

</td>
</tr>
</table>';

//End Tagging System


It should be...

Code: [Select]

//Tagging System
echo '<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="windowbg">
<b>', $txt['smftags_topic'], '</b>';



foreach ($context['topic_tags'] as $i => $tag)
{
echo '<a href="' . $scripturl . '?action=tags;id=' . $tag['ID_TAG']  . '">' . $tag['tag'] . '</a>&nbsp;';
if(!$context['user']['is_guest'])
echo '<a href="' . $scripturl . '?action=tags;sa=deletetag;id=' . $tag['ID']  . '"><font color="#FF0000">[X]</font></a>&nbsp;';

}

if(!$context['user']['is_guest'])
echo '
&nbsp;<a href="' . $scripturl . '?action=tags;sa=addtag;topic=',$context['current_topic'], '">' . $txt['smftags_addtag'] . '</a>';

echo '

</td>
</tr>
</table>';

//End Tagging System


It does not close the table properly otherwise, for guests!

digit

p.s, since I sent you a paypal payment, can I remove the link?
Title: Re: [Mod] Tagging System (OH NO)
Post by: digit on July 12, 2007, 02:44:35 pm
I just deleted a keyword, but it still appears under "Popular Keywords"

Any idea where it is failing?

The post with the deleted keyword no longer shows up though...

thanks in advance.

Title: Re: [Mod] Tagging System
Post by: SMFHacks on July 12, 2007, 06:21:06 pm
Currently keywords are not deleted if the topic is deleted.
Title: Re: [Mod] Tagging System
Post by: digit2 on July 12, 2007, 10:28:16 pm
This is still digit...  I lost my password and re-registered.... couldn't even retreive it.

What about the other comment...

... I sent you a paypal payment, may I remove the smf hacks link?

...  I also was able to have the new keywords appear in the metal keywords tag, thank to Harro at simplemachines.org...

http://www.simplemachines.org/community/index.php?topic=181779.msg1159726#msg1159726

This might be a nice option for your mod.

digit
Title: Re: [Mod] Tagging System
Post by: digit3 on July 16, 2007, 07:22:42 am
This is so weird....  I keep losing my log in info for this site!  Sorry about that!

This is still digit.

I would like my moderator to be able to add tags to existing posts...  instead of just the admin...

How would I do that?

Thanks in advance!

digit
Title: Re: [Mod] Tagging System
Post by: Nite on July 22, 2007, 04:08:24 pm
My forum is on a sub-domain. (http://xxx.yyy.com)
My landing page is not on the sub-domain. (http://www.yyy.com)

I would like to pull the data contained inside the tags table and put in on the landing page. This would create more dynamic content on the landing page that would interface with what's happening inside the forum.

How would I do this?

I'm already calling SSI.php from the landing page to display the latest forum posts. I suppose I need to do something different to call out the tag information?





Title: Re: [Mod] Tagging System
Post by: SMFHacks on July 22, 2007, 06:42:26 pm
Try something like this untested
Code: [Select]
global $db_prefix, $scripturl, $context;

//Tag cloud from http://www.prism-perfect.net/archive/php-tag-cloud-tutorial/

$query = "SELECT t.tag AS tag, l.ID_TAG, COUNT(l.ID_TAG) AS quantity
  FROM {$db_prefix}tags as t, {$db_prefix}tags_log as l WHERE t.ID_TAG = l.ID_TAG
  GROUP BY l.ID_TAG
  ORDER BY l.ID DESC LIMIT 50";

$result = db_query($query, __FILE__, __LINE__);

// here we loop through the results and put them into a simple array:
// $tag['thing1'] = 12;
// $tag['thing2'] = 25;
// etc. so we can use all the nifty array functions
// to calculate the font-size of each tag
$tags = array();

$tags2 = array();

while ($row = mysql_fetch_array($result))
{
    $tags[$row['tag']] = $row['quantity'];
    $tags2[$row['tag']] = $row['ID_TAG'];
}

if(count($tags2) > 0)
{
// change these font sizes if you will
$max_size = 250; // max font size in %
$min_size = 100; // min font size in %

// get the largest and smallest array values
$max_qty = max(array_values($tags));
$min_qty = min(array_values($tags));

// find the range of values
$spread = $max_qty - $min_qty;
if (0 == $spread)
{ // we don't want to divide by zero
    $spread = 1;
}

// determine the font-size increment
// this is the increase per tag quantity (times used)
$step = ($max_size - $min_size)/($spread);

// loop through our tag array
$context['poptags'] = '';
$row_count = 0;
foreach ($tags as $key => $value)
{
$row_count++;
    // calculate CSS font-size
    // find the $value in excess of $min_qty
    // multiply by the font-size increment ($size)
    // and add the $min_size set above
    $size = $min_size + (($value - $min_qty) * $step);
    // uncomment if you want sizes in whole %:
    // $size = ceil($size);

    // you'll need to put the link destination in place of the #
    // (assuming your tag links to some sort of details page)
    $context['poptags'] .= '<a href="' . $scripturl . '?action=tags;id=' . $tags2[$key] . '" style="font-size: '.$size.'%"';
    // perhaps adjust this title attribute for the things that are tagged
   $context['poptags'] .= ' title="'.$value.' things tagged with '.$key.'"';
   $context['poptags'] .= '>'.$key.'</a> ';
   if ($row_count > 5)
   {
    $context['poptags'] .= '<br />';
    $row_count =0;
   }
    // notice the space at the end of the link
}
}




echo $context['poptags'];


Title: Re: [Mod] Tagging System
Post by: Nite on July 22, 2007, 07:02:15 pm
Awesome!

Demo :: Permian Basin Internet Community (http://www.midessa.net).
Title: Re: [Mod] Tagging System
Post by: PiSiK0PATR on July 31, 2007, 05:30:21 am
I want to that.You must make tags mode's seo...

http://www.sitename.com/tags.html;id=1007 or
http://www.sitename.com/tags/Graphic

I want to that.You must make tags mode's tag cluod

Excuse Me I Cant You Speak Engilish :S
Title: Re: [Mod] Tagging System
Post by: hardnemesis on August 13, 2007, 03:03:46 pm
Hey i am new this mod good but i have a problem pls help me :(
My problem is that i use theme çölateşi  v3 turkish theme
i load this mod but only load it work in default theme, what do i do for working in colatesi v3 theme
ss is here
(http://img253.imageshack.us/img253/7879/adszpu0.jpg) (http://imageshack.us)
Shot at 2007-08-13

(http://img253.imageshack.us/img253/7333/hasanwe6.jpg) (http://imageshack.us)
Shot at 2007-08-13

Waiting your answers Thanks...
Title: Re: [Mod] Tagging System
Post by: mogu on September 23, 2007, 05:01:24 pm
I really like your mod, just a note:
the title attribute of the tags' links is hardcoded in English (Tags.php, line 156)

@hardnemesis:
the Tags.xml file in the package exactly tells you where to insert what.
it's possible to do that manually, and actually I always do it myself :).
besides, don't forget to copy Tags.english.php and modify and rename it for Turkish.
Title: Re: [Mod] Tagging System
Post by: JW01 on November 06, 2007, 10:19:39 am
Hi,

Great Mod, but I do have a question about adding it to custom themes that do not have the Post.template.php file in the theme dir.. how do we get it to work.. for instance in Alienation or XD-Zeda?

Thanks
Title: Re: [Mod] Tagging System
Post by: SMFHacks on November 06, 2007, 08:26:44 pm
If they do not have the file it just needs to be added to the defaul theme.

The current theme will pickup what ever template files are missing by using the default theme files.
Title: Re: [Mod] Tagging System
Post by: joecool85 on December 04, 2007, 11:57:39 am
I love this mod, but right now there are two issues I've noticed.

First:
If you have two things tagged the same it lists the tag twice.  For instance, church and church.  I would like it so that If the tag was already there it wouldn't list it again.  That way if you click on the tag, instead of just showing the one thread associated with it, it would show all threads associated with "church."

Second:
It seems you can only add tags to the first post of the thread, it would be nice if you could add them to posts later in a thread.

**edit**
It seems the issue with tags not connecting to each has to do with the order they are tagged.  For instance if I tag one thing "church, somethingelse, dogs" and the next thread "church, house, people" then "church" lists both threads.  However, if I tag the second thread with church as the second tag it doesn't work, IE "house, church, people."
Title: Re: [Mod] Tagging System
Post by: catchpen on December 23, 2007, 11:17:00 am
I love this mod, but right now there are two issues I've noticed.

First:
If you have two things tagged the same it lists the tag twice.  For instance, church and church.  I would like it so that If the tag was already there it wouldn't list it again.  That way if you click on the tag, instead of just showing the one thread associated with it, it would show all threads associated with "church."

Second:
It seems you can only add tags to the first post of the thread, it would be nice if you could add them to posts later in a thread.

**edit**
It seems the issue with tags not connecting to each has to do with the order they are tagged.  For instance if I tag one thing "church, somethingelse, dogs" and the next thread "church, house, people" then "church" lists both threads.  However, if I tag the second thread with church as the second tag it doesn't work, IE "house, church, people."
The only workaround is to go back and apply one tag at a time. But try explaining this to members posting  :-[
Title: Re: [Mod] Tagging System
Post by: IWAC on December 26, 2007, 12:19:41 pm
Hi I really wanted to use this mod, but i couldn't download it due to this errormessage...

Quote

Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.


And it is this file which has failed the 'test'

7.     Execute Modification     ./Sources/Post.php     Test failed

Any ideas what i should do?
Title: Re: [Mod] Tagging System
Post by: SMFHacks on December 26, 2007, 07:45:27 pm
Try to install it manually using the Package Parser
http://www.smfhacks.com/smf-package-parser.html
Title: Re: [Mod] Tagging System
Post by: IWAC on December 27, 2007, 03:15:38 am
Cheers Dan.

 That worked and helped a lot as there was more than one page I needed to edit.

Thats a great piece of software you got there and I just noticed the theme generator too.

Looks like I need to bookmark those 2 pages.  ;D
Title: Re: [Mod] Tagging System
Post by: joecool85 on December 28, 2007, 07:23:22 am
I love this mod, but right now there are two issues I've noticed.

First:
If you have two things tagged the same it lists the tag twice.  For instance, church and church.  I would like it so that If the tag was already there it wouldn't list it again.  That way if you click on the tag, instead of just showing the one thread associated with it, it would show all threads associated with "church."

Second:
It seems you can only add tags to the first post of the thread, it would be nice if you could add them to posts later in a thread.

**edit**
It seems the issue with tags not connecting to each has to do with the order they are tagged.  For instance if I tag one thing "church, somethingelse, dogs" and the next thread "church, house, people" then "church" lists both threads.  However, if I tag the second thread with church as the second tag it doesn't work, IE "house, church, people."
The only workaround is to go back and apply one tag at a time. But try explaining this to members posting  :-[

For right now I guess I will need to mod the file so it tells the user to only input one tag at a time.
Title: Re: [Mod] Tagging System
Post by: catchpen on January 22, 2008, 05:17:31 pm
The most popular tag I have is "free" and it's not showing in the cloud but the posts tagged free show in recent tagged topics list.

how I can bump the "free" tag to the cloud? It's long lost ???

I also have a "free shipping" tag. Is this screwing it up?
Title: Re: [Mod] Tagging System
Post by: joecool85 on January 23, 2008, 10:48:24 am
I figured out what the issue is.  You can have as many tags in any order you want, but only separated by commas, not with spaces as well.

Like this: "tag,tag2,tag4"

Not: "tag, tag2, tag4"

I think I'm going to change it so it seperates tags by spaces instead of by commas, like del.icio.us does.
Title: Re: [Mod] Tagging System
Post by: joecool85 on January 29, 2008, 01:32:35 pm
Well, I was going to change it, but I can't find where in the code I would change it from comma seperated to space separated.  Any help?
Title: Re: [Mod] Tagging System
Post by: falguni1 on February 02, 2008, 01:46:31 am
if separated by space you cannot tag with two words "best laptop".
Title: Re: [Mod] Tagging System
Post by: joecool85 on February 07, 2008, 08:10:29 pm
if separated by space you cannot tag with two words "best laptop".

That's something I can live with.  It's worse that when you tag something "cat, dog" and then "dog, house" both "dog" tags don't match up because one has a space in front of it...

I fixed it btw: http://www.simplemachines.org/community/index.php?topic=220812.0
Title: Re: [Mod] Tagging System
Post by: RusHacker on February 07, 2008, 10:02:13 pm
for problem with space errors between tags with comma i make the next thing: in Source/Post.php find
Code: [Select]
//Check Tag restrictions
$tags = explode(',',htmlspecialchars($_REQUEST['tags'],ENT_QUOTES));

if($totaltags < $modSettings['smftags_set_maxtags'])
{
$tagcount = 0;
foreach($tags as $tag)
{
if($tagcount >= $modSettings['smftags_set_maxtags'])
continue;
and add line
Code: [Select]
$tag = trim($tag);SMFHack, read PM, please
Title: Re: [Mod] Tagging System
Post by: RusHacker on February 13, 2008, 03:46:53 am
SMFHacks, really need your word about roadmap of great this mod :)
are you working on next version or plannig commercial release?
or freez, can't have time, etc

what you think about customize some features in your code and in such spirit
Title: Re: [Mod] Tagging System
Post by: SMFHacks on February 13, 2008, 07:53:36 pm
I plan some updates just need to finish a couple updates to the paid mods then I go back though the other mods and make additions and changes.
Title: Re: [Mod] Tagging System
Post by: joecool85 on March 07, 2008, 08:16:14 am
Is there a way to make it display only the most popular tags?  IE - only the tags with the most threads associated with them?
Title: Re: [Mod] Tagging System
Post by: setec on April 04, 2008, 12:36:45 am
I love this MOD. It has transformed my site. Just one suggestion - Please allow the ability to show all tags, not just the popular ones. I sometimes tag a post and then maybe one year later have to tag something similar but can't find my original post anymore because the tags only show popular ones.

Thanks!
Title: Re: [Mod] Tagging System
Post by: deve on May 31, 2008, 08:31:47 pm
if I click on the main page to the tags it returns to "unable to load main themplate" also from the admin panel the same thing. Opening a thread with tags np.But cant edit or configure them why ?
Title: Re: [Mod] Tagging System
Post by: deve on June 01, 2008, 06:32:26 am
nobody an answer for this problem ?
Title: Re: [Mod] Tagging System
Post by: b_1332 on June 11, 2008, 03:33:04 pm
I plan some updates just need to finish a couple updates to the paid mods then I go back though the other mods and make additions and changes.

Hello SMFHacks,

I added a feature to the tagging system that you may be interested in.  On my forum items with tags can end up with very similar subject lines.  We store and access drawing files and many photos of construction projects that often have very similar names.  Thus I needed to also see the board name in the result list when seeing what was tagged.  In order to do this I modified three files in the following locations.

Sources/Tags.php

Near lines 62 and 170, I added one more item to the SQL statement "b.name" which returns the name of the board.  And listed this int he result set as "boardName"

Thus the SQL looks like this.
Code: [Select]
$dbresult = db_query("
SELECT DISTINCT l.ID_TOPIC, t.numReplies,t.numViews,m.ID_MEMBER,m.posterName,m.subject,m.ID_TOPIC,m.posterTime, t.ID_BOARD, b.name
FROM {$db_prefix}tags_log as l,{$db_prefix}boards AS b, {$db_prefix}topics as t, {$db_prefix}messages as m
WHERE b.ID_BOARD = t.ID_BOARD AND l.ID_TOPIC = t.ID_TOPIC AND t.ID_FIRST_MSG = m.ID_MSG AND " . $user_info['query_see_board'] . " ORDER BY l.ID DESC LIMIT 10", __FILE__, __LINE__);

$context['tags_topics'] = array();
while ($row = mysql_fetch_assoc($dbresult))
{
$context['tags_topics'][] = array(
'ID_MEMBER' => $row['ID_MEMBER'],
'posterName' => $row['posterName'],
'subject' => $row['subject'],
'boardName' => $row['name'],
'ID_TOPIC' => $row['ID_TOPIC'],
'posterTime' => $row['posterTime'],
'numViews' => $row['numViews'],
'numReplies' => $row['numReplies'],

);
}



Themes/default/languages/Tags.english.php

After line 45 added
Code: [Select]
// MODIFIED TO ADD BOARD NAME TO HELP SORT RESULTS - BH 080611
$txt['smftags_board'] = 'Board';

Themes/default/Tags.template.php

In two locations near line 47 and 87, I modified the results display to include the name of the board and show the results from the query in the table
Code: [Select]
  <table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">
<tr>
<td class="catbg3">',$txt['smftags_board'],'</td>
<td class="catbg3">',$txt['smftags_subject'],'</td>
<td class="catbg3" width="11%">',$txt['smftags_startedby'],'</td>
<td class="catbg3" width="4%" align="center">',$txt['smftags_replies'],'</td>
<td class="catbg3" width="4%" align="center">', $txt['smftags_views'], '</td>
</tr>';
foreach ($context['tags_topics'] as $i => $topic)
{
echo '<tr>';
echo '<td class="windowbg2"><a href="' . $scripturl . '?board=' . $topic['boardName'] . '.0">' . $topic['boardName'] . '</a></td>';
echo '<td class="windowbg2"><a href="' . $scripturl . '?topic=' . $topic['ID_TOPIC'] . '.0">' . $topic['subject'] . '</a></td>';
echo '<td class="windowbg"><a href="' . $scripturl . '?action=profile;u=' . $topic['ID_MEMBER'] . '">' . $topic['posterName'] . '</a></td>';
echo '<td class="windowbg2">' . $topic['numReplies'] . '</td>';
echo '<td class="windowbg2">' . $topic['numViews'] . '</td>';
echo '</tr>';

hope this helps.   :)
Title: Re: [Mod] Tagging System
Post by: harmsway on June 21, 2008, 02:34:42 pm
I have a question. I had installed the tags on my forums, but decided to unisntall them since no one was using them. It gave me an error while uninstalling, and stupid me just hit to continue, cause I figured if it's uninstalling what's the worse that could happen....it'll be gone anway. Well, now its half gone. It shows the "tags" button the menu where like "home" and stuff is, and even takes you to the tag cloud, but it doesn't have the option to enter tags on new posts. Is there anything I can do to fix this?
Title: Re: [Mod] Tagging System
Post by: trench on September 06, 2008, 05:42:08 pm
Ok, I have no idea what I've done wrong. I've installed the mod and followed all directions but for some reason it doesn't work.

http://open.thetrenchcoat.com

Any help would be greatly appreciated.
Title: Re: [Mod] Tagging System
Post by: sudhakar on April 09, 2009, 09:39:27 am
Help me out, its very urgent.

Hi Vbgamer45, i have used 2.0.4 .

Now updated to 2.0 Rc1.

downloaded tagging system and while install , i got this error.

Table 'itacumen_smf20beta3.tags' doesn't exist
File: /home/sitename/public_html/forum/Packages/temp/tagsql.php
Line: 46

--------------------------------

Hi Vbgamer, i have added a new table called tags.

And installed all the files properly.

Now when i click on Add Tags button to new topic or existing topic. It shows,

Fatal error: Call to undefined function create_control_autosuggest() in /home/sitename/public_html/forum/Sources/Tags.php on line 248

Kindly help me out Vbgamer, its very urgent.
Title: Re: [Mod] Tagging System
Post by: SMFHacks on April 09, 2009, 08:09:35 pm
Not sure if I updated that mod to support RC1 I don't think I did.
Title: Re: [Mod] Tagging System
Post by: sudhakar on April 10, 2009, 10:58:48 am
Not sure if I updated that mod to support RC1 I don't think I did.

Ok Author,

Do we have any update on it.

I miss the tagging system since i have upgrade to 2.0.RC1.

Kindly help me out to fix the issue.
Title: Re: [Mod] Tagging System
Post by: jmtm on May 20, 2009, 03:56:54 am
Excellent mod! Thanks the Author!

Question: how I can give the chance to all users (except guests) to add and delete tags in any theme?

Thanks!

Title: Re: [Mod] Tagging System
Post by: SMFHacks on May 20, 2009, 07:50:14 am
In any theme gets tricky you will need to add the code to the display.template.php for each custom theme.

Permissions are found are Admin -> Permissions then modifying each group.
Title: Re: [Mod] Tagging System
Post by: jmtm on May 20, 2009, 06:13:13 pm
Sorry, English not my native language...

Here a code in display.template.php
Code: [Select]
// Tagging System
echo '<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="windowbg">
<b>', $txt['smftags_topic'], '</b>';



foreach ($context['topic_tags'] as $i => $tag)
{
echo '<a href="' . $scripturl . '?action=tags;tagid=' . $tag['ID_TAG']  . '">' . $tag['tag'] . '</a>&nbsp;';
if(!$context['user']['is_guest'])
echo '<a href="' . $scripturl . '?action=tags;sa=deletetag;tagid=' . $tag['ID']  . '"><font color="#FF0000">[X]</font></a>&nbsp;';

}

global $topic;
if(!$context['user']['is_guest'] && allowedTo('smftags_add'))
echo '
&nbsp;<a href="' . $scripturl . '?action=tags;sa=addtag;topic=',$topic, '">' . $txt['smftags_addtag'] . '</a>

</td>
</tr>
</table>';

//End Tagging System

If I have correctly understood... This part of a code allows the admin to delete tags
Code: [Select]
if(!$context['user']['is_guest'])
echo '<a href="' . $scripturl . '?action=tags;sa=deletetag;tagid=' . $tag['ID']  . '"><font color="#FF0000">[X]</font></a>&nbsp;';

This part of a code allows the admin to add tags
Code: [Select]
if(!$context['user']['is_guest'] && allowedTo('smftags_add'))
echo '
&nbsp;<a href="' . $scripturl . '?action=tags;sa=addtag;topic=',$topic, '">' . $txt['smftags_addtag'] . '</a>

I understand that "sa" it is the administrator, but I do not know how to designate other Membergroups.
Set please an example of a code for for other Membergroups!

Thanks!
Title: Re: [Mod] Tagging System
Post by: jmtm on May 20, 2009, 07:20:52 pm
Sorry, has downloaded mod from your site, has reinstalled, all works! Thanks!
Title: Re: [Mod] Tagging System
Post by: Vincent Volmer on May 22, 2009, 04:10:43 pm
When I save a post with some tags I get an error:

Code: [Select]
Fatal error: Call to undefined function create_control_autosuggest() in /shared/usr/wzen1234567/DOMAIN/www.digiscrap.nl/HTML/Sources/Post.php on line 1809
Thanks in advance,
Vincent
Title: Re: [Mod] Tagging System
Post by: Vincent Volmer on May 22, 2009, 04:29:57 pm
I tried un-install the mod and install it again but now i see the next error:


Code: [Select]
http://digiscrap.nl/index.php?action=admin;area=packages;sa=install2;package=TaggingSystemForTopicsSMF2.1.zip;pid=0
Databaseerror: Table 'centanin486.tags' doesn't exist
File: /shared/usr/wcen7085654/DOMAIN/www.digiscrap.nl/HTML/Packages/temp/tagsql.php
Line: 46


And it tells me that I have an out dated database (2.0RC1) instead of RC1-1.
I upgraded SMF from RC1 to RC1-1 yesterday. So...... what happened when I uninstalled the mod? Did it destroy the database somehow?

Brrrrr please help me on this....

Vincent
Title: Re: [Mod] Tagging System
Post by: Vincent Volmer on May 23, 2009, 01:03:30 am
I installed it on my test website and the installation went fine. Yesterday evening I was a bit to enthusiastic and installed it on the live website instead of the test website...  :(

So, there must be something with one of the other mods on my live website which caused the errors..... maybe....

1.     Pretty URLs Reverter      0.9.1
2.    Custom Fields On Memberlist
3.    Sitemap    2.0.0
4.    Latest Members RC1    1.1
5.    SMF Gallery Pro Recent Profile Images    1.0
6.    PortaMx v0.956    0.956
7.    SMF 1.0.17 / 1.1.9 / 2.0 RC1 Update    1.0
8.    PortaMx v0.957 Rev1    0.957r1
9.    Prettier_Quotes    1.12
10.    Stop Spammer    2.2
11.    Global Headers Footers    2.0
12.    Internal_Links_Use_Same_Window    1.2
13.    Ad Managment    2.3.4
14.    Downloads System Pro    1.0.4
15.    PortaMx v0.957 Rev2    0.957r2
16.    Users Online Today    1.5.4
17.    SMF Gallery Pro    1.4.5
18.    PortaMx v0.957    0.957
19.    SMF Gallery Pro SSI    2.0
20.    Member Color Link    3.0.6
21.    SMF Canonical Tag    1.2
22.    SMF Gallery Pro Recent Comments Board Index    2.0
23.    SSI Latest Members    1.0.1
24.    MCLegendII RC1    3.0
Title: Re: [Mod] Tagging System
Post by: wimvincken on July 24, 2009, 06:09:09 am
I tried to install this amazing tagging system and I have the SMF 2.0 RC1.2
Installing it via the package manager goes well, only two problems.

One with the admin.php and the second with the Display.template.php
The admin.php is quickly resolved, but the Display.template.php not.

After some moving around and playing with the results, I found it!

I look and when I add a new post, I see the textbox with the tags.
But then when I want to save the data, I see a blank screen!

Not only that, but where does he displays all the tags at the bottom of the post? I have no idea. At the end it was safer to roll back and wait until there is a real version for the SMF 2.0 RC1.2
Title: Re: [Mod] Tagging System
Post by: voythas on July 25, 2009, 11:03:47 am
Hey buddy,
I like your mods and hacks for SMF, however I have one question about it. On my forum there is installed also: SMF Articles and SMF Downloads. Is it possible to combine keywords from those mods and put them into one Cloud Tag with Threads? Oh and I mean for SMF 1.1.10.

It would be really helpful.
Thanks in advance - voythas.
Title: Re: [Mod] Tagging System
Post by: SMFHacks on July 25, 2009, 11:31:57 am
Not at the moment would require a good amount of work to do so.
Title: Re: [Mod] Tagging System
Post by: dazzledark on September 09, 2009, 03:13:57 pm
http://www.meydangorusu.com/forum/index.php?action=tags

Invalid use of group function
Dosya: /vhosts/meydangorusu.com/http/forum/Sources/Tags.php
Satır: 106

how can i fix this_?
Title: Re: [Mod] Tagging System
Post by: dazzledark on September 09, 2009, 03:47:43 pm
no solutions?
Title: Re: [Mod] Tagging System
Post by: nico on May 08, 2010, 12:10:32 pm
http://www.meydangorusu.com/forum/index.php?action=tags

Invalid use of group function
Dosya: /vhosts/meydangorusu.com/http/forum/Sources/Tags.php
Satır: 106

how can i fix this_?

Hello,

i have same error, what can i do?

Thank you & nice WE

nico
Title: Re: [Mod] Tagging System
Post by: dazzledark on May 08, 2010, 03:50:53 pm
http://www.meydangorusu.com/forum/index.php?action=tags

Invalid use of group function
Dosya: /vhosts/meydangorusu.com/http/forum/Sources/Tags.php
Satır: 106

how can i fix this_?

Hello,

i have same error, what can i do?

Thank you & nice WE

nico
bilgi@meydangorusu.com this is my msn addresse. add me, i will help you.
Title: Re: [Mod] Tagging System
Post by: poorfool on April 17, 2011, 06:47:32 am
Hi,
I just installed it but there is no text on the posting page near the form because im not using english as default,
i dont need to translate it.. just how i can see the original english version on another language set?
the problem other that how is if i touch the source ill f*ck up somewhere when installing other mod or such,
any help?
Title: Re: [Mod] Tagging System
Post by: mmarak524 on April 26, 2011, 12:52:07 pm
I was wondering if you tell me how I can change the cloud to be sort by alpha?  I am not sure what part of the coding controls the displace on the tag link.

 
Title: Re: [Mod] Tagging System
Post by: SMFHacks on April 26, 2011, 12:55:39 pm
Would be in Tags.php in the Sources folder
Title: Re: [Mod] Tagging System
Post by: mmarak524 on April 26, 2011, 01:27:12 pm
Wow that was quick.   ;D


Okay I am looking through that, but I am new to php so I don't know all the language yet.   But from what little I have been able to learn, I would be looking at this section of the code right?

Code: [Select]
SELECT
t.tag AS tag, l.ID_TAG, COUNT(l.ID_TAG) AS quantity
FROM {db_prefix}tags as t, {db_prefix}tags_log as l WHERE t.ID_TAG = l.ID_TAG
  GROUP BY l.ID_TAG
  ORDER BY COUNT(l.ID_TAG) DESC, RAND() LIMIT " .  $modSettings['smftags_set_cloud_tags_to_show']);


would this then work to get it to go in alpha order?

Code: [Select]
SELECT
t.tag AS tag, l.ID_TAG, COUNT(l.ID_TAG) AS quantity
FROM {db_prefix}tags as t, {db_prefix}tags_log as l WHERE t.ID_TAG = l.ID_TAG
  GROUP BY l.ID_TAG
  ORDER BY l.ID_TAG DESC, RAND() LIMIT " .  $modSettings['smftags_set_cloud_tags_to_show']);


Title: Re: [Mod] Tagging System
Post by: SMFHacks on April 26, 2011, 01:32:16 pm
Change
  ORDER BY l.ID_TAG DESC
To
  ORDER BY t.tag ASC
Title: Re: [Mod] Tagging System
Post by: mmarak524 on April 26, 2011, 01:35:38 pm
yea! that worked.  You are so wonderful.  Thank you show much!
Title: Re: [Mod] Tagging System
Post by: 420connect on January 25, 2015, 08:13:55 am
Kept getting "database error" when trying to use your action=modtracker feature..

anyway:

Using this for a while now and really like the features it provides, although I do have 2 Ideas/Suggestions for this Mod..

1) Portal Block Integration
(small version of tag cloud)
can be added to portal block by adding {}show_tagcloud to a PHP block or something similar..

.. I'd personally use this in place of having the whole page for tags.

2) #hashtag feature
- any use of #wordhere gets added to the tag cloud

alike the hashtag feature used in popular social media sites..


Kind Regards
Title: Re: [Mod] Tagging System
Post by: SMFHacks on January 25, 2015, 09:03:40 am
The modtracker should be retired at this point no longer using it.

Check out this post on a portal block I have one built into ezportal but here is one for tinyportal that may work for others as well
http://www.smfhacks.com/index.php/topic,8601.msg37056.html#msg37056


hashtag would be harder would have to scan the post at creation time but it a nice idea to do one day.
Title: Re: [Mod] Tagging System
Post by: 420connect on January 25, 2015, 10:19:27 am
sure thing, re: modtracker (came from SMF.org support thread)

& thanks for the portal block pointer,
I'll play around with the code and see what I can get showing..

re: hashtag
awesome.. I'd consider having this made as a custom mod if the price was right?  ;D
Title: Re: [Mod] Tagging System
Post by: 420connect on January 25, 2015, 10:31:09 am
Hmm, PHP and me don't get on well..  :'(

Could you tweak the below to display the order of most popular rather than A > Z
it also, doesn't seem to have any font size differences on my screen?

Code: [Select]
global $scripturl, $smcFunc;

$result = $smcFunc['db_query']('', '
SELECT t.tag AS tag, l.id_tag, COUNT(l.id_tag) AS quantity
FROM {db_prefix}tags as t, {db_prefix}tags_log as l WHERE t.id_tag= l.id_tag
GROUP BY l.id_tag
ORDER BY t.tag LIMIT {int:limit}',
array('limit' => 10)
);

$tags = array();
$tags2 = array();

while ($row = $smcFunc['db_fetch_assoc']($result))
{
$tags[$row['tag']] = $row['quantity'];
$tags2[$row['tag']] = $row['id_tag'];
}

$smcFunc['db_free_result']($result);

if(count($tags2) > 0)
{
// change these font sizes if you will
$max_size = 100; // max font size in %
$min_size = 100; // min font size in %

// get the largest and smallest array values
$max_qty = max(array_values($tags));
$min_qty = min(array_values($tags));

// find the range of values
$spread = $max_qty - $min_qty;
if (0 == $spread)
{ // we don't want to divide by zero
$spread = 1;
}

// determine the font-size increment
// this is the increase per tag quantity (times used)
$step = ($max_size - $min_size)/($spread);

// loop through our tag array
$poptags = '';
$row_count = 1;
foreach ($tags as $key => $value)
{
$row_count++;
// calculate CSS font-size
// find the $value in excess of $min_qty
// multiply by the font-size increment ($size)
// and add the $min_size set above
$size = $min_size + (($value - $min_qty) * $step);
// uncomment if you want sizes in whole %:
// $size = ceil($size);

// you'll need to put the link destination in place of the #
// (assuming your tag links to some sort of details page)
$poptags .= '<a href="' . $scripturl . '?action=tags;id=' . $tags2[$key] . '" style="font-size: '.$size.'%"';
// perhaps adjust this title attribute for the things that are tagged
$poptags .= ' title="'.$value.' things tagged with '.$key.'"';
$poptags .= '>'.$key.'</a> ';
               
if ($row_count > 1)
{
$poptags .= '<br />';
$row_count =1;
}
}
}
echo  $poptags;

Thank you
Title: Re: [Mod] Tagging System
Post by: SMFHacks on January 25, 2015, 03:31:58 pm
These settings in the code affect font size
   $max_size = 100; // max font size in %
   $min_size = 100; // min font size in %

Change
Code: [Select]
ORDER BY t.tag
To
Code: [Select]
Order by quantity
Title: Re: [Mod] Tagging System
Post by: 420connect on January 25, 2015, 03:46:15 pm
These settings in the code affect font size
   $max_size = 100; // max font size in %
   $min_size = 100; // min font size in %

Change
Code: [Select]
ORDER BY t.tag
To
Code: [Select]
Order by quantity


Hmm


Code: [Select]
global $scripturl, $smcFunc;

$result = $smcFunc['db_query']('', '
SELECT t.tag AS tag, l.id_tag, COUNT(l.id_tag) AS quantity
FROM {db_prefix}tags as t, {db_prefix}tags_log as l WHERE t.id_tag= l.id_tag
GROUP BY l.id_tag
Order by quantity LIMIT {int:limit}',
array('limit' => 10)
);

$tags = array();
$tags2 = array();

while ($row = $smcFunc['db_fetch_assoc']($result))
{
$tags[$row['tag']] = $row['quantity'];
$tags2[$row['tag']] = $row['id_tag'];
}

$smcFunc['db_free_result']($result);

if(count($tags2) > 0)
{
// change these font sizes if you will
$max_size = 100; // max font size in %
$min_size = 50; // min font size in %

// get the largest and smallest array values
$max_qty = max(array_values($tags));
$min_qty = min(array_values($tags));

// find the range of values
$spread = $max_qty - $min_qty;
if (0 == $spread)
{ // we don't want to divide by zero
$spread = 1;
}

// determine the font-size increment
// this is the increase per tag quantity (times used)
$step = ($max_size - $min_size)/($spread);

// loop through our tag array
$poptags = '';
$row_count = 1;
foreach ($tags as $key => $value)
{
$row_count++;
// calculate CSS font-size
// find the $value in excess of $min_qty
// multiply by the font-size increment ($size)
// and add the $min_size set above
$size = $min_size + (($value - $min_qty) * $step);
// uncomment if you want sizes in whole %:
// $size = ceil($size);

// you'll need to put the link destination in place of the #
// (assuming your tag links to some sort of details page)
$poptags .= '<a href="' . $scripturl . '?action=tags;id=' . $tags2[$key] . '" style="font-size: '.$size.'%"';
// perhaps adjust this title attribute for the things that are tagged
$poptags .= ' title="'.$value.' things tagged with '.$key.'"';
$poptags .= '>'.$key.'</a> ';
               
if ($row_count > 1)
{
$poptags .= '<br />';
$row_count =1;
}
}
}
echo  $poptags;

gives this error:

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ORDER BY null
LIMIT 10' at line 4
File: /home/connec31/public_html/forum/Sources/PortalBlocks.php(3587) : eval()'d code
Line: 9
Title: Re: [Mod] Tagging System
Post by: SMFHacks on January 25, 2015, 03:48:22 pm
Guess that part doesn't work.
Title: Re: [Mod] Tagging System
Post by: Web Presence Consulting on February 25, 2017, 09:06:32 am
Just a general comment about the usefulness of this module, its great, been using it for years and studying spider reactions/activity closely reveals that search engines respond well to adding tags to posts, when you combine this module with the Cumulus Congestus module and also tie it in with the Downloads Module keywords feature well its just gravy, I might add that tying it to the other modules is fairly simple... there's also a great hack I picked up years ago on the SMF Support site that displays the board name in the Tags main menu list
Title: Re: [Mod] Tagging System
Post by: Web Presence Consulting on March 15, 2017, 09:50:21 pm
Feature Request: I would be very pleased to see an option in admin to purge the Tags log table of tags that are tied to posts that no longer exist... or possibly add a scheduled task that does this... in using this module over quite a number of years my cloud hover over showing the number of items is not accurate anymore
Title: Re: [Mod] Tagging System
Post by: Nicole on November 11, 2020, 08:55:54 am
Hello, can clickable tags (associated with a topic) also be displayed in messageindex.template.php? I think this would be very handy and I'd throw in USD 10.00 to make this happen. Tags should have a Tags CSS
Title: Re: [Mod] Tagging System
Post by: SMFHacks on November 11, 2020, 08:59:43 am
What do you mean by Tags CSS?
Title: Re: [Mod] Tagging System
Post by: Nicole on November 11, 2020, 04:49:40 pm
I mean like this
Title: Re: [Mod] Tagging System
Post by: Nicole on November 11, 2020, 04:50:36 pm
I attached a jpg file ... not sure if it is showing up?
Title: Re: [Mod] Tagging System
Post by: SMFHacks on November 11, 2020, 06:53:56 pm
I see it. Would need graphic files.
Title: Re: [Mod] Tagging System
Post by: Nicole on November 11, 2020, 07:22:06 pm
I think it is really done through CSS:

<ul class='ipsTags ipsTags_inline ipsList_inline '>
         
            
               
                  


<li >
   <a href="https://www.militaria.co.za/nmb/tags/for%20sale/" class='ipsTag' title="Find other content tagged with 'for sale'" rel="tag"><span>for sale</span></a>
   
</li>
      
Title: Re: [Mod] Tagging System
Post by: SMFHacks on November 11, 2020, 08:45:10 pm
Hmm i don't really know css well
Title: Re: [Mod] Tagging System
Post by: Nicole on November 13, 2020, 06:48:07 pm
Aside from the CSS - could you display the clickable tags associated with a topic in message index template?
Title: Re: [Mod] Tagging System
Post by: SMFHacks on November 13, 2020, 07:08:13 pm
yes it is possible.
Title: Re: [Mod] Tagging System
Post by: Nicole on November 13, 2020, 08:41:58 pm
How much would it be?
Title: Re: [Mod] Tagging System
Post by: SMFHacks on November 14, 2020, 08:07:48 am
I would estimate $25
Title: Re: [Mod] Tagging System
Post by: Nicole on November 14, 2020, 11:07:25 am
I have sent you an eMail
Title: Re: [Mod] Tagging System
Post by: Nicole on November 14, 2020, 11:59:11 am
... to your Gmail address
Title: Re: [Mod] Tagging System
Post by: SMFHacks on November 23, 2020, 05:15:35 pm
4.0
+New setting to show tags on message index underneath topic subject
You can control the number of tags that are shown on message index
+New CSS tag icon option that displays the tags as css tag icons instead of just text.
You can control color of the text and the color of the tag itself


This update requires uninstall of old version to take affect.
Title: Re: [Mod] Tagging System
Post by: Nicole on November 23, 2020, 05:58:50 pm
Hello, is there an online demo?
Title: Re: [Mod] Tagging System
Post by: SMFHacks on November 23, 2020, 06:25:59 pm
There is not.
Title: Re: [Mod] Tagging System
Post by: SizofErsin on January 13, 2021, 07:07:42 pm
SMF 2.1 RC3 için uygun mu?
Title: Re: [Mod] Tagging System
Post by: SMFHacks on January 13, 2021, 08:43:33 pm
No SMF 2.1.x yet