PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
p17blo
Regular
Regular


Joined: Jul 27, 2007
Posts: 77

PostPosted: Sun Jul 29, 2007 2:12 pm Reply with quote Back to top

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
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 7481
Location: Arizona

PostPosted: Mon Aug 06, 2007 10:27 pm Reply with quote Back to top

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


Joined: Jul 27, 2007
Posts: 77

PostPosted: Tue Aug 07, 2007 1:53 am Reply with quote Back to top

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
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 7481
Location: Arizona

PostPosted: Tue Aug 07, 2007 6:35 am Reply with quote Back to top

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
Only registered users can see links on this board!
Get registered or login to the forums!
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.
View user's profile Send private message Visit poster's website
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2401
Location: Iowa, USA

PostPosted: Tue Aug 07, 2007 7:11 am Reply with quote Back to top

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.
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 7481
Location: Arizona

PostPosted: Tue Aug 07, 2007 7:32 am Reply with quote Back to top

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?
View user's profile Send private message Visit poster's website
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2401
Location: Iowa, USA

PostPosted: Tue Aug 07, 2007 8:03 am Reply with quote Back to top

Sorry, I misunderstood what the OP wanted.
View user's profile Send private message
Darrell3831
Worker
Worker


Joined: Feb 18, 2004
Posts: 244

PostPosted: Tue Aug 07, 2007 3:45 pm Reply with quote Back to top

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:

Code:
echo ads(0);


to:

Code:
echo ads(1);


Then uncomment this line:

Code:
// $showbanners = '<a href="banners.php?op=click&amp;bid=$bid" target="_blank"><img src="'.$imageurl.'" border="0" alt="'.$alttext.'" title="'.$alttext.'" /></a>&nbsp;';


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?
View user's profile Send private message Visit poster's website
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2401
Location: Iowa, USA

PostPosted: Tue Aug 07, 2007 6:15 pm Reply with quote Back to top

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
View user's profile Send private message
Darrell3831
Worker
Worker


Joined: Feb 18, 2004
Posts: 244

PostPosted: Tue Aug 07, 2007 8:02 pm Reply with quote Back to top

Okay,
Thanks!
View user's profile Send private message Visit poster's website
Susann
Moderator


Joined: Dec 19, 2004
Posts: 2282
Location: Germany:Moderator German NukeSentinel Support

PostPosted: Wed Dec 05, 2007 7:24 pm Reply with quote Back to top

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


Joined: Aug 29, 2004
Posts: 7481
Location: Arizona

PostPosted: Thu Dec 06, 2007 10:23 am Reply with quote Back to top

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.
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

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-2008 by Raven
Proud to be listed at Lobo Links Web Directory

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 Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

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

zerosum