Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Can't add video to my group

10 years 9 months ago
Licenses:
JomSocial Expired

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!

10 years 9 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

Hi jholstein,

Since you are using the 3rd party profile type, I suggest you contact the JoomlaXI developer for this issue.

thank you

10 years 9 months ago
Licenses:
JomSocial Expired

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?

10 years 9 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

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

10 years 9 months ago
Licenses:
JomSocial Expired

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?

Attachment override_video_display.png not found

Attachments:
10 years 9 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

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 )

change to :
(1== 1 )

2. I am sorry that part cant be overriden, you need hack file helpers directly components/com_community/helpers/user.php function "addDefaultStatusCreator()"

thx

10 years 9 months ago
Licenses:
JomSocial Expired

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)

to
static function addDefaultStatusCreator()

Did not remove the video link in the user profile.

10 years 9 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

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);
		}

thank you!

10 years 9 months ago
Licenses:
JomSocial Expired

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);
		}
from the user.php file, but it is still displaying.

10 years 9 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

I mentioned in your another topic, please you update your Jomsocial to the latest version first :)

thx

10 years 9 months ago
Licenses:
JomSocial Expired

Ok Dimas, I have updated to most recent version...also I checked and the removed code is still removed that you suggested and it is still displaying the video feature in the user profile.

10 years 9 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

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;
		}

thank you

10 years 9 months ago
Licenses:
JomSocial Expired

Thanks Dimas...That worked (with a slight modification):

if($this->type == 'profile'){
			$this->permission->enablevideos		= false;
		}

The only other place I can see that allows a user to post a video to their profile is when they navigate to their videos page. Can the 'Add' link on this page be altered to add a video to their group (each user is only allowed 1 group) or just link to their group page? I've attached an a screen shot to illustrate.

Attachment add_video_user.png not found



It seems the code that controls this is in the directory components/com_community/views/videos/view.html.php and is around line 884
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);
                }

Attachments:
10 years 9 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

Hi,

you only need remove this code :

$this->addSubmenuItem('', JText::_('COM_COMMUNITY_ADD'), 'joms.videos.addVideo()', SUBMENU_RIGHT);

have you tried it?

thx

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW