Forum Activity for @the-patria-company

PatriaCo
@the-patria-company
03/03/16 04:15:44PM
349 posts

Photo Album List Display in Side Bar


Design and Skin Customization

OK, I tried it and got a white screen :(

So I reverted to the original code at the top of the post.

I am really stuck, because it is pulling the correct photo album and making the correct link, but it is using the wrong image for the thumbnail.

Any other thoughts?
PatriaCo
@the-patria-company
03/03/16 03:58:48PM
349 posts

Group Search for Profile Display


Design and Skin Customization

Ok, here is what I have and I think it is going to work out for now. It places a thumbnail of the group image for groups that the profile owner has created, in the side bar. Additionally, when the profile owner is viewing their profile I added a link to view Groups I Follow; thus eliminating the additional menu item in the account drop down menu (elastic skin).

[code]
{if !jrCore_is_mobile_device() && jrCore_module_is_active('jrGroup')}

{capture assign="my_groups_tpl"}
{literal}
{jrCore_module_url module="jrGroup" assign="murl"}
{if isset($_items)}
{foreach from=$_items item="item"}
<a href="{$jamroom_url}/{$item.profile_url}/{$murl}/{$item._item_id}/{$item.group_title_url}">{jrCore_module_function function="jrImage_display" module="jrGroup" type="group_image" item_id=$item._item_id size="small" crop="auto" class="img_shadow" width=58 height=58 style="padding:2px;margin-bottom:4px;" alt="{$item.group_title|jrCore_entity_string}" title="{$item.group_title|jrCore_entity_string}" _v=$item._updated}</a>
{/foreach}
{/if}
{/literal}
{/capture}

{jrCore_list module="jrGroup" profile_id = "`$_profile_id`" assign="groups" template=$my_groups_tpl}
{if strlen($groups) > 0}
<div class="block block_profile_left">
<h3>My Groups:</h3>
<div class="block_content mt10">
<div style="padding-top:8px">
{$groups}
</div>
{if jrProfile_is_profile_owner($_profile_id)}
<a href="{$jamroom_url}/group/my_groups">Groups I Follow</a>
{else}
{/if}
</div>
</div>
{/if}
{/if}
{/code]

ENJOY <img src="https://www.jamroom.net/data/media/0/0/jrSmiley_140_smiley_image.png" style="height: 20px" alt=":)">
PatriaCo
@the-patria-company
03/03/16 08:32:03AM
349 posts

Photo Album List Display in Side Bar


Design and Skin Customization

Agreed, and I did try that. I changed my {foreach} condition to $item.photoalbum_photos as $img_id and of course it messed up the hyperlink that is looking for $item. Can you have multiple conditions in the {foreach} statement?
{foreach from=$_items item="item" && $item.photoalbum_photos as $img_id}

I was looking around the code for possible examples of this, but I could not verify it. So I wanted to ask first.

Thanks so much for your help. :)
PatriaCo
@the-patria-company
03/02/16 04:57:09PM
349 posts

add "Empty Playlist" help text to the profile tab.


Design and Skin Customization

That worked great! Thank you so very much. This is what I used for the playlist module.

{else}
<center><br>
OH NO!  You have not selected any audio to add your playlist yet.<br><br>Browse some audio <a href="{$jamroom_url}/audio">here</a> and click on the &#9835; to add it your playlist.
</center>
{/if}
PatriaCo
@the-patria-company
03/02/16 04:28:47PM
349 posts

jrAction_form in modal window like site search (jrElastic)


Design and Skin Customization

I am getting closer, but I need a little more help please. Here is my code so far:
function atAction_modal_form() {
    
	$('#new_action').modal({

        onOpen: function (dialog) {
            dialog.overlay.fadeIn('fast', function () {
                dialog.container.slideDown('fast', function () {
                    dialog.data.fadeIn('fast', function () {
					    if (tinymce.EditorManager.activeEditor !== 'undefined') {
                        tinymce.settings = ehtml_content;
                        tinymce.EditorManager.execCommand('mceAddEditor', false, 'ehtml_content');
                        }
					});	
                });
            });
        },
        onClose: function (dialog) {
            dialog.data.fadeOut('fast', function () {
                dialog.container.hide('fast', function () {
                    dialog.overlay.fadeOut('fast', function () {
                        if (tinymce.EditorManager.activeEditor !== 'undefined') {
                            tinymce.EditorManager.execCommand('mceRemoveEditor', false, 'ehtml_content');
                        }
						$.modal.close();
                    });
                });
            });
        },
        overlayClose:true
    });
}
When I turn on the editor I get this error: ReferenceError: ehtml_content is not defined
I am unable to type into the text box.

When I turn the editor off I get ReferenceError: tinymce is not defined
I am able to type and save, but I the close modal window [x] does not work.

Any thoughts?
PatriaCo
@the-patria-company
03/02/16 03:17:08PM
349 posts

Mutual Follow "Friends" button - plus Message


Design and Skin Customization

Thanks again @paul for helping to get this started. I am getting into it again, because only the message link was solved. I am looking closer at the button_following.tpl and think a simple {if} statement could do the trick.

{jrCore_lang module="jrFollower" id="6" default="No longer follow this profile?" assign="prompt"}
{jrCore_lang module="jrFollower" id="8" default="You are currently following this profile" assign="title"}
{if "follow back"}
<input type="button" id="unfollow" class="profile_button follow_button friends=(add blue css)" name="follow" value="{$value}" title="{$title}" onclick="if(confirm('{$prompt|addslashes}')) { jrUnFollowProfile('unfollow',{$profile_id}); }">
{else}
<input type="button" id="unfollow" class="profile_button follow_button following" name="follow" value="{$value}" title="{$title}" onclick="if(confirm('{$prompt|addslashes}')) { jrUnFollowProfile('unfollow',{$profile_id}); }">
{/if}

What could we use to query the db and create the condition for the {if}?
Adding a new css style for the "Friends" button will be easy.

Thanks :)
PatriaCo
@the-patria-company
03/02/16 12:36:16PM
349 posts

Photo Album List Display in Side Bar


Design and Skin Customization

I am very close on this one, but I am stuck. The thumbnails of the photo albums are showing up with the correct link, but it is calling the wrong id for the image.

{if isset($_items)}
            {foreach from=$_items item="item"}
                <a href="{$jamroom_url}/{$item.profile_url}/{$murl}/{$item._item_id}/{$item.photoalbum_title_url}">{jrCore_module_function function="jrImage_display" module="jrGallery" type="gallery_image" item_id=$item._item_id size="small" crop="auto" class="img_shadow" width=58 height=58 style="padding:2px;margin-bottom:4px;" alt="{$item.photoalbum_title|jrCore_entity_string}" title="{$item.photoalbum_title|jrCore_entity_string}" _v=$item._updated}</a>
            {/foreach}
            {/if}

I know this is wrong: item_id=$item._item_id

but I have used the debug and replaced $item._item_id with everything I could see including $item.photoalbum_photos ...

Could someone throw me a bone on this one please?

Thanks :)
updated by @the-patria-company: 06/03/16 10:54:06AM
PatriaCo
@the-patria-company
03/02/16 10:48:42AM
349 posts

Group Search for Profile Display


Design and Skin Customization

I think I found the info I need, but I am unsure as to how to write the search syntax to search inside of an array.

group_member => Array (3)
    41 => Array (13)
      member_id => "10"
      member_created => "1456861815"
      member_user_id => "41"
      member_group_id => "5"
      member_status => "1"
      member_active => "1"
      member_more => ""
      _user_id => "41"
      user_name => "John Smith"
      _profile_id => "73"
      profile_url => "john-smith"
      profile_name => "John Smith"
      profile_quota_id => "21"

The profile_id is in there :) and we may need to search for member_active =1 first.

What do you think?
updated by @the-patria-company: 03/02/16 10:50:42AM
PatriaCo
@the-patria-company
03/02/16 09:06:15AM
349 posts

Customize Site-wide Tag Cloud


Design and Skin Customization

Correct :) I am wanting a custom background just for the tag cloud page.

Any suggestions for this?
PatriaCo
@the-patria-company
03/01/16 05:27:46PM
349 posts

Group Search for Profile Display


Design and Skin Customization

Hey Guys,

I am adding a "My Groups" display to my sidebar (elastic skin) much like the latest followers.

I am stuck on the search params required to only show groups I own or have joined.

{jrCore_list module="jrGroup" search1="group_member_id = `$_profile_id`" search2"group_owner? = `$_profile_id`" assign="groups" template=$my_group_tpl}

I know that group_owner is wrong, but I can't see how that is stored from the data store. Plus, the group_member_id is not working either.

I hope someone can help me with this.

Thanks
updated by @the-patria-company: 06/02/16 05:16:08PM
  30