Topic Tags Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.
2 posters

    Topic Tags

    .DayDreamer.
    .DayDreamer.
    Forumember


    Female Posts : 42
    Reputation : 1
    Language : English
    Location : United States

    Topic Tags Empty Topic Tags

    Post by .DayDreamer. March 26th 2017, 7:33 am

    Technical Details


    Forum version : #phpBB3
    Position : Founder
    Concerned browser(s) : Chrome
    Screenshot of problem : https://i.servimg.com/u/f58/18/29/77/06/captur10.jpg
    Who the problem concerns : All members
    Forum link : http://justtestingthings.forumotion.com

    Description of problem


    Hello!

    I've added tags for my topics from here: http://www.punbb.biz/t1110p20-javascript-topic-tags-keywords-in-thread#8342

    I really like the tags, but my only problem with them is that they only come from what's in the title. Is there a way so they can come from the title and description of the topic? I've tried to figure out how to do this myself, but I'm unable to so far. Any help would be greatly appreciated! Smile

    Code:
    /***
            * Application: Tags Search
            * Description: This application can displays tags for searching.
            * Version: 1.09032014-jq1.9.1 - Thoth (Ermoúpoli -> Eshmunen)
            * Made and Optimizations by JScript - 2014/03/09
            * View more in: http://*censored*
            * Copyright (c) 2013 JScript <jscriptbrasil at live dot com>
            * This work is free. You can redistribute it and/or modify it
            * under the terms of the WTFPL, Version 2
            */
            jQuery(function () {
                /***
                * User Definition Variables
                ***/
                /* Put here the limit of tag length!!! */
                var iTagLength = 4;
                /* Put here your tags tool tip!!! */
                var sTagTitle = 'Tags:';
                /* Put here your widget title!!! */
                var sTagToolTip = 'Find more content tagged';
                /* END */
           
                /***
                * System Defined Variables - Do not edit if you don't know!
                ***/
                var oConfig = {
                    sInfo:
                        '<!--' +
                        '* Application: Tags Search' +
                        '* Description: This application can displays tags for searching.' +
                        '* Version: 1.09032014-jq1.9.1 - Thoth (Ermoúpoli -> Eshmunen)' +
                        '* Made and Optimizations by JScript - 2014/03/09' +
                        '* View more in: http://*censored*/forum & http://ajuda.forumeiros.com' +
                        '* Copyright (c) 2013 JScript <jscriptbrasil at live dot com>' +
                        '* This work is free. You can redistribute it and/or modify it' +
                        '* under the terms of the WTFPL, Version 2' +
                        '-->',     
                    sContent:
                        '<span id="tags_search"><span>' + sTagTitle + ' </span></span>',
                    sCSS:
                        '<style>' +
                        '#tags_search {' +
                            'display: block;' +
                            'margin-bottom: 20px;' +
                            'margin-top: -5px;' +
                        '}' +
                        '.ipsTag {' +
                            'background: url("https://i58.servimg.com/u/f58/18/29/77/06/tags13.png") repeat scroll 0 0 rgba(0, 0, 0, 0);' +
                            'border-radius: 0 3px 3px 0;' +
                            'color: #FFFFFF !important;' +
                            'display: inline-block;' +
                            'font-size: 11px;' +
                            'height: 20px;' +
                            'line-height: 20px;' +
                            'margin: 5px 5px 0 0;' +
                            'padding: 0 7px 0 15px;' +
                            'text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);' +
                        '}' +
                        '</style>',
                    sTarget: ''
                };
             
                jQuery(oConfig.sCSS).insertBefore('body');
           
                /* Forum versions! */
                var phpBB2 = jQuery('.bodyline');
                var phpBB3 = jQuery('#wrap');
                var punbb = jQuery('#pun-intro');
                var invision = jQuery('#ipbwrapper');
             
                if (phpBB2.length) {
                    $('td.nav').parent().parent().parent().before(oConfig.sInfo + oConfig.sContent);
                    oConfig.sTarget = 'h1.cattitle:first';
                } else if(phpBB3.length) {
                    $('#main-content .post:first').before(oConfig.sInfo + oConfig.sContent);
                    oConfig.sTarget = 'h1.page-title';
                } else if(punbb.length) {
                    $('#main-content .main.paged').before(oConfig.sInfo + oConfig.sContent);
                    oConfig.sTarget = 'p.crumbs strong:last';
                } else if(invision.length) {
                    $('#main-content .borderwrap:first').before(oConfig.sInfo + oConfig.sContent);
                    oConfig.sTarget = 'div.maintitle.floated h3';
                };
           
                var tags = jQuery(oConfig.sTarget).text().split(' ');
           
                jQuery.each(tags, function(index, data) {
                    if(data.length > iTagLength) {
                        $('#tags_search').append(
                            '<a id="tag_search_' + index + '" class="ipsTag" title="' + sTagToolTip + ' ' + data + '" href="/search?search_keywords=' + data + '">' +
                            '    <span>' + data + '</span>' +
                            '</a>'
                        );
                    }
                });
            });
    .DayDreamer.
    .DayDreamer.
    Forumember


    Female Posts : 42
    Reputation : 1
    Language : English
    Location : United States

    Topic Tags Empty Re: Topic Tags

    Post by .DayDreamer. March 29th 2017, 7:27 am

    Bump.
    Kyo Panda
    Kyo Panda
    Forumember


    Male Posts : 33
    Reputation : 19
    Language : Portuguese, English
    Location : Brazil

    Topic Tags Empty Re: Topic Tags

    Post by Kyo Panda March 29th 2017, 3:10 pm

    Howdy, o/

    Do you want to add tags to the Topic description field or clone the #tags in the post body to the list?