vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   2 options in the code replacement for using flash signatures (https://vborg.vbsupport.ru/showthread.php?t=11347)

Christian 03-14-2001 11:43 AM

OK, on UBB we had the option the users could use flash sigs by typing [flash="width","heigth"]url of the movie[/flash].
I want to do that also now in vBulletin.
The problem is that the code replacement only reads 1 option!
For example:

vB Code tag: flash

vB Code replacement: <EMBED src="\7" quality=high WIDTH=\5 HEIGHT=\6 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>

vB Code example: [FLASH=200,120]http://www.geocities.com/carailbrubat/Logos/CarailBrubat.swf[/FLASH]

When i do this vb reads as param \6 already the ] so that the height of the movie is 0!
I get the following result then:

[FLASH=200,120]http://www.geocities.com/carailbrubat/Logos/CarailBrubat.swf[/FLASH] is replaced with (<EMBED src="http://www.geocities.com/carailbrubat/Logos/CarailBrubat.swf" quality=high WIDTH=200,120 HEIGHT=] TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>)

How can I use both params in the first bracket?

03-14-2001 12:00 PM

You can't use more than one parameter just for know..

Btw: You should use the {option} and {param} codes instead of \7 and \5

03-14-2001 12:03 PM

i used {param} and {option} and it was replaced with \7 for param and \5 for option!

OK, when I can't use more than one parameter, how is it possible to use the movies in the correct size then?
Is there a hack which makes it possible?
I mean I would also be satisfied if the size is read out automatically, without entering the width and height! ;)

03-14-2001 12:06 PM

Quote:

i used {param} and {option} and it was replaced with \7 for param and \5 for option!
My fault, this will be fixed in beta 4

It could be hacked in; I'll take alook at it later

03-14-2001 12:11 PM

Thanks so far!
I'm excited for your reply! ;)

03-28-2001 09:27 PM

One question, didn't you want to tell me how to hack it? ;) :D

03-28-2001 09:29 PM

I've allready made the hack a while ago...

Do a search for 'flashregex for the ones that need it' on this forum

03-28-2001 09:39 PM

Cool, OK!
But one thing would be even better!
To use more than one option for code replacement!
Will that be possible in 2.0 beta4?

03-28-2001 09:46 PM

don't know..I'm not the developer...

I wrote the bbcode-utility so I know this is not very easy to implement..I may look into it later

03-31-2001 06:26 PM

OK, i'll do the search for your old topic and try it with the hack!
Thanks again!


All times are GMT. The time now is 01:46 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01101 seconds
  • Memory Usage 1,727KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete