Version: , by fashunphotog
Developer Last Online: Jul 2005
Version: Unknown
Rating:
Released: 05-15-2005
Last Update: Never
Installs: 0
No support by the author.
I'm using vBGarage 3.1.1 and have a question regarding the way the pictures load onto the page in Edit Mode. Is it possible to have them layer out as if they were in a table instead of side by side?
I'm allowing more than 6 pictures per user and it would be convenient if the pictures would line up say in a three by five table and not side by side left to right.
Is this possible?
Thanks! :-)
FaShUnPhOtOg
EDIT: Please see the picture example of what I require, thx
Download Now
(21.3 KB, 65 views)
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
all
I'm still working on this...sorry its taken me so long. My real job got in the way of working on this... (f'n firewalls....) anyway.. I'm just trying to clean it up. Until last week I'd never programmed anything in PHP (Visual C yes, PHP no), so I'm still learning some of the in's and out's of it.... I promise as soon as I have a working something thats clean code wise I'll post it up...
ok I think I got it....the code is a little crude and I will try and refine it, but here goes....
Create a new template called vbgarage_latestbitsa and put a <tr> in it.
Like I said its kinda rough, and I don't guarantee that its gonna work everywhere. I'll help out if I can with your installation, just drop me an email or PM....
And if you're interested in the gallery, here's how I did it.
Near the top find:
PHP Code:
// pre-cache templates used by all actions
$globaltemplates = array(
'vbgarage_editgarage',
'vbgarage_editimagebits',
'vbgarage_imagebits',
'vbgarage_listbits',
'vbgarage_listgarage',
'vbgarage_popup',
'vbgarage_viewgarage'
replace with
PHP Code:
// pre-cache templates used by all actions
$globaltemplates = array(
'vbgarage_editgarage',
'vbgarage_editimagebits',
'vbgarage_imagebits',
'vbgarage_listbits',
'vbgarage_listgarage',
'vbgarage_popup',
'vbgarage_gallery',
'vbgarage_viewgarage'
Add this at the bottom of vbgarage.php
PHP Code:
// ############################################################################
// ############################# SHOW GALLERY #############################
// ############################################################################
if ($_REQUEST['do'] == 'dogallery')
{
globalize($_REQUEST, array('gperrow' => INT));
// get the latest uploads for diplay
$gresult_latest = $DB_site->query("
SELECT vbgarageid,userid FROM " . TABLE_PREFIX . "vbgarage_images ORDER BY userid ASC
");
// load the latest bits template
$gperrow = 0;
$gpagethrow = 0;
while ($glatest = $DB_site->fetch_Array($gresult_latest))
{
if ($gperrow == 5)
{
$gperrow = 0;
eval('$glatestbits .= "' . fetch_template('vbgarage_gallerybitsa') . '";');
My biggest problem was figuring out how to get php/vbb to start a new TR after 5 images. I'm sure there's a cleaner way to do this, and will be happy to modify my code that way if someone can point it out.
Sorry it's taken so long to get back to you. I've injured my back and was out of it for a while.
Good job! Though not quite what I needed when I originally posted. I need to be able to stack the images in the Edit section, not the listing section of the garage. Any idea if this will work there too?
I'm working on another mod fo Crimson (to display 1 image next to each garage in the garage list), and I'll throw this one in there while I'm working on it. That should be pretty easy...
I did install your mods and like the listing feature but I couldn't get the gallery working correctly. Not a big deal, though.... I just watned to try it out and wasn't sure if we'd use it anyway. I'll play with it some more later.
I'm working on another mod fo Crimson (to display 1 image next to each garage in the garage list), and I'll throw this one in there while I'm working on it. That should be pretty easy...
Hey man, im about to go to sleep but did you ever make any progress on that? Im still very excited :nervous: