| Author |
Message |
p17blo Regular


Joined: Jul 27, 2007 Posts: 77
|
Posted:
Sun Jul 29, 2007 2:12 pm |
|
I have been trying to sort out what I thought would be a simple banner issue only end up going round and round in circles. I hope someone can enlighten me as to what I might be doing wrong.
I currently have an unmodified fisubice theme installed on the latest stable RN release and I have activated the advertising module and my sample (Javascript based) banner works in the left ad black.
I want the banner actually to appear underneath the risubice header block (either just under or just over the top nav bar)
I have edited the header.html file and added right at the very bottom
| Code: | <?php
echo ads (1);
?> |
But no matter what the banner will not show. If I change the banner position from 1 to 0 in the ad module the banner appear at the very top of the page which is too high.
I have read numerous posts about changes needed making to theme.php and header.html and I have tried everything but nothing works other that what I have already stated above.
Can anyone give me some definitive advice on what needs to be changed.
The end result need to show my banner on every page of my site, hence the best place for it is within the header.
Thanks
Paul |
|
|
|
 |
montego Site Admin

Joined: Aug 29, 2004 Posts: 7481 Location: Arizona
|
Posted:
Mon Aug 06, 2007 10:27 pm |
|
p17blo, sorry that no-one posted a response as yet. Not sure how we missed this.
The fisubice theme.php is using eval() rather than include(), therefore, I don't think you can use the in-line PHP tags. I think you have to put a variable reference amongst the other HTML within the header.html and then within theme.php's themeheader() function add code to set that variable to ads(1). |
|
|
|
 |
p17blo Regular


Joined: Jul 27, 2007 Posts: 77
|
Posted:
Tue Aug 07, 2007 1:53 am |
|
Thank you for taking the time to respond.
I have worked around the issue just at the moment as I don't directly sell advertising I was able to put in some Javascript into the header file myself to enable my immediate goal. However, it would be nice to find out exactly what I would need to do to enable to advertising module in Raven Nuke
Paul |
|
|
|
 |
montego Site Admin

Joined: Aug 29, 2004 Posts: 7481 Location: Arizona
|
Posted:
Tue Aug 07, 2007 6:35 am |
|
| p17blo wrote: | | it would be nice to find out exactly what I would need to do to enable to advertising module in Raven Nuke |
Yep, and now you have a "hint" on where to take this next... If you run into any further problems, please do not hesitate to post back here. Good luck!
BTW, check out the that I have set up on my site. Some page / header / footer level and others in blocks and a few embedded, just to give an idea that it IS possible to do this with RavenNuke. |
|
|
|
 |
Gremmie Former Moderator in Good Standing

Joined: Apr 06, 2006 Posts: 2401 Location: Iowa, USA
|
Posted:
Tue Aug 07, 2007 7:11 am |
|
You would need to put an "echo ads(1);" in theme.php. If you open up theme.php for fisubice you will see an echo ads(0); for the header. It should be easy to figure out where to put it for the footer. If not, post back. Good luck. |
|
|
|
 |
montego Site Admin

Joined: Aug 29, 2004 Posts: 7481 Location: Arizona
|
Posted:
Tue Aug 07, 2007 7:32 am |
|
Gremmie, I don't believe that will work if he is wanting to embed the ad within header.html somewhere. Take a closer look at how fisubice is working with theme.php and header.html. it really depends upon where he wants the banner to show up, which I think is in the header and not at the very top.
In fact, in looking at the code again, I think we have a bug in what we're doing with $showbanners (it is not getting ads(1) assigned to it... I must have fixed this in my version and forgot to come back and correct in RN). Are you seeing the same thing? |
|
|
|
 |
Gremmie Former Moderator in Good Standing

Joined: Apr 06, 2006 Posts: 2401 Location: Iowa, USA
|
Posted:
Tue Aug 07, 2007 8:03 am |
|
Sorry, I misunderstood what the OP wanted. |
|
|
|
 |
Darrell3831 Worker


Joined: Feb 18, 2004 Posts: 244
|
Posted:
Tue Aug 07, 2007 3:45 pm |
|
I'm interested in this thread as well.
To clarify, using the fisubice theme is the what were supposed to do?
in theme.php we change:
to:
Then uncomment this line:
| Code: | | // $showbanners = '<a href="banners.php?op=click&bid=$bid" target="_blank"><img src="'.$imageurl.'" border="0" alt="'.$alttext.'" title="'.$alttext.'" /></a> '; |
Then we place this or something similar:
| Code: | | <td width="40%" style="background-image: url(themes/fisubice/images/cellpic_bkg.jpg)" height="110">$showbanners</td> |
virtually anywhere we want the banner to appear, such as header.html.
Correct? |
|
|
|
 |
Gremmie Former Moderator in Good Standing

Joined: Apr 06, 2006 Posts: 2401 Location: Iowa, USA
|
Posted:
Tue Aug 07, 2007 6:15 pm |
|
I think you are going to want to leave that existing $showbanners = line commented out, and instead, add this:
$showbanners = ads(1); // or 0 or whatever
Then, in header.html, you can already see there is a $showbanners placeholder. |
Last edited by Gremmie on Tue Aug 07, 2007 8:09 pm; edited 1 time in total |
|
|
 |
Darrell3831 Worker


Joined: Feb 18, 2004 Posts: 244
|
Posted:
Tue Aug 07, 2007 8:02 pm |
|
|
|
 |
Susann Moderator

Joined: Dec 19, 2004 Posts: 2282 Location: Germany:Moderator German NukeSentinel Support
|
Posted:
Wed Dec 05, 2007 7:24 pm |
|
Montego because you talked about the advertising positions I have set mine to a block at the bottom $showbanners = ads(3); and instead at the bottom its beneed my logo and the block is empty ? |
|
|
|
 |
montego Site Admin

Joined: Aug 29, 2004 Posts: 7481 Location: Arizona
|
Posted:
Thu Dec 06, 2007 10:23 am |
|
In the case of a block, it would probably be more like this:
$content .= ads(3);
There may be some additional HTML that you need to add around it (not sure), but this should get the HTML for ad position 3 into the block. |
|
|
|
 |
|
|
|
|