We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 31471
    • 206 Posts
    1.) I inserted "{m{flv}m} {m{yt}m} {m{image}m}" in a template and gave values to these variables on a page.

    Viewing the page FlowPlayer says: "200 Stream not found (...) .../index.php/assets/media/video.flv" - this url is strange...
    The YouTube box is white and empty...
    The image gives a 25x25 px box with with the text: "Zoom". Clicking on it is working ok, as it should with Slimbox2.

    2.) On another page I call the snippet:
    [[AdvMedia? &tvname=`flv` &docid=`9` &valuetype=`value`]]
    [[AdvMedia? &tvname=`yt` &docid=`9` &valuetype=`value`]]
    [[AdvMedia? &tvname=`image` &docid=`9` &valuetype=`value`]]

    And the result is the three url’s:
    assets/media/video.flv http://www.youtube.com/watch?v=-ybx2j9R3VA assets/images/image.jpg

    1.) Could you give me a hint on these issues? Maybe I miss something.
    2.) Can the snippet show the actual videos/images somehow?

    And... could this all be independent to the site-template?
      • 23
      • 61 Posts
      Hi vhollo

      depends on the youtube url you used, for advm you need to type in the url from the flash-object ("src-value") that youtube offers in the right grey box on the upper right side.

      for example, here is a flashobject copied from the youtube textfield at youtube.com from a clippage

      <object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/2iY210xDMN4&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/2iY210xDMN4&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>

      http://www.youtube.com/v/2iY210xDMN4&hl=en&fs=1 is the source-url to be used in advm, since advm does nothing else than inserting this url into the object-tag from the advm-youtube-template.

      If you are planning to use the snippet you can retrieve this url you saved within the manager on your document from the database with the parameter &valuetype=`value` for this way it’s the best to create a chunk including the youttube-object-tag with the snippetcall as the sourcevalue.

      so, advm template-variables can be placed everywhere, chunks, tinymce-content, and so on, as long as they are visible on your website during rendering for the advm-plugin to recognize and assign the variable to a document-id.

      the snippet itself is just a little helper, for example when you use ditto to list more than one advm-item with the same tvname within a document.

        • 17282
        • 283 Posts
        This is great!

        I tried the ditto + advmedia tutorial on your website .. cant for the life of me get it too work!
        the snippet call just does nothing!
          Everytime you use Flash ... a puppy dies .....
          R.G Taylor
          • 23
          • 61 Posts
          Hey Lizard

          the snippet only returns the advmedia-values that were saved with a document, so it is needed to use a sitetemplate which uses an advmedia-tv to save stuff with those documents that are used with ditto, if there’s no data it will return nothing

          easily said, just add an advmedia-tv to your site-templates that are used by your ditto-documents and save some stuff for that advmedia-tv in the ditto-documents, as shown in the tutorials for adding advmedia content.

          after that you can retrieve the saved data with the snippet within ditto for the given document-id, you can use phx to display some other stuff if a document has no advmedia content

          P.S.: Didn’t i described this on the wiki? let me know so i will add this info if not
            • 3874
            • 6 Posts
            wow this is a fantastic bit of work, I needed something like this for a band website I’m doing and so far everything is working great (bar a few minor hiccups but thats more stupidity on my part grin)

            Thanks so much for this

              • 23
              • 61 Posts
              :D pleasure

              when you have any suggestions how i could improve the usability of this addon, let me know, since i’m still trying to figure out how i can speed up the procedure for adding advm content to a document, especially that template-variable stuff