I have two types of users in jomsocial ('Fans' and 'Podcasters' and I'm using JoomlaXi Profile types to limit creating videos, events and groups to only be able to be added by Podcasters. This works.
What I would like to do is only make adding videos available through the group that the Podcaster creates (and not on the profile). The problem is, I can't even see a way to add videos to a group. I've made sure that the 'enable group video' is ON and I don't see the option to add a video within the group anywhere. I've also tried unhooking JoomlaXi Profile types so Jomsocial is not being over-ridden in any way, and it still doesn't show the ability to add video to a group.
Any help would be appreciated. Thanks!
Hi jholstein,
Since you are using the 3rd party profile type, I suggest you contact the JoomlaXI developer for this issue.
thank you
Not sure if you didn't see my post, but I had unhooked the 3rd party profile control and still wasn't seeing where you can add videos to a group. Should there be a button appearing that has a video icon like the profile does?
Hi There,
Please you make sure checked the "Enable Video Sharing" and "Allow Members to Upload Videos" field during add/edit group.
I am not sure the "unhooked" things is working properly or not, because this setting handle with JSPT, so I suggest you contact them first and back to us after you get the reply from them,
thank you
Thanks Dimas...the 'Enable Video Sharing' feature in groups was the problem. IS there a way that I can set that to be enabled by default?
Also, since I only want users with a group to have the ability to add videos, can I remove the add video link by over-riding it in the template/html/com_community folder? And if so, which file within the default template do I need to over ride?
Hi,
1. For change the default, you need open this file components/com_community/templates/groups.forms.php, find this :
($params->get('videopermission') == GROUP_VIDEO_PERMISSION_ALL )
(1== 1 )
Ok Dimas, the first alteration worked to set groups to automatically have authorize group video sharring, but the second change:
Going to /componenents/com-community/helpers/user.php and Changing
static function addDefaultStatusCreator(&$status)
static function addDefaultStatusCreator()
Hi,
Please you try remove this code :
if( $config->get( 'enablevideos') )
{
/* Video creator */
$creator = new CUserStatusCreator('video');
$creator->title = JText::_('COM_COMMUNITY_SINGULAR_VIDEO');
$creator->html = $template->fetch('status.video');
$status->addCreator($creator);
}
I removed
if( $config->get( 'enablevideos') )
{
/* Video creator */
$creator = new CUserStatusCreator('video');
$creator->title = JText::_('COM_COMMUNITY_SINGULAR_VIDEO');
$creator->html = $template->fetch('status.video');
$status->addCreator($creator);
}
I mentioned in your another topic, please you update your Jomsocial to the latest version first :)
thx
Please you open this file components/com_community/libraries/userstatus.php, add this code after line 71 :
if($this->type == 'profile'){
$this->permission->enablevideosupload = false;
}
Thanks Dimas...That worked (with a slight modification):
if($this->type == 'profile'){
$this->permission->enablevideos = false;
}
if (!empty($my->id)) {
$this->addSubmenuItem('index.php?option=com_community&view=videos&task=myvideos&userid=' . $my->id, JText::_('COM_COMMUNITY_VIDEOS_MY'), '', SUBMENU_LEFT);
$this->addSubmenuItem('', JText::_('COM_COMMUNITY_ADD'), 'joms.videos.addVideo()', SUBMENU_RIGHT);
}
Hi,
you only need remove this code :
$this->addSubmenuItem('', JText::_('COM_COMMUNITY_ADD'), 'joms.videos.addVideo()', SUBMENU_RIGHT);