PDA

View Full Version : Swf File Widget


Xencored
05-20-2010, 10:00 PM
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 (http://www.myanimeisland.com/content.php)

Here is a image of the Widget

https://vborg.vbsupport.ru/attachment.php?attachmentid=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

<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/attachment.php?attachmentid=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/smilies/monkey/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
thanks
thanks

No problem :D

abdobasha2004
05-21-2010, 10:52 PM
nice idea
but no mod !

Xencored
05-22-2010, 05:31 AM
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
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 :)

would this work in vBadvanced (modules) ?
Never used Vbad mate so no idea sorry :(

baghdad4ever
06-10-2010, 10:46 AM
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
thanks

im waiting you

Not tested but this might work

<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
Not tested but this might work

<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
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 1279139477 at 1279139477 ---------------

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 1312477958 at 1312477958 ---------------

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?