Jump to content

[SOLVED] Adding flash banner to bottom of page.


Recommended Posts

Hello All

I am going to ad a flash banner style add across the bottom, but before I get into playing with the block height and width - I cant get it to show.

I transplanted the advertising block to footer - nothing shows on the show. As a test I also added it to top of page - and it does not show there either - what am I doing wrong?

Link to comment
Share on other sites

The advertising block was only designed to be placed in the left or right columns. You will need to add code to allow it to be added in the header or footer. For example, add the following before the last } in modules/blockadvertising/blockadvertising.php:

function hookTop($params)
{
  return $this->hookRightColumn($params);
}

function hookFooter($params)
{
  return $this->hookRightColumn($params);
}



After doing that, you will be able to place the advertising block in the header or footer.

Link to comment
Share on other sites

Thanks Rocky

I am struggling a little (not very good with coding to be honest). I add my code ahead of the line as suggested - but its appearing at the top of the pages - I am guessing it becuase my code normally gets put into its on box - where now I am inserting it as raw HTML so the code within the banner HTML has its own position etc.

<html><head>
<title>jahwaggysad</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<meta name="author" content="">
<meta name="generator" content="SWiSHmax http://www.swishzone.com">
<meta name="description" content="jahwaggysad">
<meta name="keywords" content="com, dub, finest, jahwaggysrecords, online, steppers, store, vinyl, www">
<!-- text used in the movie -->
<!-- com, dub, finest, jahwaggysrecords, online, steppers, store, vinyl, www -->
<!-- urls used in the movie -->
<!-- http://www.jahwaggysrecord.com -->
<!-- Created by SWiSHmax - Flash Made Easy - www.swishzone.com -->
</head>
<body bgcolor="#FFFFFF">

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
 codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,42,0"
 id="jahwaggysad" width="401" height="40">




 <embed type="application/x-shockwave-flash"
  pluginspage="http://www.macromedia.com/go/getflashplayer"
  width="401" height="40"
  name="jahwaggysad" src="jahwaggysad.swf"
  bgcolor="#FFFFFF" quality="high"
  swLiveConnect="true" allowScriptAccess="samedomain"
 ></embed>
</object>

</body>
</html>

Link to comment
Share on other sites

Copy the following code into footer.tpl:


  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,42,0"  id="{$img_dir}jahwaggysad" width="401" height="40">




     <embed type="application/x-shockwave-flash"
      pluginspage="http://www.macromedia.com/go/getflashplayer"
      width="401" height="40" 
      name="jahwaggysad" src="{$tpl_dir}swf/jahwaggysad.swf"
      bgcolor="#FFFFFF" quality="high"
      swLiveConnect="true" allowScriptAccess="samedomain"
     ></embed>
  </object>



Then create a swf directory in your theme's directory and put jahwaggysad.swf in there.

Link to comment
Share on other sites

I've updated my code above. I've put the code in a div with the clear class so it will appear below the columns. I also changed the directory to swf, since I think it is more appropriate than putting it in with the images. Try again and let me know if it works.

Link to comment
Share on other sites

Hi Rocky

Its not loading my friend. I tried changing the directory as per your code and changing it back it is like it cant find the flash file. Can I confirm which directory the file should be in?

*EDIT*

Actually - I worked it out Rocky - its early morning here!

Looks like its done the trick - one last thing before I sign off - how would I centre it below the block - currently it looks like left justify.

Link to comment
Share on other sites

  • 5 weeks later...
  • 5 months later...
Copy the following code into footer.tpl:


  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,42,0"  id="{$img_dir}jahwaggysad" width="401" height="40">




     <embed type="application/x-shockwave-flash"
      pluginspage="http://www.macromedia.com/go/getflashplayer"
      width="401" height="40" 
      name="jahwaggysad" src="{$tpl_dir}swf/jahwaggysad.swf"
      bgcolor="#FFFFFF" quality="high"
      swLiveConnect="true" allowScriptAccess="samedomain"
     ></embed>
  </object>



Then create a swf directory in your theme's directory and put jahwaggysad.swf in there.



Hi rocky,

Thanks for code !!!
I have the following error in dreamweaver.

Idea? Regards

41056_1rWCMnxY2AaNTVzwH8Fu_t

Link to comment
Share on other sites

  • 2 years later...

I have a banner creator that i used to get the HTML . I got my banner to show by placing it in the footer above the rest of my code:

 

http://prntscr.com/2mc9ld

 

And as you can see it looks good but on all the rest of the pages it is above other modules so there is a huge space between banner and the actual footer as you can see:

 

 

http://prntscr.com/2mc9d6

Link to comment
Share on other sites

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...