Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
morpheus_75
Involved
Involved



Joined: Oct 07, 2003
Posts: 302

PostPosted: Mon Jul 19, 2004 8:25 am Reply with quote

I made a flash logo with music for my site. I know how to add it in my phpnuke. BUT... the point is that my logo is a kind of mini intro and every time the pages get loaded, the logo starts again (with music).

I'd like the logo with music to be displayed ONLY in the HOME PAGE. All the other pages should display a different logo (not so full of elements and above all without music).

I think I shall do 2 different logos. But how should I modify the code in order to accomplish what I explained before?

Pls help!
 
View user's profile Send private message
GanjaUK
Life Cycles Becoming CPU Cycles



Joined: Feb 14, 2004
Posts: 633
Location: England

PostPosted: Mon Jul 19, 2004 9:21 am Reply with quote

How about adding a splash screen to your website (click here to enter site, click here to enter forum etc), then you could use the intro there instead?

_________________
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
morpheus_75







PostPosted: Mon Jul 19, 2004 9:36 am Reply with quote

GanjaUK wrote:
How about adding a splash screen to your website (click here to enter site, click here to enter forum etc), then you could use the intro there instead?


Hi Ganja... it's not an intro... sorry for the misunderstanding. It's a logo. Just similar to Raven's (it is matrix style and animated). The point is that i do not want the movie to be reloaded from the beginning everytime u visit a page (because the logo is in the header and it gets reoaded every time). So I made two logo/movies: the first one (with music) should work everytime the home page is loaded and everytime u pass on it with your mouse; the second should work with all other pages but the home page.

I hope you understand... Sad
 
GanjaUK







PostPosted: Mon Jul 19, 2004 9:52 am Reply with quote

sixonetonoffun is going to take a look at it for you when he gets a minute. Now isn't that good of him. Cool
 
morpheus_75







PostPosted: Mon Jul 19, 2004 10:31 am Reply with quote

GanjaUK wrote:
sixonetonoffun is going to take a look at it for you when he gets a minute. Now isn't that good of him. Cool


Ok Ganja, thanks a lot! Hope six may have some time...
 
sixonetonoffun
Spouse Contemplates Divorce



Joined: Jan 02, 2003
Posts: 2496

PostPosted: Mon Jul 19, 2004 10:52 am Reply with quote

Ok here is a quick one.
In your theme function themeheader add $home to the globals.
Then add this code after editing the filename to you filenames right below the Globals line.
Then in you header code change the filename of the logo.gif/logo.swf or what ever to $head_img and it should play nice from there on.
Code:


if(isset($home)) {
   $head_img = "logo.gif";
   }else{
   $head_img = "logo2.gif";
}

_________________
[b][size=5]openSUSE 11.4-x86 | Linux 2.6.37.1-1.2desktop i686 | KDE: 4.6.41>=4.7 | XFCE 4.8 | AMD Athlon(tm) XP 3000+ | MSI K7N2 Delta-L | 3GB Black Diamond DDR
| GeForce 6200@433Mhz 512MB | Xorg 1.9.3 | NVIDIA 270.30[/size:2b8 
View user's profile Send private message
morpheus_75







PostPosted: Mon Jul 19, 2004 11:14 am Reply with quote

Wow thanks six!! Smile Ehm...

sixonetonoffun wrote:
Then add this code after editing the filename to you filenames right below the Globals line.


Where should I exactly add the code?

Quote:
Then in you header code change the filename of the logo.gif/logo.swf or what ever to $head_img and it should play nice from there on.


You go too quick for me, Six!! Crying or Very sad header.html? header.php? could u explain better the whole suggestion? tnx Wink
 
morpheus_75







PostPosted: Mon Jul 19, 2004 11:22 am Reply with quote

OK, how am I foolish!! IT WORKS!! TNX SIX! Razz
 
sixonetonoffun







PostPosted: Mon Jul 19, 2004 11:55 am Reply with quote

Glad ya worked it out!
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©