Forum Activity for @michael

michael
@michael
06/15/20 04:12:22AM
7,720 posts

livesearch field id has changed


Jamroom Developers

??? its not a class on the text field?
michael
@michael
06/15/20 04:06:12AM
7,720 posts

Timeline - Birth of Child - in wrong timeline


Genosis

Don't delete anything until we know thats the right thing to do. Send me the GEDCOM file to support at jamroom dot net along with a link to this thread.

I'll import that and you can run me through where the issue is.

Thanks.
michael
@michael
06/15/20 03:47:43AM
7,720 posts

livesearch field id has changed


Jamroom Developers

once the change that got added today gets out there then that could be changed to:
$(".live_search_mymod_profile").on( "change", function() {
but its not been released yet, so
var id = $('.live_search_text').attr('id');
id.on( "change", function() {
would work now and continue working after the update too PROVIDED there is only one live search on that page.

--edit--
or that may be
var id = $('.live_search_text').attr('id');
$('#' + id).on( "change", function() {
not sure, probably this.
updated by @michael: 06/15/20 03:49:21AM
michael
@michael
06/15/20 03:25:18AM
7,720 posts

livesearch field id has changed


Jamroom Developers

by 'listened for' are we in php or javascript? A jamroom listener or a jquery .on()?
michael
@michael
06/14/20 07:58:53PM
7,720 posts

Timeline - Birth of Child - in wrong timeline


Genosis

Can you outline some steps for me to follow to see it happening please. I'll need to create a setup that matches your situation then once I can see it happening and understand what the desired/expected behavior is I can get setup to fix it.

Thanks.
michael
@michael
06/14/20 07:56:32PM
7,720 posts

Jamroom forum not sending notifications


Using Jamroom

no error at mailgun.... hmmm.

* anything in DASHBOARD -> ACTIVITY LOG
* or DASHBOARD -> ERROR LOG
* are all the lights green at: ACP -> CORE -> SYSTEM CORE -> TOOLS -> SYSTEM CHECK
* do the settings at ACP -> MODULES -> COMMUNICATION -> EMAIL SUPPORT -> GLOBAL CONFIG line up correctly, eg: is the ACTIVE EMAIL SYSTEM set to "Mailgun Email API"?
* if you go to ACP -> COMMUNICATION -> EMAIL SUPPORT -> TEST EMAIL what happens?
* are the settings at ACP -> COMMUNICATION -> MAILGUN API -> GLOBAL CONFIG correct?
michael
@michael
06/14/20 07:48:26PM
7,720 posts

Can I edit the url for my forum category?


Using Jamroom

Still the same I think, no issue. The previous URL's
https://www.jamroom.net/the-jamroom-network/forum/using-jamroom/63550
https://www.jamroom.net/the-jamroom-network/forum/using-jamroom/63550/can-i-edit-the-url-for-my-forum-category
https://www.jamroom.net/the-jamroom-network/forum/using-jamroom/63550/my-favorite-food-is-chocolate
https://www.jamroom.net/the-jamroom-network/forum/using-jamroom/63550/sometimes-i-like-to-go-hiking
https://www.jamroom.net/the-jamroom-network/forum/using-jamroom/63550/this-part-of-the-url-is-just-for-show-or-seo

can also be found at
https://www.jamroom.net/the-jamroom-network/forum/my_posts/63550
https://www.jamroom.net/the-jamroom-network/forum/my_posts/63550/can-i-edit-the-url-for-my-forum-category
https://www.jamroom.net/the-jamroom-network/forum/my_posts/63550/my-favorite-food-is-chocolate
https://www.jamroom.net/the-jamroom-network/forum/my_posts/63550/sometimes-i-like-to-go-hiking
https://www.jamroom.net/the-jamroom-network/forum/my_posts/63550/this-part-of-the-url-is-just-for-show-or-seo

or:
can also be found at
https://www.jamroom.net/the-jamroom-network/forum/new_posts/63550
https://www.jamroom.net/the-jamroom-network/forum/new_posts/63550/can-i-edit-the-url-for-my-forum-category
https://www.jamroom.net/the-jamroom-network/forum/new_posts/63550/my-favorite-food-is-chocolate
https://www.jamroom.net/the-jamroom-network/forum/new_posts/63550/sometimes-i-like-to-go-hiking
https://www.jamroom.net/the-jamroom-network/forum/new_posts/63550/this-part-of-the-url-is-just-for-show-or-seo


I just tried:
https://www.jamroom.net/the-jamroom-network/forum/can-i-change-this-to-anything/63550/can-i-edit-the-url-for-my-forum-category

and it still brought up the correct post, so its just a vanity url. (I can go dig in the code to confirm if necessary, haven't looked at this area in a long time.)
michael
@michael
06/14/20 07:41:42PM
7,720 posts

livesearch field id has changed


Jamroom Developers

from jrCore 6.5.4 the field name will be there as a class too, so if your field is 'something_something' then it will have a class 'live_search_something_something' which you can use to target to get the ID or just target off of that as it will be unique.
michael
@michael
06/14/20 06:59:53PM
7,720 posts

livesearch field id has changed


Jamroom Developers

A structure for live search looks like this:
  $_tmp = array(
        'name'          => 'profile_user_id',
        'group'         => 'admin',
        'label'         => 'profile owner',
        'help'          => 'What User Account should this profile be created for?  The User Account selected here will have admin capabilities for the Profile.',
        'type'          => 'live_search',
        'target'        => "{$_conf['jrCore_base_url']}/{$_post['module_url']}/get_profile_users",
        'required'      => false,
        'validate'      => 'number_nz',
        'form_designer' => false // We do not allow the form designer to override this field
    );
    jrCore_form_field_create($_tmp);

the 'get_profile_users' function looks like this:

//------------------------------
// get_profile_users
//------------------------------
function view_jrProfile_get_profile_users($_post, $_user, $_conf)
{ jrUser_admin_only(); $lim = 12; if (!empty($_post['limit']) && jrCore_checktype($_post['limit'], 'number_nz')) { $lim = (int) $_post['limit']; } $_sc = array( 'search' => array( "user_name like {$_post['q']}%" ), 'return_keys' => array('_user_id', 'user_name'), 'skip_triggers' => true, 'ignore_pending' => true, 'privacy_check' => false, 'limit' => $lim ); $_rt = jrCore_db_search_items('jrUser', $_sc); $_sl = array(); if ($_rt && is_array($_rt) && is_array($_rt['_items'])) { foreach ($_rt['_items'] as $_v) { $_sl["{$_v['_user_id']}"] = $_v['user_name']; } } return jrCore_live_search_results('profile_user_id', $_sl); }

If you only have one live_search on the page, it will have the class .live_search_text. You're wanting to get the ID for that right? If so, then you could do:
var id = $('.live_search_text').attr('id');

If you've got more than one, then we probably should add a unique class name into the core code, so there is a .live_search_unique_(field_name) in there too. You need that?
updated by @michael: 06/14/20 07:00:12PM
  55