vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Forum Display Enhancements - New Year's Eve firework in the header (https://vborg.vbsupport.ru/showthread.php?t=199951)

Oyabun 12-27-2008 10:00 PM

New Year's Eve firework in the header
 
https://vborg.vbsupport.ru/attachmen...8&d=1230437514

What does this mod do?
It adds a flash file with fireworks. The flash is transparent so you can put it over your header.

(Easy) installation:
1. Upload all files into your root.
2. Paste this code at the top of your header template of your wished style:
(Make sure you change the path for "http://www.yourdomain.com/flash_fireworks.js")
PHP Code:

<!--start fireworks by naruto-forum.de :) -->
<
script type="text/javascript">
var 
flash="feuerwerk.swf";        //just change the path in flash_fireworks.js
var name="Feuerwerk";
var 
von_links=300;                 // set distance of the flash file from left
var von_oben=5;                  // set distance of the flash file from the top
var breite=400;                    //set width of the flash file
var hoehe=300;                  //set height of the flash file
var qualitaet="high";
var 
param1="";
var 
param2="";
</
script>
<
script type="text/javascript" src="http://www.yourdomain.com/flash_fireworks.js"></script>    
<!--/
end fireworks by naruto-forum.de :) --> 

3. Change also both paths in flash_fireworks.js.
In the js-file search for yourdomain.com and replace it with your domain.


You're done. Hope this works for you guys :)

Live demo at http://www.naruto-forum.de


Demo = attachments

packetattack 12-28-2008 02:31 AM

This doesn't work. I followed the instructions and nothing shows up on my forums. I tried it in both IE and Firefox and made sure Javascript was enabled. I do have a pretty wide banner so maybe the fireworks were HIDDEN behind them or should I see it regardless?

Your instructions in your code also say to only change the path for the flash_fireworks.js script which I did but then under your codebox you have written:

3. Change the (2) paths in flash_fireworks (yourdomain.com)

So where is the other path? I also tried changing the path for feuerwerk.swf but that didn't work either. This looks like a great mod if I could get it to work.

Thanks,

Oyabun 12-28-2008 02:35 AM

The oder path's are in the .js file

One path is in the headercode
2 paths are in flash_fireworks.js

packetattack 12-28-2008 03:03 AM

Sorry, I've tried all combinations to get this working to no avail.

I edited both paths in flash_fireworks.js to reflect my forums URL. Am I supposed to include anything else in there other than just my forums URL?

I also presume this goes at the VERY top of the HEADER template right, before the text that says:

<!-- logo -->

<a name="top"></a>



Sorry, it doesn't work for me.

Oyabun did you get it working?

Oyabun 12-28-2008 03:06 AM

Of course I did. I know what's maybe wrong!

Try step 2 again.
I colored the url by mistake and it won't be parsed in the [php] bb code.
Guess you copied the color bb code, too^^! I have to appologize that mistake



Before (wrong):
In headertemplate search:
PHP Code:

<script type="text/javascript" src="[COLOR="Red"]http://www.yourdomain.com/flash_fireworks.js[/COLOR]"></script


After (i hope right now :D):
replace:
PHP Code:

<script type="text/javascript" src="http://www.yourdomain.com/flash_fireworks.js"></script>    

Hope it finally works for you now :) 


packetattack 12-28-2008 03:53 AM

That did it! Thanks so much!

princeedward 12-28-2008 10:02 AM

nice thanks...is this not possible to work on forumhome only?

steve1966 12-28-2008 11:12 AM

thanks

Oyabun 12-28-2008 03:23 PM

Quote:

Originally Posted by princeedward (Post 1695447)
nice thanks...is this not possible to work on forumhome only?

Sure. Just put the code from step 2 at the top of your FORUMHOME template instead of the header template :)
That should do it =)

basilrath 12-28-2008 04:18 PM

any demo


All times are GMT. The time now is 11:19 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.01136 seconds
  • Memory Usage 1,747KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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