• Resolved dogel

    (@dogel)


    Hi,

    I am sorry to say, but the plugin doesn’t really work in a satisfying way on a multisite of mine. The link I added leads to a post on a sub-site of that multi-site (video is at the end of the post).

    I can only get it to work if I change the “https” part of the youtube link to “httpv” in the code editor. But it is not possible to make that change in the visual editor, which is the only thing I can expect from my clients (i.e. clicking on the video and choosing “edit”) – the saved code will always switch back to https, and with https the plugin doesn’t work although “Also act on normal YouTube links and iframes?” is activated.

    Note: The plugin “Easy FancyBox” (which can handle YouTube links) is also installed, but first its Youtube options are deactivated, and secondly, I deactivated it for testing purposes (cleared all cache) and Youtube Lyte still wouldn’t work.

    Any chance to get that working for regular Youtube links?

    The page I need help with: [log in to see the link]

Viewing 6 replies - 16 through 21 (of 21 total)
  • Thread Starter dogel

    (@dogel)

    Thanks for your continued support and feedback, I appreciate that very much! But I added the filter function you posted (to functions.php) and it doesn’t work as intended (i.e. a regular Youtube embed happens).

    Concerning the possibility of an unrendered Youtube URL in the content: I suppose those users would still wrap that in a link (<a>-tag), so IMO that would/could make the difference between “just a link” and a rendered video preview.

    • This reply was modified 5 years, 5 months ago by dogel.
    • This reply was modified 5 years, 5 months ago by dogel.
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    re. youtube URL’s; maybe, but LYTE supposes differently for a long time already and as such that’s a kind of implicit “promise” I don’t want to risk breaking ??

    re. code snippet; can you copy/past an exact example of the HTML of the youtube-video as added in the backend by TinyMCE advanced?

    Thread Starter dogel

    (@dogel)

    Re Youtube-URLS: Maybe an option to treat youtube links that are in a p-Tag? Would be nice… ??

    This is what it looks like in the editor in “text mode” (including the paragraph above it – there’s no content below it):

    <p>Für Video gilt ?hnliches wie für Audio. Allerdings sind Videodateien oft zu gro? für den Upload. Daher, und auch im Sinne m?glichst weitreichender Kompatibilit?t mit allen Ger?ten, ist es ratsam, Videos zuerst auf Youtube oder Vimeo hochzuladen und dann hier nur den Link zur entsprechenden Youtube- oder Video-Seite einzufügen (durch Kopieren und Einfügen der <em>Youtube-Adresse</em> aus der Titelzeile des Browsers – nicht den "Einbettungscode" von Youtube verwenden!). Das sieht dann z.B. so aus wie folgt:</p>
    <p>https://www.youtube.com/watch?v=GA_L49YdfOQ</p>
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    OK, small change to the code snippet to make sure it doesn’t stop after one vid;

    
    add_filter('lyte_content_preparse','lyte_remove_leadingp');
    function lyte_remove_leadingp($in){
      $out = preg_replace('#^<p>(http(?:s)?://(?:www.)?youtu)#m','$1',$in);
      return $out;
    }

    this was tested with your example code, so it _should_ work ??

    Thread Starter dogel

    (@dogel)

    Wow, that’s really great! It works now.

    Thank you once more for all your efforts, this is the best support (for a FREE plugin!) one can possibly imagine!

    I’ll add a 5-star rating right now…

    • This reply was modified 5 years, 5 months ago by dogel.
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    ??

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘Not working on Multisites automatically’ is closed to new replies.