Jump to content

How to change homepage_logo.jpg to flash


Recommended Posts

Go to this folder modules/editorial and open your editorial.tpl file and replace this:

<!-- Module Editorial -->

   {if $xml->body->home_logo_link}body->home_logo_link|escape:'htmlall':'UTF-8'}" title="{$xml->body->$title|escape:'htmlall':'UTF-8'|stripslashes}">{/if}
       {if $homepage_logo}body->$title|escape:'htmlall':'UTF-8'|stripslashes}" />{/if}
   {if $xml->body->home_logo_link}{/if}
   {if $xml->body->$logo_subheading}{$xml->body->$logo_subheading|stripslashes}{/if} 
   {if $xml->body->$title}{$xml->body->$title|stripslashes}{/if}
   {if $xml->body->$subheading}{$xml->body->$subheading|stripslashes}{/if}
   {if $xml->body->$paragraph}{$xml->body->$paragraph|stripslashes}{/if}

<!-- /Module Editorial -->



With your flash code like this:

<!-- Module Editorial -->



                                   -----> YOUR FLASH CODE HERE <-----


   {if $xml->body->$logo_subheading}{$xml->body->$logo_subheading|stripslashes}{/if} 
   {if $xml->body->$title}{$xml->body->$title|stripslashes}{/if}
   {if $xml->body->$subheading}{$xml->body->$subheading|stripslashes}{/if}
   {if $xml->body->$paragraph}{$xml->body->$paragraph|stripslashes}{/if}

<!-- /Module Editorial -->

Link to comment
Share on other sites

  • 3 weeks later...
  • 2 weeks later...

Hi there, can anyone tell me why i cannot seem to run a .swf file instead of my .jpg logo file???

<!-- Module Editorial -->


{if $xml->body->home_logo_link}body->home_logo_link|escape:'htmlall':'UTF-8'}" title="{$xml->body->$title|escape:'htmlall':'UTF-8'|stripslashes}">{/if}
{if $homepage_logo}{$this_path}homepage_logo.swfbody->$title|escape:'htmlall':'UTF-8'|stripslashes}" />{/if}
{if $xml->body->home_logo_link}
{/if}
{if $xml->body->$logo_subheading}{$xml->body->$logo_subheading|stripslashes}{/if}
{if $xml->body->$title}

{$xml->body->$title|stripslashes}

{/if}
{if $xml->body->$subheading}

{$xml->body->$subheading|stripslashes}

{/if}
{if $xml->body->$paragraph}
{$xml->body->$paragraph|stripslashes}
{/if}

<!-- /Module Editorial -->
Link to comment
Share on other sites

  • 1 month later...

Hey Silvertongue62,

can you please explain how exactly you managed to fix it?

I used the JOBDAO flash slide show:

http://www.jobdao.net/jslideshow/free_flashslideshow.htm

and replaced the code in editorial.tpl with the following:

<!-- Module Editorial -->

   <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"  width="380" height="300" align="middle">





       <embed src="jslideshow.swf?datafile=data.xml" quality="High" bgcolor="#ffffff"  width="380" height="300" align="middle" wmode="transparent" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
   {if $xml->body->$logo_subheading}{$xml->body->$logo_subheading|stripslashes}{/if} 
   {if $xml->body->$title}{$xml->body->$title|stripslashes}{/if}
   {if $xml->body->$subheading}{$xml->body->$subheading|stripslashes}{/if}
   {if $xml->body->$paragraph}{$xml->body->$paragraph|stripslashes}{/if}

<!-- /Module Editorial -->



I have also copied both files: data.xml & jslideshow.swf to my modules/editorial/ folder, as well as pictures used for the slide show.

My data.xml content:


img/1.jpg
4
fly down


img/2.jpg
4
fly down




Unfortunately, the whole thing doesn't work, only the space on the main page for my animation has been replaced with a transparent object. When right-clicked it says: "movie not loaded".

You can view it here:
http://213.251.166.15/~piotr/PRESTA/

Where did I go wrong? Please can you help.

Many thanks!

9243_CO2RWWtrYLRCnT1nmFWL_t

Link to comment
Share on other sites

I have changed the file path of embedded object but still no animation is displayed... only (when right-clicked) the menu changed slightly. i think this is good direction then but missing something :-(

please see pictures of before and after changing the file path

9245_YeWMbS5kKocyoF1bUvIz_t

9246_FDGSKXHHIXhGtYd3OSyI_t

Link to comment
Share on other sites

  • 7 months later...
  • 5 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...