[solved] upload field


  • Default avatar
    sandro7    
     9 years ago
    0

    Is there any way to disable upload field on invitation form?
  • Your avatar
    seyi    
     9 years ago
    0

    Hello,

    No, there is no option for it, but you can override the file and remove it. Find this file:

    www/components/com_aworewards/view/invitation/tmpl/default.php

    And copy it to your template:
    www/templates/[YOUR_TEMPLATE]/html/com_aworewards/invitation/default.php

    Then in the template file remove this code:
            <div class="getter_link">
                <a href="javascript:void(0);" onclick="jQuery('#email_upload_block').toggle();return false;">
                    <img src="<?php echo JURI::root(true); ?>/media/com_aworewards/images/icon_50_upload.png" alt="upload" />
                    <span><?php echo JText::_('COM_AWOREWARDS_EMAIL_UPLOAD_MSG'); ?></span>
                </a>
                <div id="email_upload_block">
                    <form action="<?php echo JRoute::_'index.php' ); ?>" method="post" enctype="multipart/form-data">
                        <input type="file" name="file" /> <input type="submit" value="<?php echo JText::_('COM_AWOREWARDS_SUBMIT'); ?>" />
                        <input type="hidden" name="option" value="com_aworewards" />
                        <input type="hidden" name="view" value="invitation" />
                        <input type="hidden" name="task" value="invite_uploadmail" />
                        <?php echo JHTML::_'form.token' ); ?>
                    </form>
                </div>
            </div>
  • Default avatar
    sandro7    
     9 years ago
    0

    Hi, Seyi, thanks for your response.