Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Adding a Flash banner to Hardwired theme  (Read 6059 times)

0 Members and 1 Guest are viewing this topic.

aducrejr

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 27
Adding a Flash banner to Hardwired theme
« 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.
« Last Edit: January 02, 2005, 07:56:15 pm by aducrejr »
Logged
www.aducrejr.com/gallery
personal Gallery

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Logged

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: Adding a Flash banner to Igames theme
« Reply #2 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Adding a Flash banner to Igames theme
« Reply #3 on: December 24, 2004, 09:27:04 am »

a static flash banner can be easily inserted by editing themes/yourtheme/template.html

Joachim
Logged

aducrejr

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 27
Re: Adding a Flash banner to Igames theme
« Reply #4 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
« Last Edit: December 24, 2004, 08:21:03 pm by aducrejr »
Logged
www.aducrejr.com/gallery
personal Gallery

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Adding a Flash banner to Igames theme
« Reply #5 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
Logged

aducrejr

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 27
Re: Adding a Flash banner to Hardwired theme
« Reply #6 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
Logged
www.aducrejr.com/gallery
personal Gallery

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Adding a Flash banner to Hardwired theme
« Reply #7 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):
Code: [Select]
<!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
Code: [Select]
<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
Code: [Select]
<html dir="{lang_dir}">to
Code: [Select]
<html dir="{LANG_DIR}">and
Code: [Select]
<meta http-equiv="content-type" content="text/html; charset={charset}" />to
Code: [Select]
<meta http-equiv="content-type" content="text/html; charset={CHARSET}" />P.P.S. You should really upgrade to cpg1.3.2
Logged

aducrejr

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 27
Re: Adding a Flash banner to Hardwired theme
« Reply #8 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
Logged
www.aducrejr.com/gallery
personal Gallery

aducrejr

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 27
Re: Adding a Flash banner to Hardwired theme
« Reply #9 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?

Logged
www.aducrejr.com/gallery
personal Gallery

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Adding a Flash banner to Hardwired theme
« Reply #10 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
Code: [Select]
<param name="movie" value="gallery/images/worldmap.swf">to
Code: [Select]
<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
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 20 queries.