News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

Tagging System SMFSIMPLE

Started by vbgamer45, December 11, 2012, 01:24:35 AM

Previous topic - Next topic

Skaty

Hi, i think i will uninstall 1.01 version of mod because the character set support. in 1.0 version it has turkish characters.  i want to ask, what i will lose ? anything about seo ?

InsaneMustang

Quick question, where is the cloud supposed to display at?

Skaty

Quote from: InsaneMustang on April 04, 2013, 11:26:28 AM
Quick question, where is the cloud supposed to display at?

Here
www.bamanation.net/index.php?action=tags

InsaneMustang

So people have to view another page to see the tags?  Anyway to add it to the board index?

Skaty

the tags are under the topic, the cloud is in another page.


wynnyelle

Hi, I just tried to install this and I've got some sort of big problems getting it to work right. Here is the thread:

http://www.simplemachines.org/community/index.php?topic=501683.0

I apologise because I didn't find this thread here until now, so I had made my own.

I need to fix the text describing problems, and then fix the problems themselves....Make the tag cloud go away {I don't like tag clouds} and replace it with a tag search box instead, then make sure the tags display in popularity order from most popular at the top to least on the tag page.

Also the threads themselves are failing to display any of their tags on their page. That is probably the worst of it.

Also, about the red X's where you can delete tags off the tag page... Is it just there for if someone made some kind of nasty tag? That might be an issue at first, but I'd think that once the tags got used more, the most popular ones would be shown up on the first page {or the only page--if there's only one page I'm guessing there's a limit to how many tags can display, so you'd only have the 50 or 100 or whatever most-popular tags showing} , and prevent less popular ones from taking front space {most of the nasty tags would be less popular}? If this is what the delete tags is there for, is there a way to ghost certain tags? Sort of a tag filter--people can search for that tag and use that tag, but it won't display an entry on the tags page. Because trolls WILL try to take advantage of this feature.

Draffi

#106
Really Nice mod - But if the function "Tag is required" activated, the Auto-Save Function from the Draft-Mod is no longer working...

(from this Mod:
http://custom.simplemachines.org/mods/index.php?mod=2621)

:-\

Edit: Including if this function "unticked" it didn`t save Drafts...

4Kstore

Sorry I can't support that another mod...

¡¡NEW MOD: Sparkles User Names!!!

Skaty

Hi, i have a little problem with tagging. Google is tagging the tags like this:



Etiket Girin means ''enter tag''.

Any idea for how can i fix it ?

Thank you.

6o6ep84

Quote from: 4Kstore on May 26, 2013, 01:09:08 AM
Sorry I can't support that another mod...

You can make a mod to tag worked with other languages​​?
1.0 work with other languages​​. Now does not work: (
Please update the mod.

TheListener

Quote from: 6o6ep84 on May 30, 2013, 04:37:45 AM
Quote from: 4Kstore on May 26, 2013, 01:09:08 AM
Sorry I can't support that another mod...

You can make a mod to tag worked with other languages​​?
1.0 work with other languages​​. Now does not work: (
Please update the mod.

Please laborate on the problem you are experiencing.

6o6ep84

#111
Quote from: Old Fossil on May 30, 2013, 04:42:29 AM
Quote from: 6o6ep84 on May 30, 2013, 04:37:45 AM
Quote from: 4Kstore on May 26, 2013, 01:09:08 AM
Sorry I can't support that another mod...

You can make a mod to tag worked with other languages​​?
1.0 work with other languages​​. Now does not work: (
Please update the mod.

Please laborate on the problem you are experiencing.

if you add a tag in English language, everything is added.
If you try to add a tag in Russian, it is not added.
Do not press the space bar.

Wrote in this thread that the problem and the Turkish language too.


Skaty

Quote from: Skaty on May 29, 2013, 06:55:11 PM
Hi, i have a little problem with tagging. Google is tagging the tags like this:



Etiket Girin means ''enter tag''.

Any idea for how can i fix it ?

Thank you.

any idea for this ?

Skaty


Romanj

#114
I have same  issue as described above, with adding tags in other than english languages.
When tag is written in english it work properly. But when switch to russian, type word and then press the space bar, nothing happens.
I've tried to test this on the clear forum just installed, and got same results.

Second question:
Is it possible to make two-(or three)-words tags with this mod? Because sometimes without second word, meaning of expression changes. For example "National park", "Sri Lanka", "Sweet water lake", etc. Sometimes, second or third word in tag useful to make tag more narrow.

nikan

#115
In order to accept other then English characters you must make the following changes

At the end of the file Sources/TaggingSystem.php and function careTagString($tag_array)
Find:
        $review[] = preg_replace('/[^a-z0-9\-]/', '', $tag);
Replace it with:
        $review[] = preg_replace('/[^\p{L}0-9\- ]+/u', '', $tag);

Also in file Themes/default/scripts/tags.js and function prepararTexto(texto)
Find:
    if (texto.match(/[^a-zA-Z0-9\- ]/g))
        texto = texto.replace(/[^a-zA-Z0-9\- ]/g, ''); //only letters, numbers and - are allowed

Replace it with:
    if (texto.match(/[^a-z0-9\- \u00C0-\u1FFF\u2C00-\uD7FF]+/g))
        texto = texto.replace(/[^a-z0-9\- \u00C0-\u1FFF\u2C00-\uD7FF]+/g, '');



When editing a post and adding a new tag or deleting an existing one, the tags are not saved.
In file Sources/Post.php
Find:
if (!empty($modSettings['tag_enabled']) && isset($_POST['tags']))
Replace it with:
if (!empty($modSettings['tag_enabled']) && isset($_POST['tags_news']))



And the Greek translation to be saved in Tagging.greek.php with ANSI file encoding and Tagging.greek-utf8.php with UTF-8 file encoding
<?php
global $modSettings;
$txt['tags_menu_btn'] = 'Ετικέτες';
$txt['tags_save_btn'] = 'Αποθήκευση';
//Admin Area
$txt['tags_admin_title'] = 'Σύστημα ετικετών';
$txt['tags_admin_title_main'] = 'Γενική διαμόρφωση';
$txt['tags_admin_list_cloud_title'] = 'Κατάλογος και νέφος ετικετών';
$txt['tags_admin_desc_main'] = 'Από εδώ μπορείτε να ορίσετε τη γενική διαμόρφωση για το σύστημα ετικετών';
$txt['tags_admin_main_enabled'] = 'Ενεργοποίηση του συστήματος ετικετών';
$txt['tags_admin_main_required'] = 'Οι ετικέτες είναι υποχρεωτικές';
$txt['tags_admin_main_board_tags'] = 'Απενεργοποίηση ετικετών για αυτούς τους πίνακες';
$txt['tags_admin_main_board_tags_desc'] = 'Εισάγετε τους αριθμούς id των πινάκων χωρισμένους με κόμμα';
$txt['tags_admin_main_max_tags'] = 'Μέγιστος αριθμός ετικετών ανά θέμα';
$txt['tags_admin_main_min_length_tag'] = 'Ελάχιστο μήκος ετικετών';
$txt['tags_admin_main_max_length_tag'] = 'Μέγιστο μήκος ετικετών';
$txt['tags_admin_main_max_suggested'] = 'Μέγιστος αριθμός προτεινόμενων ετικετών';
$txt['tags_admin_main_enabled_related_topics'] = 'Ενεργοποίηση θεμάτων που σχετίζονται με ετικέτες';
$txt['tags_admin_main_max_related_topics'] = 'Μέγιστος αριθμός σχετικών θεμάτων για εμφάνιση';
$txt['tags_admin_cloud_enabled'] = 'Εμφάνιση του νέφους ετικετών';
$txt['tags_admin_cloud_limit'] = 'Όριο ετικετών για εμφάνιση στο νέφος';
$txt['tags_admin_cloud_smallest_color'] = 'Χρώμα για μικρότερες ετικέτες';
$txt['tags_admin_cloud_smallest_opacity'] = 'Αδιαφάνεια για μικρότερες ετικέτες';
$txt['tags_admin_cloud_smallest_fontsize'] = 'Μέγεθος γραμματοσειράς για μικρότερες ετικέτες';
$txt['tags_admin_cloud_small_color'] = 'Χρώμα για μικρές ετικέτες';
$txt['tags_admin_cloud_small_opacity'] = 'Αδιαφάνεια για μικρές ετικέτες';
$txt['tags_admin_cloud_small_fontsize'] = 'Μέγεθος γραμματοσειράς για μικρές ετικέτες';
$txt['tags_admin_cloud_medium_color'] = 'Χρώμα για μεσαίες ετικέτες';
$txt['tags_admin_cloud_medium_opacity'] = 'Αδιαφάνεια για μεσαίες ετικέτες';
$txt['tags_admin_cloud_medium_fontsize'] = 'Μέγεθος γραμματοσειράς για μεσαίες ετικέτες';
$txt['tags_admin_cloud_large_color'] = 'Χρώμα για μεγάλες ετικέτες';
$txt['tags_admin_cloud_large_opacity'] = 'Αδιαφάνεια για μεγάλες ετικέτες';
$txt['tags_admin_cloud_large_fontsize'] = 'Μέγεθος γραμματοσειράς για μεγάλες ετικέτες';
$txt['tags_admin_cloud_largest_color'] = 'Χρώμα για μεγαλύτερες ετικέτες';
$txt['tags_admin_cloud_largest_opacity'] = 'Αδιαφάνεια για μεγαλύτερες ετικέτες';
$txt['tags_admin_cloud_largest_fontsize'] = 'Μέγεθος γραμματοσειράς για μεγαλύτερες ετικέτες';
$txt['tags_admin_list_enabled'] = 'Εμφάνιση της λίστας ετικετών';
$txt['tags_admin_list_show_count'] = 'Εμφάνιση της ποσότητας κάθε ετικέτας';
$txt['tags_admin_search_paginate_limit'] = 'Αριθμός των θεμάτων ανά σελίδα στην αναζήτηση';
//List&Cloud
$txt['tags_list_title'] = 'Όλες οι ετικέτες';
$txt['tags_list_title_total'] = 'Συνολικά: ';
$txt['tags_cloud_title'] = 'Νέφος ετικετών';
$txt['tags_search_title'] = 'Αναζήτηση';
$txt['tags_delete_tag'] = 'διαγραφή ετικέτας';
$txt['tags_delete_tag_confirmation'] = 'Είστε βέβαιοι ότι θέλετε να διαγράψετε αυτήν την ετικέτα;';
$txt['tags_no_tags'] = 'Καμμία ετικέτα για εμφάνιση';
//errors:
$txt['error_tags_exceeded'] = 'Υπέρβαση του μέγιστου αριθμού ετικετών, το όριο είναι: '.$modSettings['tag_max_per_topic'].'';
$txt['error_tags_required'] = 'Οι ετικέτες είναι υποχρεωτικές';
$txt['error_tags_max_length'] = 'Μία από τις νέες ετικέτες σας υπερέβει το μέγιστο μήκος: '.$modSettings['tag_max_length'].'';
$txt['error_tags_min_length'] = 'Μία από τις νέες ετικέτες σας έχει λιγότερο από '.$modSettings['tag_max_length'].' γράμματα';
//Display:
$txt['tags_topic'] = 'Ετικέτες για αυτό το θέμα:';
$txt['tags_related_title'] = 'Θέματα που σχετίζονται με ετικέτες';

Skaty

@nikan, do you have an idea for my problem ? It is not indexing my tag it is indexing "enter tag" text every time.

nikan

I think it's the title of the page and it's named 'Tags' at the English language file.
You can try changing it in file Sources/TaggingSystem.php and function TaggingSystemMain()
Find:
$context['page_title'] = $txt['tags_menu_btn'];
Replace it with:
$context['page_title'] .= !empty($context['tag_name']) ? ' - ' . $context['tag_name'] : $txt['tags_menu_btn'];

nikan

And for new tags on a new topic in file Sources/Post.php
Find:
if (!empty($modSettings['tag_enabled']) && !empty($newTopic))
Replace it with:
if (!empty($modSettings['tag_enabled']) && isset($_POST['tags']))

Romanj

#119
nikan, thanks! Your suggestions work fine!
Except autocomplete of non-english tags - something wrong with encoding. Autocomplete list of tags (when entering letters in a field) show in broken characters. But I'll try to fix it by myself.

Do you have any ideas how to make possible to enter "more-than-one-word" tags?
Probably it require change the way to separate tags from "space" button to "comma","dot","semicolon", and some changes in preg_replace strings to allow "space" character.


Update:
I found how to enter "more-than-one-word" tags. Its enough to remove these lines from Themes/default/scripts/tags.js:
    else if (charCode == 32) //Space
    {
        evento.preventDefault();
        if (campo.val().length > 0)
        {
            addTagFromText(campo.val());
        }
    }


But, when I try to edit topic, all "more-than-one-word" tags in it turns into two or more "one-word". At this moment, I'm trying to find how to solve this issue. I would appreciate any suggestions to this problem.


Update #2:)

I tried to solve problem from "Update 1" above with this:

1. In Themes/default/scripts/tags.js I replaced this
function renderizarEtiquetasActuales()
{
    var datos = tg('.tag_selectable input').val();
    var etiquetas = datos.split(" ");
    for (var i = 0; i < etiquetas.length; i ++)
    {
        if (etiquetas[i].length)
            addTagFromText(etiquetas[i]);
    }
}

with this
function renderizarEtiquetasActuales()
{
    var datos = tg('.tag_selectable input').val();
    var etiquetas = datos.split(",");
    for (var i = 0; i < etiquetas.length; i ++)
    {
        if (etiquetas[i].length)
            addTagFromText(etiquetas[i]);
    }
}

(string datos.split(" ") to datos.split(",") changed )

2. In Sources/TaggingSystem.php I found
if (!empty($editTags))
foreach ($editTags as $et)
$oldtags .= $et['tag'].' ';

And replaced it with
if (!empty($editTags))
foreach ($editTags as $et)
$oldtags .= $et['tag'].',';


After that, it seems working, "more-than-one-word" tags don't splitting when topic is edited. But I really don't know is this good solution or not.
Please, tell me, is there more proper way to solve that?

Advertisement: