Forum Activity for @the-patria-company

PatriaCo
@the-patria-company
08/14/16 12:48:32PM
349 posts

Suggestions for Lightbox view


Suggestions

You have my vote for this as well. :)
PatriaCo
@the-patria-company
08/14/16 12:16:20PM
349 posts

ISkin4 Lightbox - video support


Design and Skin Customization

OK sorry.

function atYoutube_modal() {
    
	$('#youtube_{$item._item_id}').modal({

        onOpen: function (dialog) {
            dialog.overlay.fadeIn('fast', function () {
                dialog.container.slideDown('fast', function () {
                    dialog.data.fadeIn('fast', function () {
					    
					});	
                });
            });
        },
        onClose: function (dialog) {
            dialog.data.fadeOut('fast', function () {
                dialog.container.hide('fast', function () {
                    dialog.overlay.fadeOut('fast', function () {
                        
						$.modal.close();
                    });
                });
            });
        },
        overlayClose:true
    });
}
PatriaCo
@the-patria-company
08/14/16 10:14:04AM
349 posts

ISkin4 Lightbox - video support


Design and Skin Customization

Not sure I understand how to use those correctly. Do you have a link to some documentation on them?
PatriaCo
@the-patria-company
08/14/16 10:06:29AM
349 posts

ISkin4 Lightbox - video support


Design and Skin Customization

Error: Syntax error, unrecognized expression: #youtube_{$item._item_id}
PatriaCo
@the-patria-company
08/14/16 09:46:47AM
349 posts

ISkin4 Lightbox - video support


Design and Skin Customization

I am receiving this error now:

Error: Syntax error, unrecognized expression: #youtube-{$item._item_id}

My js starts like this:

function atYoutube_modal() {
    
	$('#youtube-{$item._item_id}').modal({

Here is the trigger in my html:

<div class="media" style="text-align:center">
<a  onclick="atYoutube_modal();" title="{$item.action_data.youtube_title|jrCore_entity_string}"><img src="https://img.youtube.com/vi/{$item.action_data.youtube_id}/default.jpg" width="35%" /></a>
</div>
<div id="youtube-{$item._item_id}" class="search_box" style="display:none;">

Any thoughts?
PatriaCo
@the-patria-company
08/14/16 09:22:24AM
349 posts

iSkin4 Feedback Buttons


Design and Skin Customization

Thanks Nate! I got this working. I now have a tpl for the action buttons that show in the timeline posts that is slightly different than what shows on the detail pages.

It looks great! Thanks again :)
updated by @the-patria-company: 08/14/16 09:22:34AM
PatriaCo
@the-patria-company
08/14/16 09:18:14AM
349 posts

ISkin4 Lightbox - video support


Design and Skin Customization

I have successfully created a modal window for our new action form, so I am somewhat familiar with this but I am little stumped considering multiple instance on the same page. I hope I can explain this...

So, if I have a youtube video thumbnail image set as my <a> trigger to launch the modal window, but this is set in the youtube_item_action.tpl ... potentially I am going to have several triggers on one timeline page and they would all need to be unique, to call the js correctly.

How can I make the modal js accept an assigned variable? For example by using the action_id:

function myModule_modal(){
    $('#myModal-{$action_id}').modal({

I hope my question makes sense. My js skills are still basic.

Thanks :)
PatriaCo
@the-patria-company
08/14/16 09:04:59AM
349 posts

Comments item_action - Use module_name


Design and Skin Customization

I am sorry. I am looking to print out the module_name, specifically "Uploaded Audio" instead of "uploaded_audio" or "Group Discussion" instead of "group_discuss". It is a bit confusing for our members.

Thanks :)
PatriaCo
@the-patria-company
08/12/16 11:18:28AM
349 posts

Comments item_action - Use module_name


Design and Skin Customization

When the comment's item_action prints "xyz commented on abc's module" it prints the module url.

{jrCore_module_url module=$item.action_data.comment_module}

But I want it to print the module_name. I tried this, but it did not work:

{jrCore_module_name module=$item.action_data.comment_module}

Any suggestions?
updated by @the-patria-company: 11/21/16 08:06:07AM
PatriaCo
@the-patria-company
08/12/16 08:00:11AM
349 posts

ISkin4 Lightbox - video support


Design and Skin Customization

So if we use this code for displaying the gallery in the lightbox:
<a href="{$jamroom_url}/{$murl}/image/gallery_image/{$_i._item_id}/1280" data-lightbox="images_{$_i.gallery_title_url}" title="{$_i.gallery_caption|default:$_i.gallery_image_name|jrGallery_title_name:$_i.gallery_caption}">
 {jrCore_module_function function="jrImage_display" module="jrGallery"
                              type="gallery_image" item_id=$_i._item_id size=$size crop=$aspect
                              alt=$_i.gallery_alt_text width=false height=false}</a>

What would you suggest as the code for displaying a youtube video?
updated by @the-patria-company: 08/12/16 08:00:44AM
  19