- Posts: 2
COMMUNITY FORUM
- Forum
- Free Joomla Extensions & Templates
- AllVideos
- How Can I put to call a plugin since the template
How Can I put to call a plugin since the template
- janacor
- Topic Author
- Offline
- New Member
Less
More
17 years 8 months ago #574
by janacor
How Can I put to call a plugin since the template was created by janacor
Hi,
Is possible put directly the plugin on the template ?
if (mosCountModules( 'user4' )) {
?><div id="user4">{youtube}Q84dHZACah4{/youtube}
</div>
<?php
Is correct ?
Thanks for all,
Is possible put directly the plugin on the template ?
if (mosCountModules( 'user4' )) {
?><div id="user4">{youtube}Q84dHZACah4{/youtube}
</div>
<?php
Is correct ?
Thanks for all,
Please Log in or Create an account to join the conversation.
- statichrist
- Offline
- New Member
Less
More
- Posts: 1
17 years 8 months ago #575
by statichrist
Replied by statichrist on topic Re: How Can I put to call a plugin since the template
What you would probably do is create a new module with the {youtube} code in it, and publish that module position somewhere on your site. I don't think your code is correct at all....sorry. But, make a module in "user4" position, then publish that position somewhere in your site template!
Please Log in or Create an account to join the conversation.
- janacor
- Topic Author
- Offline
- New Member
Less
More
- Posts: 2
17 years 8 months ago #576
by janacor
Replied by janacor on topic Re: How Can I put to call a plugin since the template
Thanks por the answer...
I try to create a new module
<?php
/**
* @version 1.0 $
* @package videos_template
* @copyright (C) 2007 Jaime Martinez
* @license www.gnu.org/copyleft/gpl.html GNU/GPL
*/
/** ensure this file is being included by a parent file */
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
//$videonumber= $params->get('codevideo');
?>
{youtube}UZy8P2oLPPM{/youtube}
But, I can't watch anything. What's wrong?
I try to create a new module
<?php
/**
* @version 1.0 $
* @package videos_template
* @copyright (C) 2007 Jaime Martinez
* @license www.gnu.org/copyleft/gpl.html GNU/GPL
*/
/** ensure this file is being included by a parent file */
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
//$videonumber= $params->get('codevideo');
?>
{youtube}UZy8P2oLPPM{/youtube}
But, I can't watch anything. What's wrong?
Please Log in or Create an account to join the conversation.
- directtech
- Offline
- New Member
Less
More
- Posts: 10
17 years 8 months ago #577
by directtech
Replied by directtech on topic Re: How Can I put to call a plugin since the template
janacor, I don't believe he meant to create a new module from code. He meant to create a new module simply from within Joomla. Go to Site Modules, then click New. Inside the text editor box for this new module, put your allvideos code. Then assign the new module to the position in your template that you want it to display. Create that new position in your template if you need to. No need to bust out the code here :)
Please Log in or Create an account to join the conversation.
- Forum
- Free Joomla Extensions & Templates
- AllVideos
- How Can I put to call a plugin since the template