News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Tagging System For Topics

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

Previous topic - Next topic

vbgamer45

Good ideas will add them to the next version
Community Suite for SMF - Take your forum to the next level built for 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

Vandaahl

Does this mod only work on topics or does it also work on individual messages?

jacbier


Kender

i am using createPost() from an external page not in the forum

what do i need to add to this to make it also add tags?
http://chucknorris2012.com  Avoid a roundhouse kick to the head!  Sign the petition

Bazil Greyson

#204
Is there any way that I can remove the ability to add tags from everyone BUT the tag admins? In other words make it so users can not add tags to their own posts.

Also, is there a way to add a "Most Popular Topics by Tags" statistic to the "User Statistics" panel?


*edit to ask another question before any responses were added*

vbgamer45

You can setup permissions for each membergroup and disallow any non admin to not allow them to add tags.
Community Suite for SMF - Take your forum to the next level built for 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

Bazil Greyson

Quote from: vbgamer45 on April 06, 2008, 01:35:13 PM
You can setup permissions for each membergroup and disallow any non admin to not allow them to add tags.

I have, however that only affects members ability to alter or add tags to other posts. They can still add tags when ever they start a new topic.

vbgamer45

Quote from: Bazil Greyson on April 06, 2008, 08:54:23 PM
Quote from: vbgamer45 on April 06, 2008, 01:35:13 PM
You can setup permissions for each membergroup and disallow any non admin to not allow them to add tags.

I have, however that only affects members ability to alter or add tags to other posts. They can still add tags when ever they start a new topic.
Which version of SMF are you running?
Community Suite for SMF - Take your forum to the next level built for 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

Bazil Greyson

SMF 1.1.4

Under...

Permissions > Regular Members


This is the only options for tags...

SMF Tags
Manage Tags    [ ]

vbgamer45

Added some new permissions for SMF 2.0 beta 3.  for the tagging system might added to the SMF 1.1.x version as well.
Community Suite for SMF - Take your forum to the next level built for 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

Bazil Greyson

#210
Quote from: vbgamer45 on April 06, 2008, 09:35:38 PM
Added some new permissions for SMF 2.0 beta 3.  for the tagging system might added to the SMF 1.1.x version as well.

Ahh, ok. Guess I will need to figure out how to fix it in the code then. I am using Tiny Portal and from the info I can gather from them.. they are NOT doing a version for SMF 2.0 for a very long time.

*edit for extra info*
In the Themes > Default > Posttemplate.php.. I find the following

//Tagging system Mod
if(!isset($context['num_replies']))
{
echo '
<tr>
<td align="right">
<b>', $txt['smftags_topic'], '</b></td>
<td>
<input type="text" name="tags"', ' tabindex="', $context['tabindex']++, '" size="80" maxlength="80" />
<br /><span class="smalltext">', $txt['smftags_seperate'], '</span>
</td>
</tr>';

}


//End Tagging system mod


What can I add to that to make it only recgonize a particular member ID number, or group ?

viulian

I have an issue with one of the tables created by this mod. I'm running SMF 1.1.4 with the mod's latests version. I do regular backups, and from time to time I import them just to make sure everything is ok :)

The backup the forum generates is:

#
# Table structure for table `lovetime_tags_log`
#

DROP TABLE IF EXISTS `lovetime_tags_log`;

CREATE TABLE `lovetime_tags_log` (
  ID int(11) NOT NULL auto_increment,
  ID_TAG mediumint(8) unsigned NOT NULL default 0,
  ID_TOPIC mediumint(8) unsigned NOT NULL default '',
  ID_MEMBER mediumint(8) unsigned NOT NULL default 0,
  PRIMARY KEY (ID)
) TYPE=MyISAM;


The error is at the ID_TOPIC line, where the default value is '' instead of 0.


ERROR 1067 (42000) at line 539594: Invalid default value for 'ID_TOPIC'


MySQL is: Server version: 5.0.51a

It's not a problem, I can edit that line no problem (vi rules at instantly checking a line number, I never saw another windows text editor able to handle a 90Mb text file :D)

Thanks,

vbgamer45

