Forum Activity for @developer-networks

Developer Networks
@developer-networks
09/20/16 11:41:32AM
566 posts

Is it possible to exclude modules from the jrCore_list jrAction


Jamroom Developers

I have a jrCore_list using the action module. Is it possible in jamroom to exclude modules from returning in the array by excluding by paramaters like this
exclude_modules="jrComments"

updated by @developer-networks: 12/23/16 03:51:29AM
Developer Networks
@developer-networks
09/19/16 09:31:15PM
566 posts

How to allow a module but exclude it from the profile menu


Jamroom Developers

I need to allow profile forums to a specific quota but also I need to remove it only from the profile menus to those quotas specifically. How would this be done?

Thanks.
updated by @developer-networks: 12/19/16 07:17:37PM
Developer Networks
@developer-networks
09/19/16 03:54:27AM
566 posts

jrSeamless_list returned array is excluding quotas


Jamroom Developers

I see what you mean. I will try that out, thanks!

But it does seem like ive found a user permissions / bug in the way the jrSeamless_list function works with quotas....

I guess the confusion here is that using a standard jrSeamless_list within these paramaters should allow me to work with in my template and manipulate this data already.

But the jrSeamless module has completely excluded entire quotas from the results....




updated by @developer-networks: 09/19/16 09:33:02PM
Developer Networks
@developer-networks
09/17/16 05:38:51PM
566 posts

jrSeamless_list returned array is excluding quotas


Jamroom Developers

I have been working on a site that uses a lot of quotas and forums. One quota "Group A" has profile forums. I have tried using a jrCore_seamless list to show site wide the most recent blogs, forums, and discussions in a list used in a seamless list of these modules.

The problem i ran in to here is that thethe jrSeamless_list array is excluding and not returning all posts. I estimate this is related to the group B quotas not allowed having a "Profile forum" and when group B posts on group A profile forum they are not displayed in the jrSeamless_list array

{jrSeamless_list modules="jrForum,jrBlog,jrGroupDiscuss"  order_by="_created desc" search2="forum_title_url like % || blog_title_url like % || discuss_title_url like %" template="latest_tab.tpl" pagebreak="20" dId="thetab1"}

in the returned array of the jrSeamless_list does not display any of "group B" quotas posts in the Group A profile jrSeamless_list. Is this because group B is not allowed a "profile forum" in their quota?

I tried verifying that all quotas site wide are in fact allowed access to the jrForums module. However if the quotas are not allowed a "profile forum" then their posts to a profile forum are not showing in the jrSeamless_list array when returned

I assumed the problem here is that of: Profile group B new post is not returned in the array of the jrSeamless list because group B settings in the quota does not allowed a profile forum option so their posts on group A's profiles forums.


Also to note I believe I could do a work around using the jrAction module however it would not explain why the jrSeamless list excludes the group B profiles posts on group As forums
updated by @developer-networks: 12/20/16 01:25:28AM
Developer Networks
@developer-networks
09/09/16 12:07:48PM
566 posts

Editing Activity Timeline


Design and Skin Customization

Add this list:
{jrCore_list module="jrAction" profile_id=$_profile_id include_followed=true order_by="_item_id numerical_desc" template="remove_activity.tpl" }


Add this template to your skin remove_activity.tpl
{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 jrUser_is_admin()}
            {if isset($_items)}
                <div style="float: right;">
                   <a href="{$jamroom_url}/timeline/delete/id={$item._item_id}">X</a>
                </div>
            {/if}
        {/if}
        {* 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="col10 last" style="position:relative">

                            <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}
                            </div>

                            <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">&bull; {$item._created|jrCore_date_format:"relative"} &bull; {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>
                </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="col10 last" style="position:relative">

                            <script>$(function() { $('#a{$item._item_id}').hover(function() { $('#d{$item._item_id}').toggle(); }); });</script>
                            <div id="d{$item._item_id}" class="action_item_delete">
                                {jrCore_item_update_button module="jrAction" profile_id=$item._profile_id item_id=$item._item_id}
                                {jrCore_item_delete_button module="jrAction" profile_id=$item._profile_id item_id=$item._item_id}
                            </div>

                            <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">&bull; {$item._created|jrCore_date_format:"relative"}{if jrUser_is_logged_in() && $_user._user_id != $item._user_id && $item.action_shared_by_user != '1'} &bull; <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'} &bull; <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} &bull; {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"} &bull; <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>
                </div>
            </div>

            {* Registered Module Action templates *}
        {elseif isset($item.action_data) && strpos($item.action_data, '{') !== 0}

            {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="col10 last" style="position:relative">

                <script>$(function() { $('#a{$item._item_id}').hover(function() { $('#d{$item._item_id}').toggle(); }); });</script>
                <div id="d{$item._item_id}" class="action_item_delete">
                    {jrCore_item_delete_button module="jrAction" profile_id=$item._profile_id item_id=$item._item_id}
                </div>

                <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">&bull; {$item._created|jrCore_date_format:"relative"}{if jrUser_is_logged_in() && $_user._user_id != $item._user_id && $item.action_shared_by_user != '1'} &bull; <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'} &bull; <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} &bull; {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>
            </div>
            </div>

        {/if}


    {/foreach}

{/if}
Developer Networks
@developer-networks
08/30/16 10:42:16AM
566 posts

Setting up the Mogul skin, images not appearing


Design and Skin Customization

Have you tried running integrity check?

Click the ACP gear at the top right of your menu:
system tools -> Integrity Check

This is a handy feature that resets cache and makes sure the system is in order.
updated by @developer-networks: 08/30/16 10:43:56AM
Developer Networks
@developer-networks
08/30/16 07:00:30AM
566 posts

Adding Tags Using Form Designer


Design and Skin Customization

jrSeamless_list modules="jrVideo,jrYouTube" order_by="_created numerical_desc"  search1="youtube_grade_0 = Football || video_tag_0 = Football" search2="youtube_grade_1 = 3rd/4th || video_tag_1 = 3rd/4th" pagebreak=15 page=$_post.p pager=false template="video_list.tpl"}
Developer Networks
@developer-networks
08/29/16 12:46:52PM
566 posts

Adding Tags Using Form Designer


Design and Skin Customization

What you have is working perfectly now. You just need to make templates that correlates to what you want to show.

You can use the site builder to make the lists as I showed you above so the templates filter content to display only the desired category / grades for each page.

IE...

create a page 3rd/4th grade football.

Here is an example 3rd4th_football.tpl
{jrCore_include template="header.tpl"}

<h1>3rd/4th Grade Football</h1>

{jrCore_list module="jrYoutube" search1="youtube_grade_0 = football" search2="youtube_grade_1 = 3rd/4th" order_by="_created numerical_asc" pagebreak="20" pager="true" page=$_post.p }

{jrCore_include template="footer.tpl"}

updated by @developer-networks: 08/30/16 06:16:32AM
Developer Networks
@developer-networks
08/29/16 12:23:54PM
566 posts

Adding Tags Using Form Designer


Design and Skin Customization

So now that you have it set up properly you can sort the data like this:

Your Category is: {$item.youtube_grade_0}
Your Grade is: {$item.youtube_grade_1}

That will display the parameters you have just created.


so your jrSeamless_list will use something like this to sort.
search1="youtube_grade0 = football" search2="youtube_grade1 = 3rd/4th" 


Hope this helps

updated by @developer-networks: 08/30/16 06:15:56AM
  9