Prevent user from selecting an existing image

More
13 years 4 months ago #12496 by blocka
I have a photo gallery where I want visitors to be able to add photos to my site.
I'm using the field type "Image". But on the interface, the user can select from Existing images.

Anyone know how I can turn this option off?

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

More
13 years 4 months ago #12519 by micker
Hello actualy you can modified the sbmition page
Regards

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
13 years 4 months ago #12527 by yopyop001
Hi,

I dont't know if i understand well the problem...

Anyway :

Solution 1
You can duplicate the field plugin 'image' and comment the line (ligne 97)
Code:
<tr> <td class="key">'.JText::_('FLEXI_FIELD_EXISTINGFILE' ).':</td> <td>'.$select.'</td> </tr>

Solution 2
Or replace previous code by :
Code:
<tr style="display:none;"> <td class="key">'.JText::_('FLEXI_FIELD_EXISTINGFILE' ).':</td> <td>'.$select.'</td> </tr>

Solution 3
Or replace previous code by
Code:
<tr class="masque"> <td class="key">'.JText::_('FLEXI_FIELD_EXISTINGFILE' ).':</td> <td>'.$select.'</td> </tr>

And put
Code:
tr.masque{ display:none; }
in the css

I hope it can help you.

If you don't duplicate the image field plugin, you will have to do this for each flexicontent updates.

Regards

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.272 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline