Welcome, Guest
Username: Password: Remember me

TOPIC: disable fields

disable fields 2 years 1 week ago #4491

hi I need to disable some fields like youtube video and address, how can i do that?
The administrator has disabled public write access.

disable fields 2 years 1 week ago #4493

  • Super User
  • Super User's Avatar
  • Offline
  • Administrator
  • Posts: 2759
  • Thank you received: 292
  • Karma: 40
Hi,

Sorry, the feature to disable video and locaton is not available. But you can hide these code in your add.php and edit.php from the below path,
Root /components/com_jomclassifieds/views/user/tmpl/

Thanks.
The administrator has disabled public write access.

disable fields 2 years 6 days ago #4498

could you tell me please what exactly i need to delete please,

thank you
The administrator has disabled public write access.

disable fields 2 years 5 days ago #4501

  • Super User
  • Super User's Avatar
  • Offline
  • Administrator
  • Posts: 2759
  • Thank you received: 292
  • Karma: 40
Kindly let me know the exact fields that you need to remove and the Jomclassifieds version that you are using. So that we can check and update you.

Thanks.
The administrator has disabled public write access.

disable fields 2 years 5 days ago #4509

hi, I want to remove que address field

in contact details i just want to show:

location
zipcode
phone number

the version marketplace 2.0.0
The administrator has disabled public write access.

disable fields 2 years 4 days ago #4520

  • Super User
  • Super User's Avatar
  • Offline
  • Administrator
  • Posts: 2759
  • Thank you received: 292
  • Karma: 40
Kindly open the below files,

Root / components / com_jomclassifieds / views / user / tmpl / add.phhp

Root / components / com_jomclassifieds / views / user / tmpl / edit.phhp

In the above files, please remove the below code,

add.php
<div class="control-group">
      	<label class="control-label"><?php echo JText::_('ADDRESS'); ?></label>
         <div class="controls">
      	<textarea name="address" rows="3" cols="50" <?php echo $ua; ?>></textarea>
      </div>
      </div>

edit.php
<div class="control-group">
        <label class="control-label"><?php echo JText::_('ADDRESS'); ?></label>
        <div class="controls">
          <textarea name="address" rows="3" cols="50" <?php echo $ua; ?>><?php echo $item->address; ?></textarea>
        </div>
      </div>

Finally save the files and check your site.

Thanks.
The administrator has disabled public write access.
Time to create page: 0.191 seconds