Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43261
Total Topics: 7519
Most Online Today: 297
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 272
Total: 273

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

0 Members and 2 Guests are viewing this topic.

Offline monshou

  • Member
  • *
  • 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: 16436
    • 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

  • Member
  • *
  • 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

  • Member
  • *
  • 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: 16436
    • 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

  • Member
  • *
  • 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

  • Member
  • *
  • 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

  • Member
  • *
  • 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

  • Member
  • *
  • 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: 16436
    • 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

  • Member
  • *
  • 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: 16436
    • 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

  • Member
  • *
  • 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: 16436
    • 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

  • Member
  • *
  • 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
3674 Views
Last post July 06, 2007, 09:06:45 pm
by GenoDemoN
5 Replies
6876 Views
Last post November 09, 2007, 06:39:44 pm
by cru
1 Replies
4035 Views
Last post February 04, 2013, 02:06:54 pm
by SMFHacks
7 Replies
9096 Views
Last post December 11, 2013, 01:20:36 am
by Zavoolon
2 Replies
5649 Views
Last post October 21, 2013, 12:05:37 pm
by insider

+- Recent Topics

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
Today at 08:27:36 am

No thumbnails on new uploads by Tonyvic
Today at 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Powered by EzPortal