coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: MacDs on February 20, 2007, 05:44:32 AM

Title: How do I turn off thumbnails while I'm batch adding?
Post by: MacDs on February 20, 2007, 05:44:32 AM
Here is my problem:

I am adding 100's of pictures to each album. I am hosted by Hostmonster who will suspend your account (for 3 or 4 minutes) if you use too many resources at once. Just the act of brings up the page to add the pictures (searchnew.php) is enough to suspend my account if there are over 200 pictures in the album. I would LOVE to be able to turn off the thumbnails during this portion of the process. After all, I am going to add EVERYTHING. And then I would only need to suffer through being suspended once or twice per interation :-)

Any thoughts?
Title: Re: How do I turn off thumbnails while I'm batch adding?
Post by: Nibbler on February 20, 2007, 12:25:23 PM
searchnew.php

change

$img = '<img src="showthumb.php?picfile=' . $pic_url . '&amp;size=48" class="thumbnail" border="0" alt="" />';

to

$img = '';

and

<a href="javascript:;" onclick= "MM_openBrWindow('displayimage.php?fullsize=1&amp;picfile=$pic_url', 'ImageViewer', 'toolbar=yes, status=yes, resizable=yes, width=$winsizeX, height=$winsizeY')"><img src="showthumb.php?picfile=$pic_url&amp;size=48" class="thumbnail" border="0" alt="" /><br /></a>

just remove. Should work.
Title: Re: How do I turn off thumbnails while I'm batch adding?
Post by: MacDs on February 20, 2007, 02:51:53 PM
Works like a charm!

Thank you very much  :)