Keyword

Responsive Template default.php Override not working anymore with 5.0

  • Markward Kufleitner
  • Markward Kufleitner's Avatar Topic Author
  • Offline
  • New Member
More
2 weeks 2 days ago #172806 by Markward Kufleitner
Markward Kufleitner created the topic: Responsive Template default.php Override not working anymore with 5.0
Hello,

with 5.0 our Template Override templates/ourtemplatename/html/jw_allvideos/Responsive/default.php is not working anymore.

The override default.php has following contents (in Short it is an GDPR Overlay before starting the youtube video):

<?php
/**
* @version 4.8.0
* @package AllVideos (plugin)
* @author JoomlaWorks - www.joomlaworks.net
* @copyright Copyright (c) 2006 - 2017 JoomlaWorks Ltd. All rights reserved.
* @license GNU/GPL license: www.gnu.org/copyleft/gpl.html
*/

// no direct access
defined('_JEXEC') or die('Restricted access');
$lang = JFactory::getLanguage();
?>

<div class="avPlayerWrapper<?php echo $output->mediaTypeClass; ?>">
<div class="avPlayerContainer">
<div id="<?php echo $output->playerID; ?>" class="avPlayerBlock">
<?php if($lang->getTag() == "de-DE") { echo '<div class="iframe-div"><p><br><br><br>Um unsere Videos ansehen zu können müssen Sie akzeptieren,<br>dass Ihre Daten nach Youtube übertragen werden (siehe <a class="dsgvo jcepopup" href="index.php?option=com_content&view=article&id=20154&Itemid=1087&tmpl=component">unsere Datenschutzerklärung</a>).
<br><input class="datenschutz-checkbox" name="datenschutz-checkbox" type="checkbox" value="1" /> <label for="datenschutz-checkbox"><strong>Ich willige ein, dass meine Daten nach Youtube übertragen werden.</strong></label></p></div>'; } elseif($lang->getTag() == "en-GB") { echo '<div class="iframe-div"><p><br><br><br>To watch our videos you have to accept,<br>that your data is transferred to YouTube. (see <a class="dsgvo jcepopup" href="index.php?option=com_content&view=article&id=20155&Itemid=1088&tmpl=component">our privacy policy</a>).
<br><input class="datenschutz-checkbox" name="datenschutz-checkbox" type="checkbox" value="1" /> <label for="datenschutz-checkbox"><strong>I agree that my data will be transferred to YouTube.</strong></label></p></div>'; } echo $output->player; ?>
<?php if ($allowAudioDownloading && $output->mediaType=='audio'): ?>
<div class="avDownloadLink">
<a target="_blank" href="<?php echo $output->source; ?>">
<span><?php echo JText::_('JW_PLG_AV_DOWNLOAD'); ?></span>
</a>
<span class="hint">(<?php echo JText::_('JW_PLG_AV_DOWNLOAD_HINT'); ?>)</span>
</div>
<?php endif; ?>
</div>
</div>
</div>

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
2 weeks 1 day ago #172821 by Fotis
Fotis replied the topic: Responsive Template default.php Override not working anymore with 5.0
There is no change in how overrides work.

Are you seeing some error or just not seeing your override at all?

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

  • Markward Kufleitner
  • Markward Kufleitner's Avatar Topic Author
  • Offline
  • New Member
More
2 weeks 1 day ago #172832 by Markward Kufleitner
Markward Kufleitner replied the topic: Responsive Template default.php Override not working anymore with 5.0
There is no error. I don't see the override at all.

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
2 weeks 18 hours ago #172837 by Fotis
Fotis replied the topic: Responsive Template default.php Override not working anymore with 5.0
Rename the folder in your Joomla template from "Responsive" to something else, e.g. "MyResponsive". Then open the AllVideos plugin parameters and select the renamed override.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

  • Markward Kufleitner
  • Markward Kufleitner's Avatar Topic Author
  • Offline
  • New Member
More
2 weeks 15 hours ago #172842 by Markward Kufleitner
Markward Kufleitner replied the topic: Responsive Template default.php Override not working anymore with 5.0
Thanks, now it works!

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
1 week 1 day ago #172873 by Fotis
Fotis replied the topic: Responsive Template default.php Override not working anymore with 5.0
Great :)

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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


Powered by Kunena Forum