We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16183
    • 1,390 Posts
    OK...tested on a local install of 0.9.6.2, FF3. Tested AdvMedia tv swf and mp3

    I get a 404 when I try to edit

    Not Found

    The requested URL /manager/media/browser/mcpuk/browser.html was not found on this server.

    which is strange because that file does exist. So, I cannot load any mp3s or swf

    The preview and fall back image bring up the FCKeditor Resources Browser fine; I can load images (though didn’t see them in the front?) AND very strange - for the swf, the image I choose gets loaded in the Flashfile .swf field!

    infotext field: adding any text with apostrophes ’ throws up a modx parse error

    MODx encountered the following error while attempting to parse the requested resource:
    « Execution of a query to the database failed - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ’s happening?’, disabled=’0’ WHERE tvid=’2’ AND docid=’73’’ at line 1 »
    SQL: UPDATE `modx`.`modx_advmedia_content` SET value=’assets/images/logo.png’, preview=’’, fallback=’’, infotext=’What’s happening?’, disabled=’0’ WHERE tvid=’2’ AND docid=’73’

    Other characters such as #~! seem to sail through ok.

    On the front end I can see the mp3 player (loading playlist it says). How would one do a playlist btw?

    Hmm, any ideas?

    Thanks
    /k
      • 23
      • 61 Posts
      uh ok

      i also tried to open the mcpuk url in the browser, works, looks like you have some htaccess which prohibites the direct call of urls in subfolders from outside, i gonna checking this, i added 2 extra javascripts to open the browser for media and flash folder

      the parse-error may caused by a non existing escaping of strings, adding that this night

      the mp3 player is flash based so it plays not all types of encodings, especially those with variable bitrate may cause problems in playback, but that is a flashbased issue, maybe i find some time to code an additional flash10 mp3 player, which supports more encodingtypes

      and i simply encountered another issue, creating a new document and changing to a template with advm variables won’t display them in the editor, this was fixed before, but doesn’t work anymore?

      going to fix that all now, laters
        • 23
        • 61 Posts
        done, i fixed the issue in saving specialchars on a tvname and fixed saving tvdata on new documents as described.

        i also added folders for each mediatype and a structured dropdownlist for each mediatype and folder in the advm tv-editor.

        all the javascript related things and such comes up this night, which will become a fight since i really don’t know why mcpuk will assign filenames to the wrong formfield on some clients.

        btw: fixing the "saving tv-data" thing with new documents was also a real fight, until i figured out that the modx-dbapi function getInsertId() isn’t working, so i used the sql command LAST_INSERT_ID() which works perfectly after saving a document.


        P.S.: smiley this is my favorite Embed Url for the AdvMedia Ext-TV-Type http://www.youtube.com/v/Yx4QgK_xEfE&hl=de&fs=1

          • 16183
          • 1,390 Posts
          Quote from: 012h at Jan 27, 2009, 06:41 PM

          done, i fixed the issue in saving specialchars on a tvname and fixed saving tvdata on new documents as described.

          i also added folders for each mediatype and a structured dropdownlist for each mediatype and folder in the advm tv-editor.
          OK, good job!
          all the javascript related things and such comes up this night, which will become a fight since i really don’t know why mcpuk will assign filenames to the wrong formfield on some clients.
          OK, hope it works
          btw: fixing the "saving tv-data" thing with new documents was also a real fight, until i figured out that the modx-dbapi function getInsertId() isn’t working, so i used the sql command LAST_INSERT_ID() which works perfectly after saving a document.

          If you are certain this is a bug, maybe you could file it in jira? But I’ll let the pros comment on this one wink
          i also tried to open the mcpuk url in the browser, works, looks like you have some htaccess which prohibites the direct call of urls in subfolders from outside

          I am not using htaccess on this install I tested advm on.

          Btw, I also noticed that with some of the templates, advm didn’t display in the editor. These were a custom template and a duplicate of the default modx one.


          Thx for your hard work!

          cheers/k

            • 23
            • 61 Posts
            i don’t think that getInsertId() is buged as it works as decribed in the wiki, it just can’t be used to request the last saved document id from the database with an external plugin

            actually advm only list Tv’s when it’s able to find some in the selected template or content, if not the plugin should show a message, "No TV’s found"

            if the complete advm-plugin doesn’t appear under edit document, check if it is enabled for OnDocFomRender in section documents under system events for the plugin

            P.S.: i should really implement an automatic installation of the plugin during moduleinstallation
              • 16183
              • 1,390 Posts
              OK...thx for the updates

              cheers/k
                • 23
                • 61 Posts
                Some little update on AdvMedia

                1.) Fixed utf8 / html characters issue
                2.) Added default flash embed templates for swf and mp3 files, without swfobject, since swfobject can cause problems when running together with lightbox in IE6

                Download: http://wiki.012h.de/doku.php?id=en:modx:advmedia:download
                  • 24393
                  • 83 Posts
                  has anyone attempted to use this with http://xmoov.com/xmoov-php/"" target="_blank" rel="nofollow">xmoov-php streaming? this would be AMAZING if it had a $stream parameter!
                    stevesunderland.com
                    GRAPHICS | INTERACTIVE | MARKETING
                    xhtml + ajax + seo websites powered by modx
                    • 23
                    • 61 Posts
                    what kind of stream parameter?

                    those 2 flv players supports playback of streaming flv-url’s, instead of choosing a flv file from the filemanager you could type in a streamurl for playback

                    if you need something else, just let me know, since i’m currently working on a next update for this addon i could add it in some way
                      • 23
                      • 61 Posts
                      Sorry but there’s another new little update for this, i added support for special characters in templatevariables laugh

                      Version 0.5 will come this weekend with support for saving playlists and such