Jump to content

FLASH .. Group Permissions


Guest theclub

Recommended Posts

I want to use the Flash BB Code to embed Google videos, but I don't want all members to use it.

So is it possible to add group permissions?


As an idea, is there a code that can be inserted into the BB Code to allow Root Admin access only?

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="550" height="400" id="Untitled-1" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="{content}" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="{content}" quality="high" bgcolor="#ffffff" width="550" height="400" name="Untitled-1" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>




:unsure:

Link to comment
Share on other sites

I would suggest to changing {content} to

http://video.google.com/videoplay?docid={content}

so they put the number in, and can't inject URLs to harmful videos. And you don't have to worry about other users abusing it (too much).


How would you incorporate that into the BB Code above?

Like this?

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="550" height="400" id="Untitled-1" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="http://video.google.com/videoplay?docid={content}" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="{content}" quality="high" bgcolor="#ffffff" width="550" height="400" name="Untitled-1" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>



:unsure:

Link to comment
Share on other sites

For those of you interested in using this code for Google videos I managed to get it to work with a little tweaking.

This code means the Flash tags will only work with Google Videos, so if you want to maintain your Flash BB Code you can call this Code 'Google' and use [google] tags.


<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="550" height="400" id="Untitled-1" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="http://video.google.com/googleplayer.swf?docid={content}" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="{content}" quality="high" bgcolor="#ffffff" width="550" height="400" name="Untitled-1" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>



You insert ONLY the video ID number between the tags.


:thumbsup:

Link to comment
Share on other sites

Just to maintain XHTML compliance, I would suggest leaving off the "id" attribute of the Object tag. Otherwise, you invalidate every single page that more than one flash tag is used. Also, getElementById has ... "unpredictable" ... results if more than one element shares an ID.

Link to comment
Share on other sites

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="550" height="400"  align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="http://video.google.com/googleplayer.swf?docid={content}" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="{content}" quality="high" bgcolor="#ffffff" width="550" height="400" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>



I'm guessing he means like that.

Link to comment
Share on other sites

Wolf speaks truth, yes I did just mean grabbing the

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="550" height="400" align="middle">

and removing the

id='Untitled-1'

part.

Link to comment
Share on other sites

And the "name="Untitled-1" part?




:unsure:




Hmm. Theoretically, multiple elements can have the same name. Buuuuut, if I'm not mistaken, the only browser that handles multiple elements with the same name in a halfway decent manner is (What the heck?) Internet Explorer. Gecko just doesn't have the methods web devs use to get at elements.

That said, it is valid code to have multiple elements with the same name (the same way it is allowed to have three people named "John" in a room, but not three people with the same SSN - under normal circumstances), just not the same id.
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...