Featuring - can be better than Ning
Ning To Jamroom
The featured tabs are being loaded as Brian suggested, via AJAX, you can find the code for that in the Nova.js file.
I do not have the files for NingNova2, that was something Paul did for you I believe.
I just tested this on my test site and this is what I had to do...
I added this to the songs.tpl
find:
{jrCore_include template="header.tpl"}
and below it added this:
<script type="text/javascript">
$(document).ready(function(){
jrSkinInit();
});
</script>
Then added this where I wanted the featured tabs to show:
<div class="menu_tab">
<div id="default" class="p_choice fsong" onclick="jrLoad('#sf','{$jamroom_url}/index_songs');jrSetActive('
<div id="s_song" class="p_choice fvideo" onclick="jrLoad('#sf','{$jamroom_url}/index_videos');jrSetActive('
<div id="s_video" class="p_choice fartist" onclick="jrLoad('#sf','{$jamroom_url}/index_artists');jrSetActive('
<div class="clear"></div>
</div>
<div class="finner mb8">
<div id="sf"></div>
</div>
<br>
Then opened my skins/jrNova/js/jrNova.js file and found this:
jrLoad('#sm',core_system_url +'/index_artists');
and right below it added this:
jrLoad('#sf',core_system_url +'/index_songs');
That is pretty much all there is, be sure to reset your cache if you aren't running in dev mode.
For your video page, you'll have to change the div ids
jrNova.js file
Quote:
jrLoad('#sf'.....
The id in the link for the tabs
Quote:
< a onclick="jrLoad('#sf... >
and the div id the tabs get loaded in.
Quote:
< div id="sf" >.....< /div >
and obviously rearrange the tabs, making sure the default tab is first:
If this is too hard or difficult to follow, send me an email to douglas[at] jamroom[dot] net and we can discuss this as a project.
Hope this helps,
Douglas
updated by @douglas: 12/29/14 09:23:54AM