Advertisement:

Author Topic: Simple Audio Video Embedder  (Read 850502 times)

Offline _pi

  • Semi-Newbie
  • *
  • Posts: 82
Re: Simple Audio Video Embedder 1.0.12 (Feb 10) 50+ Video Sites supported!
« Reply #440 on: February 20, 2011, 06:12:09 PM »
what about adding permissions, so that only from allowed groups embedding is possible?
when not allowed, then simply display a message like 'You have no permission to post streaming Clips' ?

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,628
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Simple Audio Video Embedder 1.0.12 (Feb 10) 50+ Video Sites supported!
« Reply #441 on: February 20, 2011, 07:54:13 PM »
Permissions is not something that will ever be added due to technical reasons.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline _pi

  • Semi-Newbie
  • *
  • Posts: 82
Re: Simple Audio Video Embedder 1.0.12 (Feb 10) 50+ Video Sites supported!
« Reply #442 on: February 20, 2011, 08:10:07 PM »
i have not looked on your code, but surrounding  it by is_allowed is not possible?

if not member of group where its allowed to post video links do show replacement message.

what are the technical reasons?

« Last Edit: February 20, 2011, 08:14:14 PM by _pi »

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,870
    • StoryBB/StoryBB on GitHub
Re: Simple Audio Video Embedder 1.0.12 (Feb 10) 50+ Video Sites supported!
« Reply #443 on: February 20, 2011, 08:16:11 PM »
The technical reason is that it's not evaluated at edit time but at display time, which means you'd have to figure out the permissions of all the people posting in every thread when you view it.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline _pi

  • Semi-Newbie
  • *
  • Posts: 82
Re: Simple Audio Video Embedder 1.0.12 (Feb 10) 50+ Video Sites supported!
« Reply #444 on: February 20, 2011, 08:26:29 PM »
adding permissions to parsing is pretty simple, i have done that many times.
so i will add my code in permissions and in display.php

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,870
    • StoryBB/StoryBB on GitHub
Re: Simple Audio Video Embedder 1.0.12 (Feb 10) 50+ Video Sites supported!
« Reply #445 on: February 20, 2011, 08:29:39 PM »
Adding permissions to parsing at *savetime* is simple enough. Adding permissions at display time less so, since if you have 10 different posters, you have to get ten different users' sets of permissions, unless it's strictly post count based (which is easier but still not particularly easy, as the Anti Spam Links mod does)
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline _pi

  • Semi-Newbie
  • *
  • Posts: 82
Re: Simple Audio Video Embedder 1.0.12 (Feb 10) 50+ Video Sites supported!
« Reply #446 on: February 20, 2011, 08:38:03 PM »
in my case i want to have only staff and an extra group to be able to use embedding.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,870
    • StoryBB/StoryBB on GitHub
Re: Simple Audio Video Embedder 1.0.12 (Feb 10) 50+ Video Sites supported!
« Reply #447 on: February 20, 2011, 08:42:51 PM »
So you have to have it figure out on the display who is staff or in that extra group and only let it embed for those users... unless you want to stop users posting links to video sites normally?
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline _pi

  • Semi-Newbie
  • *
  • Posts: 82
Re: Simple Audio Video Embedder 1.0.12 (Feb 10) 50+ Video Sites supported!
« Reply #448 on: February 20, 2011, 08:59:28 PM »
preventing members to post unwanted links has no priority, as you you said that might much more work after sending a message.
i just need to take care about that their links are not displayed to the public.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,870
    • StoryBB/StoryBB on GitHub
Re: Simple Audio Video Embedder 1.0.12 (Feb 10) 50+ Video Sites supported!
« Reply #449 on: February 20, 2011, 09:19:13 PM »
I'm not sure I understand what you're trying to do then...
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline 青山 素子

  • Server Team
  • SMF Super Hero
  • *
  • Posts: 17,072
  • 戦場ヶ原、蕩れ!
    • srvrguy on GitHub
    • @motokochan on Twitter
    • Nekomusume Moe
Re: Simple Audio Video Embedder 1.0.12 (Feb 10) 50+ Video Sites supported!
« Reply #450 on: February 20, 2011, 10:53:11 PM »
in my case i want to have only staff and an extra group to be able to use embedding.

