MyBB Community Forums

Full Version: Falling Image Effect 1.0 CAn't get to work help please
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Falling Image Effect 1.0 by Laie Techie


I can't seem to get this to work at all wanted falling snow over xmas.


Quote:/***************************************************
* Falling Image Effect 1.0 by Laie Techie
* based Falling Snow by Alton d.o.o.
* Visit Dynamic Drive DHTML code library ( http://www.dynamicdrive.com ) for
* original source code
* Feel free to edit and distribute these files.
****************************************************/

First off, this plugin allows you to easily add floating images (such as snow)
to your MyBB forum without having to change your templates. In this version,
you can have multiple animations (santa, snow, leaves, etc) all on at the same
time, but they only gently float downwards (with a slight random side-to-side
motion). In a future version I'll add the ability to also indicate the speed
and direction.

Falling Image Effect adds a new section in the ACP for you to control your
animations. IMO, the fields are simple and self-explanatory:
Name: is a short description and does not affect the script
Prefix: this string is prepended on all the DIVs and JS variables
Image URL: since this is a URL, you can specify images on other servers
* Note: does not interpret MyBB variables
Number: how many of this image should be animated? 0 means to disable without
deleting
Height: the height of the canvas in pixels. Also accepts pageheight and
windowheight
Time to Live: number of seconds to display this animation. 0 means forever

Requirements:

MyBB 1.2.x

Installation:

Copy the contents of the admin folder to your MyBB admin folder
* contains the ACP for this script
Copy the contents of inc to your MyBB inc folder
* contains the actual plugin and English language files
Copy the contents of the jscripts folder to your MyBB jscripts folder
* uses an external JS file so you can use this effect on the rest of your
site
Copy the contents of the images folder to your MyBB images folder
* contains some fun files to animate

Activate this plugin from within the MyBB admin control panel. Reload your entire
ACP then add some animations.


Uploaded all the files and have a new field in my ACP panel so i've set it as this

Name = Snowing
Prefix = 10 ( don't understand this? )
Image URL /htdocs/images/snow.gif ( htdocs) is the root where the board is
Number = 10
Height =10
Time to Live = 5


Please can someone help me?

Thanks.
Prefix is used to generate variable names in JavaScript relating to this particular image effect. I include this as a setting so that you can have multiple effects active at the same time (I have snow flakes all winter long, but add Santa around Christmas). Since it's used to generate JavaScript variable names, prefix must begin with either a letter or underscore. As an example, the prefix I use for snow flakes is snow_.
laie_techie Wrote:Prefix is used to generate variable names in JavaScript relating to this particular image effect. I include this as a setting so that you can have multiple effects active at the same time (I have snow flakes all winter long, but add Santa around Christmas). Since it's used to generate JavaScript variable names, prefix must begin with either a letter or underscore. As an example, the prefix I use for snow flakes is snow_.


Oki have my prefix now as snow_ but i still don't have any falling snow on my web site using these settings?
Quote:Name = Snowing
Prefix = snow_
Image URL /htdocs/images/snow.gif ( htdocs) is the root where the board is
Number = 10
Height =10

What do i need to put where to get it to work?

Thanks.
Time to Live = 5
matrixsc Wrote:Oki have my prefix now as snow_ but i still don't have any falling snow on my web site using these settings?
Quote:Name = Snowing
Prefix = snow_
Image URL /htdocs/images/snow.gif ( htdocs) is the root where the board is
Number = 10
Height =10

What do i need to put where to get it to work?

Thanks.
Time to Live = 5

I think you have the Image URL messed up. As suggested by the name, it's expecting a URL. Very few sites have a directory called htdocs under their document root. Try using /images/snow.gif
laie_techie Wrote:
matrixsc Wrote:Oki have my prefix now as snow_ but i still don't have any falling snow on my web site using these settings?
Quote:Name = Snowing
Prefix = snow_
Image URL /htdocs/images/snow.gif ( htdocs) is the root where the board is
Number = 10
Height =10

What do i need to put where to get it to work?

Thanks.
Time to Live = 5

I think you have the Image URL messed up. As suggested by the name, it's expecting a URL. Very few sites have a directory called htdocs under their document root. Try using /images/snow.gif


Done that still not working?

Look at my picture and see my settings please.
why don't you just put some simple javascript in your heading?

it would make things much easier
MadamZuZu Wrote:why don't you just put some simple javascript in your heading?

it would make things much easier


How do i do that?

I'm new to all this and trying to learn .

Thanks.
Anyone?
if you go to your Admin CP, and edit a template.

i usually put all my javascript in either the heading or the footing.

google for the snowflakes javascript code and find the one that you like
so, open the heading template and paste the code in.

done!
MadamZuZu Wrote:if you go to your Admin CP, and edit a template.

i usually put all my javascript in either the heading or the footing.

google for the snowflakes javascript code and find the one that you like
so, open the heading template and paste the code in.

done!


Thank you so much did that and it worked a treat.

Merry xmas.