News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Tagging System For Topics

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

Previous topic - Next topic

Flying Drupalist

Quote from: TrueSatan on August 06, 2007, 04:19:13 AM
If by that you mean upgrading this mod from an earlier version to the current one...uninstall the earlier version and install the current one...your database holds the tags you have set and that won't be affected by the alteration.

Sadly I can't uninstall it. I need some instructions to do it manually. There's no uninstall button on my package manager, it's under the category of Modification Packages — unknown using Daniel 15's package sorter.

TrueSatan

The official SMF documentation contains help on installing mods manually...you would need to reverse the process outlined therein:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531

Doughboy

I'm having a slight problem with new posts with this mod.  I was getting this error -

QuoteYou 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 1
File: /home/doughboy/public_html/forum/Sources/Post.php
Line: 1730

Well it pointed to this code -

Quote//Get how many tags there have been for the topic
      $dbresult = db_query("SELECT COUNT(*) as total FROM {$db_prefix}tags_log WHERE ID_TOPIC = " . $topic, __FILE__, __LINE__);
      $row = mysql_fetch_assoc($dbresult);
      $totaltags = $row['total'];
      mysql_free_result($dbresult);

To see what would happen I removed the code and found I could post again.  I want to put the code back in because it generates tag count errors in my forum error log.  Any ideas?

Stargater59

Just like to say that I love this mod. I don't know what it is, but there's just something about this mod that just makes me happy..

Thank you :)

Ricky.

Sadly.. this mod works perfectly at my place. but

It is not modifiying RSS feed ie. tags are not included in feed of Board.

Murat KAYA

#165
##############################################
####    SMF TAG HACKS FULL SEO&SEF SUPPORT####
####    Version 1.0 Beta        ####
####    Murat KAYA                      ####
####    hxxp:www.sectitweb.net [nonactive]     ####
####    hxxp:www.joomlatr.org [nonactive]        ####
##############################################
##############################################

For English :


DEMO URL #1 : hxxp:www.joomlatr.org/forum/tags/ [nonactive]
DEMO URL #2 : hxxp:www.sectitweb.net/sectitsmf/tags/ [nonactive]

[PREPARATION]

This mod will work just if you have already installed SEO4SMF and SMF TAGS.

You can downlod your SEO4SMF copy from : http://custom.simplemachines.org/mods/index.php?mod=518
You can download your SMF TAGS from : hxxp:www.smfhacks.com [nonactive]

After complated insallation of these two MOD's, Go to Admin Panel and find Seo4SMF Admin;
Be sure "Beautifying url for forum actions ?" option is CHECKED! If not, SEO for TAGGING SYSTEM WILL NOT WORK!

En of preparation.....

[INSTALATION]

1. Unrar frist ( Use Winrar or etc...)
2. There will be three files; "Subs-Seo4SMF.php", "Tags.template.php" and ".htaccess"
3. Edit .htaccess with Notepad and change RewriteBase /sectitsmf to RewriteBase/!!YOUR FORUM DIRECTORY!!!
4. Save and upload .htaccess your forum directory.
5. Upload Subs-Seo4SMF.php to Sources directory of your forum (Backup yours please before overwrite!)
6. upload "Tags.template.php" to YOUR THEME FOLDER (overwrite with this)

[FINISH]

Türkçe :


[ÖN HAZIRLIK]

Bu Hack/Mod sadece Seo4SMF ve SMF TAGS (Smf Tagging System) forumunuzda kurulu ise çalışır.

Seo4SMF indirmek için : http://custom.simplemachines.org/mods/index.php?mod=518
SMF TAGS indirmek için : hxxp:www.smfhacks.com [nonactive]

Bu iki modu sırasıyla kurduktan sonra, admin paneline gidin ve SeoSMF Admin linkine tıklayın;
"Beautifying url for forum actions ?" parametresinin İŞARETLENMİŞ olduğundan emin olun, değil ise işaretleyin.

