Forum Activity for @michael

michael
@michael
12/27/17 10:14:04AM
7,832 posts

Search module/templates + FollowMe template


Design and Skin Customization

After you have changed a template, make sure you use the Reset cache tool.
ACP -> MODULES -> CORE -> SYSTEM CORE -> TOOLS -> RESET CACHES
michael
@michael
12/26/17 05:54:20PM
7,832 posts

Reordering Threaded Comments


Jamroom Developers

fire it from 'parse_url' event and you wont have to worry about priority.
michael
@michael
12/26/17 12:43:32PM
7,832 posts

TinyMce Image Margin Not Showing in Firefox


Design and Skin Customization

and thats not working?

try adding
.captionjs p figure {
 margin: 10px !important;
}
at the bottom.
michael
@michael
12/24/17 03:18:02PM
7,832 posts

Reordering Threaded Comments


Jamroom Developers

I tried fiddling with the priority too, but for whatever reason when my _init() was firing the jrComment_db_search_items_listener hadn't been set yet.

Just something to remember if any future ones dont fire.
michael
@michael
12/24/17 01:17:13PM
7,832 posts

Reordering Threaded Comments


Jamroom Developers

my first idea was to put that unregister code directly in the _init() function, but the issue I ran into was that some modules were firing their _init() function AFTER mine, so I couldn't unset them because they were't set yet. so I moved it to the next firing listener after init which was 'parse_url'.
michael
@michael
12/24/17 12:43:29PM
7,832 posts

Reordering Threaded Comments


Jamroom Developers

How about this. Put this into a module's include file. (I called it xxCommentOverride, but anything)
<?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; }

Turns off the comment modules listener.
updated by @michael: 12/24/17 12:44:30PM
michael
@michael
12/24/17 11:58:14AM
7,832 posts

Cyber Monday - up to $200 off Jamroom Premium and Pro!


Announcements

nope not seeing kittens steve. what is the URL of the kitten. is it coming from jamroom.net?

--edit--
Merry christmas @mm Nice logo! :)
updated by @michael: 12/24/17 11:58:50AM
michael
@michael
12/23/17 12:57:06PM
7,832 posts

Create New Jamroom Site refreshes to home page


Jamroom Hosting

Brian's quick to the solution as usual. it was a "referrer" of same-origin meta tag added to the site header for security reasons recently that caused the issue.

Should be working now.

Thanks
michael
@michael
12/23/17 12:26:16PM
7,832 posts

Create New Jamroom Site refreshes to home page


Jamroom Hosting

what the hell.... I see it too.

Thanks.
  163