Forum Activity for @michael

michael
@michael
09/15/16 04:39:44AM
7,832 posts

Display Signup form field on Profile


Using Jamroom

In most locations on the profile you will find a {$_profile} section in the profiles, the {$_user} variable is the user looking at the screen, but in that template the {$_profile} array has been expanded out into individually callable variables for readability.

So where normally you might need to type {$_profile._user_id} to get the user_id of the profile that is being looked at, in this template all of the sub variables of the $_profile array have been exploded to their own stand alone variables, so {$_user_id} is the variable of the profile being looked at.

You can test this by putting:
THE PROFILE NAME IS {$profile_name} and the user_id is {$_user_id}
into that template, then switch between profiles and watch it change. If its you then the sentence wont change. (but it will)

--edit--
If you use {$_user._user_id} you will get your info on every page.
updated by @michael: 09/15/16 04:51:42AM
michael
@michael
09/15/16 04:24:59AM
7,832 posts

Nervous about re-sizing images


Using Jamroom

LesRinchen:.... and I imagine it will allow photos to load faster too....
Nope, all images will already be being cached and run through the image system. You probably wont notice any speed increase.

Like here on jamroom.net you can see my image here:
https://www.jamroom.net/user/image/user_image/4/icon

and you can view it at any of the allowed sizes:
Quote: image size - must be one of: 24,xxsmall,40, xsmall,56,72,small,96,icon96,128, icon,196,medium, 256,large,320,larger,384, xlarge,512,xxlarge,800, xxxlarge,1280,original
so any of those URLs will work

https://www.jamroom.net/user/image/user_image/4/24
https://www.jamroom.net/user/image/user_image/4/40
https://www.jamroom.net/user/image/user_image/4/128
https://www.jamroom.net/user/image/user_image/4/256
https://www.jamroom.net/user/image/user_image/4/320
https://www.jamroom.net/user/image/user_image/4/800
https://www.jamroom.net/user/image/user_image/4/1280

But no other sizes will, so if your user uploads a 4000x4000 then viewed in a skin, it will probably show one of the set sizes.
updated by @michael: 09/15/16 09:01:01PM
michael
@michael
09/15/16 04:19:56AM
7,832 posts

jamroom license issues...


Installation and Configuration

delete the module from the ACP, then re-add it via the marketplace.

Should get the license system working. I've seen that happen before when I uploaded the module via FTP.
michael
@michael
09/15/16 02:26:13AM
7,832 posts

No thumbnails on Vimeo private videos


Using Jamroom

Logged in as the admin user, I can see the videos.

The images do not show though.

In the images section the code is:
<img class="iloutline img_scale" src="">
The issue is there is no URL in the src="" part to tell it what image to display. Needs a bit of debugging to figure out whats going on with the image.
michael
@michael
09/14/16 09:56:25PM
7,832 posts

Display Signup form field on Profile


Using Jamroom

Paul has done this in the profile_sidebar.tpl file:
{$_ut = jrCore_db_get_item('jrUser', $_user_id)}

He's taken the {$_user_id} which is the user id that is associated with the profile being viewed, then retrieved it from the datastore.

If you want to know what is available in that $_ut, then you can put debug after it and it will appear in the debug console:
 {$_ut = jrCore_db_get_item('jrUser', $_user_id)}
{debug}

Your desired info will be there PROVIDED $_user_id is an actual number value in the location you're trying to use it. Not all variables are the same in all templates. $_user_id should be there anywhere in the profile section though and refer to the user id of the profile owner.

You can then access stuff in that array in the usual way:
{$_ut.user_location}
or
{$_ut['user_location']}
are exactly the same, just different notation.
michael
@michael
09/14/16 09:44:55PM
7,832 posts

Data Browser truncates out Timeline profile id #s that i need


Using Jamroom

Just need your OK and I'll plug it in to your site.
michael
@michael
09/14/16 09:31:03PM
7,832 posts

Data Browser truncates out Timeline profile id #s that i need


Using Jamroom

got some code, can I install it into your system? Will add it via the Template Editor at:
ACP -> SKINS -> (your current skin) -> TEMPLATES -> index_activity.tpl -> MODIFY

The code needs to go into 3 locations in that template to add the delete buton.

The code is:
{if jrUser_is_admin() && !jrProfile_is_profile_view()}
    <a onclick="xxDeleteEntry('{$item._item_id}');">{jrCore_icon icon="trash" size=30}</a>
{/if}

Then one location to put this, and at the bottom of that page:
<script>
    function xxDeleteEntry(id) {
        if (confirm('Are you sure you want to Delete this timeline entry?')) {
            var url = core_system_url + '/' + jrAction_url + '/browser_item_delete/id=' + id + '/__ajax=1';
            jrCore_set_csrf_cookie(url);
            $.get(url, function (r)
            {
                $('#a' + id).fadeOut();
            });
        }
    }
</script>


--edit--
Updated the code to a better system. The entries will delete and disappear when you click the delete button, but you'll still need to use the cache refresh tool to clear the caches once you've done pruning.
updated by @michael: 09/15/16 08:07:28PM
michael
@michael
09/14/16 08:46:28PM
7,832 posts

Data Browser truncates out Timeline profile id #s that i need


Using Jamroom

hold on, I'll get some code for you.
michael
@michael
09/14/16 08:40:31PM
7,832 posts

Jamroom performance


Jamroom Developers

Should be no problem using utf8mb4, its a newer system. Jamroom supports mysql 5.3 which doesnt have mb4 or otherwise we would likely use that. As it is now there are workarounds in place to deal with emoji issues that wouldn't be needed if we were using mb4.

As to why the different tables, it has to do with indexing, one is faster for read/writes the other for reads only. (from memory)

I think INNODB also supports transactions, but don't recall that we're using them.
michael
@michael
09/14/16 08:36:15PM
7,832 posts

Data Browser truncates out Timeline profile id #s that i need


Using Jamroom

Strumelia:..my larger problem is that I often use the Data Browser to remove items from the Home page Timeline WITHOUT deleting them from the site. I do this to prevent certain member actions from getting front page attention. Then the lack of seeing the profile_id # is a problem- to identify which comments or posts I want to delete ...from the Timeline only...

Would not a delete button on the timeline entry on the home page be an easier solution?

Forgive me, trying understand the root of the problem. Its unclear to me why deleting from the Data Browser is a better option than a delete button on the home page.

(The timeline is under heavy development right now for something exciting coming up.)
  352