Ön hazırlık bitti...



[KURULUM]

1. Dosyaları bir dizine açın (Winrar kullanabilirsiniz)
2. Dizine 3 adet dosya açılacak; Subs-Seo4SMF.php", "Tags.template.php" ve ".htaccess"
3. ".htaccess" dosyasını Notepad ile açın ve RewriteBase /sectitsmf yazan yeri RewriteBase/FORUM_KLASÖRÜNÜZÜ YAZIN
şeklinde değiştirin
4. Kayıt edin ve .htaccess dosyasını FORUM DİZİNİNE gönderin. ( Üstüne yazın )
5. "Subs-Seo4SMF.php" dosyasını (Seo4SMF kurulu olmalı) Sources klasörüne gönderin (önce yedeğini alıp sonra Üstüne yazın)
6. "Tags.template.php" dosyanızı tema klasörüne gönderin ( Üstüne yazın)

[BİTTİ]

Murat KAYA

Merhabalar,

Kodda dün bir sorun farkettim, kusuruma bakmayın;

Sub-Seo4SMF.php dosyasında aşağıdaki satır ;
$find_sa = strstr($other, "sa=admin");  // CHECKING IF ADMIN MODE CALLED ???

Bu şekilde olması gerekiyor ;

$find_sa = strstr($other, "sa=");  // CHECKING IF ADMIN MODE OTHERS ETC... CALLED ???

Dosya güncellenmiştir, yeni dosyaları üstüne yazarsanız sorun çıkmayacaktır.

-----------------------

Hello,

I noticed yesterday some code error, Please update your files or change manual with this codes;

Find in Sub-Seo4SMF.php;
$find_sa = strstr($other, "sa=admin");  // CHECKING IF ADMIN MODE CALLED ???

Replace with this ;

$find_sa = strstr($other, "sa=");  // CHECKING IF ADMIN MODE OTHERS ETC... CALLED ???

Notice  : All files updated and attached again, if you dont want to edit just download .rar and overwrite old files

rockinaway

I got a wierd problem with this mod. When I add tags when submitting a new topic these tags are not added, however they are added if I add them manually in topic view..
Have I helped you? Then please join AdminFuel - The forum for forum administrators.

If you need help managing your forum, or maybe launching it, then visit us and view the quality articles, downloads and posts.

lwbbs

