PDA

View Full Version : Random pictures with OakGallery (vGallery)


Bergman
09-12-2004, 05:19 PM
Create a new template called vgallery_random_thumbs and paste this code to it.
-------------------------------------------------------------------

<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat"><span class="smallfont"><b>$vba_options[portal_blockbullet] vGallery Random Pics</b></span></td>
</tr>
<tr>
<td class="$getbgrow" width="100%">

<!-- Begin custom code -->
<center>
<a href="http://www.yoursite.com/vgallery/showimage.php?iid=$randimage1[ID]&cid=$randimage1[iCategoryID]&sort=date">
<img src="http://www.yoursite.com/vgallery/thumbnails/$randimage1[ID].jpg" border=0 class="tborder"></a>

<a href="http://www.yoursite.com/vgallery/showimage.php?iid=$randimage2[ID]&cid=$randimage2[iCategoryID]&sort=date">
<img src="http://www.yoursite.com/vgallery/thumbnails/$randimage2[ID].jpg" border=0 class="tborder"></a>

<a href="http://www.yoursite.com/vgallery/showimage.php?iid=$randimage3[ID]&cid=$randimage3[iCategoryID]&sort=date">
<img src="http://www.yoursite.com/vgallery/thumbnails/$randimage3[ID].jpg" border=0 class="tborder"></a>

<!-- End custom code -->

</td>
</tr>
</table>
<br />

-------------------------------------------------------------------

Verify the paths and add a new Module for vBadvanced

Name the module to whatever you want and choose the file vgallery_random.php and dont include any templates in the module.

Now it should be running