Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • TomC Moderator
    #920074

    What is the error message (and why does it occur) under the logo and above the artist name? http://lasvegaswrestling.net/fsw1/index.php/videos?author=robyn

    And for that matter, the error message above the artist photo/name here? —>
    http://lasvegaswrestling.net/fsw1/index.php/89-muzic-category/biography/302-adele

    timtecsa Friend
    #920085

    I’ve seen this before. I just edited the php as directed and problem went away.
    See: http://stackoverflow.com/questions/36292252/php-updating-preg-replace-to-preg-replace-callback

    Tim

    TomC Moderator
    #920262

    This is the error: _Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home3/tacraw88/publichtml/lasvegaswrestling.net/fsw1/plugins/content/jaavtracklist/jaavtracklist.php on line 298

    This is the code at the indicated file path line . . . .

    switch($value['mtype']){
                    case 'youtube':
                        $value['src'] = preg_replace('|(youtube.com/watch\?v=([a-zA-Z0-9_-]+))|e', '$this->youtubeCodeEmbed("\2")', $value['src']);
                        $context = '<iframe width="'.$width.'" height="'.$height.'" src="'.$value['src'].'" frameborder="0" allowfullscreen></iframe>';
                        return $context;
                        break;

    I looked at the link you provided, but I’m still not sure how to correct it.

    NOTE: The error occurs when I tried to add a YouTube video to the content. I removed the video syntax, and the error disappeared. This is the video syntax I was using:

    {jamedia src="https://www.youtube.com/watch?v=84WVmvRI0rU" type="video" mtype="youtube" title="Kevin Kross Excellence and Obsession"}

    I should be able to insert this video syntax to include a video within the content – shouldn’t I ??

    timtecsa Friend
    #920497

    I think I just replaced preg_replace by preg_replace_callback Have you tried Allvideos plugin from Joomlaworks to insert Youtube, Vimeo, etc, videos. Makes life easy with a little script such as (youtube}xxxxxxxx{/youtube} where xxx is the video ID.

    TomC Moderator
    #920501

    I think I just replaced preg_replace by preg_replace_callback

    Unfortunately, that didn’t seem to work

    Have you tried Allvideos plugin from Joomlawooks to insert Youtube, Vimeo, etc, videos.
    Makes life easy with a little script such as (youtube}xxxxxxxx{/youtube} where xxx is the video ID.

    I’ll give this a shot – Thanks Tim

    timtecsa Friend
    #920507

    2 things to remember with AllVideos plugin script.

    1) It goes in the text, not in html 2) It must not have a link. Just plain text.

    Good luck.

Viewing 6 posts - 1 through 6 (of 6 total)

This topic contains 5 replies, has 2 voices, and was last updated by  timtecsa 8 years, 7 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum