Forum Activity for @the-patria-company

PatriaCo
@the-patria-company
02/03/16 04:37:20PM
349 posts

Icon Names


Design and Skin Customization

Hey Guys :)

Where can we find a list of the icon names? I would like to make a custom button.

Thanks :)
updated by @the-patria-company: 05/17/16 04:21:58AM
PatriaCo
@the-patria-company
02/03/16 12:50:56PM
349 posts

jrAction_form in modal window like site search (jrElastic)


Design and Skin Customization

I added this to my header.tpl and the embed media window opens now.
{jrCore_module_url module="jrAction" assign="murl"}

but I still can't get anything to enter into the text box. I can't type or add any content.
PatriaCo
@the-patria-company
02/03/16 11:08:59AM
349 posts

Mutual Follow "Friends" button - plus Message


Design and Skin Customization

HEY :) I GOT IT!!
<a href="javascript:void(0)" onclick="javascript:jqcc.cometchat.chatWith('{$_user_id}');">

I am using this on individual profiles. Any user of @cometchat can use this with any button or link and when clicked the message box pops up perfectly.

Not sure why it did not work in the array @paul, but we must be close.

I am still interested in the "Friends" identifier, so hopefully we can keep this open for that discussion.

Thanks :)
PatriaCo
@the-patria-company
02/02/16 08:31:50AM
349 posts

Like / Dislike on Timeline


Design and Skin Customization

Hey @paul :)

Looks like I am pushing the Like It module to its limits lol

I did use your idea and replaced the like/dislike buttons with a smiley when the timeline is showing a liked item. This is working out very well.
                            {if $item.action_module != 'jrLike'}
                            {jrLike_button item=$item action="like" module="jrAction"}
                            {jrLike_button item=$item action="dislike" module="jrAction"}                            
                            {else}
                            <img src="https://assemble-together.org/data/media/0/0/jrSmiley_2_smiley_image.png?_v=" width=24px />
                            {/if}

I have also changed the language for the dislike function to "flag this"; thus allowing our members to easily flag items that do not meet our kid safe standards.

#1. How can I keep the flagged items from posting to the activity stream? Since we don't want to draw attention to inappropriate material. (see screen shot, which is only a test)

#2. What is the simplest way to create a custom page that just shows flagged items?

Thanks :)
Screenshot 2016-02-02 10.28.02.png Screenshot 2016-02-02 10.28.02.png - 463KB
PatriaCo
@the-patria-company
02/02/16 08:16:16AM
349 posts

Mutual Follow "Friends" button - plus Message


Design and Skin Customization

In order to test this, I am attempting to make the Profile_Name a link which activates this js. like this (but this code is not working):
{if jrProfile_is_profile_owner($_profile_id)}
                <a href="{$jamroom_url}/{$profile_url}"><h1 class="profile_name">{$profile_name}</h1></a>
                {else}
                <a href="javascript:void(0)" onclick="javascript:jqcc.cometchat.chatWith('{$user_name}');"><h1 class="profile_name">{$profile_name}</h1></a>
                {/if}

I am unsure of the proper syntax to use for the chatWith('{$user_name}'); portion.

I am pretty sure cometchat is linking to users not profiles, so what should I use? $user_id?
PatriaCo
@the-patria-company
02/02/16 04:50:56AM
349 posts

Mutual Follow "Friends" button - plus Message


Design and Skin Customization

Hey Guys,

I just realized that the @cometchat js may not be loading in and that is the reason that it is not working.

How do I do this in my skin include.php:
jrCore_register_module_feature('jrCore', 'javascript', 'jrElastic', 'jrElastic.js');

To make sure the js is loading to run this:
<a href="javascript:void(0)" onclick="javascript:jqcc.cometchat.chatWith({$_f["`$item["_user_id"]`"]});">

Thanks for the help :)
PatriaCo
@the-patria-company
02/01/16 02:34:18PM
349 posts

Shared Posts Not Appearing on Profile Page Timeline


Design and Skin Customization

I can see that this would be an issue without the truncating. The twitter style activity feed (truncated, with a read more link) makes a big difference in the quick and mobile style readability. Also, the shares are important for folks with poor memory (like myself, lol) so you don't forget whether or not you shared something.

It is kind of funny that we just had a new member sign up and she said "You will need to speak to me in Facebook terms while I am learning to use this site."

Thanks for taking a closer look at this. :)
PatriaCo
@the-patria-company
02/01/16 02:22:27PM
349 posts

jrAction_form in modal window like site search (jrElastic)


Design and Skin Customization

An additional weird occurrence is when I navigate to a page other than the timeline page I get a textbox that I can type into, but the update button does not work.
Screenshot 2016-02-01 16.14.21.png Screenshot 2016-02-01 16.14.21.png - 727KB
PatriaCo
@the-patria-company
02/01/16 02:18:48PM
349 posts

jrAction_form in modal window like site search (jrElastic)


Design and Skin Customization

Ok, so this is what I have so far and I am using a cloned Elastic skin.

This is in the header_menu_desktop.tpl
            {if jrCore_module_is_active('jrAction')}
                {jrCore_lang skin=$_conf.jrCore_active_skin id=51 default="activity feed" assign="at"}
                <li><a onclick="atAction_modal_form()" title="{$at}">{jrCore_image image="A-T-Pencil.png" width=20 height=20 alt=$at style="margin-top:-3px"}</a></li>
            {/if}

Which triggers this js that I added to my skin js file:
/**
 * Display a modal new action form
 */
function atAction_modal_form(){
    $('#new_action').modal({

        onOpen: function (dialog) {
            dialog.overlay.fadeIn('fast', function () {
                dialog.container.slideDown('fast', function () {
                    dialog.data.fadeIn('fast');
                });
            });
        },
        onClose: function (dialog) {
            dialog.data.fadeOut('fast', function () {
                dialog.container.hide('fast', function () {
                    dialog.overlay.fadeOut('fast', function () {
                        $.modal.close();
                    });
                });
            });
        },
        overlayClose:true
    });
}

This opens the hidden form in the header.tpl
{* This is the new action form - shows as a modal window when the new action icon is clicked on *}
<div id="new_action" class="search_box" style="display:none;">
    {jrAction_form class="form_text" value=$at style="width:70%"}
    <div style="float:right;clear:both;margin-top:3px;">
        <a class="simplemodal-close">{jrCore_icon icon="close" size=20}</a>
    </div>
    <div class="clear"></div>
</div>

This does open the form as you can see from the screen shot, but I can not enter any text, nor does the Update button work.

Can you see where I went wrong?
Screenshot 2016-02-01 16.07.55.png Screenshot 2016-02-01 16.07.55.png - 325KB

updated by @the-patria-company: 02/01/16 02:20:02PM
  32