coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: aducrejr on December 24, 2004, 05:26:46 AM

Title: Adding a Flash banner to Hardwired theme
Post by: aducrejr on December 24, 2004, 05:26:46 AM
I would like to add the flash banner at
www.aducrejr.com
into www.aducrejr.com/coppermine

I am not sure which files to edit.
Title: Re: Adding a Flash banner to Igames theme
Post by: Tranz on December 24, 2004, 05:33:12 AM
http://coppermine.sourceforge.net/faq.php#customHeader
Title: Re: Adding a Flash banner to Igames theme
Post by: Hein Traag on December 24, 2004, 07:55:32 AM
And the usuall hints and tips:

- read the doc
- read it again
- search the board
- search it again
- when posting try to explain in more then 10 words what your question is about
Title: Re: Adding a Flash banner to Igames theme
Post by: Joachim Müller on December 24, 2004, 09:27:04 AM
a static flash banner can be easily inserted by editing themes/yourtheme/template.html

Joachim
Title: Re: Adding a Flash banner to Igames theme
Post by: aducrejr on December 24, 2004, 08:04:27 PM
although my orginal post I ask how to edit Igames. I tried hardwired at first and I get www.aducrejr.com/coppermine. A blank box at the header

I am not sure if I have to edit the theme php file

thank for any help
Title: Re: Adding a Flash banner to Igames theme
Post by: Joachim Müller on December 26, 2004, 11:13:17 AM
1) I can't see any banner code at all, not even a blank one. Make sure to have absolute paths to your resources, or relative ones seen from the coppermine root folder (not the theme's subfolder).
2) The version you're using appears to be based on cpg1.2.x, not cpg1.3.x - that's why I moved it from the cpg1.3 support board to the cpg1.3 support board. You're recommended to upgrade.

Joachim
Title: Re: Adding a Flash banner to Hardwired theme
Post by: aducrejr on January 02, 2005, 07:57:42 PM
I know I am overlooking something, because I can't get flash to load

www.aducrejr.com/gallery
Title: Re: Adding a Flash banner to Hardwired theme
Post by: Joachim Müller on January 03, 2005, 12:03:11 AM
you have some "non-valid" code in your gallery, this is the output (I added some linebreaks to makt the code more readible):<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{lang_dir}">
<head>
<title>Alvin I Ducre Jr Digital Photography - Home</title>
<meta http-equiv="content-type" content="text/html; charset={charset}" />
<meta http-equiv="Pragma" content="no-cache" />
<link rel="stylesheet" href="themes/hardwired/style.css" />
<script type="text/javascript" src="scripts.js"></script>
</head>
<body>
</body>
<p>
<body>
</p>
<table width="778" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="778" height="61" valign="middle" align="right" background="themes/hardwired/images/hw_01.gif">
<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="768" height="122">
<param name="movie" value="coppermine/images/worldmap.swf">
<param name="quality" value="High">
<embed src="coppermine/images/worldmap.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj1" width="768" height="122">
</object>
<table width="73%" height="32" border="0" cellpadding="0" cellspacing="0">
<tr>
Apart from the double <body> sections, the reason for the flash file not being shown is a wrong link: coppermine/images/worldmap.swfin<param name="movie" value="coppermine/images/worldmap.swf">points to http://www.aducrejr.com/gallery/coppermine/images/worldmap.swf, which of course doesn't exist ::)...

Joachim

P.S. Change <html dir="{lang_dir}">to<html dir="{LANG_DIR}">and<meta http-equiv="content-type" content="text/html; charset={charset}" />to<meta http-equiv="content-type" content="text/html; charset={CHARSET}" />
P.P.S. You should really upgrade to cpg1.3.2
Title: Re: Adding a Flash banner to Hardwired theme
Post by: aducrejr on January 03, 2005, 03:45:44 AM
Thanks for the detailed help I sure I will be able to solve issues

I posted under wrong forum I am using cpg 1.3.2
Title: Re: Adding a Flash banner to Hardwired theme
Post by: aducrejr on January 03, 2005, 04:11:56 AM
Code:
<param name="movie" value="coppermine/images/worldmap.swf">points to http://www.aducrejr.com/gallery/coppermine/images/worldmap.swf, which of course doesn't exist ...

I change coppermine to gallery

http://www.aducrejr.com/gallery/images/worldmap.swf

changed code still having issues

www.aducrejr.com/gallery

I only edited template.php. Is there another file that needs to be edited or added for this to work?

Title: Re: Adding a Flash banner to Hardwired theme
Post by: Joachim Müller on January 03, 2005, 09:21:31 AM
this is basically an html issue, you have to understand how relative and absolute paths work. Change<param name="movie" value="gallery/images/worldmap.swf">to<param name="movie" value="/gallery/images/worldmap.swf">and you should be fine. I suggest you take a look into some good html tutorial, e.g. http://www.w3schools.com/html/default.asp
You shouldn't have all code in template.html in one line (this is probably caused by some silly editor you're using), reading the source code in http://www.aducrejr.com/gallery/themes/hardwired/template.html is a pain...

Joachim