Forum Activity for @strumelia

Strumelia
@strumelia
01/25/17 05:03:16PM
3,605 posts

Recovering a small skin customization I lost when I moved to jr6


Using Jamroom

Ok, yes I was wondering what that new "$_user..." bit was when I looked at your code.

Question about debugging: I understand about the user id=1 thing (I'm understanding that user #1 was you logged in as me/masteradmin, right?)...can you tell me in layman's terms how, after adding such a code to run a 'debug'- how I would then actually make the debug window 'pop up'? Pop up in what program? I do have FF browser Dev tools- (used to be firebug?) is that where you are doing the 'debug'...or in JR tools somewhere? How do -I- make a debug window pop up for example when I'm editing the code of my skin's index.tpl ? Does it popup right there with the template modify window open, or do I have to paste the template code into some other window to pull up debug info ? No need to try and explain if you are pressed for time. I plan to do a little googling of 'debug' use tomorrow on a tea break at some point...I have a feeling it might help me.

Michael thank you for getting this code back working for me again. And thanks to you too Doug!
I applied the fix over on my other site as well and tested it- working fine now on both sites.
I'll mark this thread solved and move back to my other remaining site issues I need to fix tomorrow.
Strumelia
@strumelia
01/25/17 01:45:35PM
3,605 posts

Recovering a small skin customization I lost when I moved to jr6


Using Jamroom

Michael that seems to be working great! My test comments on other people's profile page comment walls did not show up just now on the main page timeline (though they properly do show up in my own profile page timeline)...but my comment on someone's audio clip showed up right away on the main page timeline.
That's awesome.
There's a stray bit of text left over though- see the number "1" randomly showing at the top left of my main page timeline feed. I looked for where I could remove it myself, but I don't see any orphaned "1" in the Index.tpl code...so if you don't want to go back in just let me know where I can remove it, if you would.

I see where you added your above code in my skin index.tpl ...and I see where you commented out the previous code. I can do the same now on my other site to fix the issue there identiacally... but I do need to know whether you did anything elsewhere aside from that index.tpl on my skin. Did you wind up doing any of the stuff you mentioned in your prior posts concerning either the "index_action.tpl" or "index_activity.tpl" ? Or is the ONLY fix I need to do on my other site involve just the above code you changed in my active skin index.tpl ? Thanks so much for helping me with this!
updated by @strumelia: 01/25/17 01:46:18PM
Strumelia
@strumelia
01/25/17 12:48:05PM
3,605 posts

Recovering a small skin customization I lost when I moved to jr6


Using Jamroom

Should I myself try the following first then, before asking for your help?..
I mean...if you say go ahead, I can try doing this:
Quote: Between adding it back to my skin index_activity, and the reference to it I've added back to my skin's index.tpl that I did with Douglas in the beginning of this thread
Strumelia
@strumelia
01/24/17 09:06:39AM
3,605 posts

Recovering a small skin customization I lost when I moved to jr6


Using Jamroom

(I understand that your very last post was meant for my other thread by the way)
But as to this thread's issue again:

michael:
You're checking if the timeline entry is a comment on the profile and if it is skip it.
    {if !(isset($item['action_item']['comment_module']) && $item['action_item']['comment_module'] == 'jrProfile')}
...

Michael I don't understand why I can't fix this simply by adding the (above) old code line back again into my current skin's index_activity.tpl ...since apparently that code got left behind during my jr5-t-6 update? (what with the timeline/array stuff associated with that update). Between adding it back to my skin index_activity, and the reference to it I've added back to my skin's index.tpl that I did with Douglas in the beginning of this thread... why wouldn't that work?

Now I'm not even sure whether I should revert my skin's index.tpl back to what it was before I started this thread?- or leave in the change that Douglas suggested that I now have in place..? I'm getting confused now.

Quote: So to get it back how it was, and only skip showing those messages on the front timeline, re-make the index_activity.tpl by copying the /modules/jrAction/templates/item_list.tpl to /skins/YOUR-SKIN/index_action.tpl

Then add that template into the jrCore_list with a template="index_action.tpl"

At this point you have EXACTLY the same as the default. Once thats working, then we start changing it.

The reason we do it like this instead of a direct override via the TEMPLATES tab in the ACP is that we still want to show those profile timeline comments on the profiles of the users who wrote them. (if you dont want them there too, then this could be done via an ACP edit.)

Let me know when thats done or if its too difficult and we'll rethink.

Michael I've read over your instructions above several times and I think it's beyond what I can (safely) attempt on my live site, without having careful step by step help.
(incidentally, I should confirm that YES I do want to "still want to show those profile timeline comments on the profiles of the users who wrote them" as you mention above.)

To help me understand what you suggest i do-

First question: Are your instructions meaning that I'm I supposed to MAKE a template? ("Then add that template into the jrCore_list with a template="index_action.tpl"") If so, I gotta first figure out how to actually 'make' templates. Should I just Google that? (I think I can use just MS Notepad text editor?)

Second: am I supposed to leave IN the skin index.tpl change that Dougles first suggested at top of this thread? Or do i revert that change out again now, before attempting to proceed with anything else?

Thanks!
updated by @strumelia: 01/24/17 09:07:40AM
Strumelia
@strumelia
01/22/17 06:35:04AM
3,605 posts

How do i let users have multiple profiles?


Using Jamroom

Zachary Moonshine:
but if i make them power users can they edit other users pages too?

You're thinking of "profile admins"- which is the quota you can use for moderators- moderators can edit/delete a member (profile) or anything a member contributes to your site, but they can't get into the site codes, skins, module settings, etc. They can look at the dashboard. Profile admins cannot delete the master admin of course.
Strumelia
@strumelia
01/21/17 04:00:22PM
3,605 posts

glitch when posting links to site media urls in comments/posts


Using Jamroom

michael:
what you're explaining is exactly how we've built it to work. That is expected functionality:
If the link is added via the [ link ] icon from the editor, then its just a link, nothing else.
That's now working right. It's just a hotlink, even if it's to a YT video url etc.

michael:If the link is just pasted into the body of the text and the "Media URL Scanner" module is active it gets converted. The purpose of the "Media URL Scanner" module is to scan media for URL's and turn them into the version at the destination of the link.

It's no longer getting converted now. At least in my first tests. I paste a youtube url into a post now (without using any 'buttons') and it's just a plain text non-clickable text of the URL.

michael:Sounds like you're wanting the URL to remain even after its been converted. That could be done with an alteration of the card templates. (if thats what you after, not 100%)
No, I wouldn't need the url to remain if people can just click the video player right in the post and watch the video right there.

So sorry- I must go out for a few hours now- will return later... thank you!!
updated by @strumelia: 01/21/17 04:01:05PM
Strumelia
@strumelia
01/21/17 03:49:37PM
3,605 posts

Recovering a small skin customization I lost when I moved to jr6


Using Jamroom

michael:
do you have the code that was in index_activity.tpl?
suspect it was just jumping the entries that were welcome messages.
Michael, Yes I have a pre-jr6 copy of that skin tpl code.
Here it is but then I have to go out for a few hours- will be back later to check any response here.

Sorry the code's a bit long but I didn't wnat to omit anything possibly important:

 {* BEGIN Activity Section *}
<a id="activdiv" name="activdiv"></a>
<div id="activitydiv" style="margin: 10px 10px 0 10px;padding-bottom: 10px;">

<div class="item"{if !jrCore_is_mobile_device()} style="max-height:916px;overflow: auto;"{/if}>

    {if isset($_items)}

    {if (jrCore_module_is_active('jrComment') && $_items[0].quota_jrComment_allowed == 'on') || (jrCore_module_is_active('jrDisqus') && $_items[0].quota_jrDisqus_allowed == 'on')}
        {assign var="img" value="comments.png"}
        {jrCore_lang module="jrAction" id="22" default="Comments" assign="alt"}
    {else}
        {assign var="img" value="link.png"}
        {jrCore_lang module="jrAction" id="23" default="Link To This" assign="alt"}
    {/if}

    {jrCore_module_url module="jrAction" assign="murl"}
    {foreach from=$_items item="item"}
    
    {if !(isset($item['action_item']['comment_module']) && $item['action_item']['comment_module'] == 'jrProfile')}

    {* Shared Action *}
    {if isset($item.action_original_profile_url)}

    <div id="a{$item._item_id}" class="action_item_holder_shared">
        <div class="container">
            <div class="row">

                <div class="col2">
                    <div class="action_item_media" title="{$item.action_original_profile_name|jrCore_entity_string}" onclick="jrCore_window_location('{$jamroom_url}/{$item.action_original_profile_url}/{$murl}/{$item.action_original_item_id}')">
                        {jrCore_module_function function="jrImage_display" module="jrUser" type="user_image" item_id=$item.action_original_user_id size="icon" crop="auto" alt=$item.user_name class="action_item_user_img img_shadow img_scale"}
                    </div>
                </div>

                <div class="col9">
                    <div class="action_item_desc">

                        <a href="{$jamroom_url}/{$item.action_original_profile_url}" class="action_item_title" title="{$item.action_original_profile_name|jrCore_entity_string}">@{$item.action_original_profile_url}</a> <span class="action_item_actions">• {$item._created|jrCore_date_format:"relative"} • {jrCore_lang module="jrAction" id="21" default="Shared By"} <a href="{$jamroom_url}/{$item.profile_url}" title="{$item.profile_name}">@{$item.profile_url}</a></span><br>

                        <div class="action_item_link" title="{$item.action_original_profile_name|jrCore_entity_string}" onclick="jrCore_window_location('{$jamroom_url}/{$item.action_original_profile_url}');">
                            {if isset($item.action_data) && strlen($item.action_data) > 0}
                                {$item.action_data}
                            {else}
                                <div class="p5">{$item.action_text|jrCore_format_string:$item.profile_quota_id|jrAction_convert_hash_tags}</div>
                            {/if}
                        </div>

                    </div>
                </div>

                <div class="col1 last">
                    <div id="d{$item._item_id}" class="action_item_delete">
                        <script>$(function () { $('#a{$item._item_id}').hover(function() { $('#d{$item._item_id}').toggle(); }); });</script>
                        {jrCore_item_delete_button module="jrAction" profile_id=$item._profile_id item_id=$item._item_id}
                        {if jrUser_is_admin() && !jrProfile_is_profile_view()}
                        <a onclick="xxDeleteEntry('{$item._item_id}');">{jrCore_icon icon="trash" size=30}</a>
                        {/if}                        
                    </div>
                </div>

            </div>
        </div>
    </div>

    {* Activity Updates *}
    {elseif isset($item.action_text)}

    <div id="a{$item._item_id}" class="action_item_holder">
        <div class="container">
            <div class="row">

                <div class="col2">
                    <div class="action_item_media" onclick="jrCore_window_location('{$jamroom_url}/{$item.profile_url}/{$murl}/{$item._item_id}')">
                        {jrCore_module_function function="jrImage_display" module="jrUser" type="user_image" item_id=$item._user_id size="icon" crop="auto" alt=$item.user_name class="action_item_user_img img_shadow img_scale"}
                    </div>
                </div>
                <div class="col9">

                    <div class="action_item_desc">

                        <a href="{$jamroom_url}/{$item.profile_url}" class="action_item_title" title="{$item.profile_name|jrCore_entity_string}">@{$item.profile_url}</a> <span class="action_item_actions">• {$item._created|jrCore_date_format:"relative"}{if jrUser_is_logged_in() && $_user._user_id != $item._user_id && $item.action_shared_by_user != '1'} • <a href="{$jamroom_url}/{$murl}/share/{$item._item_id}" onclick="if(!confirm('{jrCore_lang module="jrAction" id="9" default="Share this update with your followers?"}')) { return false; }">{jrCore_lang module="jrAction" id="10" default="Share This"}</a>{/if} {if $_post.module_url == $_user.profile_url && $item.action_shared_by_user == '1'} • <a href="{$jamroom_url}/{$item.profile_url}/{$murl}/{$item._item_id}">{jrCore_lang module="jrAction" id="26" default="shared by you"}</a> {elseif $item.action_shared_by_count > 0} • {jrCore_lang module="jrAction" id="24" default="shared by"} <a href="{$jamroom_url}/{$item.profile_url}/{$murl}/{$item._item_id}">{$item.action_shared_by_count} {jrCore_lang module="jrAction" id="25" default="follower(s)"}</a>{/if}{if $img == "comments.png"} • <a href="{$jamroom_url}/{$item.profile_url}/{$murl}/{$item._item_id}">{jrCore_lang module="jrAction" id="22" default="Comments"}: {$item.action_comment_count|default:0}</a>{/if}</span><br>

                        <div class="action_item_link">
                            <div class="p5">{$item.action_text|jrCore_format_string:$item.profile_quota_id|jrAction_convert_hash_tags}</div>
                        </div>

                    </div>
                </div>
                <div class="col1 last">
                    <div id="d{$item._item_id}" class="action_item_delete">
                        <script>$(function () { $('#a{$item._item_id}').hover(function() { $('#d{$item._item_id}').toggle(); }); });</script>
                        {jrCore_item_delete_button module="jrAction" profile_id=$item._profile_id item_id=$item._item_id}
                        {if jrUser_is_admin() && !jrProfile_is_profile_view()}
                        <a onclick="xxDeleteEntry('{$item._item_id}');">{jrCore_icon icon="trash" size=30}</a>
                        {/if}                        
                    </div>
                </div>

            </div>
        </div>
    </div>

    {* Registered Module Action templates *}
    {elseif isset($item.action_data)}

    {jrCore_module_url module=$item.action_module assign="lurl"}

    <div id="a{$item._item_id}" class="action_item_holder">
        <div class="container">
            <div class="row">

                <div class="col2">
                    {if isset($item.album_title_url)}
                    <div class="action_item_media" onclick="jrCore_window_location('{$jamroom_url}/{$item.profile_url}/{$lurl}/albums/{$item.album_title_url}')">
                        {elseif isset($item.action_title_url)}
                        <div class="action_item_media" onclick="jrCore_window_location('{$jamroom_url}/{$item.profile_url}/{$lurl}/{$item.action_item_id}/{$item.action_title_url}')">
                            {else}
                            <div class="action_item_media">
                                {/if}
                                {jrCore_module_function function="jrImage_display" module="jrUser" type="user_image" item_id=$item._user_id size="icon" crop="auto" alt=$item.user_name class="action_item_user_img img_shadow img_scale"}
                            </div>
                        </div>
                        <div class="col9">

                            <div class="action_item_desc">

                                <a href="{$jamroom_url}/{$item.profile_url}" class="action_item_title" title="{$item.profile_name|jrCore_entity_string}">@{$item.profile_url}</a> <span class="action_item_actions">• {$item._created|jrCore_date_format:"relative"}{if jrUser_is_logged_in() && $_user._user_id != $item._user_id && $item.action_shared_by_user != '1'} • <a href="{$jamroom_url}/{$murl}/share/{$item._item_id}" onclick="if(!confirm('{jrCore_lang module="jrAction" id="9" default="Share this update with your followers?"}')) { return false; }">{jrCore_lang module="jrAction" id="10" default="Share This"}</a>{/if} {if $_post.module_url == $_user.profile_url && $item.action_shared_by_user == '1'} • <a href="{$jamroom_url}/{$item.profile_url}/{$murl}/{$item._item_id}">{jrCore_lang module="jrAction" id="26" default="shared by you"}</a> {elseif $item.action_shared_by_count > 0} • {jrCore_lang module="jrAction" id="24" default="shared by"} <a href="{$jamroom_url}/{$item.profile_url}/{$murl}/{$item._item_id}">{$item.action_shared_by_count} {jrCore_lang module="jrAction" id="25" default="follower(s)"}</a>{/if}</span><br>

                                {if isset($item.album_title_url)}
                                <div class="action_item_link" onclick="jrCore_window_location('{$jamroom_url}/{$item.profile_url}/{$lurl}/albums/{$item.album_title_url}')">
                                    {elseif isset($item.action_title_url)}
                                    <div class="action_item_link" onclick="jrCore_window_location('{$jamroom_url}/{$item.profile_url}/{$lurl}/{$item.action_item_id}/{$item.action_title_url}')">
                                        {else}
                                        <div class="action_item_link">
                                            {/if}
                                            {$item.action_data}
                                        </div>

                                    </div>
                                </div>
                                <div class="col1 last">
                                    <div id="d{$item._item_id}" class="action_item_delete">
                                        <script>$(function () { $('#a{$item._item_id}').hover(function() { $('#d{$item._item_id}').toggle(); }); });</script>
                                        {jrCore_item_delete_button module="jrAction" profile_id=$item._profile_id item_id=$item._item_id}
                                        {if jrUser_is_admin() && !jrProfile_is_profile_view()}
                                            <a onclick="xxDeleteEntry('{$item._item_id}');">{jrCore_icon icon="trash" size=30}</a>
                                        {/if}
                                    </div>
                                </div>

                            </div>
                        </div>
                    </div>

    {/if}
    
    {/if}
    
    {/foreach}
                    {if $info.total_pages > 1}
                        <div class="block">
                            <table style="width:100%;">
                                <tr>

                                    <td style="width:25%;">
                                        {if isset($info.prev_page) && $info.prev_page > 0}
                                            <input type="button" value="{jrCore_lang module="jrCore" id=26 default="<"}" class="form_button" onclick="jrLoad('#activitydiv','{$jamroom_url}/index_activity_list/p={$info.prev_page}/pb={$info.pagebreak}');$('html, body').animate({ scrollTop: $('#activdiv').offset().top -100 }, 'slow');return false;">
                                        {/if}
                                    </td>

                                    <td style="width:50%;text-align:center;">
                                        {if $info.total_pages <= 5}
                                            {$info.page}  / {$info.total_pages}
                                        {else}
                                            <form name="form" method="post" action="_self">
                                                <select name="pagenum" class="form_select" style="width:60px;" onchange="var sel=this.form.pagenum.options[this.form.pagenum.selectedIndex].value;jrLoad('#activitydiv','{$jamroom_url}/index_activity_list/p=' +sel+'/pb={$info.pagebreak}');$('html, body').animate({ scrollTop: $('#activdiv').offset().top -100 }, 'slow');">
                                                    {for $pages=1 to $info.total_pages}
                                                        {if $info.page == $pages}
                                                            <option value="{$info.this_page}" selected="selected"> {$info.this_page}</option>
                                                        {else}
                                                            <option value="{$pages}"> {$pages}</option>
                                                        {/if}
                                                    {/for}
                                                </select> / {$info.total_pages}
                                            </form>
                                        {/if}
                                    </td>

                                    <td style="width:25%;text-align:right;">
                                        {if isset($info.next_page) && $info.next_page > 1}
                                            <input type="button" value="{jrCore_lang module="jrCore" id=27 default=">"}" class="form_button" onclick="jrLoad('#activitydiv','{$jamroom_url}/index_activity_list/p={$info.next_page}/pb={$info.pagebreak}');$('html, body').animate({ scrollTop: $('#activdiv').offset().top -100 }, 'slow');return false;">
                                        {/if}
                                    </td>

                                </tr>
                            </table>
                        </div>
                    {/if}
    {/if}
</div>
</div>
{* END Activity Section *}

updated by @strumelia: 01/21/17 03:50:01PM
Strumelia
@strumelia
01/21/17 03:38:43PM
3,605 posts

glitch when posting links to site media urls in comments/posts


Using Jamroom

Michael- I applied the update.
Now, when using the 'link' icon in the editor to post a link to for example a Youtube video URL, it creates a simple hotlink url...which is good!
BUT- when pasting that same URL straight into my post without using any buttons, it no longer creates a 'card' of a player in the post where folks can watch the video right there in the post. Not only that, but it won't even make the url a hot link...just the non-clickable text of the URL....at least that's how the update is working for me...that's not good I'm afraid.
I think absolutely everyone will want to keep the feature whereas a link to a video or audio clip pasted straight into a sentence in a post will create a playable clip right there in the post- it's very cool. It's only the link button that was doing the wacky stuff. Now the link button works normally but the direct paste of a link without using buttons no longer makes a card for media and no longer makes a hotlink either.
I know the two things are connected to each other in some ways - likely hard to fix one without effecting the other, right? I really do appreciate the work going into this. I might be nearing PITA status I fear.
updated by @strumelia: 01/21/17 03:40:18PM
Strumelia
@strumelia
01/21/17 01:06:44PM
3,605 posts

Recovering a small skin customization I lost when I moved to jr6


Using Jamroom

Unfortunately, that doesn't seem to work even though it seems logical. Just tested it by making a new comment on a member's Profile page, which immediately showed up on the Index page Timeline. Did integ check of course, and browser refresh etc.
This is the new code as I changed it to (but it's not working):
{* BEGIN Activity Section *}
                <a id="activdiv" name="activdiv"></a>
                <div id="activitydiv" style="margin: 10px 10px 0 10px;padding-bottom: 10px;">
                    <div class="item"{if !jrCore_is_mobile_device()} style="max-height:916px;overflow-y:auto;overflow-x:hidden"{/if}>
                        {jrCore_list module="jrAction" search1="action_module != jrFollower" search2="action_data NOT_LIKE %\"comment_module\":\"jrProfile\"%" order_by="_item_id desc" pagebreak=50 page=$_post.p}
                        <br>
                        <div style="width:100%;text-align:center;padding:10px">
                            <a href="{$jamroom_url}/timeline">View More</a>
                        </div>
                    </div>
                </div>

            </div>
            {* END Activity Section *}

updated by @strumelia: 01/21/17 01:11:51PM
Strumelia
@strumelia
01/21/17 12:53:18PM
3,605 posts

glitch when posting links to site media urls in comments/posts


Using Jamroom

Thank you so much Michael! Looking forward to it! :D
  100