Quote:
Originally Posted by nonamer69
can this module do multiple random photos in vertical or horizontal form? I would like to be able to put three random images going down the left column of my portal. is it possible? and how can I?
thanks bud,
Jerry
|
The module can be in horizontal if you selected center rather than right option when adding the module to vBa, you may also select left and it will be vertical.
As far as i can see if you would like to pull 2 more photos from the random photo script in gallery2 (main.php) then you will need to add 2 new varibles to pull the information.
What you need to do is add 2 varibles to your plugin like this
Code:
ob_start();
include('http://www.yourdomain.com/randomcmps.php');
$includedrg = ob_get_contents();
ob_end_clean();
ob_start();
include('http://www.yourdomain.com/randomcmps.php');
$includedrg1 = ob_get_contents();
ob_end_clean();
ob_start();
include('http://www.yourdomain.com/randomcmps.php');
$includedrg2 = ob_get_contents();
ob_end_clean();
then add the varibles from within your adv_portal_newrandomgallery2 template
eg.
Code:
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<thead>
<tr>
<td class="tcat"><span class="smallfont"><strong>$vba_options[portal_blockbullet]Gallery</strong></span></td>
</tr>
</thead>
<tr>
<td class="$getbgrow" width="100%" align="center">
$includedrg
<br>
$includedrg1
<br>
$includedrg2
</td>
</tr>
</table>
<br />