We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6726
    • 7,075 Posts
    Quote from: MadeMyDay at Apr 19, 2006, 07:21 AM
    Hmm, just tried to trackback your blog, but it didn´t work. It doesn´t send a proper XML answer, don´t know why. For my Wordpress-Test-blog it works well as far I can see... If I had known how complicated this kind of stuff is (for a non coder), I wouldn´t have started laugh Have to investigate this...

    Yeah I have transfered my blog from Textpattern to Expression Engine, but I didn’t have enough time to research this problem nor to fix it... the problem is on my end with EE, I already had reports of this with system which work (DotClear, WordPress powered blogs unable to have trackback working...). Maybe I should also check the paranoid security settings @TextDrive, mod_security has been known to bug some TextDrive users...

      .: COO - Commerce Guys - Community Driven Innovation :.


      MODx est l'outil id
      • 15987
      • 786 Posts
      Marc,
      I was testing this out on one of my sites, and noticed a little error in the code. In the example calls you have the parameter &min, but in the code it looks for the parameter &max.

      Other than that it works great!

      Seeing max in there, I was wondering if you had thought about adding a paramter for max tags. This way if you only wanted it to return a maximum of 20 tags you could set that. Just a thought though.

      Thanks for the snippet

      Kyle
        • 17883
        • 1,039 Posts
        Thanks Kyle for this catch!

        I changed it and attached it at the first Posting.

        Seeing max in there, I was wondering if you had thought about adding a paramter for max tags. This way if you only wanted it to return a maximum of 20 tags you could set that. Just a thought though.

        max was just mixed up with min. The setting of a maximum tags would be no problem, but how to set it? The twenty most counted tags? Then it would be neccessary to sort by value, after that (un)sort back again, because otherwise you will have the most counted tags first, which wouldn´t look that good. Just explain what you mean and I will look what I can do wink

        Marc
          • 15987
          • 786 Posts
          Marc,
          I was thinking that if you wanted to show the top ten most counted tags you could set a paramter like max=10.

          This would give you some more control as to how big of an area the entire cloud takes up, since you could limit the results.

          This isnt a necessary feature but just an addon that might be nice.

          Kyle
            • 17883
            • 1,039 Posts
            Hi Kyle,

            this is a good idea. I will implement this the next days.

            Marc
              • 17883
              • 1,039 Posts
              erm, me again. How would you scale the tags then? In case of max=10 for example... The one with the least is scaled very small? In case the allocation is 4-4-4-4-4-4-5-5-5-6 there is not a big effect on the scale. And what happens if there are more equal hits than 10 (in my example there are perhaps more words with 4 hits)? Show till the next lower level is reached? I have to think ybout that, before i begin silly stuff smiley

              Marc
                • 15987
                • 786 Posts
                Those are some good points, and I’m not sure I have any good answers.

                Rethinking on why I thought a max would be nice to have, I think it is not such a great idea. Since you already have the ability to remove words you could get it to show ten reults that way if you wanted. So really I don’t think there is a need to add the new parameter, like you said the scaling would be difficult and how do you cut oof the list when multiple words could have the same count.

                And the idea of a tag cloud is to show what your site is about so why limit it wink

                F.Y.I. I have modified the AjaxSearch snippet so that the tag cloud will work with it. I will have the updated code for it out soon.
                  • 16915
                  • 52 Posts
                  Great snippet idea !
                  Thanks
                    http://www.la-rencontre.info"" target="_blank" rel="nofollow">Rencontre Musulmane

                    http://www.picsof.asia"" target="_blank" rel="nofollow">Picture Asia
                    • 30343
                    • 8 Posts
                    Hi Marc, hi All together,
                    correct me if I am wrong. But I had a quick look at the tag snippet source and for me it looks like this snippet is generating the tags by parsing all current documents always live again and again. This could be a big performance problem when having a lot of pages, couldn’t it?
                    I think we need an extra table for logging tag occurrence?
                    The simplest table structure could look like
                    tagged_word | content_id
                    .

                    Then we would need to hook into modx saving document to let the "tagged words" table to be automatically adjusted when saving a document.

                    I am completely new to modx, so I really don’t have an idea how to realize this best.

                    Any suggestions and additional ideas welcome.

                    Regards,
                    Tom
                      • 6726
                      • 7,075 Posts
                      I don’t know about this snippet taking resources, did not notice it when I tried, but it would depend on the amount of content you have, wouldn’t it ?
                      ... I would be surprised if Marc had not considered this, but storing the tag occurences might speed things up... nice idea.

                      On a completely different line of thinking, I was wondering how hard it would be to have the snippet look into TVs (don’t shoot me Marc tongue ) ?
                        .: COO - Commerce Guys - Community Driven Innovation :.


                        MODx est l'outil id