Here's the catch:

This modification automatically embeds video based on the presence of a simple piece of text in the post. No BBCode, no special tags. BBCode permissions aren't too complex as they are evaluated at post time based on the tag. With this type of modification, the embedding action happens on the display of the post.

This means that if you want to lock permissions on who can have embedded videos on their posts, you'd need to evaluate each individual post's author to see if they have the "ability" to have embedded videos in their posts. This could be very complex (I don't know that part of the code well, but I don't believe it looks up any user info) and at the very least very computationally complex. That means that you'll severely slow down your topic views.

If you're talking about showing videos in an embedded display, then that is a bit different and less complex.
Motoko-chan
Director, Simple Machines

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.


Offline Joker002

  • Semi-Newbie
  • *
  • Posts: 28
Re: Simple Audio Video Embedder 1.0.12 (Feb 10) 50+ Video Sites supported!
« Reply #451 on: February 21, 2011, 11:09:25 AM »
vbgamer45 can you in the next release add http://smotri.com/ ?
Thank you

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,628
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Simple Audio Video Embedder 1.0.12 (Feb 10) 50+ Video Sites supported!
« Reply #452 on: February 21, 2011, 11:41:54 AM »
Please post an example url and I will see if I can do it.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline Joker002

  • Semi-Newbie
  • *
  • Posts: 28

Offline luuuciano

  • SMF Hero
  • ******
  • Posts: 2,978
    • http://cbasites.net/
Re: Simple Audio Video Embedder 1.0.12 (Feb 10) 50+ Video Sites supported!
« Reply #454 on: February 21, 2011, 09:11:43 PM »
blip.tv is not supported?
No me agradan los foros que no te dejan borrar TU PROPIO usuario, como por ejemplo smfsimple.com.
E incluso te mandan emails no solicitados, de los cuales, quizá, no puedas escapar porque NO te dejan posibilidad a deshabilitarlos (a menos que NO te tengan en su lista negra).

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,628
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Simple Audio Video Embedder 1.0.12 (Feb 10) 50+ Video Sites supported!
« Reply #455 on: February 21, 2011, 09:31:45 PM »
blip.tv is not supported?
No if you have example links I can check it out
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline luuuciano

  • SMF Hero
  • ******
  • Posts: 2,978
    • http://cbasites.net/
Re: Simple Audio Video Embedder 1.0.12 (Feb 10) 50+ Video Sites supported!
« Reply #456 on: February 21, 2011, 10:38:09 PM »
here you have one, thanks!
http://blip.tv/file/4795906

btw, here is an example of pinkbike, another video site widely used by bikers, etc

http://www.pinkbike.com/video/182609/
No me agradan los foros que no te dejan borrar TU PROPIO usuario, como por ejemplo smfsimple.com.
E incluso te mandan emails no solicitados, de los cuales, quizá, no puedas escapar porque NO te dejan posibilidad a deshabilitarlos (a menos que NO te tengan en su lista negra).

Offline poolhall

  • Jr. Member
  • **
  • Posts: 316
Re: Simple Audio Video Embedder 1.0.12 (Feb 10) 50+ Video Sites supported!
« Reply #457 on: February 21, 2011, 11:51:07 PM »
vbgamer45, thanks a lot for the mod.

Can you please add an option to disable embedding in signatures?

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,628
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Simple Audio Video Embedder 1.0.12 (Feb 10) 50+ Video Sites supported!
« Reply #458 on: February 21, 2011, 11:51:57 PM »
vbgamer45, thanks a lot for the mod.

Can you please add an option to disable embedding in signatures?
Unlikely anytime soon.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline poolhall

  • Jr. Member
  • **
  • Posts: 316
Re: Simple Audio Video Embedder 1.0.12 (Feb 10) 50+ Video Sites supported!
« Reply #459 on: February 22, 2011, 09:34:19 AM »
vbgamer45, thanks a lot for the mod.

Can you please add an option to disable embedding in signatures?
Unlikely anytime soon.
May I ask if the reason for that is your unavailability or some technical difficulties?