Posts: 4,264
Name: Sugarcane Gray
Location: Hell, Southern Spain
|
Hi Everyone,
I'm building a site with MiniGal2 and want to call a lightbox rather than a .php page from my thumbnail view page. I'm not great with PHP and am a bit lost.
Normally thumb.php would display a list of all the thumbs and clicking a thumb makes some kind of call, displaying the image in larger on a page using a separate template file.
Here's the code I'm trying for thumb.php
Code:
<div class="column grid_3 gallery">
<a href="<?php $mg2->output(imagefile) ?>" target="_self" rel="lightbox">
<img src="<?php $mg2->output(thumbfile) ?>" border="0" width="<?php $mg2->output(thumb_width) ?>" height="<?php $mg2->output(thumb_height) ?>" alt="" title="" class="thumb"/>
<br /><img src="skins/admin/images/1x1.gif" width="0" height="<?php echo 158 - $mg2->thumb_height ?>" alt="" title="" /><br />
<p class="description2"><?php $mg2->output(title) ?></p>
</a>
</div>
The problem is that the resulting link generated is empty:
Code:
<div class="column grid_3 gallery">
<a href="No data (imagefile)" target="_self" rel="lightbox">
<img src="pictures/BabyCakes_thumb.jpg" border="0" width="150" height="150" alt="" title="" class="thumb"/>
<br /><img src="skins/admin/images/1x1.gif" width="0" height="8" alt="" title="" /><br />
<p class="description2">This is a Baby Cake</p>
</a>
</div>
I don't understand this bit of code: $mg2->output(imagefile)
Whatever it means, it's output is empty. I need to put in the location of the larger image in there to get this lightbox working.
Any ideas?
__________________
Please login or register to view this content. Registration is FREE - a project in video and sound.
Please login or register to view this content. Registration is FREE "Absolute Rubbish, an insult to the blues." - NME.
Please login or register to view this content. Registration is FREE - Come use our agency :)
|