How can I make a recent hashtags widget? - Page 2 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.
5 posters

    How can I make a recent hashtags widget?

    Van-Helsing
    Van-Helsing
    Hyperactive


    Male Posts : 2431
    Reputation : 116
    Language : English, Greek

    How can I make a recent hashtags widget? - Page 2 Empty How can I make a recent hashtags widget?

    Post by Van-Helsing December 9th 2014, 9:47 am

    First topic message reminder :

    Hello,
    How can I make a recent hashtags widget? My forum version is punbb.
    Van-Helsing
    Van-Helsing
    Hyperactive


    Male Posts : 2431
    Reputation : 116
    Language : English, Greek

    How can I make a recent hashtags widget? - Page 2 Empty Re: How can I make a recent hashtags widget?

    Post by Van-Helsing December 29th 2014, 4:52 pm

    Hello @JScript,
    How can I store them in local cache? I am sorry for didn't understood previously that about the same way with staff chatbox.
    JScript
    JScript
    Forumember


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

    How can I make a recent hashtags widget? - Page 2 Empty Re: How can I make a recent hashtags widget?

    Post by JScript December 29th 2014, 6:59 pm

    @Black-Shadow
    You can not use the local cache! But a topic serving as pseudo database.

    JS
    Van-Helsing
    Van-Helsing
    Hyperactive


    Male Posts : 2431
    Reputation : 116
    Language : English, Greek

    How can I make a recent hashtags widget? - Page 2 Empty Re: How can I make a recent hashtags widget?

    Post by Van-Helsing December 29th 2014, 7:17 pm

    Hello @JScript,
    Can you help us to develop it by this way of pseudo-database topic?
    JScript
    JScript
    Forumember


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

    How can I make a recent hashtags widget? - Page 2 Empty Re: How can I make a recent hashtags widget?

    Post by JScript December 29th 2014, 7:19 pm

    @Black-Shadow
    Yes of course! But only in the next year... thumleft

    So long,

    JS
    _Twisted_Mods_
    _Twisted_Mods_
    Helper
    Helper


    Male Posts : 2108
    Reputation : 336
    Language : English
    Location : Ms

    How can I make a recent hashtags widget? - Page 2 Empty Re: How can I make a recent hashtags widget?

    Post by _Twisted_Mods_ December 29th 2014, 7:57 pm

    well js i looked at your code and thats alot of code i dont even know where to start so im leave this project alone and let u or someone else with more knowledge handle it
    Van-Helsing
    Van-Helsing
    Hyperactive


    Male Posts : 2431
    Reputation : 116
    Language : English, Greek

    How can I make a recent hashtags widget? - Page 2 Empty Re: How can I make a recent hashtags widget?

    Post by Van-Helsing December 29th 2014, 10:25 pm

    Well guys it seems this project has a lot of work as I understand and it needs very good knowledge of javascript.
    Van-Helsing
    Van-Helsing
    Hyperactive


    Male Posts : 2431
    Reputation : 116
    Language : English, Greek

    How can I make a recent hashtags widget? - Page 2 Empty Re: How can I make a recent hashtags widget?

    Post by Van-Helsing December 30th 2014, 10:43 pm

    Bump
    Van-Helsing
    Van-Helsing
    Hyperactive


    Male Posts : 2431
    Reputation : 116
    Language : English, Greek

    How can I make a recent hashtags widget? - Page 2 Empty Re: How can I make a recent hashtags widget?

    Post by Van-Helsing January 1st 2015, 3:39 am

    Bump
    Van-Helsing
    Van-Helsing
    Hyperactive


    Male Posts : 2431
    Reputation : 116
    Language : English, Greek

    How can I make a recent hashtags widget? - Page 2 Empty Re: How can I make a recent hashtags widget?

    Post by Van-Helsing January 2nd 2015, 4:06 am

    Bump
    _Twisted_Mods_
    _Twisted_Mods_
    Helper
    Helper


    Male Posts : 2108
    Reputation : 336
    Language : English
    Location : Ms

    How can I make a recent hashtags widget? - Page 2 Empty Re: How can I make a recent hashtags widget?

    Post by _Twisted_Mods_ January 3rd 2015, 6:13 am

    im gonna try to get this done for you in the next day or two  .. hopefully b4 i loose internet on my phone on the 4th if not ill get it for you when i pay my bill off and come back lol
    _Twisted_Mods_
    _Twisted_Mods_
    Helper
    Helper


    Male Posts : 2108
    Reputation : 336
    Language : English
    Location : Ms

    How can I make a recent hashtags widget? - Page 2 Empty Re: How can I make a recent hashtags widget?

    Post by _Twisted_Mods_ January 3rd 2015, 4:24 pm

    Step1: create a forum
    step2: post a topic in that forum
    step3: create a new usergroup

    Code:
    Group name : Up To You
    Group description: doesn't matter
    Group Moderator : yourself
    Group Members Color :none
    Color Group Members : No
    Group Order : 100 or past your last group
    Group status : up to you i set mine to hidden
    Permission to send PM Mailings : up to you i set mine to members
    Group auto-subscribe : Yes
    Minimum Posts : 0

    Save


    Step4: edit the group and turn auto subscribe off

    Step5: goto general>categories & forums and edit the permitions of the forum you created in step 1 and add your new group to moderators for that forum

    step6: create a new javascript.. placement in all pages
    "this script places a invisible box over the post button .. when its clicked it runs the script thats gets the current hashtags in the list and then post the new one to it . then it clicks the post button... had to do it this way because the page reloading stops the script b4 it can edit the post"

    Code:


    $(function(){
    $('input[name="post"]').after('<span style="z-index: 55;width: 55px;height: 25px;position: absolute;" id="pfirst"></span>');
    var bottomLeft = $('input[name="post"]').offset().left;
    $('#pfirst').css('left',bottomLeft);
    $('#pfirst').click(function(){
    var thetopic = "t3-status-updates";
    var thepost = "4";
    var mm = "";
    if($('.sceditor-container').length == 1){
     
      $('.sceditor-button-source').click();
     setTimeout(function(){
      blah = $('.sceditor-container').find('iframe').contents().find('body').html();
    blah = blah.replace(/ /g,",").replace(/\n/g,",").replace(/<+[a-z]+>/g," ").replace(/<+\/[a-z]+>/g," ").replace("  "," ").replace("  "," ");
        breakthem = blah.split(",");
        kgg="";
          for(var i = 0; i < breakthem.length; i++){ 
           
            khh = breakthem[i];
           
          if(khh.match("#")){
            kgg = kgg+" " + khh;
          };
          };           
    jQuery.get(thetopic, function (data) {
                var groupz = {
                    group1z: jQuery('.entry-content div', data).text(),
    };
        ff = groupz.group1z;
        gg = ff.split(' ');
        mm="";

        for(var i = 0; i < 12; i++){
          
           var hh = gg[i];
           mm = mm  + " "+ hh;

        };
     jQuery.post('/post?p='+thepost+'&mode=editpost', {
      subject: 'Status Updates',
            message: kgg+mm,
            post: 1
          });
    $('input[name="post"]').click();   
     }) }, 500);
    };
    });
    });


    step7:

    edit

    Code:
    var thetopic = "t3-status-updates";
    var thepost = "4";

    thetopic = the end of the url to the topic we posted in step 2
    thepost = the post # off the post we made in step 2 "you can hover over the edit button to see the url of the post or click edit and should be in browser location"

    Submit

    Step8: create a new widget

    Code:

    <style>
    #hashwidget a{
    background-color: lightgrey;
    border:1px solid black;
    padding:3px;
    display:inline-block;
    border-radius: 5px;}
    </style>
    <div id="hashwidget">
    </div><br /><script>jQuery(function(){
    jQuery('#hashwidget').empty()
    jQuery.get('t3-status-updates', function (data) {
        tpfieldid = '#field_id2 .field_uneditable';
                var group = {
                    group1: jQuery('.entry-content  a', data).parent().html(),
    };
    jQuery('#hashwidget').append(group.group1)
    });
    })</script>

    replace
    Code:
    t3-status-updates

    with the end of the url to the topic we posted in step 2


    save


    ok your pretty much all done

    Note: to allow new members to use all of this
    you will have to remove the mod option from the forum .. then turn auto subscribe back on, on the group you created .. then you can turn it back off and add the mod permissions back
    Van-Helsing
    Van-Helsing
    Hyperactive


    Male Posts : 2431
    Reputation : 116
    Language : English, Greek

    How can I make a recent hashtags widget? - Page 2 Empty Re: How can I make a recent hashtags widget?

    Post by Van-Helsing January 3rd 2015, 5:11 pm

    Hi @_Twisted_Mods_,
    The widget code disable the statuses from the Recent Status Updates which we made previously. I watched that one of the javascripts conflicts all other javascripts somewhere it may have an error.
    _Twisted_Mods_
    _Twisted_Mods_
    Helper
    Helper


    Male Posts : 2108
    Reputation : 336
    Language : English
    Location : Ms

    How can I make a recent hashtags widget? - Page 2 Empty Re: How can I make a recent hashtags widget?

    Post by _Twisted_Mods_ January 3rd 2015, 11:28 pm

    probably something with the same name check if this works 4 u




    Code:



        $(function(){
        $('input[name="post"]').after('<span style="z-index: 55;width: 55px;height: 25px;position: absolute;" id="pfirst"></span>');
        var bottomLeft = $('input[name="post"]').offset().left;
        $('#pfirst').css('left',bottomLeft);
        $('#pfirst').click(function(){
        var thetopic = "t3-status-updates";
        var thepost = "4";
        var mmr = "";
        if($('.sceditor-container').length == 1){
       
          $('.sceditor-button-source').click();
        setTimeout(function(){
          blahd = $('.sceditor-container').find('iframe').contents().find('body').html();
        blahd = blahd.replace(/ /g,",").replace(/\n/g,",").replace(/<+[a-z]+>/g," ").replace(/<+\/[a-z]+>/g," ").replace("  "," ").replace("  "," ");
            breakthems = blahd.split(",");
            kgg="";
              for(var i = 0; i < breakthems.length; i++){
             
                khh = breakthems[i];
             
              if(khh.match("#")){
                kgg = kgg+" " + khh;
              };
              };         
        jQuery.get(thetopic, function (data) {
                    var groupza = {
                        group1z: jQuery('.entry-content div', data).text(),
        };
            ffa = groupza.group1z;
            ggq = ffa.split(' ');
            mmr="";

            for(var i = 0; i < 12; i++){
             
              var hhz = ggq[i];
              mmr = mmr  + " "+ hhz;

            };
        jQuery.post('/post?p='+thepost+'&mode=editpost', {
          subject: 'Status Updates',
                message: kgg+mmr,
                post: 1
              });
        $('input[name="post"]').click(); 
        }) }, 500);
        };
        });
        });



    Code:

        <style>
        #hashwidget a{
        background-color: lightgrey;
        border:1px solid black;
        padding:3px;
        display:inline-block;
        border-radius: 5px;}
        </style>
        <div id="hashwidget">
        </div><br /><script>jQuery(function(){
        jQuery('#hashwidget').empty()
        jQuery.get('t3-status-updates', function (data) {
                    var hashed = {
                        group1: jQuery('.entry-content  a', data).parent().html(),
        };
        jQuery('#hashwidget').append(hashed.group1)
        });
        })</script>
    Van-Helsing
    Van-Helsing
    Hyperactive


    Male Posts : 2431
    Reputation : 116
    Language : English, Greek

    How can I make a recent hashtags widget? - Page 2 Empty Re: How can I make a recent hashtags widget?

    Post by Van-Helsing January 3rd 2015, 11:40 pm

    Hello @_Twisted_Mods_,
    Now it has freezed again all js in the homepage. I tried to set the javascript "In the topics" and now the widget appearing empty and it doesn't grabbing the hashtags from the post.

    Widget code:
    Code:

    <style>
            #hashwidget a{
            background-color: lightgrey;
            border:1px solid black;
            padding:3px;
            display:inline-block;
            border-radius: 5px;}
    </style>       
    <div id="hashwidget">
                
    </div><br /><script>jQuery(function(){
            jQuery('#hashwidget').empty()
            jQuery.get('t15843-topic', function (data) {
                        var hashed = {
                            group1: jQuery('.entry-content  a', data).parent().html(),
            };
            jQuery('#hashwidget').append(hashed.group1)
            });
            })</script>

    Javascript:
    Code:

    $(function(){
            $('input[name="post"]').after('<span style="z-index: 55;width: 55px;height: 25px;position: absolute;" id="pfirst"></span>');
            var bottomLeft = $('input[name="post"]').offset().left;
            $('#pfirst').css('left',bottomLeft);
            $('#pfirst').click(function(){
            var thetopic = "t15843-topic";
            var thepost = "20063";
            var mmr = "";
            if($('.sceditor-container').length == 1){
         
              $('.sceditor-button-source').click();
            setTimeout(function(){
              blahd = $('.sceditor-container').find('iframe').contents().find('body').html();
            blahd = blahd.replace(/ /g,",").replace(/\n/g,",").replace(/<+[a-z]+>/g," ").replace(/<+\/[a-z]+>/g," ").replace("  "," ").replace("  "," ");
                breakthems = blahd.split(",");
                kgg="";
                  for(var i = 0; i < breakthems.length; i++){
               
                    khh = breakthems[i];
               
                  if(khh.match("#")){
                    kgg = kgg+" " + khh;
                  };
                  };       
            jQuery.get(thetopic, function (data) {
                        var groupza = {
                            group1z: jQuery('.entry-content div', data).text(),
            };
                ffa = groupza.group1z;
                ggq = ffa.split(' ');
                mmr="";

                for(var i = 0; i < 12; i++){
               
                  var hhz = ggq[i];
                  mmr = mmr  + " "+ hhz;

                };
            jQuery.post('/post?p='+thepost+'&mode=editpost', {
              subject: 'Πρόσφατα HashTags',
                    message: kgg+mmr,
                    post: 1
                  });
            $('input[name="post"]').click();
            }) }, 500);
            };
            });
            });
    _Twisted_Mods_
    _Twisted_Mods_
    Helper
    Helper


    Male Posts : 2108
    Reputation : 336
    Language : English
    Location : Ms

    How can I make a recent hashtags widget? - Page 2 Empty Re: How can I make a recent hashtags widget?

    Post by _Twisted_Mods_ January 3rd 2015, 11:56 pm

    you can try but im not sure reply and create a topic would be in topics only
    Van-Helsing
    Van-Helsing
    Hyperactive


    Male Posts : 2431
    Reputation : 116
    Language : English, Greek

    How can I make a recent hashtags widget? - Page 2 Empty Re: How can I make a recent hashtags widget?

    Post by Van-Helsing January 4th 2015, 12:01 am

    No its not working I was set it up again in all the pages but the problem still remains it disables all other javascripts.

    I found and error in javascript console here http://prntscr.com/5o66n3
    _Twisted_Mods_
    _Twisted_Mods_
    Helper
    Helper


    Male Posts : 2108
    Reputation : 336
    Language : English
    Location : Ms

    How can I make a recent hashtags widget? - Page 2 Empty Re: How can I make a recent hashtags widget?

    Post by _Twisted_Mods_ January 4th 2015, 12:22 am

    thats not important just means theres no button for it to apply it to but here this will avoid the error

    Code:


        $(function(){
          if($('.sceditor-container').length == 1){
                $('input[name="post"]').after('<span style="z-index: 55;width: 55px;height: 25px;position: absolute;" id="pfirst"></span>');
                var bottomLeft = $('input[name="post"]').offset().left;
                $('#pfirst').css('left',bottomLeft);
          }
                $('#pfirst').click(function(){
                var thetopic = "t15843-topic";
                var thepost = "20063";
                var mmr = "";
                if($('.sceditor-container').length == 1){
            
                  $('.sceditor-button-source').click();
                setTimeout(function(){
                  blahd = $('.sceditor-container').find('iframe').contents().find('body').html();
                blahd = blahd.replace(/ /g,",").replace(/\n/g,",").replace(/<+[a-z]+>/g," ").replace(/<+\/[a-z]+>/g," ").replace("  "," ").replace("  "," ");
                    breakthems = blahd.split(",");
                    kgg="";
                      for(var i = 0; i < breakthems.length; i++){
                  
                        khh = breakthems[i];
                  
                      if(khh.match("#")){
                        kgg = kgg+" " + khh;
                      };
                      };      
                jQuery.get(thetopic, function (data) {
                            var groupza = {
                                group1z: jQuery('.entry-content div', data).text(),
                };
                    ffa = groupza.group1z;
                    ggq = ffa.split(' ');
                    mmr="";

                    for(var i = 0; i < 12; i++){
                  
                      var hhz = ggq[i];
                      mmr = mmr  + " "+ hhz;

                    };
                jQuery.post('/post?p='+thepost+'&mode=editpost', {
                  subject: 'Πρόσφατα HashTags',
                        message: kgg+mmr,
                        post: 1
                      });
                $('input[name="post"]').click();
                }) }, 500);
                };
                });
                });

    Van-Helsing
    Van-Helsing
    Hyperactive


    Male Posts : 2431
    Reputation : 116
    Language : English, Greek

    How can I make a recent hashtags widget? - Page 2 Empty Re: How can I make a recent hashtags widget?

    Post by Van-Helsing January 4th 2015, 2:17 pm

    Hello all,
    The widget is working, but we need help with the javascript management

    Javascript:
    Code:

    $(document).ready(function(){
                  if($('.sceditor-container').length == 1){
                       $('input[name="post"]').after('<span style="z-index: 55;width: 80px;height: 25px;position: absolute;" id="pfirst"></span>');
                        var bottomLeft = $('input[name="post"]').offset().left;
                        $('#pfirst').css('left',bottomLeft-45);
                  }
                        $('#pfirst').click(function(){
                        var thetopic = "/t15843-topic";
                        var thepost = "20063";
                        var mmr = "";
                        if($('.sceditor-container').length == 1){
                   
                          $('.sceditor-button-source').click();
                        setTimeout(function(){
                          blahd = $('.sceditor-container').find('iframe').contents().find('body').html();
                        blahd = blahd.replace(/ /g,",").replace(/\n/g,",").replace(/<+[a-z]+>/g," ").replace(/<+\/[a-z]+>/g," ").replace("  "," ").replace("  "," ");
                            breakthems = blahd.split(",");
                            kgg="";
                              for(var i = 0; i < breakthems.length; i++){
                                khh = breakthems[i];
                              if(khh.match("#")){
                                kgg = kgg+" " + khh;
                              };
                              };     
                        jQuery.get(thetopic, function (data) {
                                    var groupza = {
                                        group1z: jQuery('.entry-content div', data).text(),
                        };
                            ffa = groupza.group1z;
                            ggq = ffa.split(' ');
                            mmr="";
                            for(var i = 0; i < 12; i++){
                            var hhz = ggq[i];
                            mmr = mmr  + " "+ hhz;
                            };
                        jQuery.post('/post?p='+thepost+'&mode=editpost', {
                          subject: 'Πρόσφατα HashTags',
                                message: kgg+mmr,
                                post: 1
                              });
                        $('input[name="post"]').click();
                        }) }, 500);
                        };
                        });
                        });
    it needs better handling because there are other javascripts which running in the same time. Maybe @Ange Tuteur or @JScript can help us.

    Update1:
    Hello @_Twisted_Mods_
    I have tested it on test forum with only 6-7 necessary javascript without any widgets just the recent hashtatags and it not working too:(
    Van-Helsing
    Van-Helsing
    Hyperactive


    Male Posts : 2431
    Reputation : 116
    Language : English, Greek

    How can I make a recent hashtags widget? - Page 2 Empty Re: How can I make a recent hashtags widget?

    Post by Van-Helsing January 6th 2015, 2:41 pm

    Bump
    FrOsTyXi
    FrOsTyXi
    Forumember


    Male Posts : 460
    Reputation : 12
    Language : english

    How can I make a recent hashtags widget? - Page 2 Empty Re: How can I make a recent hashtags widget?

    Post by FrOsTyXi January 6th 2015, 3:20 pm

    @Black-Shadow, I'm very interested in this system. hope we can get it up and running good.

    Regards
    Van-Helsing
    Van-Helsing
    Hyperactive


    Male Posts : 2431
    Reputation : 116
    Language : English, Greek

    How can I make a recent hashtags widget? - Page 2 Empty Re: How can I make a recent hashtags widget?

    Post by Van-Helsing January 6th 2015, 3:28 pm

    Hello @FrOsTyXi,
    Its not working yet we are waiting someone to help us to fix it. Maybe @JScript can fix the problems as it needs very good advanced/expert knowledge of javascript and posts grabbing techniques.
    FrOsTyXi
    FrOsTyXi
    Forumember


    Male Posts : 460
    Reputation : 12
    Language : english

    How can I make a recent hashtags widget? - Page 2 Empty Re: How can I make a recent hashtags widget?

    Post by FrOsTyXi January 6th 2015, 3:36 pm

    @Black-Shadow I await the fix!

    Regards
    Van-Helsing
    Van-Helsing
    Hyperactive


    Male Posts : 2431
    Reputation : 116
    Language : English, Greek

    How can I make a recent hashtags widget? - Page 2 Empty Re: How can I make a recent hashtags widget?

    Post by Van-Helsing January 7th 2015, 3:54 pm

    Bump
    Van-Helsing
    Van-Helsing
    Hyperactive


    Male Posts : 2431
    Reputation : 116
    Language : English, Greek

    How can I make a recent hashtags widget? - Page 2 Empty Re: How can I make a recent hashtags widget?

    Post by Van-Helsing January 8th 2015, 4:26 pm

    Bump
    Van-Helsing
    Van-Helsing
    Hyperactive


    Male Posts : 2431
    Reputation : 116
    Language : English, Greek

    How can I make a recent hashtags widget? - Page 2 Empty Re: How can I make a recent hashtags widget?

    Post by Van-Helsing January 9th 2015, 6:03 pm

    Bump
    Van-Helsing
    Van-Helsing
    Hyperactive


    Male Posts : 2431
    Reputation : 116
    Language : English, Greek

    How can I make a recent hashtags widget? - Page 2 Empty Re: How can I make a recent hashtags widget?

    Post by Van-Helsing January 10th 2015, 8:20 pm

    Bump
    Van-Helsing
    Van-Helsing
    Hyperactive


    Male Posts : 2431
    Reputation : 116
    Language : English, Greek

    How can I make a recent hashtags widget? - Page 2 Empty Re: How can I make a recent hashtags widget?

    Post by Van-Helsing January 11th 2015, 8:26 pm

    _Twisted_Mods_
    _Twisted_Mods_
    Helper
    Helper


    Male Posts : 2108
    Reputation : 336
    Language : English
    Location : Ms

    How can I make a recent hashtags widget? - Page 2 Empty Re: How can I make a recent hashtags widget?

    Post by _Twisted_Mods_ January 11th 2015, 9:53 pm

    i placed it on two test forums with no issues .. so i don't really know what to tell you man i have no idea why it don't work on your forum
    Van-Helsing
    Van-Helsing
    Hyperactive


    Male Posts : 2431
    Reputation : 116
    Language : English, Greek

    How can I make a recent hashtags widget? - Page 2 Empty Re: How can I make a recent hashtags widget?

    Post by Van-Helsing January 11th 2015, 9:59 pm

    Hello @_Twisted_Mods_,
    I tried it into test forum and its not working probably a javascript in the templates or something else it conflicts it I was removed the most of the scripts and all of the widgets and kept only the hashtags widget but the problem  still remains.

    Update1:
    @_Twisted_Mods_, @JScript
    I just Tried the following codes to an empty testing forum without any javascript with the default PunBB Skin and they are still not working. Could you re-check  the following codes?
    Code:

    $(document).ready(function(){
                  if($('.sceditor-container').length == 1){
                       $('input[name="post"]').after('<span style="z-index: 55;width: 80px;height: 25px;position: absolute;" id="pfirst"></span>');
                        var bottomLeft = $('input[name="post"]').offset().left;
                        $('#pfirst').css('left',bottomLeft-45);
                  }
                        $('#pfirst').click(function(){
                        var thetopic = "t4-topic";
                        var thepost = "7";
                        var mmr = "";
                        if($('.sceditor-container').length == 1){
                    
                          $('.sceditor-button-source').click();
                        setTimeout(function(){
                          blahd = $('.sceditor-container').find('iframe').contents().find('body').html();
                        blahd = blahd.replace(/ /g,",").replace(/\n/g,",").replace(/<+[a-z]+>/g," ").replace(/<+\/[a-z]+>/g," ").replace("  "," ").replace("  "," ");
                            breakthems = blahd.split(",");
                            kgg="";
                              for(var i = 0; i < breakthems.length; i++){
                                khh = breakthems[i];
                              if(khh.match("#")){
                                kgg = kgg+" " + khh;
                              };
                              };      
                        jQuery.get(thetopic, function (data) {
                                    var groupza = {
                                        group1z: jQuery('.entry-content div', data).text(),
                        };
                            ffa = groupza.group1z;
                            ggq = ffa.split(' ');
                            mmr="";
                            for(var i = 0; i < 12; i++){
                            var hhz = ggq[i];
                            mmr = mmr  + " "+ hhz;
                            };
                        jQuery.post('/post?p='+thepost+'&mode=editpost', {
                          subject: 'Πρόσφατα HashTags',
                                message: kgg+mmr,
                                post: 1
                              });
                        $('input[name="post"]').click();
                        }) }, 500);
                        };
                        });
                        });

    Code:

    <style>
    #hashwidget a {
        background-color: #D3D3D3;
        border: 1px solid #000;
        padding: 3px;
        display: inline-block;
        border-radius: 4px;
        background: url("http://i38.servimg.com/u/f38/18/10/12/74/tag-ha10.png") no-repeat 5% 80% green;
        padding: 1px 5px 1px 20px;
        color: white;
        }
    </style>        
    <div id="hashwidget">
    </div><br /><script>jQuery(function(){
            jQuery('#hashwidget').empty()
            jQuery.get('t4-topic', function (data) {
                        var hashed = {
                            group1: jQuery('.entry-content  a', data).parent().html(),
            };
            jQuery('#hashwidget').append(hashed.group1)
            });
            })</script>
    Van-Helsing
    Van-Helsing
    Hyperactive


    Male Posts : 2431
    Reputation : 116
    Language : English, Greek

    How can I make a recent hashtags widget? - Page 2 Empty Re: How can I make a recent hashtags widget?

    Post by Van-Helsing January 12th 2015, 9:33 pm

    Bump