Quote from: viulian on April 22, 2008, 02:42:00 PM
I have an issue with one of the tables created by this mod. I'm running SMF 1.1.4 with the mod's latests version. I do regular backups, and from time to time I import them just to make sure everything is ok :)

The backup the forum generates is:

#
# Table structure for table `lovetime_tags_log`
#

DROP TABLE IF EXISTS `lovetime_tags_log`;

CREATE TABLE `lovetime_tags_log` (
  ID int(11) NOT NULL auto_increment,
  ID_TAG mediumint(8) unsigned NOT NULL default 0,
  ID_TOPIC mediumint(8) unsigned NOT NULL default '',
  ID_MEMBER mediumint(8) unsigned NOT NULL default 0,
  PRIMARY KEY (ID)
) TYPE=MyISAM;


The error is at the ID_TOPIC line, where the default value is '' instead of 0.


ERROR 1067 (42000) at line 539594: Invalid default value for 'ID_TOPIC'


MySQL is: Server version: 5.0.51a

It's not a problem, I can edit that line no problem (vi rules at instantly checking a line number, I never saw another windows text editor able to handle a 90Mb text file :D)

Thanks,
Fixed thanks for the report.
Community Suite for SMF - Take your forum to the next level built for 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

Apllicmz

nice Mod..
thank translate Portuguese..

<file name="$languagedir/Modifications.portuguese.php" error="skip">
<operation error="ignore">
<search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[
//Begin Tagging System Text Strings
$txt['smftags_menu'] = 'Tags';
$txt['smftags_admin'] = 'Tags Configurações';

$txt['smftags_addtag'] = '[Add Tag]';
$txt['smftags_seperate'] = 'Separe cada tag por uma vírgula';

$txt['smftags_topic'] = 'Tags: ';
$txt['permissiongroup_smftags'] = 'SMF Tags';
$txt['permissionname_smftags_suggest'] = 'Tags Sugerir';
$txt['permissionhelp_smftags_suggest'] = 'Os usuários podem sugerir para adicionar tags';
$txt['cannot_smftags_suggest'] = 'Você não está autorizado a sugerir tags.';

$txt['permissionname_smftags_manage'] = 'Gerenciar Tags';
$txt['permissionhelp_smftags_manage'] = 'Os membros podem modificar as definições de tag e adicionar e remover tags';
$txt['cannot_smftags_manage'] = 'Você não está autorizado a gerir tags.';
//END  Tagging System Strings
]]></add>
</operation>
</file>

<file name="$languagedir/Modifications.brazilian.php" error="skip">
<operation error="ignore">
<search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[
//Begin Tagging System Text Strings
$txt['smftags_menu'] = 'Tags';
$txt['smftags_admin'] = 'Tags Configurações';

$txt['smftags_addtag'] = '[Add Tag]';
$txt['smftags_seperate'] = 'Separe cada tag por uma vírgula';

$txt['smftags_topic'] = 'Tags: ';
$txt['permissiongroup_smftags'] = 'SMF Tags';
$txt['permissionname_smftags_suggest'] = 'Tags Sugerir';
$txt['permissionhelp_smftags_suggest'] = 'Os usuários podem sugerir para adicionar tags';
$txt['cannot_smftags_suggest'] = 'Você não está autorizado a sugerir tags.';

$txt['permissionname_smftags_manage'] = 'Gerenciar Tags';
$txt['permissionhelp_smftags_manage'] = 'Os membros podem modificar as definições de tag e adicionar e remover tags';
$txt['cannot_smftags_manage'] = 'Você não está autorizado a gerir tags.';
//END  Tagging System Strings
]]></add>
</operation>
</file>



Apllicmz

For Suporte smf 2.0 Beta3

