Keyword

How Can I put to call a plugin since the template

  • janacor
  • janacor's Avatar Topic Author
  • Offline
  • New Member
More
17 years 1 month ago #574 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,

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

More
17 years 1 month ago #575 by statichrist
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
  • janacor's Avatar Topic Author
  • Offline
  • New Member
More
17 years 1 month ago #576 by janacor
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?

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

More
17 years 1 month ago #577 by directtech
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.


Powered by Kunena Forum