PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
xGSTQ
Involved
Involved


Joined: Feb 03, 2006
Posts: 267
Location: UK

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

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 Visit poster's website
fkelly
Moderator


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

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

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


Joined: Feb 03, 2006
Posts: 267
Location: UK

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

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 !!
View user's profile Send private message Send e-mail Visit poster's website
jaded
Theme Guru


Joined: Nov 01, 2003
Posts: 1006

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

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


Joined: Feb 03, 2006
Posts: 267
Location: UK

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

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..
View user's profile Send private message Send e-mail Visit poster's website
jaded
Theme Guru


Joined: Nov 01, 2003
Posts: 1006

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

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


Joined: Feb 03, 2006
Posts: 267
Location: UK

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

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

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum