vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=242)
-   -   Swf File Widget (https://vborg.vbsupport.ru/showthread.php?t=243043)

Xencored 05-20-2010 10:00 PM

Swf File Widget
 
1 Attachment(s)
Hello https://vborg.vbsupport.ru/

This is a simple way to get a .Swf file as a widget (more of a how-to than a mod)
Demo if needed

Here is a image of the Widget

https://vborg.vbsupport.ru/attachmen...hmentid=117409

First of Upload your .swf file to your forum Root and remmber the name of it
Example "miku.swf"

Goto your adminCP
vBulletin CMS>>Widgets
Than at the bottom we want "Create Widget" click it

Widget Type = Static HTML
Title = Anything you like (for me i entered "Miku Clock")
Description = Again anything you like
And Save it

After you have saved the widget find it on the list and Hit Configure on the very right of the widget

Add this code in the "Enter Static HTML" box

Code:

                        <object width="145" height="170">
<param name="" value="miku.swf">
<embed src="miku.swf" width="145" height="170">
</embed>
</object>

Red = Size
Green = File name (the one you uploaded at the start to Root)
remmber to change these

Hit save

Now go
vBulletin CMS>>Layout Manager
Edit your Grid where you want it to show

https://vborg.vbsupport.ru/attachmen...hmentid=117410

Now in the Widgets box find the Name of your new Widget hit the ">" button next to it
Now just move it to where you want it to show

Save and thats it all done http://www.myanimeisland.com/images/.../Monkey190.gif

sulasno 05-21-2010 03:12 PM

thanks

baghdad4ever 05-21-2010 05:15 PM

thanks

Xencored 05-21-2010 05:15 PM

Quote:

Originally Posted by baghdad4ever (Post 2041477)
thanks

Quote:

Originally Posted by sulasno (Post 2041396)
thanks

No problem :D

abdobasha2004 05-21-2010 10:52 PM

nice idea
but no mod !

Xencored 05-22-2010 05:31 AM

Quote:

Originally Posted by abdobasha2004 (Post 2041654)
nice idea
but no mod !

"(more of a how-to than a mod)"

weetabx 05-22-2010 09:14 AM

sweet thx use when i finaly get round to setting up the cms on my forum

ComoEstaEso-com 05-22-2010 12:14 PM

Wow... this looks good. :)

baghdad4ever 05-22-2010 02:16 PM

is there any chance to put 10 swf files in certain folder and the widget show them randomly?

Jaske 05-22-2010 04:25 PM

would this work in vBadvanced (modules) ?

Xencored 05-23-2010 02:35 PM

Quote:

Originally Posted by baghdad4ever (Post 2041877)
is there any chance to put 10 swf files in certain folder and the widget show them randomly?

Hmm i guess so ill look into it for you :)

Quote:

Originally Posted by Jaske (Post 2041919)
would this work in vBadvanced (modules) ?

Never used Vbad mate so no idea sorry :(

baghdad4ever 06-10-2010 10:46 AM

Quote:

Originally Posted by Animemike (Post 2042258)
Hmm i guess so ill look into it for you :)


Never used Vbad mate so no idea sorry :(

thanks

im waiting you

Xencored 06-17-2010 11:07 PM

Quote:

Originally Posted by baghdad4ever (Post 2051488)
thanks

im waiting you

Not tested but this might work

Code:

<script type="text/javascript">
<!--

var swf1="1.swf"
var swf2="2.swf"
var swf3="3.swf"
var swf4="4.swf"
var swf5="5.swf"
var swf6="6.swf"
var swf7="7.swf"
var swf8="8.swf"
var swf9="9.swf"
var swf10="10.swf"
var x=Math.round(Math.random()*9)
if (x==0) x=swf1
else if (x==1) x=swf2
else if (x==2) x=swf3
else if (x==3) x=swf4
else if (x==4) x=swf5
else if (x==5) x=swf6
else if (x==6) x=swf7
else if (x==7) x=swf8
else if (x==8) x=swf9
else x=swf10

document.write('<embed src='+'"'+x+'"'+' width="145px"; height="170" >')

//-->
</script>


baghdad4ever 06-19-2010 12:38 PM

Quote:

Originally Posted by Animemike (Post 2055208)
Not tested but this might work

Code:

<script type="text/javascript">
<!--

var swf1="1.swf"
var swf2="2.swf"
var swf3="3.swf"
var swf4="4.swf"
var swf5="5.swf"
var swf6="6.swf"
var swf7="7.swf"
var swf8="8.swf"
var swf9="9.swf"
var swf10="10.swf"
var x=Math.round(Math.random()*9)
if (x==0) x=swf1
else if (x==1) x=swf2
else if (x==2) x=swf3
else if (x==3) x=swf4
else if (x==4) x=swf5
else if (x==5) x=swf6
else if (x==6) x=swf7
else if (x==7) x=swf8
else if (x==8) x=swf9
else x=swf10

document.write('<embed src='+'"'+x+'"'+' width="145px"; height="170" >')

//-->
</script>



thanks

can you explain plz how to use this code?

Xencored 06-19-2010 06:32 PM

Quote:

Originally Posted by baghdad4ever (Post 2055823)
thanks

can you explain plz how to use this code?

Same as above
"Add this code in the "Enter Static HTML" box"

Add the url for your SWFs over 1.swf 2 3 4 5 etc...

vikris 07-14-2010 06:20 PM

Works perfectly with jpg files also! :)

My question is how to put in the code link, when someone clicks on the image to be redirected somewhere?

Thanks!

--------------- Added [DATE]1279139477[/DATE] at [TIME]1279139477[/TIME] ---------------

Sorry for double post. In IE 8 gives blank. All other browsers show correctly.

Xencored 07-23-2010 05:40 PM

The swf works fine on IE if your using images than thats something ive not tryed

Mondi 07-16-2011 02:16 AM

Very helpful - thanks heaps.

You just saved me hours.....

montda 08-04-2011 01:42 AM

OMG I was thinking to add this on my site, suddenly i found this post ! XD love u Vodkaholic <3

--------------- Added [DATE]1312477958[/DATE] at [TIME]1312477958[/TIME] ---------------

It's working fine with me but there some kind of problem in width and height with different screens :/ isn't there code in html to make it auto size?


All times are GMT. The time now is 05:01 PM.

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.01295 seconds
  • Memory Usage 1,759KB
  • 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
  • (3)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (19)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete