![]() |
Floating Valentine Hearts
This is the first time I've posted anything like this so go easy on me :nervous:
I added some floating hearts to my forum for Valentine's Day and thought perhaps other members might like it so here it is: Go to Admincp -> Styles & Templates -> Edit Templates -> Header and put the following code at the very top before anything else. Code:
<!-- Valentine Hearts by Funinthesun --> Done! I hope you like it! Please click install if you do :) |
Also, if you want your members to be able to turn the hearts on and off then you can do the following:
Go to AdminCP => Profile Fields => Add New Profile field => Single Select Menu Title: View Floating Hearts? Description: Choose yes to have little Valentine hearts floating around. Options: Yes No Set Default: Yes, but No First Blank Option Editable By User: Yes Display Page: Options: Other Options Write down your field number eg. field6 Then wrap the code in these tags. Put this tag above the code and change the X to your field number. Code:
<if condition="$bbuserinfo[fieldX] != 'No'"> Code:
</if> Code:
<if condition="$bbuserinfo[fieldX] != 'No'"> |
Cool mod and.........:runs to instal:
|
It would be nice to see a preview. Thanks.
|
wow valentine knocking at door.....
NO alternate it should run for valentine |
not seein em on my ladies style...
:( |
can u post some screenshot or live preview
|
Quote:
|
Does this work on NETSCAPE? FF?
|
Quote:
|
Quote:
|
Quote:
|
Take a look around here or on one of those dhtml / javascript sites for the snowflake effect and just change out the image. That should work on both or at least help out in making this script compatable on each. :)
|
any demo or screenie?
|
Quote:
|
Quote:
|
I dont see the hearts either on my forum
|
Ah, I probably should of told you that they come up from the bottom of the page ;)
|
hmm that snow effects one works on FF
maybe just edit it to scroll the images up instead of down you think? |
Yeah, you can edit the hearts.js to increase/decrease the amount of hearts, speed etc. Just play around with it until it works best for you :)
|
Nice :nervous:
Doesn't show up on Firefox, work with Opera & IE |
Pretty nifty mod, but you should have it loop so the hearts dont stop after one time of raising to the top.
|
And also your bandwith is gonna go insanley high when people use these.
As seen in the JavaScript code... Code:
balloon = new Array(); |
Worked perfect clicked install.
|
Oh I like this. Thanks!
|
NO hearts man, no hearts on Firefox. Its not a romantic browser then I guess ;)
Ta, Han |
Quote:
Bob |
fix it for FF!! com on!! :)
|
No workie for Firefox ;)
|
Some members complain that their CPU usage goes up to 100% because of this script, but that doesn't happen to me, at least. Any idea ???
|
Quote:
Just a suggestion mate ;). Good work again. |
Quote:
|
Quote:
Bob |
Quote:
|
If I change var speed = 15; to any other figure the speed does not change, they just slowly climb up the page in a group. When I log out they continually fly up the page. Any ideas why?
Bob |
Quote:
|
it should be like this so as not to force us to create another folder out of our forum
PHP Code:
installed and working fine |
Quote:
|
Live demo can be seen Here
|
Nay idea if I can change the colour of hearts? Coz it doesnt show up that good with the style and colours I am using.v
Nice hack anyways... |
All times are GMT. The time now is 06:12 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|