This site is READ ONLY!! No support will be given! Everything in here is just for archiving purposes!

only in index

Support for your styles questions
Forum rules
** AND PLEASE PROVIDE A LINK TO YOUR SITE THAT YOU NEED HELP WITH! OR I MIGHT NOT HELP YOU **
Post Reply
Makis

only in index

Post by Makis »

Hi
I have a swf playing in overall header

Code: Select all

<a name="start_here"></a>
        	<div id="page-body">
			<center><swf code></center>
Is it possible to make that appear only on index page? and how?

Thanks in advance :D
User avatar
cisco007
Ciscox
Ciscox
Posts: 2843
Joined: Thu Sep 16 2010 3:25 pm
Country Flag: Mexico

Re: only in index

Post by cisco007 »

you are asking for support, not a discussion, thus you posted in the wrong place! i will move it!
Image
Makis

Re: only in index

Post by Makis »

O.k. excuse me :oops:
User avatar
cisco007
Ciscox
Ciscox
Posts: 2843
Joined: Thu Sep 16 2010 3:25 pm
Country Flag: Mexico

Re: only in index

Post by cisco007 »

have you tried adding the code to the index_body.html file instead of the overall_header.html?
Image
Makis

Re: only in index

Post by Makis »

No I dint where to put the code Before that?

Code: Select all

!-- IF U_MCP --><p>{CURRENT_TIME} 
djs596

Re: only in index

Post by djs596 »

What about keeping your code where it is (overall_header.html) and using this:

Code: Select all

<!-- IF SCRIPT_NAME == "index" -->

<a name="start_here"></a>
<div id="page-body">
<center><swf code></center>

<!-- ENDIF -->
Makis

Re: only in index

Post by Makis »

You are absolutely right, works like a charm!!

Thanks a lot Shaun
I appreciate it
djs596

Re: only in index

Post by djs596 »

Good! smile_star
User avatar
cisco007
Ciscox
Ciscox
Posts: 2843
Joined: Thu Sep 16 2010 3:25 pm
Country Flag: Mexico

Re: only in index

Post by cisco007 »

are you sure this:

Code: Select all

<a name="start_here"></a>
<div id="page-body">
is part of the swf code?
i think that is part of the entire overall_header file, you might as well just do this:

Code: Select all

<!-- IF SCRIPT_NAME == "index" -->
<div style="text-align:center"><swf code></div>
<!-- ENDIF -->
that way you don't get any errors because you are putting the previous part i stated to only show on the index, and it needs that for other parts of the forum!
and it also makes it at least xhtml strict <center> is not used anymore!
Image
Makis

Re: only in index

Post by Makis »

Thank you cisco007 I tried the code you wrote but there was an overlap problem at the bottom of all forum pages.

Image ...... Image

I used this one after I moved the if statement to lines down, works fine

Code: Select all

<a name="start_here"></a>
<div id="page-body">
<!-- IF SCRIPT_NAME == "index" -->
<center><swf code></center>
<!-- ENDIF -->  
Thank you both…
User avatar
cisco007
Ciscox
Ciscox
Posts: 2843
Joined: Thu Sep 16 2010 3:25 pm
Country Flag: Mexico

Re: only in index

Post by cisco007 »

you shouldn't get a problem with the code i gave you!
I mean the code you used should work fine, but if you want your forum to pass validation you should use the code i posted!
that is all but if you are satisfied with what you got! it's ok!
Image
Makis

Re: only in index

Post by Makis »

I know, but doesn’t work
maybe conflict with something else I don’t know.
Anyway I made swf file same width with my boards and remove <center>
think is valid now..
Post Reply