We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26435
    • 1,193 Posts
    MODcast & MODcastAdmin 0.2.6
    by Scotty Delicious
    http://www.scottydelicious.com
    Made on a Mac™ (OS X 10.4.6) using TextMate [ http:\\:www.macromates.com ]


    based on dircaster 0.4 by Ryan King (http://www.shadydentist.com)
    ID3v2.x tag support added by Warren Stone <fasttr [at] gmail [dot] com> and
    utilizing getid3 library by James Heinrich <info [at] getid3 [dot] org>,
    http://www.getid3.org. iTunes specific tag support by Warren Stone

    The MODcast snippet generates an iTunes XML podcast feed from a folder of audio or video files.

    The MODcastAdmin snippet asks the user to create a new feed and then presents the user with an easy to manage form requesting configuration data, then writes that data to a configuration file with the same name as the feed. Example, a user creates a new feed called "mytalkshow". MODcastAdmin takes all their preferences and stuffs them into a file called mytalkshow.inc.php. To call the snippet, one would simply type [[MODcast? &feed=`mytalkshow`]]. All their prefs would be loaded automatically by the snippet. NEW! You can also use MODcastAdmin to edit and manage existing config files. Simply select the name of the "feed".inc.php file you with to edit from the drop down list, press "Load Config File", "Continue", and there are all your preferences, already in the form, just begging to be edited or embellished!

    So, again, you must call the admin snippet uncached [!MODcastAdmin!], and the page where you call MODcast from must have the template set to "blank", and its content type set to text/xml. all you need to do is specify the feed!

    I have this snippet creating a podcast of all my music.
    the music page is: http://www.scottydelicious.com/music.html
    and the podcast XML is: http://www.scottydelicious.com/modcast.xml



    CHANGE LOG:
    See MODcast_README.txt

    TO DO:
    Add file upload management (sill only 50% done)
    Change if/else statements to switch/case (100% done)

    Add more descriptive/helpful comments (forever ending, never done)
    Clean up the code (Got a damn good start today)

    KNOWN BUGS:
    #1) the subcategory gets reset everytime a saved config file is reloaded. !RESOLVED!
    #2) Check boxes don’t work. !RESOLVED!
    #3) the subcategory doesn’t work at all in KHTML/WebKit based browsers (safari, shiira, konqueror...).


    later

    -sD-
    scotty Delicious
      Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
      All of the above... in no specific order.


      I send pointless little messages
      • 2762
      • 1,198 Posts
      Thanks for sharing Scotty - nice snippet wink
        Free MODx Graphic resources and Templates www.tattoocms.it
        -----------------------------------------------------

        MODx IT  www.modx.it
        -----------------------------------------------------

        bubuna.com - Web & Multimedia Design
        • 33337
        • 3,975 Posts
        Nice snippet Scotty! smiley

        Thanks for sharing.

        regards,

        zi
          Zaigham R - MODX Professional | Skype | Email | Twitter

          Digging the interwebs for #MODX gems and bringing it to you. modx.link
          • 15826
          • 160 Posts
          Very cool! Check it off the wishlist!
            "I’d love to change the world but I can’t find the source code . . ."

            Custom ModX Templates
            • 26435
            • 1,193 Posts
            There are a few additions on my todo list:

            1) Turn this into a module + Snippet combo.
            you will be able to set the configuration through a form.
            the preferences you set in the module would be passed to the snippet
            so it could be called simply as [[MODcast]] on a blank template, text/XML page.

            2) Add an "Upload Media" option to the module so you can do all the management from the back end.

            I feel like I may be missing something, If you have any ideas, please post them here.

            -sD-

              Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
              All of the above... in no specific order.


              I send pointless little messages
              • 15826
              • 160 Posts
              Oh, Scotty, you are delicious! wink

              Yes, that would all be good, since, for instance, the client who asked for this feature for the site I’m currently building knows just enough about html to give me a headache . . . (yes, Barry, I realize you might be reading this, but I’ve already told you that in person the last time I had to fix your site grin) So making podcasting "idiot-proof" would be a very good thing.

              No great hurry, I’m still building this one out . . . but I suspect some people might need it yesterday.
                "I’d love to change the world but I can’t find the source code . . ."

                Custom ModX Templates
                • 6726
                • 7,075 Posts
                My, my this is a kickass snippet (no pun intended wink )

                I mean this is one of those things that will get bloggers out of the wood to adopt MODx as their favorite blogging tool... this, NewsListing and MaxiGallery and soon Trackbacks... why do you need WordPress or Loudblog for ?

                ;D

                I still have to install and test, but I just love the concept, and the name... man that was a sweet pick !!!
                Hats off !
                  .: COO - Commerce Guys - Community Driven Innovation :.


                  MODx est l&#39;outil id
                  • 13736
                  • 345 Posts
                  When you create the module, it would be nice to allow the date to be set on uploaded items rather than using the time stamp on the upload. Multiple reasons.

                  • If you move the podcast archive all the dates get reset.
                  • The specific need I have is that we record live events and podcast them later in the week. I would rather have the date of the event show on the podcast rather than the date we uploaded it which might be the next day.

                  Second, is there currently any way to specify the Description field for the individual podcasts? I haven’t found it yet. Ccould we get a paramater to pull that description from the MP3s comment field until a full entry form is made in the module.


                    • 13736
                    • 345 Posts
                    I read somewhere back when hand coding these things. Is the RSS tag of a Podcast actually supposed to read like this?

                    <rss xmlns:itunes="http://www.itunes.com/DTDs/Podcast-1.0.dtd" version="2.0">


                    I’m just wondering. Mine is currently only reading

                    <rss version="2.0">


                    Still seems to work just fine though.
                      • 4095
                      • 372 Posts
                      Sweet, been away for a month+, to come back and see this great Snippet. I can stop messing around with other 3rd party tools and lookat genuine MODx implimenation.

                      Cheers smiley
                        [img]http://www.emanz.ac.nz/assets/images/logo/emanz-icon_16x16.gif[/img] Emergency Management Academy of New Zealand [br] http://www.emanz.ac.nz[br][br]MODx Sandbox Login: sandbox Password: castle [br]
                        Admin Sandbox Login: sandbox Password: castle