We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33175
    • 711 Posts
    Wendy (Djamoer) wrote some libraries but I don’t know where they can be put.
    Is it possible to add a new resource type like chunk, template, snippet, etc. or is it a choice not to have create it ?

    I have libraries to share wink
      Sorry for my english. I'm french... My dictionary is near me, but it's only a dictionary !
      • 15987
      • 786 Posts
      Quote from: kylej at Jun 28, 2006, 08:59 AM

      I got you now, this will actually be easier to do too! I should have this working soon.

      I have added the ability to deprecate a release/extra. When you edit one of your resources you now have the option of marking it deprecated. I also made it so deprecated resources do not show up in the resource listing by default, you can select them to show in the cheange results form. I marked my ajaxSearch snippet deprecated so you can see what it looks like. At this point it will be up to the users to mark there items deprecated but we could probably add in some sort of admin interface in the future to handle this on an adhoc level.

      Here is a link to my deprecated resource: http://www.modxcms.com/AjaxSearch-490.html

      Quote from: Guillaume at Jun 28, 2006, 09:35 AM

      Wendy (Djamoer) wrote some libraries but I don’t know where they can be put.
      Is it possible to add a new resource type like chunk, template, snippet, etc. or is it a choice not to have create it ?

      I have libraries to share wink

      Guillaume, would adding a category ’library’ be enough, or should we just have something like ’other’ as a catch all for things that do not fit in the categories.
        • 33175
        • 711 Posts
        I think that a category "library" would be better because it will be consult only by coders. It seems me that it will be more simple.
        And why not a category "Other". I don’t know if this category will be filled but it is a good idea for the resources of which we currently do not think, isn’t it ?
          Sorry for my english. I'm french... My dictionary is near me, but it's only a dictionary !
          • 7923
          • 4,213 Posts
          Just tried to add maxigallery to the repository, but got an parse error:

          « MODx Parse Error »
          MODx encountered the following error while attempting to parse the requested resource:
          « `1` is not numeric and may not be passed to makeUrl() »
           
          Parser timing
            MySQL: 	0.0914 s s	(2 Requests)
            PHP: 	0.1607 s s	 
            Total: 	0.2521 s s


          Jeff had the same error and he says its because the website input field only having http://, but I filled that info too.. It took quite some time for me to write all the info, could some session/cookie have expired while writing and causing this? Luckily I was expecting errors on first post so I copied all the info to text files first wink

          Gonna try adding it again now, I’ll report back soon how it goes..


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 7923
            • 4,213 Posts
            Nope, can’t get it to post, tried to remove the website address, tried with only test text in description/instruction fields, same error allways.. any suggestions?


              "He can have a lollipop any time he wants to. That's what it means to be a programmer."
              • 15987
              • 786 Posts
              Doze,
              garry did some digging last night and found the error:


              Basically, on occasion, the mysql_insert_id() command is failing in the DBAPI insert function. In these instances, it will return 0 indicating it has failed. This, in turn, causes the DBAPI insert function to return the result of the insert query: a boolean true.

              Now, passing a boolean true into the makeUrl function gives the exact error that we have been experiencing. (did a little test snippet on my test site to make sure it’s repeatable)

              We are working on a fix for this, and should hopefully have it up later today.

              Thanks,
              Kyle
                • 6726
                • 7,075 Posts
                Quote from: doze at Jun 28, 2006, 11:43 AM

                Just tried to add maxigallery to the repository, but got an parse error:

                « MODx Parse Error »
                MODx encountered the following error while attempting to parse the requested resource:
                « `1` is not numeric and may not be passed to makeUrl() »
                 
                Parser timing
                  MySQL: 	0.0914 s s	(2 Requests)
                  PHP: 	0.1607 s s	 
                  Total: 	0.2521 s s


                Jeff had the same error and he says its because the website input field only having http://, but I filled that info too.. It took quite some time for me to write all the info, could some session/cookie have expired while writing and causing this? Luckily I was expecting errors on first post so I copied all the info to text files first wink

                Gonna try adding it again now, I’ll report back soon how it goes..

                Hmmm, funny, I had the very same error when I tested the FileCabinet snippet... any link there ?
                For me, the error occured because of a missing parameter in the snippet (&action to be precise), but I doubt you guys would have made a similar mistake... anyway, I thought I’d mention it...

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


                  MODx est l'outil id
                  • 15987
                  • 786 Posts
                  Garry and I have made what we hope to be the final updates to the repository before going live tommorow! If anyone would like to add anything to it, just to make sure nothing else pops up, that would be great.

                  Thank you all for the help with testing!
                    • 25663 MODX Staff
                    • 12,272 Posts
                    Great work guys! Can’t wait. smiley
                      Ryan Thrash, MODX Co-Founder
                      Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                      • 33337
                      • 3,975 Posts
                      Exciting news! laugh
                        Zaigham R - MODX Professional | Skype | Email | Twitter

                        Digging the interwebs for #MODX gems and bringing it to you. modx.link

                      This discussion is closed to further replies. Keep calm and carry on.