Search in support tickets

#553 – AdsClarity template mod_adsmanager_ads it does not return the correct template

Posted in ‘Support’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Monday, 18 March 2019 16:20 CET
thomaska
AdsClarity template mod_adsmanager_ads it does not return the correct template. To be more specific the $params->get( 'layout','vertical') returns always horizontal for some reason that i cannot understand.
Custom Fields
Joomla Version
3.9.4
PHP Version
7.3
Product
Adsclarity
Product Version
Latest
Monday, 18 March 2019 16:23 CET
thomaska
Resolved by the following:
Firstly i check the $params->get( 'align', 'hor' ) in order to see if that was the reason for returning horizontal always, but that param returns correctly the value ver.
Secondly i check the return value for the $params->get( 'layout','vertical'), which was wrong. So i just comment out the that code and i am sending the value vertical as a string in the function getLayoutPath and now the footer module with the latest ads gets the correct layout.

$tmplAllign = trim($params->get( 'align', 'hor' ));
switch ( $tmplAllign ) {
case 'ver':
/**
* $layout1 = $params->get( 'layout','vertical');
* echo "<script type='text/javascript'>alert('$layout1');</script>";
* require(JModuleHelper::getLayoutPath('mod_adsmanager_ads',$params->get( 'layout','vertical')));
*/
require(JModuleHelper::getLayoutPath('mod_adsmanager_ads','vertical'));

FYI: Please consider to check why is this happening in order to resolve it in the next release.

Best Regards
Thomas
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.