Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Flash BBCode with size option Details »
Flash BBCode with size option
Mod Version: 1.02, by Dustin_a31 (Member) Dustin_a31 is offline
Developer Last Online: May 2014 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.7.x Rating: (2 votes - 5.00 average) Installs: 22
Released: 26 Sep 2008 Last Update: Never Downloads: 6
Not Supported Re-usable Code Translations  

I've been looking for a way to get flash embedded for awhile now with the option to enter in the width and height. after getting nowhere (searched alot) and turning up nothing I started looking at the code and realized that the {param} area or option area can be inside the actual url to the file itself. by putting the paramater field into the embeds parameter field you can not only increase the width and hight but set it however you want. autoplay or quality, etc.

I realize that this may be a security risk so it would be a good idea to restrict it to a certain usergroup who can use it that you trust or disable it and not use it completely. This can be only done in 3.6.8 via this mod: http://www.vbulletin.org/forum/showt...122942&page=13 but as of right now it looks like 3.7.3 doesn't work with it. although some users do report being able to make it work in that thread with 3.7.x but I will not support this as it is not my code and its for an older version of vbulletin. I thought that since alot of people seem to be looking for this that it might be useful to some. Enjoy but use at your own risk.

If there was another mod similar I am sorry. please let me know and I will react accordingly.

Edit: changed the param and option tags around so that the url to the file would be the inbetween lines and the flash options (width, height, etc) would be the options. This makes more sense from a coding point of view to me and the users as well. as most vb code usually had the link to the actual media in the middle of the tags.

Name:
Flash embedding with size options

Description
Adds flash BBcode with ability to add resizing option

Options
Width and Height go into options area

Install time: 1 min
Install level: Easy

Installation
Step 1: Open bbcode manager and add this following bbcode:

Name: Flash

Tag: flash

Replacement:



Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Example: [flash= width = xxx height = xxx]http://www.somesite.com/flashfile.swf[/flash]

Description: Flash video to embed

Use Option: Yes

Button image:



Change Log

1.0.2 - added allowScriptAccess = "never" to code to limit the scripting from the flash objects a little. not perfect but a step in the right direction. flash still works. only scripts cannot be executed on updated flash players in most browsers.
1.0.1 - reversed option and parameter tag to give more bbcode style look

Copyright
None. Go nuts.

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	part1.JPG
Views:	700
Size:	37.2 KB
ID:	87390   Click image for larger version

Name:	part2.JPG
Views:	559
Size:	25.7 KB
ID:	87391  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
ZH - Flash BBcode Ziki vBulletin 3.5 Add-ons 25 21 May 2009 00:51
BB Code Enhancements Improved size bbcode NolF vBulletin 3.6 Add-ons 1 12 May 2008 18:23

Comments
  #2  
Old 26 Sep 2008, 04:44
beduino's Avatar
beduino beduino is offline
 
Join Date: Dec 2005
Real name: Joao
Thanks Dustin!
Where is the button?
all the best
beduino
Reply With Quote
  #3  
Old 26 Sep 2008, 05:38
Dustin_a31 Dustin_a31 is offline
 
Join Date: Sep 2008
Originally Posted by beduino View Post
Thanks Dustin!
Where is the button?
all the best
beduino
Added and you're welcome!
Reply With Quote
  #4  
Old 26 Sep 2008, 05:56
TonySkullz TonySkullz is offline
 
Join Date: Feb 2008
Location: Florida
Real name: Tony
I used the same method for embedding DivX videos. One problem with it though, that if a thread is started with that bbcode, the thread's preview text will be the width and height info between the tags.
Reply With Quote
  #5  
Old 26 Sep 2008, 06:03
Dustin_a31 Dustin_a31 is offline
 
Join Date: Sep 2008
This is true, I'm sure there must be some way around that but as right now in my forum it's not that big of a deal. But I will see if I can come up with a solution of sorts.

Also the option and parameters fields can be switched around in the replacement box. so if you like the options can be width = and height = and the param will be the link to the media, with the media link showing in the preview. as for showing something completely different i'm not sure about that.

you know what... I think I will change the params and option around it doesnt look right the way it is.

