New Dynamic YouTube Gallery - Embed YouTube Playlist, Channel, Live Stream in minutes. Read More

Loading the Plugin from a link

  • Marcia Petterson
  • Topic Author
  • Visitor
  • Visitor

Loading the Plugin from a link was created by Marcia Petterson

I have a component that sends an email when a video has been purchased and includes a link to the site where they can download the video & I am trying to get AllVideoShare to play the video within this link but it is only showing the actual syntax ie {avsplayer videoid=15}
It plays fine within an article and I believe the problem is that the download link is not actually loading the plugin. What code do I need to add to load the plugin?
To see an example:
www.mitchgoslingmembers.com/index.php?op...tx=8TB563237G021202U

Much appreciated
10 years 1 month ago #6638

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

  • Posts: 2478
  • Thank you received: 1451

Replied by Administrator on topic Re: Loading the Plugin from a link

Our plugin code will work only in the Joomla's article pages. It seems you're using the code in 'com_nicepaypaldownloads' component. But, still this is achievable if the component developer have option to load "third party plugins" in their content area.
10 years 1 month ago #6639

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

  • Marcia Petterson
  • Topic Author
  • Visitor
  • Visitor

Replied by Marcia Petterson on topic Re: Loading the Plugin from a link

they obviously don't at the moment so I was looking to add it. I believe the code would be structured something like:
JPluginHelper::importPlugin()
$dispatcher = JDispatcher::getInstance();
$results = $dispatcher->trigger( '<EventName>', <ParameterArray> );

but could you tell me exactly what I need to load the AllVideoShare plugin
10 years 1 month ago #6640

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

  • Posts: 2478
  • Thank you received: 1451

Replied by Administrator on topic Re: Loading the Plugin from a link

Just try,
JPluginHelper::importPlugin('content')
$dispatcher = JDispatcher::getInstance();
$results = $dispatcher->trigger( 'onContentPrepare', array() );
10 years 1 month ago #6641

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

  • Marcia Petterson
  • Topic Author
  • Visitor
  • Visitor

Replied by Marcia Petterson on topic Re: Loading the Plugin from a link

Your suggestion loads the AllVideoShare plugin but the text containing the {avsplayer videoid=15} is not passed through - it is component data and not contained in an article. The text is stored in a variable $data and I believe the AllVideoShare plugin needs it to be in $row for onPrepareContent (I was a bit confused as there was also an onContentPrepare $article but I don't think this is being used)

Is there a way I can specifically load the AllVideoShare plugin and pass the $data into $row used by AllVideoShare plugin?

For an example see:
www.mitchgoslingmembers.com/index.php?op...tx=8TB563237G021202U

I have installed J!Dump which gives a pop-up display of the content of the variables.
10 years 1 month ago #6684

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

  • Marcia Petterson
  • Topic Author
  • Visitor
  • Visitor

Replied by Marcia Petterson on topic Re: Loading the Plugin from a link

Unless there is an easy solution don't worry about this I think I need to go about it in a different way. Your help has been appreciated.
10 years 1 month ago #6697

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

Time to create page: 0.105 seconds

We accept cookies to provide you the best viewing experience. By using our services, you agree to our use of cookies