Keyword

Frontend Article Submission Image Upload

More
12 years 9 months ago #102626 by Harun
Hi Everyone,

I am wondering if it is possible to restrict users from accessing the server folders when they want to upload an image with the article.

That is, I want to know if there is a way to remove the BROWSE SERVER option. The CHOOSE FILE option is only one that I need.

I hope I explained my problem clearly.

Thanks
Attachments:

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #102627 by Lefteris
Replied by Lefteris on topic Re: Frontend Article Submission Image Upload
Hi. There is no option for that. You can however hide it using CSS.

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #102628 by Harun
Lefteris Kavadas, thank You for Your suggestion.


I solved my problem by editing the " itemform.php " file in " components\com_k2\templates\default " folder.

Just deleted few lines :

<input type="text" name="existingImage" id="existingImageValue" class="text_area" readonly />
<input type="button" value="<?php echo JText::_('K2_BROWSE_SERVER'); ?>" id="k2ImageBrowseServer" />

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #102629 by Lefteris
Replied by Lefteris on topic Re: Frontend Article Submission Image Upload
Try to place the modified file into /templates/your_template/html/com_k2/default/itemform.php . This way you will not lose your changes when we release an update.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum