vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   flash header always load? (https://vborg.vbsupport.ru/showthread.php?t=113371)

ztempuser 04-28-2006 10:58 PM

? ?

theodonnells 04-28-2006 11:42 PM

Just put in a duplicate style one with flash header and one without, users can choose which one they want..

ztempuser 04-29-2006 03:58 PM

thats what im gonna do but i was wondering if i don't have to do another style if i can just make some option in the user cp where they can pick the header they want without changeing the whole style, cuz im always doing changes to the style and i have just 1

Ntfu2 04-29-2006 04:07 PM

Couldnt you make two movies. One that is animated for the main page. then the second one that isnt

add a if statement something like?

<if condition="THIS_SCRIPT == 'index'">
Place first flash code here <else /> Place second flash code here, you know the one that doesnt move as much </if>

ztempuser 05-01-2006 08:07 AM

thats what i will do instead lets just keep it simple.
it will come down to this
i have a portal page and forum, portal is the page u get when u got to the site so i will put that code ntfu2 gave in the portal page, (will have music and preloader) then anyother page will just get a basic flash with no preloader and no music.
thanks everyone for all your help:) i will tell u how it comes out cuz im not gonna do it now im sleepy

im sorry for the dumb question but does that go in the php script or the portal template? if its the php script how would i do that, cuz the vbadvanced portal index.php page is just some sort of template caller
Quote:

Originally Posted by Ntfu2
Couldnt you make two movies. One that is animated for the main page. then the second one that isnt

add a if statement something like?

<if condition="THIS_SCRIPT == 'index'">
Place first flash code here <else /> Place second flash code here, you know the one that doesnt move as much </if>


Princeton 05-01-2006 03:00 PM

A "loader" should only appear when the flash file is not cached in the user's system. Once it's cached the "loader" is skipped.

If your Flash file "loads" each time ... you have a badly written "loader".

You will need to edit your Flash file so that it doesn't "load" each time the file is called.

essentially, a flash file checks if (number of frames exist) to display or not display "loader"...

if (not loaded)
{
goto frame 0
}

OR

if (frame10 is loaded)
{
//skip the loader
goto frame 10
}

the above is not the code to use ... it's just giving you a direction to look into
all loaders are different but, the above is pretty much the basics

Kirk Y 09-14-2006 01:23 AM

Quote:

Originally Posted by blackwidow
thats what i will do instead lets just keep it simple.

it will come down to this

i have a portal page and forum, portal is the page u get when u got to the site so i will put that code ntfu2 gave in the portal page, (will have music and preloader) then anyother page will just get a basic flash with no preloader and no music.

thanks everyone for all your help i will tell u how it comes out cuz im not gonna do it now im sleepy



im sorry for the dumb question but does that go in the php script or the portal template? if its the php script how would i do that, cuz the vbadvanced portal index.php page is just some sort of template caller

No, you use it in a template. Assuming you've got the flash header in your header template, you'd use it there.

Code:

<if condition="THIS_SCRIPT == 'adv_index'">Flash Code for Portal</if>
<if condition="THIS_SCRIPT == 'index'">Flash Code for Index</if>
<if condition="THIS_SCRIPT != 'adv_index' OR THIS_SCRIPT != 'index'">Flash Code for anything besides Index or Portal</if>


blowndeadline 09-14-2006 10:35 PM

You can generate a cookie from flash that once it loads, it won't load again for that user.
Quote:

visitCheck = sharedObject.getLocal("cookieCrumb");
if (visitCheck.data.beenHere == true){
this.gotoAndPlay("begin"); //this should go to wherever your movie starts after the intro
} else {
visitCheck = sharedObject.getLocal("cookieCrumb");
visitCheck.data.beenHere = true;
visitCheck.flush();
}
Something to that effect should wor.


All times are GMT. The time now is 03:28 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.00981 seconds
  • Memory Usage 1,739KB
  • 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
  • (1)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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