-
AuthorPosts
-
TomC Moderator
TomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
April 19, 2016 at 9:58 pm #920074What 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-adeletimtecsa Friendtimtecsa
- Join date:
- October 2009
- Posts:
- 1382
- Downloads:
- 86
- Uploads:
- 327
- Thanks:
- 197
- Thanked:
- 132 times in 34 posts
April 20, 2016 at 12:05 am #920085I’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-callbackTim
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
April 20, 2016 at 5:21 am #920262This 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 Friendtimtecsa
- Join date:
- October 2009
- Posts:
- 1382
- Downloads:
- 86
- Uploads:
- 327
- Thanks:
- 197
- Thanked:
- 132 times in 34 posts
April 20, 2016 at 1:28 pm #920497I think I just replaced
preg_replace
bypreg_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 ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
April 20, 2016 at 1:38 pm #920501I think I just replaced
preg_replace
bypreg_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 Friendtimtecsa
- Join date:
- October 2009
- Posts:
- 1382
- Downloads:
- 86
- Uploads:
- 327
- Thanks:
- 197
- Thanked:
- 132 times in 34 posts
April 20, 2016 at 1:54 pm #9205072 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.
-
AuthorPosts
This topic contains 5 replies, has 2 voices, and was last updated by timtecsa 8 years, 8 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum