Scotty501 Posted September 21, 2010 Share Posted September 21, 2010 Hello AllI 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 More sharing options...
rocky Posted September 22, 2010 Share Posted September 22, 2010 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 More sharing options...
Scotty501 Posted September 22, 2010 Author Share Posted September 22, 2010 Perfect thank you. (I had a parse error but it was because I left a } out) Link to comment Share on other sites More sharing options...
Scotty501 Posted September 22, 2010 Author Share Posted September 22, 2010 Actually on reflection - how would I move it just above the footer - so it is above the dividing line? Your code works perfectly so I guess my first question is solved, but I would like a banner horizontal below all the blocks, but above the footer? Link to comment Share on other sites More sharing options...
rocky Posted September 22, 2010 Share Posted September 22, 2010 Unfortunately, there is no hook just above the footer. You could use CSS to absolutely position the banner above the line, or you could edit footer.tpl and enter your banner code above line 11: {$HOOK_FOOTER} Link to comment Share on other sites More sharing options...
Scotty501 Posted September 22, 2010 Author Share Posted September 22, 2010 Thanks RockyI 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 More sharing options...
rocky Posted September 22, 2010 Share Posted September 22, 2010 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 More sharing options...
Scotty501 Posted September 22, 2010 Author Share Posted September 22, 2010 As I thought Rocky (thanks) - but it appears to be doing the same thing - If I put after {$HOOK_FOOTER} - then sure enough it appears below the footer text - when I place the code on the line above it leaps to the top of the page. Odd eh?!? Link to comment Share on other sites More sharing options...
Scotty501 Posted September 22, 2010 Author Share Posted September 22, 2010 grrrr....! I cant work this out - anyone give me some guidance to make it work...? Link to comment Share on other sites More sharing options...
rocky Posted September 23, 2010 Share Posted September 23, 2010 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 More sharing options...
Scotty501 Posted September 23, 2010 Author Share Posted September 23, 2010 Hi RockyIts 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 More sharing options...
rocky Posted September 23, 2010 Share Posted September 23, 2010 Add align_center to the classes of the div. Link to comment Share on other sites More sharing options...
Scotty501 Posted September 23, 2010 Author Share Posted September 23, 2010 Thanks Rocky - you are a star! but as I am a coding newbie - mmmm do where do place "align_center"? Sorry I am sure its obvious - but not to me.Thanks for all your help Rocky - virtual beer coming your way. Link to comment Share on other sites More sharing options...
rocky Posted September 23, 2010 Share Posted September 23, 2010 Thanks. I've updated my code above to include the align_center. Link to comment Share on other sites More sharing options...
Scotty501 Posted September 23, 2010 Author Share Posted September 23, 2010 You are my hero - even if we beat your in th Ashes this year I am going to rename the topic as it does not really apply to the advertising block anymore and will mark it as solved. Link to comment Share on other sites More sharing options...
Babocas Posted October 22, 2010 Share Posted October 22, 2010 NC - Thanks for your help wich is always great! I had the same problem mas thanks to you is solved now!=) Link to comment Share on other sites More sharing options...
pasko Posted March 23, 2011 Share Posted March 23, 2011 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 Link to comment Share on other sites More sharing options...
dbeezer99 Posted January 25, 2014 Share Posted January 25, 2014 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now