photo upload options

Hi, just wanted to know if there was a way that when members are uploading photos through the photo uploader is there a way that in the part where it asks for the 'title' 'tags' 'description' 'categories' etc can we make it so its standard to get rid of the 'tags' 'description' and 'categories' sections so basicaly i want to know if its possible for when the member uploads a photo all they have to do is add a title and select submit??

 

Thanks in advance.

 

Charlie

You Creature!!
Quote · 21 Jun 2012

im sure its possible, but just not as a default function. you would need to hack the dolphin.

When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support
Quote · 21 Jun 2012

 

im sure its possible, but just not as a default function. you would need to hack the dolphin.

 Ok thanks, any ideas on how i could do that? surely it can't be that hard can it ?

You Creature!!
Quote · 21 Jun 2012

try in /inc/classes/BxDolFilesModule.php

find and remove what's not needed

~520

 

        $sCaptionVal = ($this->sSendFileInfoFormCaption != '') ? $this->sSendFileInfoFormCaption : _t('_Info');
        // 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'),
                    'required' => true,
                    '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']
                )
            ),
        );

Quote · 21 Jun 2012

 

try in /inc/classes/BxDolFilesModule.php

find and remove what's not needed

~520

 

        $sCaptionVal = ($this->sSendFileInfoFormCaption != '') ? $this->sSendFileInfoFormCaption : _t('_Info');
        // 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'),
                    'required' => true,
                    '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']
                )
            ),
        );

 Hi thanks for your advice but tried what you said by deleting what i no longer want to appear on the upload section but they still appear, and year i cleared the cache :)

You Creature!!
Quote · 21 Jun 2012

Thanks, managed to get this sorted via http://www.boonex.com/forums/?action=goto&topic_id=Photo-upload-remove-Tags-amp-Category-option

You Creature!!
Quote · 22 Jun 2012
 
 
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.