<div class="col12 last">
{if jrCore_is_mobile_device()}<div class="menu_tab">
<div id="default" class="p_choice fartist" onclick="jrLoad('#sm','{$jamroom_url}/index_artists');jrSetActive('#default');">{jrCore_lang skin=$_conf.jrCore_active_skin id="21" default="featured"} {jrCore_lang skin=$_conf.jrCore_active_skin id="12" default="artists"}</div>
<div id="s_song" class="p_choice fsong" onclick="jrLoad('#sm','{$jamroom_url}/index_songs');jrSetActive('#s_song');">Songs</div>
<div id="s_video" class="p_choice fvideo" onclick="jrLoad('#sm','{$jamroom_url}/index_videos');jrSetActive('#s_video');">Videos</div> <div class="clear"></div> </div>
{else}
<div class="menu_tab">
<div id="default" class="p_choice fartist" onclick="jrLoad('#sm','{$jamroom_url}/index_artists');jrSetActive('#default');">{jrCore_lang skin=$_conf.jrCore_active_skin id="21" default="featured"} {jrCore_lang skin=$_conf.jrCore_active_skin id="12" default="artists"}</div>
<div id="s_song" class="p_choice fsong" onclick="jrLoad('#sm','{$jamroom_url}/index_songs');jrSetActive('#s_song');">{jrCore_lang skin=$_conf.jrCore_active_skin id="21" default="featured"} {jrCore_lang skin=$_conf.jrCore_active_skin id="13" default="songs"}</div>
<div id="s_soundcloud" class="p_choice fsoundcloud" onclick="jrLoad('#sm','{$jamroom_url}/index_soundclouds');jrSetActive('#s_soundcloud');">{jrCore_lang skin=$_conf.jrCore_active_skin id="21" default="featured"} {jrCore_lang skin=$_conf.jrCore_active_skin id="61" default="Soundcloud"}</div>
<div id="s_video" class="p_choice fvideo" onclick="jrLoad('#sm','{$jamroom_url}/index_videos');jrSetActive('#s_video');">{jrCore_lang skin=$_conf.jrCore_active_skin id="21" default="featured"} {jrCore_lang skin=$_conf.jrCore_active_skin id="14" default="videos"}</div>
<div id="s_youtube" class="p_choice fyoutube" onclick="jrLoad('#sm','{$jamroom_url}/index_youtubes');jrSetActive('#s_youtube');">{jrCore_lang skin=$_conf.jrCore_active_skin id="21" default="featured"} {jrCore_lang skin=$_conf.jrCore_active_skin id="62" default="youtube"}</div>
<div id="s_vimeo" class="p_choice fvimeo" onclick="jrLoad('#sm','{$jamroom_url}/index_vimeos');jrSetActive('#s_vimeo');">{jrCore_lang skin=$_conf.jrCore_active_skin id="21" default="featured"} {jrCore_lang skin=$_conf.jrCore_active_skin id="63" default="vimeo"}</div>
<div class="clear"></div>
</div>{/if}
<div class="inner mb8">
<div id="sm"></div>
</div>
</div>
</div>
At the top of the index page, this code is used to call up the initialization protocol in Java for the above code...
<script type="text/javascript">
$(document).ready(function(){
jrSkinInit();
});
</script>
In the java folder, the actual initialization protocol being called up looks like this:
function jrSkinInit() {
jrLoad('#sm',core_system_url +'/index_artists');
jrLoad('#top_members',core_system_url +'/top_members');
jrLoad('#top_songs',core_system_url +'/top_songs');
jrLoad('#top_groups',core_system_url +'/top_groups');
jrLoad('#top_discussions',core_system_url +'/top_discussions');
jrLoad('#top_notes',core_system_url +'/top_notes');
jrLoad('#top_actions',core_system_url +'/top_actions');
jrLoad('#top_blogs',core_system_url +'/top_blogs');
jrLoad('#top_galleries',core_system_url +'/top_galleries');
jrSetActive('#default');
}
At what point will it grab new content to display? It doesn't appear to be every page load like a simple rotor, as nothing changes over several page loads (at least in a short time frame).
If I reset the cache it immediately grabs new content. So what is actually controlling the initialization? How can it be altered to grab new random content from those assigned quotas every page load (like a rotor), or is that a bad idea in this system?
--
Ken Rich
indiegospel.net
updated by @ken-rich: 01/08/15 12:52:32PM