Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.5
Author Message
Jolanta
New Member
New Member



Joined: Apr 03, 2005
Posts: 8

PostPosted: Thu May 12, 2005 6:32 am Reply with quote

Hi Nukers

I can't get the banners to work in Nuke 7.5 footer... I moved

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

down to the footer function and included the global statement... and yes the banners in admin and admin preferences are activated...

This moving banners to footer works fine in 6.5 but not in 7.5

I am using DeepBlue theme for both 7.5 and 6.5

any ideas please ???

Thanks

Jolanta
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Thu May 12, 2005 6:40 am Reply with quote

Please post your entire footer.php file, wrapping it in bbcode [ code ] [ /code ] tags.
 
View user's profile Send private message
Jolanta







PostPosted: Thu May 12, 2005 6:59 am Reply with quote

Code:


<?php

/************************************************************************/
/* PHP-NUKE: Advanced Content Management System                         */
/* ============================================                         */
/*                                                                      */
/* Copyright (c) 2002 by Francisco Burzi                                */
/* http://phpnuke.org                                                   */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/

if (eregi("footer.php",$_SERVER['PHP_SELF'])) {
    Header("Location: index.php");
    die();
}

$footer = 1;

function footmsg() {
    global $foot1, $foot2, $foot3, $copyright, $total_time, $start_time;
    $mtime = microtime();
    $mtime = explode(" ",$mtime);
    $mtime = $mtime[1] + $mtime[0];
    $end_time = $mtime;
    $total_time = ($end_time - $start_time);
    $total_time = ""._PAGEGENERATION." ".substr($total_time,0,4)." "._SECONDS."";
    echo "<font class=\"footmsg\">\n";
    if ($foot1 != "") {
   echo "$foot1<br>\n";
    }
    if ($foot2 != "") {
   echo "$foot2<br>\n";
    }
    if ($foot3 != "") {
   echo "$foot3<br>\n";
    }
    // DO NOT REMOVE THE FOLLOWING COPYRIGHT LINE. YOU'RE NOT ALLOWED TO REMOVE NOR EDIT THIS.
    // IF YOU REALLY NEED TO REMOVE IT AND HAVE MY WRITTEN AUTHORIZATION CHECK: http://phpnuke.org/modules.php?name=Commercial_License
    // PLAY FAIR AND SUPPORT THE DEVELOPMENT, PLEASE!
    echo "$copyright<br>$total_time<br>\n</font>\n";
}

function foot() {
    global $prefix, $user_prefix, $db, $index, $user, $cookie, $storynum, $user, $cookie, $Default_Theme, $foot1, $foot2, $foot3, $foot4, $home, $module, $name;
    if ($home == 1) {
      blocks(Down);
    }
    if ($module == 1 AND file_exists("modules/$name/copyright.php")) {
      $cpname = ereg_replace("_", " ", $name);
      echo "<div align=\"right\"><a href=\"javascript:openwindow()\">$cpname &copy;</a></div>";
    }
    if ($module == 1 AND file_exists("modules/$name/admin/panel.php")) {
       echo "<br>";
       OpenTable();
       include("modules/$name/admin/panel.php");
       CloseTable();
    }
    themefooter();
    echo "</body>\n"
      ."</html>";
    die();
}

foot();

?>


Hi Raven...I forgot to say in the theme.php I had
Code:


function themeheader() {
    global $banners, $sitename;
    echo "<body background=\"themes/DeepBlue/images/bgimage.png\" text=\"#422F7E\" link=\"0000ff\">"
   ."";
    if ($banners) {
   include("banners.php");
   echo "";
    }
    echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"840\" align=\"center\">\n"


I removed the banners call and put it in the footer like speedtype
Code:


function themefooter() {
    global $index, $banners;
    echo "<br>";
    if ($index == 1) {
   echo "</td><td><img src=\"themes/DeepBlue/images/pixel.gif\" width=\"10\" height=\"1\" border=\"0\" alt=\"\"></td><td valign=\"top\" width=\"138\" bgcolor=\"E7E7CF\">\n";
   blocks(right);
   echo "<td><img src=\"themes/DeepBlue/images/pixel.gif\" width=\"6\" height=\"1\" border=\"0\" alt=\"\">";
    }
 else {
   echo "</td><td colspan=\"2\"><img src=\"themes/DeepBlue/images/pixel.gif\" width=\"10\" height=\"1\" border=\"0\" alt=\"\">";
    }
    echo "<br><br></td></tr></table>\n"
   ."<br><center>";
    footmsg();
   if ($banners) {
   include("banners.php");
   echo "";
    }
    echo "</center>";
}


as i said this exact same thing works in 6.5 banner shows at bottom of the page ect.. but not in 7.5... I don't get any error at all... it just doesn't show up

thanks for your help

Jolanta


Last edited by Jolanta on Thu May 12, 2005 7:29 am; edited 2 times in total 
Raven







PostPosted: Thu May 12, 2005 7:09 am Reply with quote

Can you edit your above post to include the code you are trying to use?
 
Jolanta







PostPosted: Thu May 12, 2005 7:47 am Reply with quote

Hi Raven

I have... the code which is above... beginning with...

Code:


function themefooter() {


is what I am using for 7.5 theme.php and is what works in 6.5 theme.php

Thanks again

Jolanta
 
Jolanta







PostPosted: Thu May 19, 2005 4:17 am Reply with quote

Hi Raven.

I got it working, sort of... anyway the banners are working for visitors and are recording the stats etc... but do not appear after member login.

The file /public_html/admin/.htaccess

is

deny from all

The file /public_html/admin/modules/.htaccess

is

deny from all

I tried deleting these but no joy... if anybody can offer any ideas I would appreciate it.

For anyone who has a similar issue with nuke 7.5 here is the footer code that got the banners working globally on every page (at least for visitors)

Thanks

Jolanta

Code:


function themefooter() {
    echo "<br>";
    global $banners, $index;
    if ($banners) {
   include("banners.php");
   echo "";
    }
    echo "<br>";
    if ($index == 1) {
   echo "</td><td><img src=\"themes/DeepBlue/images/pixel.gif\" width=\"10\" height=\"1\" border=\"0\" alt=\"\"></td><td valign=\"top\" width=\"138\" bgcolor=\"E7E7CF\">\n";
   blocks(right);
   echo "<td><img src=\"themes/DeepBlue/images/pixel.gif\" width=\"6\" height=\"1\" border=\"0\" alt=\"\">";
    }
 else {
   echo "</td><td colspan=\"2\"><img src=\"themes/DeepBlue/images/pixel.gif\" width=\"10\" height=\"1\" border=\"0\" alt=\"\">";
    }
    echo "<br><br></td></tr></table>\n"
   ."<br><center>";
    footmsg();
    echo "</center>";
}
 
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.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.5

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©