Remove photo upload form?

I've narrowed the entire add photo down to "2" clicks but I need to take it one step further. I need to get rid of the form on the photo upload. All I need is the recently uploaded photo and the buttons.  How can I get rid of that form without throwing the forms off site wide?

 

Thanks 

Untitled-2.png · 41.7K · 241 views
Quote · 24 Mar 2015

you can try to hide elements  with css 

Always remember that the future comes one day at a time.
Quote · 24 Mar 2015

Hi Yzisano. I did try to edit the css but, it throws off the other forms. 

I'm wondering if the second step could be bypassed altogether. 

Quote · 24 Mar 2015

display:none will remove the element from the page.  visibility:hidden will keep the element on the page but just hide it.

Geeks, making the world a better place
Quote · 24 Mar 2015

Hi GG. Firebug shows the CSS in forms_adv. If I edit those then the whole site gets edited i.e. the edit profile form / Join form.  Is the photo upload form generated through php where I could find that snip of code and put a new class <td class="something"> and create a new css for it? I've tried looking in the m/photos folder without much luck.

Quote · 24 Mar 2015

Everything is dependent on everything else. The form is the last confusing element I need to remove so my members can stop harassing me about how complicated it is to upload a photo.

Quote · 25 Mar 2015

I found an option; but before I begin, let me explain why I'm using this option, in case you wish to do the same. The default photo handling is a chore for users. I've decided to make the process easier for my site. The user is locked to the default album so, most of the fields in the form are not needed. *note* my members do not upload any other type of files... Just photos. This works well with the (Profile Pic Switcher) instead of standard (profile pic)

 

To remove the form fields You will have to edit inc/classes/BxDolFilesUploader.php

 

1. For the background color edit             <div style="background-color:#ffdada;" id="accepted_files_block"></div> 

 

2. to remove fields      

 

find :        

// processing of possible default values

        $aInputValues = array('title', 'tags', 'description', 'type', $this->sUploadTypeLC);

        foreach ($aInputValues as $sField) {

            $sEmpty = $sField == 'type' ? 'upload' : '';

            $sTemp = isset($aDefaultValues[$sField]) ? strip_tags($aDefaultValues[$sField]) : $sEmpty;

            $aDefaultValues[$sField] = $sTemp;

        }

        $aForm = array(

            'form_attrs' => array(

                'id' => $this->sUploadTypeLC . '_file_info_form',

                'method' => 'post',

                'action' => $this->sWorkingFile,

                'target' => 'upload_file_info_frame_' . $iFileID

            ),

            'inputs' => array(

                'header2' => array(

                    'type' => 'block_header',

                    'caption' => $sCaptionVal,

                    'collapsable' => true

                ),

                'title' => array(

                    'type' => 'text',

                    'name' => 'title',

                    'caption' => _t('_Title'),

                    'required' => true,

                    'value' => $aDefaultValues['title']

                ),

                'tags' => array(

                    'type' => 'text',

                    'name' => 'tags',

                    'caption' => _t('_Tags'),

                    'info' => _t('_Tags_desc'),

                    'value' => $aDefaultValues['tags']

                ),

                'description' => array(

                    'type' => 'textarea',

                    'name' => 'description',

                    'caption' => _t('_Description'),

                    'value' => $aDefaultValues['description']

                ),

                'media_id' => array(

                    'type' => 'hidden',

                    'name' => 'file_id',

                    'value' => $iFileID,

                ),

                'hidden_action' => array(

                    'type' => 'hidden',

                    'name' => 'action',

                    'value' => 'accept_file_info'

                ),

                $this->sUploadTypeLC => array(

                    'type' => 'hidden',

                    'name' => $this->sUploadTypeLC,

                    'value' => $aDefaultValues[$this->sUploadTypeLC]

                ),

                'type' => array(

                    'type' => 'hidden',

                    'name' => 'type',

                    'value' => $aDefaultValues['type']

                )

            ),

        );

 

        //--- Process Extras ---//

        foreach($this->_aExtras as $sKey => $mixedValue)

            $aForm['inputs'][BX_DOL_UPLOADER_EP_PREFIX . $sKey] = array (

                'type' => 'hidden',

                'name' => BX_DOL_UPLOADER_EP_PREFIX . $sKey,

                'value' => $mixedValue

            );

 

        // merging categories

        $aForm['inputs'] = $this->getUploadFormArray($aForm['inputs'], array($aFormCategories, $aAlbums));

 

 

and replace with or edit out what you need:

 

       // processing of possible default values

        $aInputValues = array('title', 'tags', 'description', 'type', $this->sUploadTypeLC);

        foreach ($aInputValues as $sField) {

            $sEmpty = $sField == 'type' ? 'upload' : '';

            $sTemp = isset($aDefaultValues[$sField]) ? strip_tags($aDefaultValues[$sField]) : $sEmpty;

            $aDefaultValues[$sField] = $sTemp;

        }

        $aForm = array(

            'form_attrs' => array(

                'id' => $this->sUploadTypeLC . '_file_info_form',

                'method' => 'post',

                'action' => $this->sWorkingFile,

                'target' => 'upload_file_info_frame_' . $iFileID

            ),

            'inputs' => array(

                'header2' => array(

                    'type' => 'block_header',

                    'caption' => $sCaptionVal,

                    'collapsable' => true

                ),

                'title' => array(

                    'type' => 'hidden',

                    'name' => '',

                    'caption' => _t(''),

                    'required' => true,

                    'value' => $aDefaultValues['']

                ),

                'tags' => array(

                    'type' => 'hidden',

                    'name' => '',

                    'caption' => _t(''),

                    'info' => _t(''),

                    'value' => $aDefaultValues['']

                ),

                'description' => array(

                    'type' => 'hidden',

                    'name' => '',

                    'caption' => _t(''),

                    'value' => $aDefaultValues['']

                ),

                'media_id' => array(

                    'type' => 'hidden',

                    'name' => 'file_id',

                    'value' => $iFileID,

                ),

                'hidden_action' => array(

                    'type' => 'hidden',

                    'name' => 'action',

                    'value' => 'accept_file_info'

                ),

                $this->sUploadTypeLC => array(

                    'type' => 'hidden',

                    'name' => $this->sUploadTypeLC,

                    'value' => $aDefaultValues[$this->sUploadTypeLC]

                ),

                'type' => array(

                    'type' => 'hidden',

                    'name' => 'type',

                    'value' => $aDefaultValues['type']

                )

            ),

        );

 

        //--- Process Extras ---//

        foreach($this->_aExtras as $sKey => $mixedValue)

            $aForm['inputs'][BX_DOL_UPLOADER_EP_PREFIX . $sKey] = array (

                'type' => 'hidden',

                'name' => BX_DOL_UPLOADER_EP_PREFIX . $sKey,

                'value' => $mixedValue

            );

 

        // merging categories

        $aForm[''] = $this->getUploadFormArray($aForm['inputs'], array($aAlbums));

Untitled-1.jpg · 255.2K · 189 views
Untitled-3.jpg · 291.4K · 167 views
Quote · 27 Mar 2015
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.