vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Major Additions - vBFlash Header (Lite) - Alternative to default vBulletin logo/header (https://vborg.vbsupport.ru/showthread.php?t=141358)

syrus.xl 03-06-2007 10:00 PM

vBFlash Header (Lite) - Alternative to default vBulletin logo/header
 
vBFlash Header (Lite)


Design: Syrus XL Media ? Professional Flash Development
Support Only: http://www.digitalport.co.uk
Site Demo: [Removed by Staff]
Header size: 600x150 pixels
Revision: v1.0
vBulletin version: ALL VERSIONS - Unless vBulletin changes a lot!;)
Templates Edits: 2
Extra Files: 8
Full instruction manuals supplied in Text and Acrobat formats within package.

LOG:
Updated: 7th March 2007 - Updated to 1.1 - small bug in javascript code, preventing flash movie loading. Package updated with bug fixed.
headinclude template code should be this:
Code:

<script type="text/javascript" src="clientscript/flashobject.js"></script>
About
Bring your forum header to life with this ?vBFlash Header? modification. The vbFlash Header is an alternative header/logo for the default vBulletin style. It uses an easy to configure XML file to setup the header the way you want it to display the images. The package includes 5 example images, which you will need to change for your own website/forum. vBFlash Header supports multiple images, image pause and 9 transition effects. This ?Lite? version is based on a default vBulletin forum, it can be adapted to suit other custom styles quite easily. It is designed to work with fixed and fluid styles, from 800 pixels wide upwards. A dark version will be added shortly.

The flash loader only adds 7k to your page load, so it's light-weight for any forum.

Creating Your Images
Your images should be 600 pixels wide and 150 pixels high and saved in a non-progressive jpeg format. The quality of your images may vary, depending on how you want the overall look. We have created example images in Photoshop and entered the ?Website Name? text on the top layer, this gives the impression that the text is static in most of the effects, even though it is changed upon each image load.
Note: If you change an image and overwrite an example image, make sure you empty your browser cache, should the image fail to change. Browsers will cache flash animations, so this is important.

Configuring the XML file
The enclosed ?images.xml? file controls how the flash file shows the images, hence you can change a few aspects of your header. Make sure all your images are correctly labelled and are reflected within the XML file. The ?Pause? function is the delay which an image stays on view ? the default is set to 6 seconds (value=6000). Transition value can be any number between 1 and 9, if you set this value to ?0? it will randomize the effects. You may add more images by adding more image tag lines, and adding the images to the ?xheader? directory.

Installation
Upload the contents of the ?UPLOAD? folder to your forum root. If you receive a warning about overwriting the ?flashobject.js? file, you can overwrite or skip - this normally happens if you have installed previous modifications released by us (we use the flashobject.js file to correctly embed flash objects into pages - this maximizes browser compatibility).

File map:
  • forum/clientscript/flashobject.js
  • forum/images.xml
  • forum/vbflashheader.swf
  • forum/xheader
  • forum/xheader/img1.jpg
  • forum/xheader/img2.jpg
  • forum/xheader/img3.jpg
  • forum/xheader/img4.jpg
  • forum/xheader/img5.jpg

vBulletin Template Edits

You will know need to login to your AdminCP panel and follow these instructions on which templates require editing. Only 2 are required for this modification.

Style & Templates -> Style Manager -> Default Style -> Edit Templates

headinclude template


Find:
Code:

<script type="text/javascript" src="clientscript/vbulletin_global.js?v=$vboptions[simpleversion]"></script>

Before add:

Code:

<script type="text/javascript" src="clientscript/flashobject.js"></script>

Header template

Find:
Code:

<tr>
        <td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
        <td align="$stylevar[right]">
                &nbsp;
        </td>
</tr>


And replace with this code:


Code:

<!-- vbFlash Header Start -->
<div id="vbheader">
Warning!!! To view enable JavaScript and Flash!
</div>
      <script type="text/javascript">
  var fo = new FlashObject("vbflashheader.swf", "vbheader", "800", "150", "8,0,0,0", "#e1e1e2");
  fo.addParam("quality", "high");
  fo.addParam("wmode", "transparent");
  fo.write("vbheader");
</script>
<!-- vbFlash Header End -->


End of template edits.

Enjoy your new flash-based header!

Note: Adding this modification to a Portal system outside the forum root.
If you are using a portal with this modification outside the forum root you will need to make one small change to the code in the header template. The line with the "vbflashheader.swf" in will need to have an absolute path. Example: "http://www.yourdomain.com/forums/vbflashheader.swf".

Additional Notes:
This modification is fully supported at http://www.vbulletin.org ? should you require advice or help. Please note, unless you click INSTALL, your question maybe ignored.

If you require a branding free version, simply donate $30 and state the domain where it will be used upon, and an email address where we can send you the package.

syrus.xl 03-07-2007 01:32 AM

<font size="4">FAQ Section</font>

I see this error instead of the flash movie 'Warning!!! To view enable JavaScript and Flash!', what does it mean?
This error may show if you have made a mistake on uploading the flashobject.js file or have not added the template edit to call the flashobject.js. You may not have the latest version of the flash player installed in your browser. Since this modifcation was designed using Flash 8.0 - your player must be version 8.0 or higher. Check these first before posting a question about this error. It is coded to help people debug the modifcation.

The flash movie loads without any images
Check the paths to your image directory, also check you have not mistyped the image directory name in the XML file. The default directory is 'xheader', but you can change this to anything you wish, as long as its reflected in the XML file.

Images still do not load after doing all checks in the above FAQ
Make sure you have not saved your images as progressive jpeg's - this is a quite common mistake.

DJ XtAzY 03-07-2007 02:46 AM

your site not workin? =p

projectego 03-07-2007 07:19 AM

/me clicks install

nitro 03-07-2007 08:22 AM

Not sure if the flash header is on that styleid with the Beta Demo: url ? Is it the same header as in your portal ? Which is looking very nice. :)

syrus.xl 03-07-2007 10:01 AM

Quote:

Originally Posted by nitro (Post 1197798)
Not sure if the flash header is on that styleid with the Beta Demo: url ? Is it the same header as in your portal ? Which is looking very nice. :)

Strange, it should be working - I just checked it. It is very similar to the one used on the main page of the site's portal, however a blue alpha was applied to that one.

:confused:

EDIT: Fixed the Demo - forgot to allow unregistered to view other styles... oops!:o

cutoi 03-07-2007 12:30 PM

Installed, I can see demo. Very nice

zincpony 03-07-2007 04:14 PM

i installed it but it keeps telling me to enable java script and flash

Hamma 03-07-2007 04:31 PM

Pretty nice! ;)

I will have to wait for a black version to give it a try.

zincpony 03-07-2007 05:42 PM

<a href="http://boostedmustangs.com/vbtester/index.php" target="_blank">http://boostedmustangs.com/vbtester/index.php</a>


All times are GMT. The time now is 11:34 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.01270 seconds
  • Memory Usage 1,753KB
  • 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
  • (5)bbcode_code_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