solved Pro Jam Light

nduguseliphaz
nduguseliphaz
@ecodeahpro
8 years ago
206 posts
I want to change Newest Videos to Newest Soundcloud Songs

Kindly Assist Me

Thanks

updated by @ecodeahpro: 08/03/16 05:01:53PM
michael
@michael
8 years ago
7,746 posts
in index_new_videos.tpl, change all the 'jrVideo' to 'jrSoundCloud' and all the 'video_' to 'soundcloud_'

and you should be close.
nduguseliphaz
nduguseliphaz
@ecodeahpro
8 years ago
206 posts
What about the title and Thumbnails?
douglas
@douglas
8 years ago
2,793 posts
You can find this in your modules/jrSoundCloud/templates/item_list.tpl

Thumbnail/Item Image
                        {if isset($item.soundcloud_artwork_url) && strlen($item.soundcloud_artwork_url) > 0}
                            <a href="{$jamroom_url}/{$item.profile_url}/{$murl}/{$item._item_id}/{$item.soundcloud_title_url}"><img src="{$item.soundcloud_artwork_url}" alt="{$item.soundcloud_title_url|jrCore_entity_string}" class="iloutline img_scale"></a><br>
                        {/if}

TItle
<h3><a href="{$jamroom_url}/{$item.profile_url}/{$murl}/{$item._item_id}/{$item.soundcloud_title_url}">{$item.soundcloud_title}</a></h3>

Hope this helps!


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
nduguseliphaz
nduguseliphaz
@ecodeahpro
8 years ago
206 posts
I mean changing the Title to soundcloud Latest songs and showing soundcloud thumbnails on this section
img.jpg
img.jpg  •  30KB

douglas
@douglas
8 years ago
2,793 posts
That title can be found in your skins/jrProJamLight/index.tpl

{* NEWEST VIDEOS *}
    <div class="col12 last">
        <h3>{jrCore_lang skin=$_conf.jrCore_active_skin id="11" default="Newest"} {jrCore_lang skin=$_conf.jrCore_active_skin id="14" default="Videos"}</h3><br>

The file that controls that section is your skins/jrProJamLight/index_new_videos.tpl

To change it to a SoundCloud list, change the code in that file to this:

{capture name="row_template" assign="new_soundcloud_template"}
{literal}
    {jrCore_module_url module="jrSoundCloud" assign="murl"}
    {if isset($_items)}
    <div class="container">
        {foreach $_items as $item}
        {if $item@first || ($item@iteration % 3) == 1}
        <div class="row">
            {/if}
            <div class="col4{if $item@last || ($item@iteration % 3) == 0} last{/if}">
                <div class="center">
                    <a href="{$jamroom_url}/{$item.profile_url}/{$murl}/{$item._item_id}/{$item.soundcloud_title_url}"><img src="{$item.soundcloud_artwork_url}" alt="{$item.soundcloud_title_url|jrCore_entity_string}" class="iloutline img_shadow" width=""175" height="175"></a><br>
                    <h4><a href="{$jamroom_url}/{$item.profile_url}/{$murl}/{$item._item_id}/{$item.soundcloud_title_url}">{$item.soundcloud_title|truncate:20:"...":false}</a></h4>
                </div>
            </div>
            {if $item@last || ($item@iteration % 3) == 0}
        </div>
        {/if}
        {/foreach}
    </div>
    {if $info.total_pages > 1}
    <div style="float:left; padding-top:12px;">
        {if $info.prev_page > 0}
        <span class="button-arrow-previous" onclick="jrLoad('#newest_videos','{$info.page_base_url}/p={$info.prev_page}');$('html, body').animate({ scrollTop: $('#nvideos').offset().top -100 }, 'slow');">&nbsp;</span>
        {else}
        <span class="button-arrow-previous-off">&nbsp;</span>
        {/if}
        {if $info.next_page > 1}
        <span class="button-arrow-next" onclick="jrLoad('#newest_videos','{$info.page_base_url}/p={$info.next_page}');$('html, body').animate({ scrollTop: $('#nvideos').offset().top -100 }, 'slow');">&nbsp;</span>
        {else}
        <span class="button-arrow-next-off">&nbsp;</span>
        {/if}
    </div>
    {/if}
    <div style="float:right; padding-top:9px;">
        <a href="{$jamroom_url}/{$murl}" title="More SoundCloud Songs"><div class="button-more">&nbsp;</div></a>
    </div>

    <div class="clear"> </div>
    {/if}
{/literal}
{/capture}



{jrCore_list module="jrSoundCloud" order_by="_item desc" template=$new_soundcloud_template pagebreak="3" page=$_post.p}



--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
nduguseliphaz
nduguseliphaz
@ecodeahpro
8 years ago
206 posts
I have already changed that but the songs have no Thumbnails
douglas
@douglas
8 years ago
2,793 posts
nduguseliphaz:
I have already changed that but the songs have no Thumbnails

We'll need a link to see what you have so far.

We may also need admin login to check out the code. Send it to support[at] jamroom[dot] net and we can take a look at it.

Thanks!


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
nduguseliphaz
nduguseliphaz
@ecodeahpro
8 years ago
206 posts
Sent
douglas
@douglas
8 years ago
2,793 posts
I've fixed it for you, you weren't using the correct code for the SoundCloud image.

Hope this helps!


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
nduguseliphaz
nduguseliphaz
@ecodeahpro
8 years ago
206 posts
Thanks ... Asante sana

Tags