Hi,
I would like to uninstall Sounds and Files integration from other modules.
Can anyone that already have experience with it tell me the right steps for it.
I can not find how to move/delete the Buttons
Add Sound and Add File - from Event and Group Action Block.
Thanks.
|
Hi, Does anyone know how  |
I'd like to know too. Since you can't remove videos/sounds from the system because of dependencies, you can't really stop people from using them. I removed the links to them from the nav menu, but when you start a new group/event, etc. it has a place to upload video/sounds, which I can't figure out how to get rid of either. |
There are two ways to go about this. One is to remove the dependencies for modules, as well as removing any related SQL queries, and the other is to simply hide any trace of the unwanted module, without actually removing it. As the first option may commonly lead to issues with your installation, only the second is suggested. You can remove all traces from the navigation menu, which is also where you can edit your quick links area on your account page. By editing the navigation menu item of say, your inbox, you will notice a checkbox which is labels as "quick links." Unchecking this will remove it from your quick links area. BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
Ja, thanks, Magnussoft, but I still can't find the references to "Add Sound" and "Add File" - from Event and Group Action Block, in what file are they? |
To remove sound and files from Events :
In \modules\boonex\events\classes\BxEventsPageView.php
Find and remove:
'TitleUploadSounds' => $this->_oMain->isAllowedUploadSounds($this->aDataEntry) ? _t('_bx_events_action_upload_sounds') : '', 'TitleUploadFiles' => $this->_oMain->isAllowedUploadFiles($this->aDataEntry) ? _t('_bx_events_action_upload_files') : '',
In \modules\boonex\events\classes\BxEventsFormAdd.php
Find
and remove:
'allow_upload_sounds_to' => $aInputPrivacyUploadSounds,
'allow_upload_files_to' => $aInputPrivacyUploadFiles,
if (!$aCustomForm['inputs']['sounds_choice']['content']) unset ($aCustomForm['inputs']['sounds_choice']);
if (!$aCustomForm['inputs']['files_choice']['content']) unset ($aCustomForm['inputs']['files_choice']);
// sounds
'header_sounds' => array( 'type' => 'block_header', 'caption' => _t('_bx_events_form_header_sounds'), 'collapsable' => true, 'collapsed' => false, ), 'sounds_choice' => array( 'type' => 'custom', 'content' => $aCustomMediaTemplates['sounds']['choice'], 'name' => 'sounds_choice[]', 'caption' => _t('_bx_events_form_caption_sounds_choice'), 'info' => _t('_bx_events_form_info_sounds_choice'), 'required' => false, ), 'sounds_upload' => array( 'type' => 'custom', 'content' => $aCustomMediaTemplates['sounds']['upload'], 'name' => 'sounds_upload[]', 'caption' => _t('_bx_events_form_caption_sounds_upload'), 'info' => _t('_bx_events_form_info_sounds_upload'), 'required' => false, ),
// files
'header_files' => array( 'type' => 'block_header', 'caption' => _t('_bx_events_form_header_files'), 'collapsable' => true, 'collapsed' => false, ), 'files_choice' => array( 'type' => 'custom', 'content' => $aCustomMediaTemplates['files']['choice'], 'name' => 'files_choice[]', 'caption' => _t('_bx_events_form_caption_files_choice'), 'info' => _t('_bx_events_form_info_files_choice'), 'required' => false, ), 'files_upload' => array( 'type' => 'custom', 'content' => $aCustomMediaTemplates['files']['upload'], 'name' => 'files_upload[]', 'caption' => _t('_bx_events_form_caption_files_upload'), 'info' => _t('_bx_events_form_info_files_upload'), 'required' => false, ),
Repeat the same process for other modules.
Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz |
I tried the below but the Actions Buttons are still showing on the Event View Page. How do I remove the Image (Action Button)?
by: modzzz
In \modules\boonex\events\classes\BxEventsPageView.php
Find and remove:
'TitleUploadSounds' =>
$this->_oMain->isAllowedUploadSounds($this->aDataEntry) ?
_t('_bx_events_action_upload_sounds') : '', 'TitleUploadFiles' =>
$this->_oMain->isAllowedUploadFiles($this->aDataEntry) ?
_t('_bx_events_action_upload_files') : '',
|
CORRECTION :
In \modules\boonex\events\classes\BxEventsPageView.php
Find :
'TitleUploadSounds' => $this->_oMain->isAllowedUploadSounds($this->aDataEntry) ? _t('_bx_events_action_upload_sounds') : '', 'TitleUploadFiles' => $this->_oMain->isAllowedUploadFiles($this->aDataEntry) ? _t('_bx_events_action_upload_files') : '',
Replace with :
'TitleUploadSounds' => '', 'TitleUploadFiles' => '',
Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz |
Perfect modzzz! Your last correction works. Thank you :)
|
Great! This helped me pinpoint where to remove elements from the Groups add/view page, thanks! |
I was over the mon to stumble accross this post!
I have remooved the buttons from the action box but I am not sure about this...
Find
and remove:
'allow_upload_sounds_to' => $aInputPrivacyUploadSounds,
'allow_upload_files_to' => $aInputPrivacyUploadFiles,
if (!$aCustomForm['inputs']['sounds_choice']['content']) unset
($aCustomForm['inputs']['sounds_choice']);
if
(!$aCustomForm['inputs']['files_choice']['content']) unset
($aCustomForm['inputs']['files_choice']);
// sounds
'header_sounds' => array( 'type' =>
'block_header', 'caption' => _t('_bx_events_form_header_sounds'), 'collapsable' => true, 'collapsed' => false, ), 'sounds_choice' => array( 'type' => 'custom', 'content'
=> $aCustomMediaTemplates['sounds']['choice'], 'name' =>
'sounds_choice[]', 'caption' =>
_t('_bx_events_form_caption_sounds_choice'), 'info' =>
_t('_bx_events_form_info_sounds_choice'), 'required' => false, ), 'sounds_upload' => array( 'type' => 'custom', 'content' => $aCustomMediaTemplates['sounds']['upload'], 'name'
=> 'sounds_upload[]', 'caption' =>
_t('_bx_events_form_caption_sounds_upload'), 'info' =>
_t('_bx_events_form_info_sounds_upload'), 'required' => false, ),
// files
'header_files' => array( 'type'
=> 'block_header', 'caption' =>
_t('_bx_events_form_header_files'), 'collapsable' => true, 'collapsed' => false, ), 'files_choice' => array( 'type' => 'custom', 'content' =>
$aCustomMediaTemplates['files']['choice'], 'name' =>
'files_choice[]', 'caption' =>
_t('_bx_events_form_caption_files_choice'), 'info' =>
_t('_bx_events_form_info_files_choice'), 'required' => false, ), 'files_upload' => array( 'type' => 'custom', 'content' => $aCustomMediaTemplates['files']['upload'], 'name'
=> 'files_upload[]', 'caption' =>
_t('_bx_events_form_caption_files_upload'), 'info' =>
_t('_bx_events_form_info_files_upload'), 'required' => false, ),
Repeat the same process for other modules.
This text doesn't appear as one block and not all of it appears at all. I am using D7.0.1 Am I looking at a slightly different file due to versions or have I misunderstood?
Cheer
|
I'd like to RE-add Videos to the Action panel, but adding the following line back in doesn't show the button:
'TitleUploadVideos' => $this->_oMain->isAllowedUploadVideos($this->aDataEntry) ? _t('_bx_events_action_upload_videos') : '',
Just to clarify, I've changed the GroupsFormAdd file in reverse to what's shown below and videos can be uploaded when editing a group or when creating one, but the button doesn't show in the Actions box. Even using the link that the button WOULD point to is functioning - so what's stopping the button from showing? Any ideas? |