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.

Disable Add url video, only Upload

9 years 6 months ago
  • bruno's Avatar
    Topic Author
  • bruno
  • Offline
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
Licenses:
JomSocial Active

ISSUE SUMMARY:
Hi,
regarding video, there are tipically two ways to add a video in JomSocial: "add url" (i.e. youtube etc.) and "upload video".

I'd like to remove the possibility to "add url" (I dont want thousend of link to youtube videos) and leave only the "upload video" function, so the user can't link a video from youtube but can upload a video from his desktop to jomsocial.

How can I do ?

Thanks
Bruno

STEPS TO REPLICATE:
1
2
3
4
5
RESULT
EXPECTED RESULT
BROWSER

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

Hi Bruno,

Well, we dont have this feature from the configuration, but you can hack with this simple css code :

li.joms-postbox-video-url{display:none}
.joms-popup--videoupload .joms-tab__bar > a:nth-child(1) {
    display: none;
}
div#joms-js__link-video {
    display: none !important;
}
div#joms-js__upload-video {
    display: block !Important;
}

I hope it will help

9 years 6 months ago
  • bruno's Avatar
    Topic Author
  • bruno
  • Offline
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
Licenses:
JomSocial Active

Thank you Dimas,

but where exactly I have to write this code ?
In which directory/file ?

best regards

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

you can put it inside components/com_community/templates/default/css/style.css

9 years 6 months ago
  • bruno's Avatar
    Topic Author
  • bruno
  • Offline
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
Licenses:
JomSocial Active

Dimas wrote: you can put it inside components/com_community/templates/default/css/style.css


Hi,

under components/com_community/templates there is not the "default" directory but there is only the "jomsocial" directory, with this subdirectories:

- /jomsocial
---/assets
---/layout
---/scss

Have I to create the directory default/css/ and then I must create the file style.css or what else ?

thank you
Bruno

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

Hi Bruno,

Yeah, actually the default template should be removed on newest version, but I am not sure why that default template still on your site.. seems you are using old jomsoical version right? but that is not a problem, since I can see it on your source code and can open that file oneparent.it/components/com_community/te...efault/css/style.css



but if you use the latest version 4.1.1 you should add that code inside this file /components/com_community/templates/jomsocial/assets/css/style.css

Attachments:
9 years 6 months ago
  • bruno's Avatar
    Topic Author
  • bruno
  • Offline
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
Licenses:
JomSocial Active

It works!

Thank you very much :o)

Bruno

9 years 5 months ago
  • bruno's Avatar
    Topic Author
  • bruno
  • Offline
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
Licenses:
JomSocial Active

Hi Dimas,

unfortunately I realize only now that there is a little problem:

after the change you suggested me in the file /components/com_community/templates/jomsocial/assets/css/style.css... now if I disallow video upload (only upload, not video), again it is possible to "add url" video. Instead disallowing video upload, I would like to be impossible to upload and to add url.

In such a way, only the admin can upload video when he wants, but all the user can always see videos.

How can I do ?

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

Hi Bruno,

I am sorry that is not possible (only admin can add video), we dont have that feature..

If you wanna enable back the add url video, you can revert back the css code.

thank you!

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