Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Calling a lightbox from MiniGal2
Old 11-02-2010, 01:02 PM Calling a lightbox from MiniGal2
edgray's Avatar
Super Moderator

Latest Blog Post:
Frantic
Posts: 4,264
Name: Sugarcane Gray
Location: Hell, Southern Spain
Trades: 0
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 :)
edgray is offline
Reply With Quote
View Public Profile Visit edgray's homepage!
 
 
Register now for full access!
Old 11-02-2010, 01:17 PM Re: Calling a lightbox from MiniGal2
edgray's Avatar
Super Moderator

Latest Blog Post:
Frantic
Posts: 4,264
Name: Sugarcane Gray
Location: Hell, Southern Spain
Trades: 0
no probs, issue resolved!
__________________

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 :)
edgray is offline
Reply With Quote
View Public Profile Visit edgray's homepage!
 
Reply     « Reply to Calling a lightbox from MiniGal2
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.29132 seconds with 12 queries