Announcement

Collapse
No announcement yet.

Replacement variable and links

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • Replacement variable and links

    Hello!

    I have set a replacement variable for "Vimeo.com" but the it doesn't work. I tried "Vimeo.com/*" as well.

    My replacement text:

    We apologize, but at this time, Vimeo links are not accepted. There is a conflict with Tapatalk that enables Vimeo links to become embedded. This in turn causes slower page downloads.
    Paula

  • #2
    Can you post a link to a page that contains Vimeo.com?

    Flag Icon Postbit AJAX Search Impersonate User INITIALS AVATAR Better Name Card Quote Selected Text Collapsed PM Post Footer Translate Stop Links in Posts +MORE!

    Comment


    • #3
      Here is a direct post:
      This a conflict with a third party software we are working on ;) ohh, thanks! hope you will find a solution soon! :thank:


      When I go into "edit" the post to see what is going on, the link looks like this:

      http://We apologize, but at this time, Vimeo links are not accepted. There is a conflict with Tapatalk that enables Vimeo links to become embedded. This in turn causes slower page downloads./87358833

      So the message is being put "inside" the link. Also, no one can see the message......the video just shows up as a broken image.
      Paula

      Comment


      • #4
        Replacement variable is not the solution for this. You may need to edit the bbcode_video template and modify the iframe code for vimeo. Instead of rending iframe tag, you can render

        Code:
        <p style="color:red;">We apologize, but at this time, Vimeo links are not accepted. There is a conflict with Tapatalk that enables Vimeo links to become embedded. This in turn causes slower page downloads.</p>

        Flag Icon Postbit AJAX Search Impersonate User INITIALS AVATAR Better Name Card Quote Selected Text Collapsed PM Post Footer Translate Stop Links in Posts +MORE!

        Comment


        • #5
          HI and thanks for helping! I'm not sure what to change but here is the bbcode_video template:

          <vb:if condition="$provider == 'hulu'">
          <object class="restrain" type="application/x-shockwave-flash" width="512" height="296" data="//www.hulu.com/embed/{vb:raw code}">
          <param name="movie" value="//www.hulu.com/embed/{vb:raw code}" />
          <param name="wmode" value="{vb:raw wmode}" />
          <!--[if IE 6]>
          <embed width="512" height="296" type="application/x-shockwave-flash" src="//www.hulu.com/embed/{vb:raw code}" />
          <![endif]--></object>
          <vb:elseif condition="$provider == 'youtube'" />
          <iframe class="restrain" title="YouTube video player" width="640" height="390" src="//www.youtube.com/embed/{vb:raw code}?wmode={vb:raw wmode}" frameborder="0"></iframe>
          <vb:elseif condition="$provider == 'youtube_share'" />
          <iframe class="restrain" title="YouTube video player" width="640" height="390" src="//www.youtube.com/embed/{vb:raw code}?wmode={vb:raw wmode}" frameborder="0"></iframe>
          <vb:elseif condition="$provider == 'vimeo'" />
          <object class="restrain" type="application/x-shockwave-flash" width="640" height="360" data="//vimeo.com/moogaloop.swf?clip_id={vb:raw code}">
          <param name="movie" value="//vimeo.com/moogaloop.swf?clip_id={vb:raw code}" />
          <param name="wmode" value="{vb:raw wmode}" />
          <!--[if IE 6]>
          <embed width="640" height="360" type="application/x-shockwave-flash" src="//vimeo.com/moogaloop.swf?clip_id={vb:raw code}" />
          <![endif]--></object>
          <vb:elseif condition="$provider == 'dailymotion'" />
          <object class="restrain" type="application/x-shockwave-flash" width="420" height="339" data="//www.dailymotion.com/swf/{vb:raw code}">
          <param name="movie" value="//www.dailymotion.com/swf/{vb:raw code}" />
          <param name="wmode" value="{vb:raw wmode}" />
          <!--[if IE 6]>
          <embed width="420" height="339" type="application/x-shockwave-flash" src="//www.dailymotion.com/swf/{vb:raw code}" />
          <![endif]--></object>
          <vb:elseif condition="$provider == 'metacafe'" />
          <object class="restrain" type="application/x-shockwave-flash" width="400" height="345" data="//www.metacafe.com/fplayer/{vb:raw code}.swf">
          <param name="movie" value="//www.metacafe.com/fplayer/{vb:raw code}.swf" />
          <param name="wmode" value="{vb:raw wmode}" />
          <!--[if IE 6]>
          <embed width="400" height="345" type="application/x-shockwave-flash" src="//www.metacafe.com/fplayer/{vb:raw code}.swf" />
          <![endif]--></object>
          <vb:elseif condition="$provider == 'google'" />
          <object class="restrain" type="application/x-shockwave-flash" width="400" height="326" data="//video.google.com/googleplayer.swf?docid={vb:raw code}">
          <param name="movie" value="//video.google.com/googleplayer.swf?docid={vb:raw code}" />
          <param name="wmode" value="{vb:raw wmode}" />
          <!--[if IE 6]>
          <embed width="400" height="326" type="application/x-shockwave-flash" src="//video.google.com/googleplayer.swf?docid={vb:raw code}" />
          <![endif]--></object>
          <vb:elseif condition="$provider == 'facebook'" />
          <object class="restrain" type="application/x-shockwave-flash" width="576" height="432" data="//www.facebook.com/v/{vb:raw code}">
          <param name="movie" value="//www.facebook.com/v/{vb:raw code}" />
          <param name="wmode" value="{vb:raw wmode}" />
          <!--[if IE 6]>
          <embed width="576" height="432" type="application/x-shockwave-flash" src="//www.facebook.com/v/{vb:raw code}" />
          <![endif]--></object>
          </vb:if>

          Paula

          Comment


          • #6
            Supposed to be inside the <vb:elseif condition="$provider == 'vimeo'" /> block. But I don't see in there the iframe tag that the actual page you linked is using for the Vimeo video. You are probably using custom BBCode for Vimeo videos in BB Code Manager?

            Flag Icon Postbit AJAX Search Impersonate User INITIALS AVATAR Better Name Card Quote Selected Text Collapsed PM Post Footer Translate Stop Links in Posts +MORE!

            Comment


            • #7
              I'm posting so others might benefit if they are having the same problem.

              So I looked at the Tapatalk Plugin manager and found this under "Tapatalk: Tapatalk Image Link"

              $protocol = REQ_PROTOCOL == 'https' ? 'https:' : 'http:';
              $postbits = preg_replace('/\[emoji(\d+)\]/i', '<img src="'.$protocol.'//emoji.tapatalk-cdn.com/emoji$1.png" />', $postbits);
              $postbits = preg_replace('#<a [^>]*?href="https?://(www\.)?vimeo\.com/(\d+)"[^>]*?>[^>]*?</a>#si', '<iframe src="https://player.vimeo.com/video/$2" width="500" height="300" frameborder="0"></iframe>', $postbits);
              I replaced it with:

              $protocol = REQ_PROTOCOL == 'https' ? 'https:' : 'http:';
              $postbits = preg_replace('/\[emoji(\d+)\]/i', '<img src="'.$protocol.'//emoji.tapatalk-cdn.com/emoji$1.png" />', $postbits);
              $postbits = preg_replace('#<a [^>]*?href="https?://(www\.)?vimeo\.com/(\d+)"[^>]*?>[^>]*?</a>#si', '<p style="color:red;">We apologize, but at this time, Vimeo links are not accepted. There is a conflict with Tapatalk that enables Vimeo links to become embedded. This in turn causes slower page downloads.</p>', $postbits);
              It seems to be working if you view the post again. I hope it doesn't "break" anything

              Thanks Glenn!
              Last edited by gsk8; Tue 24 Nov '15, 7:34am.
              Paula

              Comment

              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
              Working...
              X
              😀
              🥰
              🤢
              😎
              😡
              👍
              👎