Home TheRandomizer Forum Index Log in Register FAQ Search
TheRandomizer Forum Index » General Support » Changing The Header from .jpg to .swf
Post new topic  Reply to topic View previous topic :: View next topic 
Changing The Header from .jpg to .swf
PostPosted: Sat Dec 13, 2003 12:17 am Reply with quote
whatworks
Newbie
Joined: 12 Dec 2003
Posts: 2
Location: Baltimore




I want to change the Header_(number).jpg to .swf
I know the header.php contains the images source.
What changes to I make to accept a Flash file in the header?
Laughing
Hi Ya
PostPosted: Sat Dec 13, 2003 1:06 am Reply with quote
aboutweb
Visitor
Joined: 21 Oct 2003
Posts: 27
Location: Seattle Wa




Upload .swf in the rimage folder
In header.php change to reflect the flash ext.

That should do it

Jim
PostPosted: Sun Dec 14, 2003 11:45 am Reply with quote
shadow
Addict
Joined: 16 Oct 2003
Posts: 171
Location: Virgin Islands




Actually you will probably have to work with an object command to make it work. In the header.php file you will find these lines.

<td id=heading><? $pic = array();
$pic[0]="$CONFIG->siteurl/rimages/header_1.jpg";
$pic[1]="$CONFIG->siteurl/rimages/header_5.jpg";
$pic[2]="$CONFIG->siteurl/rimages/header_6.jpg";
$pic[3]="$CONFIG->siteurl/rimages/header_7.jpg";
$pic[4]="$CONFIG->siteurl/rimages/header_2.jpg";
$pic[5]="$CONFIG->siteurl/rimages/header_8.jpg";
$nr=rand(0,5);
echo"<img src=$pic[$nr] border=0>";?>

These are the lines that pic the random picture for the header. To put in a flash header you will end up with some thing like the below instead of the lines above.
<td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="690" height="240">
<param name="movie" value="header.swf">
<param name="quality" value="high">
<embed src="intro01.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="690" height="240"></embed></object>

As you can see this includes the link to get the flash player for those few people that don't have it yet. Also if you want this on your join page to make sure you edit the header_locked.php file too.

Shadow
PostPosted: Sat Jan 10, 2004 10:05 pm Reply with quote
Guest




Can anyone expand on this a little? I copied and pasted that code to my header file and added the filename of my .swf header, and now my header wont load on my site
PostPosted: Sun Jan 11, 2004 12:25 pm Reply with quote
shadow
Addict
Joined: 16 Oct 2003
Posts: 171
Location: Virgin Islands




Try using the full URL to the flash file.
PostPosted: Tue Jan 13, 2004 4:34 am Reply with quote
Guest




I tried that and got the same result.. the page loads everything but my header, then it just hangs when trying to load the header and there is just a big white space where my header is supposed to be. Any other suggestions?
PostPosted: Tue Jan 13, 2004 8:46 pm Reply with quote
shadow
Addict
Joined: 16 Oct 2003
Posts: 171
Location: Virgin Islands




Sorry but I am fresh out of ideas now.

Shadow
PostPosted: Thu Jan 15, 2004 10:59 pm Reply with quote
Guest




Thank you for your help, i was able to figure it out. My header works everywhere now except when i go to the /radmin/ section. When i go there It is still just a white empty space where the header is supposed to be. Is there a seperate area when i need to put in the new header code for the /radmin/ area?
PostPosted: Fri Jan 16, 2004 2:39 am Reply with quote
Guest




I also noticed that in the /radmin section, i cant login at all when the header wont load like that. Any suggestions?
 Changing The Header from .jpg to .swf 
 TheRandomizer Forum Index » General Support
All times are GMT  
Page 1 of 1  

  
  
 Post new topic  Reply to topic  


Powered by phpBB© 2001-2006 phpBB Group |Randomizer Script | Web Hosting | phpBB Skin by Vjacheslav Trushkin