How do I find the first NON bootstrap class ancestor of my current module position?

Not sure I’m wording this right so please forgive me. I’m working on a situation where I want to apply the background to the 1st NON .container ancestor of my current module. So, for example.. <div id=”testimonials”> <div class=”container”> <div class=”row”> <div class=”moduletable bear”> I would want to apply the background to the “testimonials” id.…

Load language files inside custom library

I have a a library inside \libraries\mylib\. That library contains an include.php which uses following to load language files that are also inside a /language folder in the library: $lang = JFactory::getLanguage(); // load english language file if some constants are not translated $lang->load(‘mylib’, JPATH_SITE . ‘/libraries/mylib’, ‘en-GB’, true); // load active language file $lang->load(‘mylib’,…

1054 Unknown column ‘a.extra_query’ in ‘field list’ SQL=SELECT DISTINCT

I’m finally upgrading Joomla 2.5 to 3.9 with a step to 3.5.1. However, whatever I try, I keep getting this error: 1054 Unknown column ‘a.extra_query’ in ‘field list’ SQL=SELECT DISTINCT a.update_site_id, a.type, a.location, a.last_check_timestamp, a.extra_query FROM #__update_sites AS a INNER JOIN #__update_sites_extensions AS b ON a.update_site_id = b.update_site_id WHERE a.enabled = 1 AND b.extension_id IN…

onAfterRender plugin only triggers on backend

I have created a system plugin for onAfterRender event however I’m unable to make it execute. I’m on Joomla 3.9 Here’s the sample code of the plugin <?xml version=”1.0″ encoding=”utf-8″?> <!– /** * @copyright Copyright (c) 2018 myvendorcustomscripts. All rights reserved. * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL */ –> <extension type=”plugin” version=”1.0″ group=”content” method=”upgrade”> <name>plg_system_myvendorcustomscripts</name> <author>myvendor</author> <creationDate>October…