News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Simple Audio Video Embedder

Started by SMFHacks.com Team, August 09, 2010, 10:42:47 PM

Previous topic - Next topic

_pi

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' ?

vbgamer45

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

_pi

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?


Arantor

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.

_pi

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

Arantor

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)

_pi

in my case i want to have only staff and an extra group to be able to use embedding.

Arantor

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?

_pi

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.

Arantor


青山 素子

Quote from: _pi 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.

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.


Joker002


vbgamer45

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


luuuciano

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).

vbgamer45

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

luuuciano

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).

poolhall

vbgamer45, thanks a lot for the mod.

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

vbgamer45

Quote from: poolhall 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?
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

poolhall

Quote from: vbgamer45 on February 21, 2011, 11:51:57 PM
Quote from: poolhall 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?
Unlikely anytime soon.
May I ask if the reason for that is your unavailability or some technical difficulties?

Advertisement: