The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Topic Tags?

View previous topic View next topic Go down

Solved Topic Tags?

Post by Sliverback on March 21st 2015, 10:37 am

Hello,

Is it possible to have a option (or something) to select a tag for your topic before you post it?
Here is a example of what I mean http://prntscr.com/6jfk96

Thanks in advance.


Last edited by Sliverback on March 21st 2015, 11:42 am; edited 1 time in total

Sliverback
Forumember

Male Posts : 50
Reputation : 1
Language : English
Location : England

http://tcgonline.forumotion.co.uk/

Back to top Go down

Solved Re: Topic Tags?

Post by JScript on March 21st 2015, 11:33 am

@Sliverback

Hi, try this:

In your ACP: Modules -> HTML&JAVASCRIPT -> JavaScript codes management -> [Create a new JavaScript]
Title *: <- Whatever you want
Placement : <- In all the pages
Javascript Code * : <- Select, copy and paste the code below in this field:
Code:

function tagprefixo() {
    jQuery('input[name=subject]').val(jQuery('select[name=tags4]').val() + jQuery('input[name=subject]').val());
};
jQuery(document).ready(function () {
    var sHtmlPrefx =
        '<select name="tags4" onchange="tagprefixo()">' +
            '<option value="">' +
                '(sem prefixo)' +
            '</option>' +
            '<option value="[Apresentacao]">' +
                'Apresentação' +
            '</option>' +
            '<option value="[Download]">' +
                'Download' +
            '</option>' +
            '<option value="[Duvida]">' +
                'Dúvida' +
            '</option>' +
            '<option value="[Dica]">' +
                'Dica' +
            '</option>' +
            '<option value="[Evento]">' +
                'Evento' +
            '</option>' +
            '<option value="[Entrega]">' +
                'Entrega' +
            '</option>' +
            '<option value="[Filme]">' +
                'Filme' +
            '</option>' +
            '<option value="[Game]">' +
                'Game' +
            '</option>' +
            '<option value="[Imagem]">' +
                'Imagem' +
            '</option>' +
            '<option value="[Noticia]">' +
                'Notícia' +
            '</option>' +
            '<option value="[Offtopic]">' +
                'Offtopic' +
            '</option>' +
            '<option value="[Pedido]">' +
                'Pedido' +
            '</option>' +
            '<option value="[Recado]">' +
                'Recado' +
            '</option>' +
            '<option value="[Regras]">' +
                'Regras' +
            '</option>' +
            '<option value="[Sugestao]">' +
                'Sugestão' +
            '</option>' +
            '<option value="[Seriado]">' +
                'Seriado' +
            '</option>' +
            '<option value="[Tutorial]">' +
                'Tutorial' +
            '</option>' +
            '<option value="[Video]">' +
                'Vídeo' +
            '</option>' +
        '</select>&nbsp;<img src="http://illiweb.com/fa/wysiwyg/separator.png" style="vertical-align:middle">&nbsp;';
    try {
        jQuery('input[name=subject]').after(sHtmlPrefx);
        var mode = jQuery('input[value=reply]').val();
        if (mode == 'reply') {
            jQuery('select[name=tags4]').css('display', 'none');
        } else if (mode == 'quote') {
            jQuery('select[name=tags4]').css('display', 'none');
        }
   } catch (e) {
      if (typeof (console) != 'undefined') {
         console.error(e)
      }
   }   
});

Note: Translate what is inside the brackets for your language, eg:
Code:

            '<option value="[Apresentacao]">' +
                'Apresentacao' +
            '</option>' +
To:
Code:

            '<option value="[Presentation]">' +
                'Presentation' +
            '</option>' +

As you can remove or add more modules < option >

Result:


So long,

JS

JScript
Forumember

Male Posts : 741
Reputation : 168
Language : PT-BR, EN
Location : Brazil

http://jscript.forumeiros.com/

Back to top Go down

Solved Re: Topic Tags?

Post by Sliverback on March 21st 2015, 11:41 am

Thanks so much!

Sliverback
Forumember

Male Posts : 50
Reputation : 1
Language : English
Location : England

http://tcgonline.forumotion.co.uk/

Back to top Go down

Solved Re: Topic Tags?

Post by APE on March 21st 2015, 7:05 pm

Topic solved and archived





APE
Manager
Manager

Male Posts : 8631
Reputation : 756
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

http://chatworld.forumotion.co.uk/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum