Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 12424
Latest: serbenfiquista
New This Month: 5
New This Week: 2
New Today: 1
Stats
Total Posts: 40023
Total Topics: 7044
Most Online Today: 103
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 21
Total: 21

Author Topic: [Mod] Tagging System  (Read 116893 times)

0 Members and 1 Guest are viewing this topic.

Offline monshou

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: [Mod] Tagging System
« Reply #15 on: January 27, 2007, 03:41:59 am »
Is there any way to display the last X tagged posts through SSI.php?
thx
« Last Edit: January 27, 2007, 03:55:55 am by monshou »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15013
    • View Profile
Re: [Mod] Tagging System
« Reply #16 on: January 27, 2007, 08:36:39 am »
Not yet.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline podarok

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: [Mod] Tagging System
« Reply #17 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(((

Offline soMzE

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: [Mod] Tagging System
« Reply #18 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!

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15013
    • View Profile
Re: [Mod] Tagging System
« Reply #19 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.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline soMzE

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: [Mod] Tagging System
« Reply #20 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?

Offline soMzE

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: [Mod] Tagging System
« Reply #21 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?

Offline soMzE

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: [Mod] Tagging System
« Reply #22 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?  :)
« Last Edit: February 28, 2007, 02:34:52 pm by soMzE »

Offline technoworldinc.com

  • Newbie
  • *
  • Posts: 14
    • View Profile
Unable to Uninstall..Please Help
« Reply #23 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

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15013
    • View Profile
Re: [Mod] Tagging System
« Reply #24 on: March 01, 2007, 01:46:51 pm »
Need to edit index.template.php and remove the code.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline nyndnpa

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: [Mod] Tagging System
« Reply #25 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

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15013
    • View Profile
Re: [Mod] Tagging System
« Reply #26 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.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline majo

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: [Mod] Tagging System
« Reply #27 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 ?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15013
    • View Profile
Re: [Mod] Tagging System
« Reply #28 on: March 19, 2007, 08:23:46 pm »
That would be Display.template.php
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline majo

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: [Mod] Tagging System
« Reply #29 on: March 20, 2007, 07:32:44 am »
Yeah I removed all according to installation package xml, works now ;D

 

Related Topics

  Subject / Started by Replies Last post
0 Replies
2765 Views
Last post July 06, 2007, 09:06:45 pm
by GenoDemoN
5 Replies
5061 Views
Last post November 09, 2007, 06:39:44 pm
by cru
1 Replies
2278 Views
Last post February 04, 2013, 02:06:54 pm
by SMFHacks
7 Replies
7013 Views
Last post December 11, 2013, 01:20:36 am
by Zavoolon
2 Replies
3014 Views
Last post October 21, 2013, 12:05:37 pm
by insider

+- Recent Topics

English British Translation file by HAL9000
Today at 05:44:28 pm

Characters dispayed as boxes by SMFHacks
January 16, 2020, 07:21:51 am

Multiple adds where one used to be? by SMFHacks
January 07, 2020, 08:20:38 am

Ribbon Theme Logo Position by slizzie1986
January 06, 2020, 08:52:31 pm

System enhancement? by SMFHacks
January 03, 2020, 09:22:45 am

Pretty Url Pro Is it compatible with 7.2? by Rock Lee
January 01, 2020, 08:53:50 pm

Order of photos by SMFHacks
December 29, 2019, 02:02:28 pm

SMF Cookie Change Compatibly by HDB
December 28, 2019, 03:33:49 pm

With SMF 2.0.16 being newly released is GDPR Pro a Better Tool? by HDB
December 28, 2019, 11:21:44 am

can the admin add banners manually? by MW
December 27, 2019, 04:08:39 pm

Powered by EzPortal