Change Module Landing Page?
Using Jamroom
The suggestion is just to add that to the top. When that is in the template, the template will redirect instead of displaying.
.captionjs p figure {
margin: 10px !important;
}
<?php
/**
* @copyright 2018 noone
*/
// make sure we are not being called directly
defined('APP_DIR') or exit();
/**
* meta
*/
function xxCommentOverride_meta(){
$_tmp = array(
'name' => 'Comment Override',
'url' => 'commentoverdrive',
'version' => '1.0.0',
'developer' => 'noone, ©' . strftime('%Y'),
'description' => 'Stops the jrComment_db_search_items_listener listener from firing',
'category' => 'custom',
'license' => 'mpl',
'priority' => 255
);
return $_tmp;
}
/**
* init
*/
function xxCommentOverride_init(){
jrCore_register_event_listener('jrCore', 'parse_url', 'xxCommentOverride_parse_url_listener');
return true;
}
function xxCommentOverride_parse_url_listener($_data, $_user, $_conf, $_args, $event)
{
if (isset($GLOBALS['__JR_FLAGS']['jrcore_event_listeners']['jrCore_db_search_items'])) {
if ($pos = array_search('jrComment_db_search_items_listener', $GLOBALS['__JR_FLAGS']['jrcore_event_listeners']['jrCore_db_search_items'])) {
unset($GLOBALS['__JR_FLAGS']['jrcore_event_listeners']['jrCore_db_search_items'][$pos]);
}
}
return $_data;
}