Forum Activity for @paul

paul
@paul
10/28/14 12:46:39PM
4,335 posts

If on Profile Index


Jamroom Developers

I think {$jr_template} tells you what template you're in, so

{if $_profile_id == 4 && $jr_template == "profile_index.tpl"}

But if this code is in the profile_index.tpl template, will not the $jr_template test always be true anyway?
paul
@paul
10/27/14 10:31:21AM
4,335 posts

Player No Longer Opens as Pop Up


Using Jamroom

I think its a browser configuration that decides how a popup opens.
I know that in my browser there used to be popups but now it opens a new page (presumably this changed after an upgrade).
I've never been bothered enough to look for any browser setting to change it though - I' happy with the way it does it now !!!
paul
@paul
10/26/14 02:12:56PM
4,335 posts

multiple select live search


Jamroom Developers

You need to process the selected profiles in the form view's 'save' function into the format that you want them saving on the datastore. Are you doing that?
paul
@paul
10/26/14 11:03:25AM
4,335 posts

rotates phrases ,, good idea... :)


Using Jamroom

Good on ya ;-)
The module would just be the include.php file with its meta function, an empty init function (just "return true;") and the smarty function.
paul
@paul
10/26/14 09:55:27AM
4,335 posts

multiple select live search


Jamroom Developers

function yrModule_get_profiles(){
    $_s = array(
        "order_by"    => array("profile_name" => "ASC"),
        "limit"       => 1000000,
        "return_keys" => array("_profile_id", "profile_name")
    );
    $_rt = jrCore_db_search_items('jrProfile', $_s);
    if (is_array($_rt['_items'])) {
        $_out = array();
        foreach ($_rt['_items'] as $rt) {
            $_out[$rt['_profile_id']] = $rt['profile_name'];
        }
        return $_out;
    }
    else {
        return false;
    }
}
paul
@paul
10/26/14 09:43:36AM
4,335 posts

Player progress bar


Using Jamroom

Quote: I'm not ready to post it publicly and you don't seem to have private notes enabled.
Send the link to support [at] jamroom [dot] net if you want and I'll try it here.
paul
@paul
10/26/14 05:06:31AM
4,335 posts

Player progress bar


Using Jamroom

Show me something that does work with IE ;-)
But seriously, I've just tried with my Windows7 laptop and IE11 and it works fine.
Do you have a URL to your player that I can try?
paul
@paul
10/26/14 03:25:02AM
4,335 posts

rotates phrases ,, good idea... :)


Using Jamroom

This is done by the smarty_function_jrCore_powered_by function in /modules/jrCore/lib/smarty.php, about line 2879.
Its setup just for JR but if you adapted this function to your own 'catch phrases' and links, then included it as a function in the include.php file of a custom module, as 'smarty_function_myModule_powered_by', say, that would do it.
hth
Pa
paul
@paul
10/26/14 03:13:59AM
4,335 posts

multiple select live search


Jamroom Developers

You could do it in a 'multi_select' form field, but there is no 'multi_live_search', which is what you originally asked for.
For a 'multi_select', do something like -

    $_tmp = array(
        'name'    => 'field_name',
        'type'    => 'select_multiple',
        'label'   => 'Select Profiles',
        'help'    => 'Your help string for this field',
        'options' => 'yrModule_get_profiles',
        'default' => 0
    );
    jrProfile_register_quota_setting('yrModule', $_tmp);

'yrModule_get_profiles' would be a function to return key/value array pairs of _profile_id and profile_name
hth
Pa
paul
@paul
10/25/14 05:16:41AM
4,335 posts

Promotions System


Suggestions

Nice idea. It would certainly be doable based in the Points module I already have.
What does anyone else think?
  377