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

@stog @jacbier

Version 4.1
Updated for SMF 2.1

Reduced file edits for 2.1 version uses 5 hooks.
Added hook to delete tag log if a topic is deleted new for 2.1
Improved template display in 2.0
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

Speed King

Just installed on my test forum, but if I click on "Tags" button in the main menu, I get this error message:

Database Error
'bulataka_test.t.tag' isn't in GROUP BY
File: /home/bulataka/public_html/test/Sources/Tags2.php
Line: 105

Forum details:

Forum version: SMF 2.1.4 (more detailed)
Current SMF version: SMF 2.1.4
GD version: bundled (2.1.0 compatible)
MySQL engine: MariaDB
MySQL version: 10.6.14-MariaDB-log
SMF file based caching: 2.1.4
SQLite3 database based caching: 3.7.17
PHP: 8.2.7 (more detailed)
Server version: Apache

vbgamer45

@Speed King  try now posted another update.
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

Speed King

#1303
Thanks, the error is gone :)

But now another error occurs:

Warning: Undefined array key "tags" in /home/bulataka/public_html/BNF/Themes/default/Post.template.php on line 970

I see this error in full editor, when I reply to some topic.

Speed King

Quote from: Speed King on July 01, 2023, 07:53:36 AMBut now another error occurs:

Warning: Undefined array key "tags" in /home/bulataka/public_html/BNF/Themes/default/Post.template.php on line 970

I see this error in full editor, when I reply to some topic.

Problem solved for now, by editing Post.template.php file...
I just replaced Tagging system 4.1 code with old 4.0 version code (I have this version installed on another SMF 2.0.19 forum)

Find:

// Tagging system Mod
        if(!isset($context['num_replies']) && allowedTo('smftags_add') )
        {

            $context['posting_fields']['tags'] = array(
                'label' => array('html' => '<label for="tags" id="caption_tags">' . $txt['smftags_topic'] . '</label>'),
                'input' => array('html' => '<input type="text" id="tags" name="tags" value="' . $context['tags'] . '" size="80" maxlength="80" required><br /><span class="smalltext">', $txt['smftags_seperate'], '</span>')
            );

        }

        // End Tagging system mod

Replace with:

// Tagging system Mod
        if(!isset($context['num_replies']) && allowedTo('smftags_add') )
        {
        echo '
        <dt>
                                            <b>', $txt['smftags_topic'], '</b>
        </dt>
        <dd>
                                            <input type="text" name="tags"', ' tabindex="', $context['tabindex']++, '" size="80" maxlength="80" />
                                            <br /><span class="smalltext">', $txt['smftags_seperate'], '</span>
        </dd>';
                           
        }
       
       
        //End Tagging system mod

MartyHunter

Hi, I installed this Mod but I don't see a tag cloud on the index page or under topic index anywhere. Please can you tell me if I should be seeing these, and if not, is there a way to make a tag cloud display on the board index (in a cloud)? I thought I saw a screenshot somewhere showing this mod producing that on index page but I don't get one at all, only if you click on "Tags" from the main menu
thanks

vbgamer45

Currently it is only on the tags section. We do not have an option the index page.
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

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

vbgamer45

4.1b
The tags input field for SMF 2.1.x should not be required.
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

jacbier

#1309
Quote from: vbgamer45 on July 01, 2023, 01:24:01 AM@stog @jacbier

Version 4.1
Updated for SMF 2.1

Reduced file edits for 2.1 version uses 5 hooks.
Added hook to delete tag log if a topic is deleted new for 2.1
Improved template display in 2.0

It's great that this mod is back.
Because there were big problems with the forum Hobbybrouwen.nl I couldn't install the mod earlier. I'm so happy because I missed this mod so much.
In the earlier version I had made some adjustments to the display of the tag cloud. The tags were arranged alphabetically and there was a comma between the tags. That makes the tag cloud more readable. There are tags that consist of two words.
It may be a lot to ask, but is it possible for the mod to be modified at this point.
Again, many thanks that the mod is now available for SMF 2.1

vbgamer45

Possibly i just need list of changes to see what was done.
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

jacbier

Quote from: vbgamer45 on July 12, 2023, 09:48:40 AMPossibly i just need list of changes to see what was done.
I'm afraid I don't understand exactly what you mean. (English is not my native language.)

I didn't see how to change this in the mod's settings. Or do you mean this is something you're going to change.

vbgamer45

I mean you can always request features just it is a less priority for me then bug fixes.
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

jacbier

Quote from: vbgamer45 on July 12, 2023, 10:06:38 AMI mean you can always request features just it is a less priority for me then bug fixes.

I understand that. The change I'm talking about makes the mod much more useful because it allows you to create an index of the topics for your visitors. They can therefore see at a glance which topics have been the subject of much writing.

stog

thx @vbgamer45

just installed

just the 1 error after install (which i've deleted)

2: Undefined array key "smftags_menu"

all seems to work fine with no errors thx again
many thx for your work

much appreciated

stog

#1315
all working ok

but guest error messages  2:Trying to access array offset on value of type null
eg index.php?action=tags;tagid=1 & /index.php?action=tags;tagid=2 Sources/Tags2.php (Line 64)


there were 2  test tags which were then deleted if that helps



vbgamer45

Have posted an update for the last error message
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

stog


Advertisement: