Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> RN Themes Issues
Author Message
xGSTQ
Involved
Involved



Joined: Feb 03, 2006
Posts: 269

PostPosted: Tue Apr 17, 2007 7:39 am Reply with quote

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 Confused

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 !
 
View user's profile Send private message Send e-mail
fkelly
Former Moderator in Good Standing



Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY

PostPosted: Tue Apr 17, 2007 8:48 am Reply with quote

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.
 
View user's profile Send private message Visit poster's website
xGSTQ







PostPosted: Tue Apr 17, 2007 9:25 am Reply with quote

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

PostPosted: Tue Apr 17, 2007 11:47 am Reply with quote

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?

_________________
Themes BB Skins [ Only registered users can see links on this board! Get registered or login! ]
Graphic Tees [ Only registered users can see links on this board! Get registered or login! ]
Paranormal Tees [ Only registered users can see links on this board! Get registered or login! ]
Ghost Stories & More [ Only registered users can see links on this board! Get registered or login! ] 
View user's profile Send private message Visit poster's website
xGSTQ







PostPosted: Tue Apr 17, 2007 11:56 am Reply with quote

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







PostPosted: Tue Apr 17, 2007 12:28 pm Reply with quote

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







PostPosted: Wed Apr 18, 2007 2:34 am Reply with quote

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
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> RN Themes Issues

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©