Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
User Site Design, Integration and Customization:
Admitting Defeat - HTML Help
Dazed



Joined: 22 Mar 2006
Posts: 4147

Posted: 05/09/12 18:34 
I have been playing around with this for 30 minutes with no luck. What the below code should produce is

Artist of the Month
Band Image
Links

What I get is:
Artist of the Month
Links
Band Image (not contained in the div)

I have tried multiple changes with the div tags to get this to appear in one content div with no luck. Any ideas? This is on my dev box so no link unfortunately.

Thanks!

test.tpl

Quote:
<!-- Carousel Favorite Artist/Song-->
<div class="content">
<div class="head">Artist of the Month</div>

<div id="favtab">
<a href="{$JAMROOM_URL}/ranking.php?mode=artist&band_id={$smarty.config.fav_artist}&row_template=artists_fav.tpl&require_image={$smarty.config.require_images}" rel="favdiv"></a>
</div>

<!-- Step Carousel Nav -->
<div id="carousel-nav">
<div class="carousel-r">
<a onfocus="blur();" href="javascript: favt.loadajaxpage('{$JAMROOM_URL}/ranking.php?mode=artist&band_id={$smarty.config.fav_artist}&row_template=artists_fav.tpl&require_image={$smarty.config.require_images}')"><img src="{$SKIN_URL}/images/button_prev.png" alt="Favorite Artist" /> {jr_lang id="673" default="Artist"}</a> |
<a onfocus="blur();" href="javascript: favt.loadajaxpage('{$JAMROOM_URL}/ranking.php?mode=song&song_id={$smarty.config.fav_song}&row_template=music_fav.tpl&require_image={$smarty.config.require_images}')">{jr_lang id="513" default="Song"} <img src="{$SKIN_URL}/images/button_next.png" alt="Song" /></a>
</div>
<div class="clear"></div>
<div id="favdiv" class="carousel-fav">
</div>
</div>
</div>



<script type="text/javascript">
var favt=new ddajaxtabs("favtab", "favdiv")
favt.setpersist(false)
favt.setselectedClassTarget("link") //"link" or "linkparent"
favt.init()
</script>
<div class="clear"></div>




artists_fav.tpl

Quote:
<div class="index_rank">
<h3>{$BAND_NAME|truncate:25}</h3>
<a href="{$JAMROOM_URL}/ranking.php?mode=artist&band_id={$BAND_ID}&row_template=artists.tpl"><img src="{$BAND_IMAGE_URL}&amp;width=250&amp;crop_height=180" width="250" height="180" alt="{$BAND_NAME}" title="View {$BAND_NAME}" /></a>

</div>



Back to top
Michael
Jamroom Team


Joined: 22 Apr 2008
Posts: 3423
Location: Tokyo

Posted: 05/09/12 19:07 
30 min is WAY to soon to be giving up. Sometimes problems can take days to solve and the answer is usually something real insignificant.

cant help you much with the template code without actually seeing it live, im pretty sure that its a CSS issue to do with floats, but wont know for sure without actually seeing it.

Got a URL?


_________________
Michael Ussher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
Dazed



Joined: 22 Mar 2006
Posts: 4147

Posted: 05/09/12 19:09 
Thanks Ussher! When all else fails, go back to the begining. I think I figured it out.

Appreciate the encouragement and help!

Back to top
Display posts from previous:   
User Support Forum Archive (Read Only)
User Site Design, Integration and Customization

 
Solutions
• Social Media Platform
• Social Networking Software
• Musician Website Manager
• Community Builder
Products
• Jamroom Core
• Jamroom Addons
• Jamroom Modules
• Jamroom Marketplace
Support
• Support Forum
• Documentation
• Support Center
• Contact Support
Community
• Community Forum
• Member Sites
• Developers
Company
• About Us
• Contact Us
• Privacy Policy
©2003 - 2010 Talldude Networks, LLC.