| Author |
Message |
xGSTQ Involved


Joined: Feb 03, 2006 Posts: 267 Location: UK
|
Posted:
Tue Apr 17, 2007 7:39 am |
|
Can i just clarify this please using v2.10 RN
well ive added a banner and read the note:
| Quote: | To use the position you must include the code: ads(position); in your theme file, where 'position' is the number of the position you want to use in that ad space.
You can have a look at the file /blocks/block-Advertising.php and file /header.php to have a clear example on how to implement this in your site. |
Ok so i want to add the banner to my footer ive just been trying for the last 40 minutes
the advertisement block works fine so i know the banner is working, i just need to figure out how to call it in the dam footer
ive included the code ads(0); to the footer, im also presuming i need to add the global in the themefooter function in theme.php ? but whats the global... ive looked through the fisicblue theme and its a hell of a lot different using $showbanners in html and then loads and loads of code to call it, i did try it but to no joy..
Sorry if im rabbiting on im trying to explain as best as possible ! |
|
|
|
 |
fkelly Moderator

Joined: Aug 30, 2005 Posts: 3186 Location: near Albany NY
|
Posted:
Tue Apr 17, 2007 8:48 am |
|
I've never worked with Advertising or Banners so this will just be a temporary suggestion until someone who has can be of more help. If you look at how banners are implemented in the themeheader function you'll see that they are done prior to and outside of the eval of the separate html file (header.html). I believe that to get them to work in the footer function you are essentially going to have to replicate this. I would try copying the code from themeheader to themefooter and executing it after the section that does blocks('right'). I would use the same global that's used in themeheader too.
But then again, I'd probably be debugging this for days. I've found that trying to tweak these functions is really difficult because of the way they are structured (you never are really sure where your code is going in a maze of tables, trs and tds). But maybe someone else can be more precise than I am because they've done this before. |
|
|
|
 |
xGSTQ Involved


Joined: Feb 03, 2006 Posts: 267 Location: UK
|
Posted:
Tue Apr 17, 2007 9:25 am |
|
thanks fkelly
i did quickly try pinching the code from the themeheader function and just moved it to the themesfooter function
it still wouldn't show ... lol ill keep playing, dam nuke will be the death of me !! |
|
|
|
 |
jaded Theme Guru

Joined: Nov 01, 2003 Posts: 1006
|
Posted:
Tue Apr 17, 2007 11:47 am |
|
what are you trying to do in the simplest terms? Are you simply trying to make the banners show in the footer instead of the header of your theme? |
|
|
|
 |
xGSTQ Involved


Joined: Feb 03, 2006 Posts: 267 Location: UK
|
Posted:
Tue Apr 17, 2007 11:56 am |
|
hi jaded
sort off, there is no banners showing at all in the header.. and yeah i want to show them in the footer using RN v2.10
I know it uses the different Advertisement module and calls them in a different fashion any help would be cool though.. |
|
|
|
 |
jaded Theme Guru

Joined: Nov 01, 2003 Posts: 1006
|
Posted:
Tue Apr 17, 2007 12:28 pm |
|
If you can pm me your ftp information and your site url and an admin name and password I will see what I can do for you. |
|
|
|
 |
xGSTQ Involved


Joined: Feb 03, 2006 Posts: 267 Location: UK
|
Posted:
Wed Apr 18, 2007 2:34 am |
|
Thanks for the offer jaded but i figured it out through shear determination
as simple as it was too
the banner call just looked like this
| Code: |
. " <p align=\"center\">";
echo ads(0);
echo" </td>" |
believe me i tried it some many different ways !
notice how the call has no " surrounding it its just simply echo ads(0); and then you change the (0) to match your corresponding banner postion |
|
|
|
 |
|
|
|
|