jrYouTube and Video Charts on ProJam skin

alt=
@kayskeem
11 years ago
200 posts
I just realized that on the video charts youtube videos are not on the charts. How do i make youtube videos be a part of the video charts ? For example http://exposehits.com/video_charts theres nothing there and I know I have to upload videos to get something there but I use YouTube videos more than anything. If this can be done that will be great. Is it because of the skin ? If it is which skin is better for something like this ? Thanks.
updated by @kayskeem: 02/05/14 04:45:04PM
chorton581
@chorton581
11 years ago
139 posts
http://exposehits.com/youtube_videos

Do you want uploaded videos and youtube videos on the same chart?
brian
@brian
11 years ago
10,148 posts
This is what the "Seamless" module was designed to do:

https://www.jamroom.net/the-jamroom-network/documentation/modules/289/jrseamless

You can just changed the {jrCore_list .. call to jrSeamless - i.e.

{jrSeamless_list module="jrVideo,jrYouTube" ... (all the rest of the parameters)

This would be changed in the template you want to modify - i.e. "video_charts.tpl" in your ACP -> Skins -> ActiveSkin -> Templates area.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
@kayskeem
11 years ago
200 posts
I did this but now it says "jrSeamless: modules parameter not set " what did i do wrong ?
brian
@brian
11 years ago
10,148 posts
Show us what you have add to your template...


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
paul
@paul
11 years ago
4,333 posts
Change it to modules="jrVideo,jrYouTube" (module with an 's')
hth
Pa


--
Paul Asher - JR Developer and System Import Specialist

updated by @paul: 12/30/13 12:39:50PM
alt=
@kayskeem
11 years ago
200 posts
Paul that took away the error but the charts page is still empty this is the code



{if isset($_conf.jrProJamLight_require_images) && $_conf.jrProJamLight_require_images == 'on'}
{if isset($_post.search_area) && $_post.search_area == 'video_category'}
{jrSeamless_list modules="jrVideo,jrYouTube" chart_field="video_file_stream_count" chart_days="7" search="video_category like `$_post.search_string`" template="video_chart_row.tpl" require_image="video_image" pagebreak=$_conf.jrProJamLight_default_pagebreak page=$_post.p}
{else}
{jrSeamless_list modules="jrVideo,jrYouTube" chart_field="video_file_stream_count" chart_days="7" template="video_chart_row.tpl" require_image="video_image" pagebreak=$_conf.jrProJamLight_default_pagebreak page=$_post.p}
{/if}
{else}
{if isset($_post.search_area) && $_post.search_area == 'video_category'}
{jrSeamless_list modules="jrVideo,jrYouTube" chart_field="video_file_stream_count" chart_days="7" search="video_category like `$_post.search_string`" template="video_chart_row.tpl" pagebreak=$_conf.jrProJamLight_default_pagebreak page=$_post.p}
{else}
{jrSeamless_list modules="jrVideo,jrYouTube" chart_field="video_file_stream_count" chart_days="7" template="video_chart_row.tpl" pagebreak=$_conf.jrProJamLight_default_pagebreak page=$_post.p}
{/if}
{/if}
paul
@paul
11 years ago
4,333 posts
Actually, I don't think the seamless module handles charts, as such. Its something I need to look into.
You can do an 'order_by="*_file_stream_count NUMERICAL_DESC"' to get a list of most played, or, as you say that your site is mostly YouTube videos, you could change module="jrVideo" to module="jrYouTube" in the original jrCore_list call to get a proper YouTube chart.


--
Paul Asher - JR Developer and System Import Specialist
alt=
@kayskeem
11 years ago
200 posts
It seems using jrYouTube in the original jrCore did it but its not showing videos just blank icons under 1 week charts. Does it take time for it to populate ? http://exposehits.com/video_charts
SteveX
SteveX
@ultrajam
11 years ago
2,584 posts
Surely charts should handle seamless?

To me, it would seem wrong the other way around.


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
brian
@brian
11 years ago
10,148 posts
SteveX:
Surely charts should handle seamless?

To me, it would seem wrong the other way around.

It's more complicated than it might seen on the surface... but we'll check it out.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
paul
@paul
11 years ago
4,333 posts
Yeah - I need to check it out, but I guess that being presented with different DS prefixes would confuse the jrCharts module. There might need to be a wildcard handler somewhere.


--
Paul Asher - JR Developer and System Import Specialist
alt=
@kayskeem
10 years ago
200 posts
whats the solution for this ? Anybody ?
paul
@paul
10 years ago
4,333 posts
As we said above, charting both video and youtube seamlessly is not straightforward and we need to look into it further.
I'm away for the next couple of weeks and its not easy for me to do any 'serious' JR work until I'm back home, but will take a look then if this issue is still outstanding.
In the meantime, as you have mostly youtube videos, you can chart just those by changing the module parameter in the charting smarty call.
hth
Pa


--
Paul Asher - JR Developer and System Import Specialist
alt=
@kayskeem
10 years ago
200 posts
I did that but it didn't work for me its not showing videos on the charts still
updated by @kayskeem: 01/05/14 09:05:03PM
paul
@paul
10 years ago
4,333 posts
In video_charts.tpl change

{jrCore_list module="jrVideo" chart_field="video_file_stream_count" chart_days="7" search="video_category like `$_post.search_string`" template="video_chart_row.tpl" require_image="video_image" pagebreak=$_conf.jrMediaProLight_default_pagebreak page=$_post.p}

to

{jrCore_list module="jrYouTube" chart_field="youtube_file_stream_count" chart_days="7" search="youtube_category like `$_post.search_string`" template="youtube_chart_row.tpl" pagebreak=$_conf.jrMediaProLight_default_pagebreak page=$_post.p}

then copy video_chart_row.tpl to youtube_chart_row.tpl, edit it changing parameters video_* to youtube_*

There may be other things that need changing that are pertinent to the youtube datastore, but this is a starting point.

hth
Pa


--
Paul Asher - JR Developer and System Import Specialist
johnchansa
@johnchansa
10 years ago
195 posts
The code paul suggested will work.I have a youtube chart as well as a soundcloud chart on my Nova skin site based on similar code.
http://zmusic.biz/youtube_chart
http://zmusic.biz/soundcloud_chart

Nonetheless,a Seamless Charts module would be the best addition to JR5.
updated by @johnchansa: 01/06/14 06:00:43AM

Tags