Andrei,
The problem is fully solved. I have tried to insert again &rel=0’. This type, I have used letters and sign from your code, rather than typing them from my Mac computer. For some strange reasons, your code editor does not reckonise the sign ‘&’.
Anyhow, for the time being, it is working well.
Thanks a lot for your support.
Boke
Andrei,
I have corrected the second problem. The error has been removed.
Parse error: syntax error, unexpected end of file, expecting function (T_FUNCTION) in /home/nkoyboke/public_html/blog/wp-content/themes/Newsmag/includes/wp_booster/td_video_support.php on line 319
…..So I have remained still with the problem regarding this code 720&rel=0’
Boke
Further complication with td_video_support file……By copying the original file back to the file in the server, another error has cropped in
Parse error: syntax error, unexpected end of file, expecting function (T_FUNCTION) in /home/nkoyboke/public_html/blog/wp-content/themes/Newsmag/includes/wp_booster/td_video_support.php on line 319
I am not quite sure why this time, this error appeared. It seems the original copy was working well whenever I have put it back in the file. But this time round, it came with an error.
Line 319 does not exist.
Hi, AndreiL,
I have found td_video_support.php file.
As suggested, I have inserted the tiny code this way…
<iframe id=”td_youtube_player” width=”600″ height=”560″ src=”‘ . td_global::$http_or_https . ‘://www.youtube.com/embed/’ . self::get_youtube_id($videoUrl) . ‘?enablejsapi=1&feature=oembed&wmode=opaque&vq=hd720&rel=0’ .
It didn’t work. There is an error
Parse error: syntax error, unexpected ‘=’ in /home/nkoyboke/public_html/blog/wp-content/themes/Newsmag/includes/wp_booster/td_video_support.php on line 22
… I am suspecting the formulation of ….720&rel=0’…. has something missing. Either ‘ should be replaced by “, or 720’&rel=0’. I have tried those combinations, the error is still there.
Can you figure out the problem?
I can’t find this…..td_video_support.php…..file
I have tried to check it in this….Stylesheet (style.css) which came with newsmag, but the only place they are talking about a video is this line…
embed
*/
embed {
width: 100%;
}
.videopress-placeholder {
width: 100% !important;
}
.videopress-poster {
height: auto !important;
width: 100% !important;
}
.video-player {
width: 100% !important;
}
…..
Again, there is a line that has mentioned youtube…
It says…..}
.td-icon-youtube:before {
content: ‘\e836’;
}
GOING BY Newsmag: td_config.php (includes/td_config.php)
file, There is a mention of ;featured video. But I couldn’t see the line which I have to edit.
……..
td_global::$td_wp_admin_text_list = array(
// the text for wp-admin -> new post -> featured video box. Usually is the text that tells what post templates support video
‘text_featured_video’ => ‘
<div class=”td-wpa-info”>Paste a link from Vimeo or Youtube, it will be embedded in the post and the thumb used as the featured image of this post. <br/>You need to choose Video Format from above to use Featured Video.</div>
<div class=”td-wpa-info”>Notice: Use only with those post templates:
- Post style default
- Post style 1
- Post style 2
- Post style 3
- Post style 8
</div>’,
// admin panel – header
‘text_header_logo’ => ‘Text logo for header Style 10:’,
IF I HAVE TO DO IT MYSELF, I AM NOT FAMILIAR WITH PLAYING AROUND WITH THOSE CODES. IS THERE ANYONE WHO CAN ASSIST ME? OR WILL YOU GUIDE ME?
Thanks. I will try to update
Andrei, thanks for your quick reply. Basically let me begin with the first problem. There was an update of wordpress that was available. I have updated my wordpress. Then suddenly, I realised that my visual composer was not working. So, the elements were frozen, and the configuration of this visual composer was different.
As a result, I couldn’t drag and drop new boxes from visual composer. When I published the home page, all the videos on the homepage were frozen. But when you click on the video and go to its page, the video is available and working.
After several attempts to figure out the problems, I deleted the entire website, included wordpress. I uploaded wordpress again and then uploaded newsmag file. I have followed the instructions on the plugins that come with it, included visual composer.
The problem did not solve. I realised that the plugin of the visual composer was probably the cause of the problem. So, I decided to load it from the file in my computer and follow your instructions. It did not solve the problem.
I came to realise that there was a new visual composer. Its message reads:Welcome to Visual Composer 4.11
Congratulations! You are about to use most powerful time saver for WordPress ever – page builder plugin with Frontend and Backend editors by WPBakery. Although from your documentation, there was a clear indication that newsmag comes with visual composer, I decided to go ahead and buy this new visual composer.
It has to be activated and now all the functions of visual composer have been restored. I can drag boxes and place them on the home page.
But when you publish the home page, the problem is still there. The videos on the home page are frozen while the videos in individual pages are working.
I hope I have made myself more comprehensive.
Thanks for your help.
Boke