Where to put new content on album.tpl

Freelancealot

Joined: 2009-08-18
Posts: 36
Posted: Thu, 2009-08-20 12:09

Hi,

I've managed to get mediaBlock showing a random set of mini-thumbs on the root album page (ie the first page you see when you enter .../gallery2. But I can't seem to get rid of the default album thumbs. The mini-thumbs don't show up on the other album pages, so everything seems to be working right on that front.

Below in bold is the bit I've added to the album.tpl, but this doesn't get rid of the default album thumb display.

Quote:
</div>
{else}
{if empty($theme.parents)}
{if $theme.pageType != 'admin'}
<?php @readfile('http://www.mysite.com/gallery2/mediaBlock.php?g2_itemId=33&mode=dynamic&g2_view=dynamicalbum.RandomAlbum&limit=40&useThumb=1&column=4&useMicro=40');?>
{/if}
{/if}

{assign var="childrenInColumnCount" value=0}

I have tried moving the last {/if} to various places, but have only succeeded in removing the image thumbs from the individual album pages!!! Which was the opposite of what I needed...

Suggestions gratefully received. I'm under the hammer on this one - supposed to be going live tomorrow evening. So really desperate to get this sorted out today/this evening. This is the only thing stopping me now :(

Cheers,

Tracy

PS: This did start out as trying to get mediaBlock working on the album root and there is a thread here. I had a lot of useful help, but thought I should start a new thread as it may be of interest to others who aren't using mediaBlock but who want to replace the default stuff.

 
Freelancealot

Joined: 2009-08-18
Posts: 36
Posted: Fri, 2009-08-21 00:13

Please check out this thread for the solution http://gallery.menalto.com/node/90266#comment-318278