SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
February 10, 2012, 06:17:36 pm

Login with username, password and session length
Members
Total Members: 9904
Latest: toytoy5555
Stats
Total Posts: 27798
Total Topics: 4859
Online Today: 79
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 0
Guests: 58
Total: 58
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
| | | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: 1 ... 3 4 [5] 6 7 Go Down Print
Author Topic: [Mod] Tagging System  (Read 65473 times)
joecool85
Newbie
*
Offline Offline

Posts: 6


View Profile
« 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.
Logged
joecool85
Newbie
*
Offline Offline

Posts: 6


View Profile
« 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?
Logged
falguni1
Newbie
*
Offline Offline

Posts: 2


View Profile
« Reply #62 on: February 02, 2008, 01:46:31 am »

if separated by space you cannot tag with two words "best laptop".
Logged
joecool85
Newbie
*
Offline Offline

Posts: 6


View Profile
« 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
Logged
RusHacker
Newbie
*
Offline Offline

Posts: 2


View Profile
« 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:
//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:
$tag = trim($tag);
SMFHack, read PM, please
Logged
RusHacker
Newbie
*
Offline Offline

Posts: 2


View Profile
« Reply #65 on: February 13, 2008, 03:46:53 am »

SMFHacks, really need your word about roadmap of great this mod Smiley
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
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9399


View Profile
« 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.
Logged
joecool85
Newbie
*
Offline Offline

Posts: 6


View Profile
« 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?
Logged
setec
Newbie
*
Offline Offline

Posts: 1


View Profile
« 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!
Logged
deve
Newbie
*
Offline Offline

Posts: 2


View Profile
« 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 ?
Logged
deve
Newbie
*
Offline Offline

Posts: 2


View Profile
« Reply #70 on: June 01, 2008, 06:32:26 am »

nobody an answer for this problem ?
Logged
b_1332
Newbie
*
Offline Offline

Posts: 1


View Profile
« 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:
$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:
// 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:
  <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.   Smiley
« Last Edit: June 11, 2008, 03:35:39 pm by b_1332 » Logged
harmsway
Newbie
*
Offline Offline

Posts: 1


View Profile
« 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?
Logged
trench
Newbie
*
Offline Offline

Posts: 1


View Profile
« 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.
Logged
sudhakar
Newbie
*
Offline Offline

Posts: 3


View Profile
« 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.
Logged
Pages: 1 ... 3 4 [5] 6 7 Go Up Print 
« previous next »
Jump to:  

Recent
[Today at 03:36:31 pm]

[Today at 02:42:09 pm]

[Today at 02:23:51 pm]

[Today at 10:26:45 am]

[February 09, 2012, 05:30:55 pm]

by exit
[February 09, 2012, 04:47:13 pm]

[February 08, 2012, 09:09:16 pm]

[February 08, 2012, 09:11:02 am]

[February 08, 2012, 09:07:32 am]

[February 08, 2012, 03:46:49 am]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.16 | SMF © 2006-2011, Simple Machines LLC
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 4.813 seconds with 21 queries.