Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43295
Total Topics: 7523
Most Online Today: 230
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 203
Total: 203

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

0 Members and 2 Guests are viewing this topic.

Offline joecool85

  • Member
  • *
  • Posts: 6
    • View Profile
Re: [Mod] Tagging System
« Reply #60 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.

Offline joecool85

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

Offline falguni1

  • Member
  • *
  • Posts: 2
    • View Profile
Re: [Mod] Tagging System
« Reply #62 on: February 02, 2008, 01:46:31 am »
if separated by space you cannot tag with two words "best laptop".

Offline joecool85

  • Member
  • *
  • Posts: 6
    • View Profile
Re: [Mod] Tagging System
« Reply #63 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

Offline RusHacker

  • Member
  • *
  • Posts: 2
    • View Profile
Re: [Mod] Tagging System
« Reply #64 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

Offline RusHacker

  • Member
  • *
  • Posts: 2
    • View Profile
Re: [Mod] Tagging System
« Reply #65 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

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: [Mod] Tagging System
« Reply #66 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.
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 joecool85

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

Offline setec

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

Offline deve

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

Offline deve

  • Member
  • *
  • Posts: 2
    • View Profile
Re: [Mod] Tagging System
« Reply #70 on: June 01, 2008, 06:32:26 am »
nobody an answer for this problem ?

Offline b_1332

  • Member
  • *
  • Posts: 1
    • View Profile
Re: [Mod] Tagging System
« Reply #71 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.   :)
« Last Edit: June 11, 2008, 03:35:39 pm by b_1332 »

Offline harmsway

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

Offline trench

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

Offline sudhakar

  • Member
  • *
  • Posts: 6
    • View Profile
Re: [Mod] Tagging System
« Reply #74 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.

 

Related Topics

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

+- Recent Topics

Please Help! by SMFHacks
April 17, 2024, 08:04:55 am

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 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

Powered by EzPortal