Question Regarding Seamless Module Function
Using Jamroom
I gave
@derrickhand300 help on this tonight and ran in to an unusual issue for me. This is the code I worked out for his page using the jrSeamless module. Now It works great and functions as he would like however when clicking on the videos I recieve an error.
{jrCore_include template="header.tpl"}
<br></br>
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title"><span style="color: #ffffff;">Latest Oilfield Videos</span></h3>
</div>
<div class="block">
{capture name="template" assign="tpl"}
{literal}
<p><a class="btn btn-primary" href="{$jamroom_url}/video/create" role="button" style="margin-left:25px;">Upload A Video</a>
</button>
<a class="btn btn-primary" href="{$jamroom_url}/video" role="button">View All Videos</a>
</button>
</p>
{if isset($_items)}
<div class="container">
{foreach from=$_items item="item"}
{if $item@first || ($item@iteration % 4) == 1}
<div class="row" style="margin-left: -5px !important; margin-right: -19px !important;">
{/if}
<div class="col-lg-3{if $item@last || ($item@iteration % 4) == 0} last{/if}" style="width:24% !important;">
<div class="img-profile">
{if $item.seamless_module_name == "jrYouTube"}
<a href="{$jamroom_url}/{$item.profile_url}/{$_params.module_url}/{$item._item_id}/{$item.video_title_url}"> <img src="{$item.youtube_artwork_url}" height="180" width="240" class="rank_image" /></a>
{elseif $item.seamless_module_name == "jrVimeo"}
<a href="{$jamroom_url}/{$item.profile_url}/{$_params.module_url}/{$item._item_id}/{$item.video_title_url}"> <img src="{$item.vimeo_artwork_url}" height="180" width="240" class="rank_image" /></a>
{elseif $item.seamless_module_name == "jrVideo"}
<a href="{$jamroom_url}/{$item.profile_url}/{$_params.module_url}/{$item._item_id}/{$item.video_title_url}">{jrCore_module_function function="jrImage_display" module="jrVideo" type="video_image" item_id=$item._item_id size="large" crop="auto" alt=$item.video_title title=$item.video_title class="top_rank" width=240 height=180}</a>
{/if}
</div>
<div class="center mb10">
{if $item.seamless_module_name == "jrYouTube"}
<a href="{$jamroom_url}/{$item.profile_url}/{$_params.module_url}/{$item._item_id}/{$item.youtube_title}">{$item.youtube_title|truncate:24}</a><a href="{$jamroom_url}/{$item.profile_url}/{$_params.module_url}/{$item._item_id}/{$item.vimeo_title}">{$item.vimeo_title|truncate:24}</a>
{elseif $item.seamless_module_name == "jrVimeo"}
<a href="{$jamroom_url}/{$item.profile_url}/{$_params.module_url}/{$item._item_id}/{$item.vimeo_title}">{$item.vimeo_title|truncate:24}
{elseif $item.seamless_module_name == "jrVideo"}
<a href="{$jamroom_url}/{$item.profile_url}/{$_params.module_url}/{$item._item_id}/{$item.video_title_url}">{$item.video_title|truncate:24}</a>
{/if}
<br>
{if $item.seamless_module_name == "jrYouTube"}
<span class="info">{jrCore_lang module="jrYouTube" id="14" default="Category"}:</span> <span class="info_c">{$item.youtube_category}</span><br>
{elseif $item.seamless_module_name == "jrVimeo"}
<span class="info">{jrCore_lang module="jrYoutube" id="14" default="Category"}:</span> <span class="info_c">{$item.vimeo_category}</span>
{elseif $item.seamless_module_name == "jrVideo"}
{if isset({$item.video_category}) && strlen({$item.video_category}) > 0}
<span class="info">{jrCore_lang module="jrVideo" id="12" default="category"}:</span> <span class="info_c">{$item.video_category}</span><br>
{/if}
{/if}
{if $item.seamless_module_name == "jrYouTube"}
{jrCore_module_function function="jrRating_form" type="star" module="jrYouTube" index="1" item_id=$item._item_id current=$item.youtube_rating_1_average_count|default:0 votes=$item.youtube_rating_1_count|default:0}
{elseif $item.seamless_module_name == "jrVimeo"}
{jrCore_module_function function="jrRating_form" type="star" module="jrVimeo" index="1" item_id=$item._item_id current=$item.vimeo_rating_1_average_count|default:0 votes=$item.vimeo_rating_1_count|default:0}
{elseif $item.seamless_module_name == "jrVideo"}
{jrCore_module_function function="jrRating_form" type="star" module="jrVideo" index="1" item_id=$item._item_id current=$item.video_rating_1_average_count|default:0 votes=$item.video_rating_1_count|default:0}
{/if}
</div>
</div>
{if $item@last || ($item@iteration % 4) == 0}
<div class="col-lg-5 last">
<div class="block_config">
{jrCore_item_list_buttons module="jrVideo" field="video_file" item=$item}
</div>
<div class="clear"></div>
</div>
</div>
{/if}
{/foreach}
</div>
{/if}
{/literal}
{/capture}
<div class="block">
<div class="title">
<div style="margin-right:0px; width:100%;">
{*{jrSearch_module_form module="jrVideo" fields="video_title,video_description"}*}
{*{jrSearch_module_form class="form_text" value="Video" module="jrVideo" fields="video_title,video_description" }*}
<div style="float:right; margin-right: 19px; margin-top: 40px;">{jrSearch_form class="form_text" value="Search Videos" module="jrVideo" fields="video_title,video_description" }</div>
<h4 style="margin-left:24px;">{jrCore_lang module="jrVideo" id=39 default="Videos"}</h4>
</div></div>
<div class="block_content">
<div class="item">
<div class="container">
<div class="row">
{jrSeamless_list modules="jrVideo,jrVimeo,jrYouTube" order_by="_created numerical_desc" require_image="video_image" pagebreak=28 page=$_post.p pager=true template=$tpl}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{jrCore_include template="footer.tpl"}
This is the error from the seamless module when clicking on any video on the seamless list.
CRI: Unable to copy modules/jrSeamless/templates/item_index.tpl to template cache directory: data/cache/jrCore
I tried this from my dev server and on his. It is consistent on both. Thanks.
updated by @developer-networks: 03/15/15 03:34:21AM