View Full Version : Disable images
geoffw
05-02-2006, 10:05 PM
Hi
Thanks for component.
My users do not usually submit images, and if they don't i get a cross and small box that indicates that there is no image to put into the space provided by the HTML.
My question is:
1. Can i remove the 'blank' if users do not submit an image, or
2. Can I remove the image functionality in the component?
Thanks again
Geoff
Mordakaida
09-06-2006, 10:14 PM
This seems intresting to me. I am looking for a way to disable the auto resize and have the images come to me so I can edit them or reresize them myself.
lowdown
10-19-2006, 05:31 AM
Hi
Thanks for component.
My users do not usually submit images, and if they don't i get a cross and small box that indicates that there is no image to put into the space provided by the HTML.
My question is:
1. Can i remove the 'blank' if users do not submit an image, or
2. Can I remove the image functionality in the component?
Thanks again
Geoff
For whatever reason my server is changing the case on the filenames of my uploaded images. THis is possibly the case for you too.
jpask
12-20-2006, 09:31 PM
Hello
I'd like to see this feature too. I guess we'll have to have a root around in the php files and comment out the bits we don't want. Maybe this can be a new feature in a future version?
jpask
12-20-2006, 10:39 PM
Hello
Further to my original post, I did a bit of poking around in the php files and found a file called ja_submit.html.php. Open this file and delete rows 202-215. The bits to delete are as follows:
<tr>
<td width="16%"><label for="image1"><?php echo _H_INTRO_IMG ;?></label>:</td>
<td width="84%">
<input type="file" name="image1" id="image1" />
<?php echo _H_ALLOW_IMG_TYPE; ?>:<?php echo $H_allowable_images; ?>
</td>
</tr>
<tr>
<td><label for="image2"><?php echo _H_MAIN_IMG ;?></label>:</td>
<td>
<input type="file" name="image2" id="image2" />
<?php echo _H_ALLOW_IMG_TYPE; ?>:<?php echo $H_allowable_images; ?>
</td>
</tr>
To be on the safe side, make sure you back up the original file so that if anything goes wrong you can always restore it and start again. To be honest, if you have DreamWeaver or FrontPage (or any other suitable editor that shows the layout of the page) then you can just go to the layout view and it'll be pretty easy to spot the bits you need to strip out.
Hope you find this useful?
Regards
James
onio76
01-17-2007, 09:16 PM
Excuse me but my English is not very good.
I deleted rows 202-215 in ja_submit.html.php and now I can't send images. Ok, but text doesn't work. I wrote text in the article and it dissapears.
What happens?
Please help me!!!:-*
this is a poor solution. what is needed is to eliminate the ghost image references added to an article when submitted thorugh ja submit.
these ghost images from ja submit have a length/width of zero which will cause errors in some other mods that pull out and resize images in articles...
vBulletin® v3.7.3, Copyright ©2000-2009, Jelsoft Enterprises Ltd.