<file name="$languagedir/Modifications.portuguese.php" error="skip">
<operation error="ignore">
<search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[
//Begin Tagging System Text Strings
$txt['smftags_menu'] = 'Tags';
$txt['smftags_admin'] = 'Tags Configurações';

$txt['smftags_addtag'] = '[Add Tag]';
$txt['smftags_seperate'] = 'Separe cada tag por uma vírgula';

$txt['smftags_topic'] = 'Tags: ';
$txt['permissiongroup_smftags'] = 'SMF Tags';
$txt['permissionname_smftags_suggest'] = 'Tags Sugerir';
$txt['permissionhelp_smftags_suggest'] = 'Os usuários podem sugerir para adicionar tags';
$txt['cannot_smftags_suggest'] = 'Você não está autorizado a sugerir tags.';

$txt['permissionname_smftags_add'] = 'Adicionar tags a própria tópicos';
$txt['permissionhelp_smftags_add'] = 'Os membros podem adicionar tagss';
$txt['cannot_smftags_add'] = 'Você não tem permissão para adicionar tags aos tópicos';

$txt['permissionname_smftags_del'] = 'Apagar tags a própria tópicos';
$txt['permissionhelp_smftags_del'] = 'Os membros podem apagar etiquetas a partir de temas de abertura';
$txt['cannot_smftags_del'] = 'Você não tem permissão para apagar esta tags';

$txt['permissionname_smftags_manage'] = 'Gerenciar Tags';
$txt['permissionhelp_smftags_manage'] = 'Os membros podem modificar as definições de tag e adicionar e remover tags';
$txt['cannot_smftags_manage'] = 'Você não está autorizado a gerir tags.';
//END  Tagging System Strings
]]></add>
</operation>
</file>

<file name="$languagedir/Modifications.brazilian.php" error="skip">
<operation error="ignore">
<search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[
//Begin Tagging System Text Strings
$txt['smftags_menu'] = 'Tags';
$txt['smftags_admin'] = 'Tags Configurações';

$txt['smftags_addtag'] = '[Add Tag]';
$txt['smftags_seperate'] = 'Separe cada tag por uma vírgula';

$txt['smftags_topic'] = 'Tags: ';
$txt['permissiongroup_smftags'] = 'SMF Tags';
$txt['permissionname_smftags_suggest'] = 'Tags Sugerir';
$txt['permissionhelp_smftags_suggest'] = 'Os usuários podem sugerir para adicionar tags';
$txt['cannot_smftags_suggest'] = 'Você não está autorizado a sugerir tags.';

$txt['permissionname_smftags_add'] = 'Adicionar tags a própria tópicos';
$txt['permissionhelp_smftags_add'] = 'Os membros podem adicionar tagss';
$txt['cannot_smftags_add'] = 'Você não tem permissão para adicionar tags aos tópicos';

$txt['permissionname_smftags_del'] = 'Apagar tags a própria tópicos';
$txt['permissionhelp_smftags_del'] = 'Os membros podem apagar etiquetas a partir de temas de abertura';
$txt['cannot_smftags_del'] = 'Você não tem permissão para apagar esta tags';

$txt['permissionname_smftags_manage'] = 'Gerenciar Tags';
$txt['permissionhelp_smftags_manage'] = 'Os membros podem modificar as definições de tag e adicionar e remover tags';
$txt['cannot_smftags_manage'] = 'Você não está autorizado a gerir tags.';
//END  Tagging System Strings
]]></add>
</operation>
</file>





billsaysthis

Is there a known way to have the standard SMF search include the tags in the searched base?

vbgamer45

No known way that would require a little bit good idea though add it to the modtracker found in the first post of this topic.
Community Suite for SMF - Take your forum to the next level built for 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

billsaysthis


goldenboy48

Quote from: vbgamer45 on July 23, 2007, 08:10:07 AM
Released Tagging System 1.0.4 with eldʌkaː fix for pretty urls.

Hi,
I'm still facing this problem of "No Topic Selected" I have the latest Pretty URLs Mod installed. I downloaded the latest version from SMF Mod Site but the error continues to show up.

Please help. Thanks.

rsw686

The tagsql.php file for the SMF 2 version has some issues. It creates a table dbprefix_dbprefix_tags. This line

$smcFunc['db_create_table']($db_prefix . 'tags', $columns, $indexes, array(), 'update_remove');

should be

$smcFunc['db_create_table']('tags', $columns, $indexes, array(), 'update_remove');

Also the tags_log table creation doesn't use the new db_create_table function so it might not be compatible with all database backends.
The Reptile File
Everything reptile for anyone reptile friendly

Aquaria Talk
Community for freshwater and saltwater aquariums enthusiasts

Advertisement: