Keyword

Responsive Template default.php Override not working anymore with 5.0

  • Markward Kufleitner
  • Markward Kufleitner's Avatar Topic Author
  • Offline
  • New Member
More
4 years 7 months ago #172806 by Markward Kufleitner
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&amp;view=article&amp;id=20154&amp;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&amp;view=article&amp;id=20155&amp;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.

More
4 years 7 months ago #172821 by JoomlaWorks
There is no change in how overrides work.

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

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Markward Kufleitner
  • Markward Kufleitner's Avatar Topic Author
  • Offline
  • New Member
More
4 years 7 months ago #172832 by Markward Kufleitner
There is no error. I don't see the override at all.

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

More
4 years 7 months ago #172837 by JoomlaWorks
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.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Markward Kufleitner
  • Markward Kufleitner's Avatar Topic Author
  • Offline
  • New Member
More
4 years 7 months ago #172842 by Markward Kufleitner
Thanks, now it works!

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

More
4 years 7 months ago #172873 by JoomlaWorks
Great :)

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum