Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12349
Latest: SUCCESSForum
New This Month: 1
New This Week: 1
New Today: 1
Stats
Total Posts: 40048
Total Topics: 7051
Most Online Today: 36
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 35
Total: 35

Author Topic: [Mod] Tagging System  (Read 117160 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: 15029
    • 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: 15029
    • 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: 15029
    • 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: 15029
    • 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: 15029
    • 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
2772 Views
Last post July 06, 2007, 09:06:45 pm
by GenoDemoN
5 Replies
5068 Views
Last post November 09, 2007, 06:39:44 pm
by cru
1 Replies
2287 Views
Last post February 04, 2013, 02:06:54 pm
by SMFHacks
7 Replies
7019 Views
Last post December 11, 2013, 01:20:36 am
by Zavoolon
2 Replies
3037 Views
Last post October 21, 2013, 12:05:37 pm
by insider

+- Recent Topics

[Mod]Avatars Display Integration by SMFHacks
February 15, 2020, 07:30:47 pm

[Mod]BBC Message Boxes 1.0 by SMFHacks
February 15, 2020, 07:26:46 pm

[Mod]Stack Trace by live627 by SMFHacks
February 15, 2020, 07:21:33 pm

Stripe Integration by SMFHacks
February 08, 2020, 10:55:29 pm

SMF Store 4.0 Released by SMFHacks
January 26, 2020, 12:11:56 pm

Order of photos by D4611001
January 21, 2020, 12:06:36 pm

Cannot install by SMFHacks
January 18, 2020, 09:40:56 pm

Call to undefined function mysql_query() by SMFHacks
January 18, 2020, 02:06:47 pm

English British Translation file by HAL9000
January 17, 2020, 05:44:28 pm

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

Powered by EzPortal