Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons

Reply
 
Thread Tools
Flash BBCode with size option Details »»
Flash BBCode with size option
Version: 1.02, by Dustin_a31 Dustin_a31 is offline
Developer Last Online: May 2014 Show Printable Version Email this Page

Category: New Posting Features - Version: 3.7.x Rating:
Released: 09-25-2008 Last Update: Never Installs: 22
Re-useable Code Translations  
No support by the author.

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: https://vborg.vbsupport.ru/showthrea...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:
<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:



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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 09-26-2008, 02:34 PM
apiasto's Avatar
apiasto apiasto is offline
 
Join Date: Oct 2006
Posts: 348
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how can we limit to certain groups?
Reply With Quote
  #13  
Old 09-26-2008, 02:58 PM
Dustin_a31 Dustin_a31 is offline
 
Join Date: Sep 2008
Location: Canada
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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
  #14  
Old 09-26-2008, 05:35 PM
baghdad4ever baghdad4ever is offline
 
Join Date: Apr 2007
Location: baghdad
Posts: 443
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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?
Reply With Quote
  #15  
Old 09-26-2008, 06:36 PM
siddal siddal is offline
 
Join Date: Oct 2007
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

look at post 8 :

[FLASH="width=600 height=400"]http:www.anysite.com/anyoldflash.swf[/FLASH]
Reply With Quote
  #16  
Old 09-26-2008, 07:25 PM
Dustin_a31 Dustin_a31 is offline
 
Join Date: Sep 2008
Location: Canada
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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
  #17  
Old 09-27-2008, 05:41 PM
baghdad4ever baghdad4ever is offline
 
Join Date: Apr 2007
Location: baghdad
Posts: 443
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you very mutch

is there any chance to modify it.

because most user prefer to input only numbers

ie: the popup ask what is the width and we put numbers and press ok

then another popup ask about hight

it is more easy

thanks
Reply With Quote
  #18  
Old 09-28-2008, 06:09 PM
puansanid puansanid is offline
 
Join Date: Sep 2008
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks
Reply With Quote
  #19  
Old 10-18-2008, 10:31 PM
REVHEAD's Avatar
REVHEAD REVHEAD is offline
 
Join Date: Nov 2007
Location: Australia
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed this mod, was trying to embed a purepwnage movie it would come up under preview but when I post it would not have the movie in there?

I had a mess around with it trying and trying then my forums went funny, and I had to log out and back in, now for some reason no bb code works, URL, PHP,Bold, Italic, Smilies nothing .

Any ideas?
Reply With Quote
  #20  
Old 01-12-2009, 07:31 PM
Turbe Turbe is offline
 
Join Date: Apr 2008
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What about forcing this to use a local directory on the server for the flash files (force it to use a specific directory for the flash sources)?

Obviously, a directory that only an Admin could place/upload/write the files.

Then, you wouldn't have to worry about locking down this custom bb code with another mod (that doesn't work on 3.7x)



So, instead of:
Code:
[flash= width = xxx height = xxx]http://www.somesite.com/flashfile.swf[/flash]
(The above link would never work because the local path would be added...)

it could be:
Code:
[flash= width = xxx height = xxx]flashfile.swf[/flash]
Just the file name...

I'm not sure how this could be configured in the Customer BB Code in the Admin CP....

Anyone?????
Reply With Quote
  #21  
Old 01-12-2009, 08:08 PM
Turbe Turbe is offline
 
Join Date: Apr 2008
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, I think I got it...

This works

Custom BB Code:
Code:
<object><embed src="http://www.yoursite.com/flash/{param}" {option} allowScriptAccess ="never" type="application/x-shockwave-flash"></embed></object>
(All flash files placed under HTMLroot/Flash)

In post:
Code:
[flash="width=816 height=205"]header_tv[1].swf[/flash]
Am I missing something here... wouldn't this be secure (only allowing this custom BB Code to use flash files at a specific location)?
Reply With Quote
Reply

Thread Tools

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

Forum Jump


All times are GMT. The time now is 05:06 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.11803 seconds
  • Memory Usage 2,307KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete