Author |
Message |
revision
New Member


Joined: Sep 11, 2007
Posts: 12
|
Posted:
Fri Sep 14, 2007 1:46 pm |
|
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.
http://www.asylum-systems.com
You guys have been a big help so far. I do thank you for your time. |
|
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Fri Sep 14, 2007 7:40 pm |
|
First of all you need to turn the error display off as you are revealing the direct/absolute path to you files
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. |
|
|
|
 |
montego
Site Admin

Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Fri Sep 14, 2007 9:10 pm |
|
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... |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
 |
revision

|
Posted:
Sat Sep 15, 2007 12:03 pm |
|
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? |
|
|
|
 |
Raven

|
Posted:
Sat Sep 15, 2007 2:41 pm |
|
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. |
|
|
|
 |
montego

|
Posted:
Sat Sep 15, 2007 5:31 pm |
|
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...  |
|
|
|
 |
revision

|
Posted:
Mon Sep 17, 2007 10:31 am |
|
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\"> </td>"
. " <td background=\"themes/TechraDark/images/footer_r2_c2.gif\" class=\"copyright\">$footer_message</td>"
. " <td background=\"themes/TechraDark/images/footer_r2_c3.gif\"> </td>"
. " <td width=\"50%\" background=\"themes/TechraDark/images/footer_r2_c4.gif\"> </td>"
. " <td background=\"themes/TechraDark/images/footer_r2_c5.gif\"> </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\"> </td>"
. " <td width=\"50%\" background=\"themes/TechraDark/images/footer_r2_c9.gif\"> </td>"
. " <td background=\"themes/TechraDark/images/footer_r2_c10.gif\"> </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>";
?>
|
|
|
|
|
 |
montego

|
Posted:
Mon Sep 17, 2007 5:49 pm |
|
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. |
|
|
|
 |
revision

|
Posted:
Wed Sep 19, 2007 1:10 pm |
|
Guess what..... It worked.  |
|
|
|
 |
Raven

|
Posted:
Wed Sep 19, 2007 1:41 pm |
|
|
|
 |
revision

|
Posted:
Wed Sep 19, 2007 2:48 pm |
|
The only thing that I cant seem to get working is the headernav.... So I took it out. Who needs a header nav anyway.  |
|
|
|
 |
|