Welcome to Egypt Forums Mark forums read | Egypt Main Page
Egypt Forums
Arabic Movies



Mods for 3.7.x vBulletin Mods for 3.7, vBulletin hacks, vBulletin modification, vBulletin 3.7

Mods for 3.7.x Thread, Flash BBCode with size option in Mods; Flash BBCode with size option I've been looking for a way to get flash embedded for awhile now with the ...

Short Link: http://forum.egypt.com/enforum/showthread.php?t=3816


Reply
LinkBack Thread Tools Display Modes
Flash BBCode with size option
 
 
The God Father
Developer's Avatar

Reply With Quote
 
Join Date: Jul 2008
Location: NDC
Posts: 5,425
27-09-2008, 02:51 AM
 
Flash BBCode with size option

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:


Code:
PHP Code:
<object><embed src="{param}" {option} allowScriptAccess ="never" type="application/x-shockwave-flash"></embed></object>
Example: [flash= width = xxx height = xxx]http://www.somesite.com/flashfile.swf[/flash]

Description: Flash video to embed

Use Option: Yes

Button image: Egypt.Com EnForum


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 exectuted 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.
__________________
I Love Walking In The Rain Cuz Nobody Know I'm Crying !!
 
 
 
Reply

Mods for 3.7.x Thread, Flash BBCode with size option in Mods; Flash BBCode with size option I've been looking for a way to get flash embedded for awhile now with the ...

Short Link: http://forum.egypt.com/enforum/showthread.php?t=3816


Bookmarks

Tags
bbcode, flash, option, size


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Download Box BBCode Developer Mods for 3.6.x 1 24-01-2009 06:51 AM
Drawing a blank not an option for Blanc Developer Soccer 1 21-12-2008 04:39 PM
Full size avatar in user's profile Developer Articles 0 06-11-2008 07:45 PM
Tree Size Free Developer Software and Programs 0 27-10-2008 07:34 PM
Full size avatar in user's profile Developer Articles 0 05-10-2008 06:52 PM