Last edited by Dustin_a31; 26 Sep 2008 at 06:41.
Reply With Quote
  #6  
Old 26 Sep 2008, 10:07
baghdad4ever baghdad4ever is offline
 
Join Date: May 2007
Real name: husam
thanks

reserved
Reply With Quote
  #7  
Old 26 Sep 2008, 10:31
baghdad4ever baghdad4ever is offline
 
Join Date: May 2007
Real name: husam
i try it now

how to choose width and hight??

because there is no such option appear to me
Reply With Quote
  #8  
Old 26 Sep 2008, 14:10
siddal siddal is offline
 
Join Date: Oct 2007
edit BBcodes:
Use {option} click on "yes"

When you then need to import a flash file to a thread youŽll see the javascript dialogue asking you to enter your options which youŽll enter like this:
width=600 height=400
click OK

and then enter the URL of your file like this:
[FLASH="width=600 height=400"]http:www.anysite.com/anyoldflash.swf[/FLASH]

Should do it, I reckon.
Reply With Quote
  #9  
Old 26 Sep 2008, 15:06
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Real name: Jarvis
you do realize the major security issues you've opened up for not only you and your forums, but also your members by allowing anyone to post flash videos right?
__________________
vBulletin Services and vBulletin Hosting
Reply With Quote
  #10  
Old 26 Sep 2008, 15:31
Dustin_a31 Dustin_a31 is offline
 
Join Date: Sep 2008
Originally Posted by FRDS View Post
you do realize the major security issues you've opened up for not only you and your forums, but also your members by allowing anyone to post flash videos right?
yes. in fact I have stated that issue specifically in the originol post. I didn't say it was for everyone. Just for the few who would be looking for this if they need it in some way. limit the tag to certain usergroups or don't use it at all. If you are willing to take the risk then so be it. If not don't bother.
Reply With Quote
  #11  
Old 26 Sep 2008, 16:34
apiasto's Avatar
apiasto apiasto is offline
 
Join Date: Oct 2006
how can we limit to certain groups?
Reply With Quote
  #12  
Old 26 Sep 2008, 16:58
Dustin_a31 Dustin_a31 is offline
 
Join Date: Sep 2008
Originally Posted by apiasto View Post
how can we limit to certain groups?
Sorry about that I originally assumed that this was supported in 3.7.3 turns out it's not, details in original post. As of right now. the choice is yours.
Reply With Quote
  #13  
Old 26 Sep 2008, 19:35
baghdad4ever baghdad4ever is offline
 
Join Date: May 2007
Real name: husam
Originally Posted by siddal View Post
edit BBcodes:
Use {option} click on "yes"

When you then need to import a flash file to a thread youŽll see the javascript dialogue asking you to enter your options which youŽll enter like this:
width=600 height=400
click OK

and then enter the URL of your file like this:
[FLASH="width=600 height=400"]http:www.anysite.com/anyoldflash.swf[/FLASH]

Should do it, I reckon.

hi

i do exactly what is found in installation instruction

but there is no asking for width and hight

and the url like this pic

in attach






can you help please?
Attached Images
File Type: jpg untitled.JPG (10.9 KB, 77 views)

Last edited by baghdad4ever; 26 Sep 2008 at 19:40.
Reply With Quote
  #14  
Old 26 Sep 2008, 20:36
siddal siddal is offline
 
Join Date: Oct 2007
look at post 8 :

[FLASH="width=600 height=400"]http:www.anysite.com/anyoldflash.swf[/FLASH]
Reply With Quote
  #15  
Old 26 Sep 2008, 21:25
Dustin_a31 Dustin_a31 is offline
 
Join Date: Sep 2008
Originally Posted by baghdad4ever View Post
hi

i do exactly what is found in installation instruction

but there is no asking for width and hight

and the url like this pic

in attach






can you help please?
Hi. you seem to be using the older code. use the new replacement and follow those instructions. then in order to have the flash file show correctly follow the screen shots. the first screen shot is what you should see after you click the flash Icon in the WYSIWYG. After that you need to put the path to the actual flash file inbetween the brackets, Like a URL tag. then it should work.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 19:07.

Layout Options | Width: Wide Color: