Keyword

Disabling the menu link...

  • makisnik
  • makisnik's Avatar Topic Author
  • Offline
  • New Member
More
13 years 8 months ago #42417 by makisnik
Disabling the menu link... was created by makisnik
Hello there,
i would to ask if I could do disable the menu link to the video player?
I do not want to give the option for sharing and embed ..
Is ti this possible?
thank you so much!!
Congratulations on your amazing plugin.
Makis

Please Log in or Create an account to join the conversation.

More
13 years 8 months ago #42418 by chrisjhallett
Replied by chrisjhallett on topic Re: Disabling the menu link...
:(I need this answering too - its a great plugin that could be even better with some simple documentation on how to control the appearance

chris

Please Log in or Create an account to join the conversation.

More
13 years 8 months ago #42419 by Katia
Replied by Katia on topic Re: Disabling the menu link...
Could you be more specific? Please provide with a link to your site.

Please Log in or Create an account to join the conversation.

  • makisnik
  • makisnik's Avatar Topic Author
  • Offline
  • New Member
More
13 years 8 months ago #42420 by makisnik
Replied by makisnik on topic Re: Disabling the menu link...
On the bottom of the video player it is the menu link as you see on the image.
Is ti this possible to get rid of this menu link?
If somebody does not want to give the option for sharing and embedding, (at least to easy) how this can happened?



Please Log in or Create an account to join the conversation.

More
13 years 8 months ago #42421 by c22sail
Replied by c22sail on topic Re: Disabling the menu link...
JW Player mentions two ways to do this. I have tried one with no luck. It may be they are not giving me the right file or it may be All Videos is over writting it.

The first solution: Download a version from their website that has the option for the menu viral removed. To do this, go to their download page, uncheck the box that says "Include Viral" and download. You would then need to go to you All Videos plug in:

/plugins/content/jw_allvideos/jw_allvideos/includes/js/mediaplayer

and replace the following All Video files with the same files from JW Player:

jwplayer.js
player.swf
swfobject.js

I didn't have any luck with this. The player still functions fine but the menu button is still there.

Their second solution involves a bit of code.

lo_player.addVariable('viral.allowmenu','false');

I have been combing the All Video files to see if this command exists or if there is a place for it. So far I have had no luck, but perhaps the administrator or someone else posting can find the last piece of the puzzle.

Please Log in or Create an account to join the conversation.

More
13 years 8 months ago #42422 by c22sail
Replied by c22sail on topic Re: Disabling the menu link...
I think I figured it out and this is working on my player. However, it has changed the skin on my mp3 player, which is minor to me. I would much rather get rid of the menu. If I figure out how to reskin my mp3 I will post.

This did get rid of the menu on both my video and mp3 players - though the skin is slightly different now on mp3 player. Not a big deal to me.

You will find a file called sources.php in the following folder:

/plugins/content/jw_allvideos/jw_allvideos/includes

Before making changes in this file make a backup of it so you can go back if needed.

To get rid of the "Menu" icon completely locate the code for plugins (your 'oncomplete' may be set to true).

Change:

'plugins': {
'viral-2': {
'onpause': 'false',
'oncomplete': 'false'
}
},

to:

'plugins': {},

In other words - delete everything between the plugins brackets. Remember there are two places. Works on my player.

Please Log in or Create an account to join the conversation.

More
13 years 8 months ago #42423 by c22sail
Replied by c22sail on topic Re: Disabling the menu link...
One minor point about this change: In Firefox I saw no issues. However in IE9 I noticed that the skin when using {mp3} is different. The video player looks and acts how I want in both IE and Firefox and I am really not concerned with the mp3 audio. Just thought I would point that out.

It may be something the developer can address now that we know how to get rid of the menu.

Please Log in or Create an account to join the conversation.

More
13 years 8 months ago #42424 by c22sail
Replied by c22sail on topic Re: Disabling the menu link...
Everyone

I think I finally have all of this worked out. In another topic called "Change audio player skin" I talked about how to change the skin. The first way I described, worked until I removed the MENU icon as described in this topic. It caused some problems after I removed the MENU icon. The method I described for removing the MENU icon does not change.

I went back and revisited how to change the skin and solved the problem. So I have posted a second method to change the audio player skin and all is well. My discussion on changing the audio player skin also changes the video player skin as the two are the same.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum