AutoDirector forum

The AutoDirector support and advice forum

Maxpics value

Post Reply

Page: 1

Author Post
Member
Registered: May 2008
Posts: 5
Having a problem with upping the max images per car in the control panel. I want 20 max pics rather than 10 and I have edited the maxpics.value to 20 but when I change it to 20 in the control panel it accepts but doesn’t actually change and remains on 10, so if you go back into the site’s settings it will be set at 10 again. You can change down , but not up! Anything I’ve missed?

Thanks,

Ben
Administrator
Registered: Apr 2008
Posts: 324
Hi Ben,

Increasing the maximum number of images is not particularly easy, but here goes...

Line 618 in siteadmin.php and line 19 in includes/adscriptsite.js should be changed to the maximum number of pictures you want.

You can probably increase it to around 15 images without doing anything else. If you need more images than that, you'll also need to change the database setup...

To ensure new sites are defined correctly, edit line 131 in includes/adsite.php. You'll need to change `picturelist` varchar(100) to `picturelist` varchar(N) where N is around 10 times the number of pictures you want, e.g. for 20 images, use 200.

If the site has already been created, you'll need to update it's table manually by changing picturelist from varchar(100) to varchar(N) as above.

Hope that helps!
_______________
AutoDirector administrator

Post Reply

Page: 1