Tagging System For Topics

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

Previous topic - Next topic

vbgamer45

Permissions can be found inside SMF under Admin -> Permissions -> modify a group -> Tagging System
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

NightBird

Thank you, vbgamer! That's the way I did the settings, and everyone I enabled access for can see and use the red 'X' to delete a tag, but nobody other than myself as admin can see, thus use the 'Add Tag' text.

glennk


4Kstore


¡¡NEW MOD: Sparkles User Names!!!

NightBird

Quote from: NightBird on February 22, 2009, 12:24:53 PM
Thank you, vbgamer! That's the way I did the settings, and everyone I enabled access for can see and use the red 'X' to delete a tag, but nobody other than myself as admin can see, thus use the 'Add Tag' text.

Anybody have any ideas how to fix this problem?

Permissions are set to allow most member groups to work with tags, but it's only the admin member group who can see the 'Add Tag' text.

vbgamer45

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

NightBird

Quote from: vbgamer45 on March 01, 2009, 05:15:34 PM
What version of SMF?

1.1.8 - with several mods installed. Let me know if you'd like a list of those, in case that would help.

glennk


vbgamer45

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

raklet

Quote from: .:{EK}:. Squall on November 26, 2008, 07:48:32 PM
Is there a way to modify this mod so that the Tags only work in a certain board and not the whole forum?

Thanks,
Squall

Yes, you can do something like this.  Open tags.xml file and search the following code:


<file name="$themedir/Display.template.php">
<operation>
<search position="before"><![CDATA[<a name="lastPost"></a>';]]></search>
<add><![CDATA[
// Tagging System
echo '<table width="100%" cellpadding="0" 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']['is_guest'])
echo '<a href="' . $scripturl . '?action=tags;sa=deletetag;tagid=' . $tag['ID']  . '"><font color="#FF0000">[X]</font></a>&nbsp;';

}

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

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

//End Tagging System
]]></add>
</operation>
</file>


Then add an if statement to the code to only allow the tags to show up in certain boards.  There is not an easy to specify board setting in the admin interface.  This is something that would have to be programmed and require many dozens of lines of code instead of just a quick change.  Look for the added if statement in the below code.


<file name="$themedir/Display.template.php">
<operation>
<search position="before"><![CDATA[<a name="lastPost"></a>';]]></search>
<add><![CDATA[
// Tagging System
if ($context['current_board'] == board number goes here || $context['current_board'] == this is another board || and so on)
{
echo '<table width="100%" cellpadding="0" 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']['is_guest'])
echo '<a href="' . $scripturl . '?action=tags;sa=deletetag;tagid=' . $tag['ID']  . '"><font color="#FF0000">[X]</font></a>&nbsp;';

}

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

</td>
</tr>
</table>';
}
//End Tagging System
]]></add>
</operation>
</file>

Sudhakar Arjunan

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
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

heinandar

Is there a way to show  related tags in the top of the related Boards.

I mean The Tags of Board 1 show at the top of Board 1 (only Board 1). or Can  Popular Tags (Tags cloud) show at the Top of the Board.(Every Board)

Sorry for my English.

DeviDarkL

Quote from: heinandar on March 08, 2009, 07:23:54 AM
Is there a way to show  related tags in the top of the related Boards.

I mean The Tags of Board 1 show at the top of Board 1 (only Board 1). or Can  Popular Tags (Tags cloud) show at the Top of the Board.(Every Board)

Sorry for my English.


I have the same question. How can i do it? :)

Eclipse16V

#373
On my SMF 2.0 RC1 I have this error:

QuoteFatal error: Call to undefined function create_control_autosuggest() in .../Sources/Post.php on line 2062
and this
QuoteFatal error: Call to undefined function create_control_autosuggest() in .../Sources/Tags.php on line 248

Can any one help me?
I worked with:
SMF 2 in German

Shop:
SID Giessen

Eclipse16V

I worked with:
SMF 2 in German

Shop:
SID Giessen

DeviDarkL


Sudhakar Arjunan

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
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Sudhakar Arjunan

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.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

pbarney

This mod looks great!  A question:

Does this mod tag TOPICS or POSTS?  Is it possible to tag posts individually? I have searched through this thread and haven't found the answer.

My aim is to tag posts as "news" and then use a custom ssi query to pull all posts (not topics) tagged as news onto a "news page"

Will this mod help me with this?

Thanks!

4Kstore

Quote from: A.SK on March 24, 2009, 09:44:42 AM
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.

i have a same problem.. :(

¡¡NEW MOD: Sparkles User Names!!!

Advertisement: