We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1058
    • 14 Posts
    This is an auto-generated support/comment thread for AjaxVideoBoxConnector.

    Use this forum to post any comments about this addition or any questions you have regarding its use.

    Brief Description:
    The Ajax Video Box Connector includes many different online videoservices in your website
    so that it will look like the Lightbox which you may know from pictures.
      • 1058
      • 14 Posts
      Are there any comments or suggestions about this?
      I Also would like to hear some feedback what you think about this.
        • 7231
        • 4,205 Posts
        This looks very cool. I can actually use this on an upcoming project. Thanks for the contribution.
          [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

          Something is happening here, but you don't know what it is.
          Do you, Mr. Jones? - [bob dylan]
          • 5529
          • 70 Posts
          Alex,

          I’m having a hard time getting it up and going. I’m having trouble with your directions unfortunately...

          If you didn’t ask for comments I probably wouldn’t have said anything.

          Quote from: alexZero at Jun 08, 2008, 03:40 PM

          Are there any comments or suggestions about this?
          I Also would like to hear some feedback what you think about this.
            • 1058
            • 14 Posts
            Ok, where is the point which makes the trouble? My directions at all?

            I tested on a new installed modx and on a working copy and things worked fine, so where is the problem?
              • 5529
              • 70 Posts
              Alex,

              I’m sure it’s working fine. I’m just having a little trouble following your instructions with the grammar. I know you’re not from the US so don’t even worry about it. I’m sorry to bring it up but I’d really like to use this and I’m just having a hard time with it.....I really don’t want to offend you. You’ve done a great job here and I’m just trying to learn from it.

              First off, do you have a working example you can show us somewhere? I’m not even sure what this thing looks like when it’s all set up correctly?

              Second, the instructions:

              Step 1: got it...no problem
              Step 2: got it...no problem
              Step 3: got it...no problem
              Step 4: What are "unwanted services offline"? And, there are no "hints at bottom". And, do I have to make a directory or does the default install ’media’ directory work? Also, where do I specify this directory so that the snippet knows where to find it?
              Step 5: Not really a problem but I don’t understand how the snippet knows which specific video to call? How do I tell it which YouTube video to use?

              Quote from: alexZero at Jun 12, 2008, 03:32 AM

              Ok, where is the point which makes the trouble? My directions at all?

              I tested on a new installed modx and on a working copy and things worked fine, so where is the problem?
                • 1058
                • 14 Posts
                So if you would disable Guba for example you will set the corresponding "active"-flag to false, like in the example Code so that Veoh an YouTube are active and the snippet will only support them as Guba is not working, therefore script send’s an error message to the user.

                A really small example for for point 4, code taken out of servicesList.php:
                <?php
                $embedServiceParams = array(
                  'yt' => array(
                    'id_pattern' =>'%[^A-Za-z0-9_\\-]%',
                    'urlp'=>'http://www.youtube.com/v/',
                    'urls'=>'&autoplay=1&border=0',
                    'active' => true
                  ),'veoh' => array(
                    'urlp'=>'http://www.veoh.com/videodetails2.swf?permalinkId=',
                    'urls'=>'&player=videodetails&videoAutoPlay=1',
                    'active' => true
                  ),'guba' => array(
                    'id_pattern'=>'%[^0-9\\-]%',
                    'urlp'=>'http://www.guba.com/f/root.swf?bid=',
                    'urls'=>'&isEmbeddedPlayer=true',
                    'active' => false
                  )
                );
                ?>


                To your questiuon @ 5: In the readme is a point calles "Service-IDs", there are the supported service you must specify in the snippet call.
                As you cold see in the code before YouTube is shortened wit "yt", you also can find this in the brackts after the service-id.

                The "parser" in the snippet looks for this service id an takes the prefix and suffix out of the servicesList.php and builds the anchor-tag which gives the needed data to the javascripts.. it’s hard to describe how he thing works, but took a short look into the snippet you may understand better how it’s done.
                  • 5529
                  • 70 Posts
                  Alex,

                  Can you answer some of the other questions I posed there? You answered one of them well but left the others... wink
                    • 1058
                    • 14 Posts
                    Quote from: cmlawson at Jun 17, 2008, 06:19 PM

                    Alex,

                    Can you answer some of the other questions I posed there? You answered one of them well but left the others... wink

                    Sorry, an example page is available here.

                    Ok, if you would embed the video from http://youtube.com/watch?v=VKEOFVCqZZY you took the last part VKEOFVCqZZY of the YouTube URL and you set it as the input parameter. In most cases the video services on the internet call a specific link with the video id, if you take this as value of the input param then the snippet also calls the right video.
                      • 5529
                      • 70 Posts
                      Alex,

                      Thank you so much! Having an example clears things up so much!