Wall how to remove add video, sound links?

How to remove links to add videos and sounds on the wall. There are at the top of the wall post field.

Quote · 7 Jan 2010

Here is my work around:

HOW TO REMOVE SOUND & VIDEO FROM WALL

Open File:

/modules/boonex/wall/classes/BxWallModule.php

Replace:

if($this->_oDb->isModule('photos'))

$aTopMenu['wall-ptype-photo'] = array('href' => '', 'onclick' => '', 'class' => 'wall-ptype-ctl', 'icon' => $this->_oTemplate->getIconUrl('post_photo.png'), 'title' => _t('_wall_add_photo'));

if($this->_oDb->isModule('videos'))

$aTopMenu['wall-ptype-video'] = array('href' => '', 'onclick' => '', 'class' => 'wall-ptype-ctl', 'icon' => $this->_oTemplate->getIconUrl('post_video.png'), 'title' => _t('_wall_add_video'));       

if($this->_oDb->isModule('sounds'))

$aTopMenu['wall-ptype-music'] = array('href' => '', 'onclick' => '', 'class' => 'wall-ptype-ctl', 'icon' => $this->_oTemplate->getIconUrl('post_music.png'), 'title' => _t('_wall_add_music'));

With:


if($this->_oDb->isModule('photos'))

$aTopMenu['wall-ptype-photo'] = array('href' => '', 'onclick' => '', 'class' => 'wall-ptype-ctl', 'icon' => $this->_oTemplate->getIconUrl('post_photo.png'), 'title' => _t('_wall_add_photo'));

Quote · 1 Jun 2010

Thanks this worked for me

Wall-no-sound-video.jpg · 17.9K · 294 views
Quote · 7 Feb 2011

Nice note thanks. Worked in 7.0.5 as well :)

Quote · 11 Apr 2011

For Dolphin 7.0.9

/modules/boonex/wall/classes/BxWallModule.php

You only have to comment out a part of the php syntax

 

Original Code:

if($this->_oDb->isModule('photos'))
            $aTopMenu['wall-ptype-photo'] = array('href' => 'javascript:void(0)', 'onclick' => 'javascript:' . $this->_sJsPostObject . '.changePostType(this)', 'class' => 'wall-ptype-ctl', 'icon' => $this->_oTemplate->getIconUrl('post_photo.png'), 'title' => _t('_wall_add_photo'));


 if($this->_oDb->isModule('sounds'))
            $aTopMenu['wall-ptype-music'] = array('href' => 'javascript:void(0)', 'onclick' => 'javascript:' . $this->_sJsPostObject . '.changePostType(this)', 'class' => 'wall-ptype-ctl', 'icon' => $this->_oTemplate->getIconUrl('post_music.png'), 'title' => _t('_wall_add_music'));


        if($this->_oDb->isModule('videos'))
            $aTopMenu['wall-ptype-video'] = array('href' => 'javascript:void(0)', 'onclick' => 'javascript:' . $this->_sJsPostObject . '.changePostType(this)', 'class' => 'wall-ptype-ctl', 'icon' => $this->_oTemplate->getIconUrl('post_video.png'), 'title' => _t('_wall_add_video'));

 

New Code:

if($this->_oDb->isModule('photos'))
            $aTopMenu['wall-ptype-photo'] = array('href' => 'javascript:void(0)', 'onclick' => 'javascript:' . $this->_sJsPostObject . '.changePostType(this)', 'class' => 'wall-ptype-ctl', 'icon' => $this->_oTemplate->getIconUrl('post_photo.png'), 'title' => _t('_wall_add_photo'));


/* if($this->_oDb->isModule('sounds'))
            $aTopMenu['wall-ptype-music'] = array('href' => 'javascript:void(0)', 'onclick' => 'javascript:' . $this->_sJsPostObject . '.changePostType(this)', 'class' => 'wall-ptype-ctl', 'icon' => $this->_oTemplate->getIconUrl('post_music.png'), 'title' => _t('_wall_add_music'));


        if($this->_oDb->isModule('videos'))
            $aTopMenu['wall-ptype-video'] = array('href' => 'javascript:void(0)', 'onclick' => 'javascript:' . $this->_sJsPostObject . '.changePostType(this)', 'class' => 'wall-ptype-ctl', 'icon' => $this->_oTemplate->getIconUrl('post_video.png'), 'title' => _t('_wall_add_video')); */

Quote · 12 Apr 2012

Is there a way to do this in 7.1.x?
I would like to remove the "Share a link" and "Add a sound" options.

Thanks

Ace 

Quote · 20 Nov 2013

 

Is there a way to do this in 7.1.x?

 I've become used to answering my own questions half the time. This is one of those times.

Even though the "Wall" is now called "Timeline", the module is still called "Wall".

The earlier posts show how to comment out the lines. This still works, and the files are in the same place.

Quote · 21 Nov 2013
 
 
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.