coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: w3bmaster on February 17, 2006, 03:31:24 PM

Title: How can i add flash ??? (help me)
Post by: w3bmaster on February 17, 2006, 03:31:24 PM
Hello i've instaled the latest coppermine gallery here : http://www.bodybuilding-homepage.com/gallery/index.php
But i whant at the top to put a flash header with the menu of the site ... i didn't manage to think how to do this  the flash header is the same as here : http://www.bodybuilding-homepage.com/links/index.html

Thanks and regards waiting for your help .

Title: Re: How can i add flash ??? (help me)
Post by: Nibbler on February 17, 2006, 03:32:39 PM
Add it into your theme's template.html file.
Title: Re: How can i add flash ??? (help me)
Post by: w3bmaster on February 17, 2006, 03:48:08 PM
{META}
<!--
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
//-->
{CUSTOM_HEADER}

{GAL_NAME}

{GAL_DESCRIPTION}







{SUB_MENU}

{SYS_MENU}



{ADMIN_MENU} {GALLERY}

{THEME_SELECT_LIST} {LANGUAGE_SELECT_LIST}

{LANGUAGE_SELECT_FLAGS}

{CUSTOM_FOOTER}

{VANITY}


template.html  how it looks  in my dreamwaver  what i need to modify here ?
Title: Re: How can i add flash ??? (help me)
Post by: Joachim Müller on February 17, 2006, 06:29:39 PM
The JavaScript section is OK, but where's the actual flash object in your template?
Title: Re: How can i add flash ??? (help me)
Post by: w3bmaster on February 17, 2006, 08:59:09 PM
Well i don't know where to add it in that code ?
Title: Re: How can i add flash ??? (help me)
Post by: Joachim Müller on February 18, 2006, 08:45:43 AM
Wherever you want it to appear - if you know how to add flash to a regular HTML page. If you don't, post a screenshot and highlight the area where you want it to appear.
Title: Re: How can i add flash ??? (help me)
Post by: w3bmaster on February 18, 2006, 02:13:18 PM
I added the swf but it doesn't load : http://www.bodybuilding-homepage.com/gallery/ 
Title: Re: How can i add flash ??? (help me)
Post by: Nibbler on February 18, 2006, 03:45:08 PM
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="639" height="360">
      <param name=movie value="header.swf">
      <param name=quality value=high>
      <embed src="header.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="639" height="360">
      </embed>
    </object>


You need to either upload header.swf to your coppermine directory or change that parameter to point to your existing version on that other page.
Title: Re: How can i add flash ??? (help me)
Post by: w3bmaster on February 18, 2006, 05:33:15 PM
It's uploaded in the directory of the template.html theme .
Title: Re: How can i add flash ??? (help me)
Post by: w3bmaster on February 18, 2006, 05:38:13 PM
I moved it to the main directory . It's working fine . Thanks .