PDA

View Full Version : (No) Images


ggouweloos
12-13-2006, 09:17 PM
Hi,

I am new to JA Submit, so just a couple of newbie questions here:
- Is there a way to have the image upload functions disabled, if I do not want users to upload images.
- The images are uploaded in special folders, will they stay there or do they need to be moved. What's the best use of that?
- Is it possible to have multiple JA submit links, for different section/categories or usertypes?

Thanks for any help on this.

jpask
12-20-2006, 10:35 PM
Hello

To strip out the image upload functions, if you look in the components/com_ja_submit folder you'll see 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?

Let me know how you get on.

Regards
James