Tagging System For Topics

Started by SMFHacks.com Team, December 19, 2006, 10:59:20 AM

Previous topic - Next topic

bullbreedluverz

Quote from: vbgamer45 on January 18, 2009, 03:57:46 PM
If you need paid support assistance let me know.

There are settings that control the size of tags under settings

its ok now i worked out the problem

NightBird

I really do need help in figuring out why the code quoted in the instructions for this mod is causing the error it is. I've continued to work with it, and am not getting anywhere. This is the first time that I've had problems like this in using the code provided with a mod, and it's tremendously frustrating.

I sent a PM to vbgamer45 asking for how much paid support would run, but haven't heard back. I'm going to open the offer now to anyone reading this. Please send me a PM with how much you would charge to fix whatever's causing the error described two messages above.
(http://www.simplemachines.org/community/index.php?topic=135761.msg1884738#msg1884738)

I will accept the first reasonable offer and make whatever the agreed payment would be through PayPal.

vbgamer45

Find

<a name="lastPost"></a>

Change to

<a name="lastPost"></a>';
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

NightBird

#343
Awesome! Thank you! I kept going over and over and over what was inside the code for the tagging system. It never occurred to me to look just above what I'd inserted.

You, sir, rock.

(and a donation was just sent via PayPal)

vbgamer45

Quote from: NightBird on January 21, 2009, 11:30:10 PM
Awesome! Thank you! I kept going over and over and over what was inside the code for the tagging system. It never occurred to me to look just above what I'd inserted.

You, sir, rock.

(and a donation was just sent via PayPal)
Thanks so much. First donation of the year!! w00t
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

NightBird

My pleasure! It's completely deserved. I'm thrilled to add this functionality to my site. It's a cooperative writing/roleplaying forum, so this will give a great way for people to find things by genre or content tags. I think it's one of the best enhancements I've been able to offer to date.

glennk


neilbombd

#347
Please, can someone tell me how to edit this mod so that the taggers for each tag are easily stored?  I just need the user ID of each tagger stored somewhere so it's easier to find out who tagged what.  I'd really really massively appreciate it, and I can't imagine it would take that much work.  Thank you.

vbgamer45

Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

glennk

It would be very useful VB Gamer. How easy would it be for a non coder to create this ?

What I want to do is use feedburner to put a list of the 5 most recent topics for 1 particular tag on my sites static html homepage. I dont have my forum in individual boards and rely on tags to identify particular keyword/topics.

Dzonny


vbgamer45

Quote from: glennk on February 01, 2009, 05:31:05 AM
It would be very useful VB Gamer. How easy would it be for a non coder to create this ?

What I want to do is use feedburner to put a list of the 5 most recent topics for 1 particular tag on my sites static html homepage. I dont have my forum in individual boards and rely on tags to identify particular keyword/topics.
It would be hard to do you need to know how to code.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

glennk

OK no worries, Its a great mod anyway but it would have been nice to have the use of RSS.

Keep up the good work.

Best wishes - Glenn

Kimmie_O

#353
I've just installed this mod and am having an issue when I click on the Tags tab. I get the message:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 5
File: /var/www/users/ltetr/Sources/Tags.php
Line: 104

The code in question is:

ORDER BY l.ID DESC LIMIT " . $modSettings['smftags_set_cloud_tags_to_show'], __FILE__, __LINE__);


Any help? I know nothing about .php.

Thanks!

ETA: I'm using MySQL 5.0.45

L'AltroWeb

#354
I have test this mod but now i've removed cause to more validation issue!
Can you test to fix?
Validation Output:  14 Errors

   1. Error Line 1327, Column 6: end tag for "td" omitted, but OMITTAG NO was specified.

      </form>

      ✉

      You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
   2. Info Line 1278, Column 3: start tag was here.

      <td class="windowbg">

   3. Error Line 1327, Column 6: end tag for "tr" omitted, but OMITTAG NO was specified.

      </form>

      ✉

      You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
   4. Info Line 1277, Column 3: start tag was here.

      <tr>

   5. Error Line 1327, Column 6: end tag for "table" omitted, but OMITTAG NO was specified.

      </form>

      ✉

      You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
   6. Info Line 1276, Column 23: start tag was here.

      <a name="lastPost"></a><table width="100%" cellpadding="0" cellspacing="0" borde

   7. Error Line 1327, Column 7: XML Parsing Error: Opening and ending tag mismatch: td line 1278 and form.

      </form>

      ✉
   8. Error Line 1735, Column 8: XML Parsing Error: Opening and ending tag mismatch: tr line 1277 and td.

      </td>

      ✉
   9. Error Line 1736, Column 7: XML Parsing Error: Opening and ending tag mismatch: table line 1276 and tr.

      </tr>

      ✉
  10. Error Line 1737, Column 9: XML Parsing Error: Opening and ending tag mismatch: form line 389 and table.

      </table>

      ✉
  11. Error Line 1739, Column 12: XML Parsing Error: Opening and ending tag mismatch: td line 342 and div.

            </div>

      ✉
  12. Error Line 1758, Column 9: XML Parsing Error: Opening and ending tag mismatch: tr line 198 and div.

         </div>

      ✉
  13. Error Line 1759, Column 7: XML Parsing Error: Opening and ending tag mismatch: table line 197 and body.

      </body></html>

      ✉
  14. Error Line 1759, Column 14: XML Parsing Error: Opening and ending tag mismatch: div line 196 and html.

      </body></html>

      ✉
  15. Error Line 1759, Column 14: XML Parsing Error: Premature end of data in tag div line 156.

      </body></html>

      ✉
  16. Error Line 1759, Column 14: XML Parsing Error: Premature end of data in tag body line 63.

      </body></html>

      ✉
  17. Error Line 1759, Column 14: XML Parsing Error: Premature end of data in tag html line 2.

      </body></html>
Now (after uninstall) my forum is perfeclty w3c valid.

tsmalmbe

I had to change this: allowedTo('smftags_add')

to this: allowedTo('smftags_manage')

To have the permission in the Display.template.

Am I missing something regarding the permission? Is it used somewhere else?

I will also try to change the permissions so that topic owners by default are the only ones allowed to manage tags, and then using permission I would also allow other groups to (like moderators/administrators) to remove and add tags.

Does this make sense?
..:: http://www.kontrollrummet.com - Studio och musik ::.. RSS?

tsmalmbe

Without totally understanding the 'allowedTo'-thing in my last post, I did the following change:

// Tagging System
echo '<table class="tborder" width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="windowbg">
<b>', $txt['smftags_topic'] , '</b>';

foreach ($context['topic_tags'] as $i => $tag)
{
echo '<a href="' . $scripturl . '?action=tags;tagid=' . $tag['ID_TAG']  . '">' . $tag['tag'] . '</a>&nbsp;';
if($context['user']['started'] || allowedTo('smftags_manage'))
echo  '<a href="' . $scripturl . '?action=tags;sa=deletetag;tagid=' . $tag['ID']  . '"><font color="#FF0000">[X]</font></a>&nbsp;';

}

global $topic;
if($context['user']['started'] || allowedTo('smftags_manage'))
echo '
&nbsp;<a href="' . $scripturl . '?action=tags;sa=addtag;topic=',$topic, '">' . $txt['smftags_addtag'] . '</a>';

echo '
</td>
</tr>
</table>';

//End Tagging System


Which allows the owner of the topic full control, and any specific group I decide to give the 'manage'-right to.

Comments are welcome.
..:: http://www.kontrollrummet.com - Studio och musik ::.. RSS?

Kimmie

When a thread is deleted and the tag is not removd, it causes problems on the forum because the tag still lingers on the DB. I need to know where the "cached tags" are stored so I can delete them from the DB. I hae checked both smf_tags and smf_tags_log and they are in neither which means it caches them in a different table.




When I tell SMF to "fix" the errors, its idea of fixing it is putting the entire thread back on the forum - which you would think would be ok because I could then just remove the tag and then delete the thread - only the tag is no longer on the thread when it gets put back on the site. When I run forum maintenance again, it says those same cached words are causing errors which means they are still on there somewhere.

I also need you to put version 1.0.5 back up on the mod page so I can run it through the parser. Once I get all these other problems cleared up with it, I want the entire mod removed and I cant do that without parsing the mod because I am getting some test faileds on some of the files so I need to know the exact codes to remove. (you really shouldnt remove older versions of mods because people still use them  ;))

Thanks.

d1337r

Help please, when I click '[Add Tag]' on topics, I get a blank screen. (SMF 2.0 RC1, default theme)

NightBird

I see there has been some discussion about permissions, but I'm rather embarrassed to admit that I can't tell if any of the information above would help with my problem. Would someone please let me know how to fix what I'm dealing with or point me to where it's covered above?

What's happening for me is that only I, the admin, can see the 'Add Tag' text. I have two site mods who have been given permission, and they cannot see the 'Add Tag' text, nor can any of the regular members see the 'Add Tag' text on threads they created.

How do I fix this?

Many thanks!

  ~ NB

Advertisement: