PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  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
revision
New Member
New Member


Joined: Sep 11, 2007
Posts: 12

PostPosted: Fri Sep 14, 2007 1:46 pm Reply with quote Back to top

I installed my theme, will be doing major editing later.

But when I checked the bottom to see the footer banner placement, all I see is error codes. I then checked to see if the banner.php file was installed and it wasent. Could this nuke theme be a later theme ment for something above 7.6?

You can see the error youself if needed.
Only registered users can see links on this board!
Get registered or login to the forums!


You guys have been a big help so far. I do thank you for your time.
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15204
Location: Kansas

PostPosted: Fri Sep 14, 2007 7:40 pm Reply with quote Back to top

First of all you need to turn the error display off as you are revealing the direct/absolute path to you files Sad

banners.php was done away with in v7.8 of regular phpnuke. RavenNuke(tm) also does not use it. The new and improved banner system is replaced by a more flexible Advertising module.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
montego
Site Admin


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

PostPosted: Fri Sep 14, 2007 9:10 pm Reply with quote Back to top

revision, the new Advertising module requires you to use ads(0), ads(1), etc... to place those specific N ads where you want within the theme or blocks. Just remember that this function returns a string value. I.e., it doesn't echo anything out to the output...
View user's profile Send private message Visit poster's website
revision
New Member
New Member


Joined: Sep 11, 2007
Posts: 12

PostPosted: Sat Sep 15, 2007 12:03 pm Reply with quote Back to top

I left the errors up just so a few can see them. But I figured out a why to hide the advertising error. I put up a place holder banners.php file.

I am very new to this and I have to work through things slowely.


I have a better question what file controlls the placement of the actual banner. If I can work around my problem myself I will learn nuke alot faster.

I do have a ferm grip of css and html. But php/nuke is very new to me. I can read through it and sort of understand it. As you can see ive started editing the theme.

wait. wait. wait. what would happen if I echoed the string value of the banner in a new banners text and let the theme controll the banners placement?
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15204
Location: Kansas

PostPosted: Sat Sep 15, 2007 2:41 pm Reply with quote Back to top

Re: Error display

A more secure way is to turn error logging on and write the errors to a log file and then review the log. Or, turn error display off and just view the errors in the server error log.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
montego
Site Admin


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

PostPosted: Sat Sep 15, 2007 5:31 pm Reply with quote Back to top

Quote:

I have a better question what file controlls the placement of the actual banner


This is usually done within your theme files. Unfortunately, there are many different ways that themes can be architected. However, one thing is certain, each theme MUST have a theme.php script with the key functions inside, such as themeheader(), themefooter(), etc. But, each of these could also be pulling in files like header.html.

Take a look at fisubice which comes with RavenNuke and find how ads(0) is being used. That should give you some ideas... Wink
View user's profile Send private message Visit poster's website
revision
New Member
New Member


Joined: Sep 11, 2007
Posts: 12

PostPosted: Mon Sep 17, 2007 10:31 am Reply with quote Back to top

Ok.... I located the place where the new theme is looking for the banners.php file..... Is there something I can replace this with?

The line is: include("banners.php");

Code:
<?php
echo"<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">"
  . "  <tr>"
  . "   <td colspan=\"3\"><img name=\"footer_r1_c1\" src=\"themes/TechraDark/images/footer_r1_c1.gif\" width=\"244\" height=\"29\" border=\"0\" alt=\"\"></td>"
  . "   <td><img name=\"footer_r1_c4\" src=\"themes/TechraDark/images/footer_r1_c4.gif\" width=\"100%\" height=\"29\" border=\"0\" alt=\"\"></td>"
  . "   <td><img name=\"footer_r1_c5\" src=\"themes/TechraDark/images/footer_r1_c5.gif\" width=\"13\" height=\"29\" border=\"0\" alt=\"\"></td>"
  . "   <td colspan=\"3\"><img name=\"footer_r1_c6\" src=\"themes/TechraDark/images/footer_r1_c6.gif\" width=\"513\" height=\"29\" border=\"0\" alt=\"\"></td>"
  . "   <td><img name=\"footer_r1_c9\" src=\"themes/TechraDark/images/footer_r1_c9.gif\" width=\"100%\" height=\"29\" border=\"0\" alt=\"\"></td>"
  . "   <td><img name=\"footer_r1_c10\" src=\"themes/TechraDark/images/footer_r1_c10.gif\" width=\"49\" height=\"29\" border=\"0\" alt=\"\"></td>"
  . "   <td><img src=\"themes/TechraDark/images/spacer.gif\" width=\"1\" height=\"29\" border=\"0\" alt=\"\"></td>"
  . "  </tr>"
  . "  <tr>"
  . "   <td background=\"themes/TechraDark/images/footer_r2_c1.gif\">&nbsp;</td>"
  . "   <td background=\"themes/TechraDark/images/footer_r2_c2.gif\" class=\"copyright\">$footer_message</td>"
  . "   <td background=\"themes/TechraDark/images/footer_r2_c3.gif\">&nbsp;</td>"
  . "   <td width=\"50%\" background=\"themes/TechraDark/images/footer_r2_c4.gif\">&nbsp;</td>"
  . "   <td background=\"themes/TechraDark/images/footer_r2_c5.gif\">&nbsp;</td>"
  . "   <td colspan=\"2\" background=\"themes/TechraDark/images/footer_r2_c6.gif\">\n";
if ($banners)
{
include("banners.php");
    }
echo "</td>"
  . "   <td background=\"themes/TechraDark/images/footer_r2_c8.gif\">&nbsp;</td>"
  . "   <td width=\"50%\" background=\"themes/TechraDark/images/footer_r2_c9.gif\">&nbsp;</td>"
  . "   <td background=\"themes/TechraDark/images/footer_r2_c10.gif\">&nbsp;</td>"
  . "   <td><img src=\"themes/TechraDark/images/spacer.gif\" width=\"1\" height=\"53\" border=\"0\" alt=\"\"></td>"
  . "  </tr>"
  . "  <tr>"
  . "   <td><img name=\"footer_r3_c1\" src=\"themes/TechraDark/images/footer_r3_c1.gif\" width=\"60\" height=\"32\" border=\"0\" alt=\"\"></td>"
  . "   <td colspan=\"2\"><img name=\"footer_r3_c2\" src=\"themes/TechraDark/images/footer_r3_c2.gif\" width=\"184\" height=\"32\" border=\"0\" alt=\"\"></td>"
  . "   <td><img name=\"footer_r3_c4\" src=\"themes/TechraDark/images/footer_r3_c4.gif\" width=\"100%\" height=\"32\" border=\"0\" alt=\"\"></td>"
  . "   <td><img name=\"footer_r3_c5\" src=\"themes/TechraDark/images/footer_r3_c5.gif\" width=\"13\" height=\"32\" border=\"0\" alt=\"\"></td>"
  . "   <td><img name=\"footer_r3_c6\" src=\"themes/TechraDark/images/footer_r3_c6.gif\" width=\"280\" height=\"32\" border=\"0\" alt=\"\"></td>"
  . "   <td colspan=\"2\"><img name=\"footer_r3_c7\" src=\"themes/TechraDark/images/footer_r3_c7.gif\" width=\"233\" height=\"32\" border=\"0\" alt=\"\"></td>"
  . "   <td><img name=\"footer_r3_c9\" src=\"themes/TechraDark/images/footer_r3_c9.gif\" width=\"100%\" height=\"32\" border=\"0\" alt=\"\"></td>"
  . "   <td><img name=\"footer_r3_c10\" src=\"themes/TechraDark/images/footer_r3_c10.gif\" width=\"49\" height=\"32\" border=\"0\" alt=\"\"></td>"
  . "   <td><img src=\"themes/TechraDark/images/spacer.gif\" width=\"1\" height=\"32\" border=\"0\" alt=\"\"></td>"
  . "  </tr>"
  . "  <tr>"
  . "   <td><img src=\"themes/TechraDark/images/spacer.gif\" width=\"60\" height=\"1\" border=\"0\" alt=\"\"></td>"
  . "   <td><img src=\"themes/TechraDark/images/spacer.gif\" width=\"175\" height=\"1\" border=\"0\" alt=\"\"></td>"
  . "   <td><img src=\"themes/TechraDark/images/spacer.gif\" width=\"9\" height=\"1\" border=\"0\" alt=\"\"></td>"
  . "   <td><img src=\"themes/TechraDark/images/spacer.gif\" width=\"6\" height=\"1\" border=\"0\" alt=\"\"></td>"
  . "   <td><img src=\"themes/TechraDark/images/spacer.gif\" width=\"13\" height=\"1\" border=\"0\" alt=\"\"></td>"
  . "   <td><img src=\"themes/TechraDark/images/spacer.gif\" width=\"280\" height=\"1\" border=\"0\" alt=\"\"></td>"
  . "   <td><img src=\"themes/TechraDark/images/spacer.gif\" width=\"224\" height=\"1\" border=\"0\" alt=\"\"></td>"
  . "   <td><img src=\"themes/TechraDark/images/spacer.gif\" width=\"9\" height=\"1\" border=\"0\" alt=\"\"></td>"
  . "   <td><img src=\"themes/TechraDark/images/spacer.gif\" width=\"5\" height=\"1\" border=\"0\" alt=\"\"></td>"
  . "   <td><img src=\"themes/TechraDark/images/spacer.gif\" width=\"49\" height=\"1\" border=\"0\" alt=\"\"></td>"
  . "   <td><img src=\"themes/TechraDark/images/spacer.gif\" width=\"1\" height=\"1\" border=\"0\" alt=\"\"></td>"
  . "  </tr>"
  . "</table>";
?>
View user's profile Send private message
montego
Site Admin


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

PostPosted: Mon Sep 17, 2007 5:49 pm Reply with quote Back to top

Well, without seeing the rest of theme.php (no, please do not post it here unless you post a link to maybe a text file of it), but maybe try changing this code here:

Code:

if ($banners)
{
include("banners.php");
    }


with

Code:

if ($banners)
{
echo ads(0);
    }


And make sure you have at least one ad to show up in position 0 so that you can see if it is working or not.
View user's profile Send private message Visit poster's website
revision
New Member
New Member


Joined: Sep 11, 2007
Posts: 12

PostPosted: Wed Sep 19, 2007 1:10 pm Reply with quote Back to top

Guess what..... It worked. Smile
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15204
Location: Kansas

PostPosted: Wed Sep 19, 2007 1:41 pm Reply with quote Back to top

RavensScripts
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
revision
New Member
New Member


Joined: Sep 11, 2007
Posts: 12

PostPosted: Wed Sep 19, 2007 2:48 pm Reply with quote Back to top

The only thing that I cant seem to get working is the headernav.... So I took it out. Who needs a header nav anyway. Smile
View user's profile Send private message
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