The mods can't work in East Asian UTF8 Language. When you try to add a tag, you will get the following error:
Illegal mix of collations (latin1_general_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='

To solve this issue, you need change the tables. Or before you install it, change the tagsql.php file:


<?php//SMFHacks.com//Table SQLglobal $db_character_set;if ($db_character_set == "utf8"){    $char_set = " DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci";}//Create Tags Tabledb_query("CREATE TABLE IF NOT EXISTS `{$db_prefix}tags`(`ID_TAG` mediumint([img alt=8)]http://www.simplemachines.org/community/Smileys/simple/cool.gif[/img] NOT NULL auto_increment,`tag` tinytext NOT NULL,approved tinyint(4) NOT NULL default '0',PRIMARY KEY  (`ID_TAG`)) TYPE=MyISAM $char_set", __FILE__, __LINE__);//Create Tags Logdb_query("CREATE TABLE IF NOT EXISTS `{$db_prefix}tags_log`(`ID` int(11) NOT NULL auto_increment,`ID_TAG` mediumint([img alt=8)]http://www.simplemachines.org/community/Smileys/simple/cool.gif[/img] unsigned NOT NULL default '0',ID_TOPIC mediumint([img alt=8)]http://www.simplemachines.org/community/Smileys/simple/cool.gif[/img] unsigned NOT NULL,`ID_MEMBER` mediumint([img alt=8)]http://www.simplemachines.org/community/Smileys/simple/cool.gif[/img] unsigned NOT NULL default '0',PRIMARY KEY  (`ID`)) TYPE=MyISAM $char_set", __FILE__, __LINE__);//Insert the settingsdb_query("REPLACE INTO {$db_prefix}settings VALUES ('smftags_set_mintaglength', '3')", __FILE__, __LINE__);db_query("REPLACE INTO {$db_prefix}settings VALUES ('smftags_set_maxtaglength', '30')", __FILE__, __LINE__);db_query("REPLACE INTO {$db_prefix}settings VALUES ('smftags_set_maxtags', '10')", __FILE__, __LINE__);?>

Cheap Domain & Hosting
http://www.hostdomainzone.com [nofollow]

taurean

for a custom theme Dana in TP  how to edit/create tags for existing posts.

using TP 0.98 and SMF 1.1.4
Eager to Learn SMF

cru

#170
how's  support doin here? i like this mod!

lwbbs

Suggestion:

If the tagging system is installed before the TinyPortal v0.9.8.
TinyPortal v0.9.8 will fail. Because the following operation.
<file name="$themedir/index.template.php">
    <operation>
        <search position="before"><![CDATA[$current_action = 'admin';
    if (in_array($context['current_action'], array(]]></search>
        <add><![CDATA['tags',]]></add>
    </operation>
             

This conflict can be solved by manually modified the code.
If Tagging system can change the code to the following:

<file name="$themedir/index.template.php">
    <operation>
        <search position="before"><![CDATA[$current_action = 'admin';
    if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm']]></search>
        <add><![CDATA[, 'tags']]></add>
    </operation>


The conflict will be solved if TinyPortal v0.9.8 remove two ")))" in tinyportal09x-11x.mod file
(lines 307 and 310).
From:

<search for>
    if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))
</search for>
<replace>
    if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm', 'forum', 'tpadmin')))
</replace>


to:

<search for>
    if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm'
</search for>
<replace>
    if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm', 'forum', 'tpadmin'
</replace>


Cheap Domain & Hosting
http://www.hostdomainzone.com [nofollow]

cru

#172
1..hi,   i would like the delete "x" and "add tag" icons not to show to every member. although other members cannot add or delete tags on another member's topic, i want these icons to show only to the owner of the post.

2. while in the text editor, i would like to change

QuoteTags:_____________________________

to

QuoteTags/Keywords:________________________

which file will i  edit? thanks.

TIA

taurean

if guests have no permissions to add tags/post and only admin has how to edit the old posts to add tags
Eager to Learn SMF

cru


Mr.CoWbOy

Modifications.english.php

find : Tags and replace it :)

cru

thanks Mr cowboy!

how about this one?
Quote1..hi,   i would like the  "x" and "add tag" icons not to show to every member. although other members cannot add or delete tags on another member's topic, i want these icons to show only to the owner of the post, and the administrator.

TIA

Mr.CoWbOy

you'r weLcome :)

Check permissions for it..

i think it will be there ;)

and if any1 wanna change
  • button with an icon look here ;



    find this in display.template.php ;

    echo '<a href="' . $scripturl . '?action=tags;sa=deletetag;id=' . $tag['ID']  . '"><font color="#FF0000">[X]</font></a>&nbsp;';

    replace with this ;

    echo '<a href="' . $scripturl . '?action=tags;sa=deletetag;id=' . $tag['ID']  . '"><img src="http://www.srotr.com/Themes/wchild/images/kapat.gif"></a>&nbsp;';

dreadu

ok, can anyone tell me where can i change perrmisions for taggin? my members have "You are not allowed to add tags to that topic" error.

also is that me, or is it normal that we can add only one tag a time? commas don't work.

vbgamer45

Quote from: dreadu on November 04, 2007, 08:32:14 AM
ok, can anyone tell me where can i change perrmisions for taggin? my members have "You are not allowed to add tags to that topic" error.

also is that me, or is it normal that we can add only one tag a time? commas don't work.
Admin -> Permissions modify each group.
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

Advertisement: