Poner Ads en PHP-Nuke

Status
Not open for further replies.

mistercasti

New Member
Messages
20
Reaction score
0
Points
0
Hola. Yo tengo mi php-nuke desde hace unos dias pero ahora que ya esta casi en funcionamiento la web, iba a poner las ads. Mi plan es Advanced asi que me dispuse a colocarlas en el Footer. El problema es que por mas que inserte codigos, aqui alla, he leido muchos post sobre el tema pero no me acaba de funcionar, bueno, mas que funcionar, no se ven las ads, porque lo demas sigue con normalidad.

Este es mi Footer:

<?php

/************************************************************************/
/* PHP-NUKE: Advanced Content Management System */
/* ============================================ */
/* */
/* Copyright (c) 2005 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 (stristr(htmlentities($_SERVER['PHP_SELF']), "footer.php")) {
Header("Location: index.php");
die();
}

define('NUKE_FOOTER', true);

function footmsg() {
global $foot1, $foot2, $foot3, $copyright, $total_time, $start_time, $commercial_license, $footmsg;
$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;
$footmsg = "<span class=\"footmsg\">\n";
if (!empty($foot1)) {
$footmsg .= $foot1."<br>\n";
}
if (!empty($foot2)) {
$footmsg .= $foot2."<br>\n";
}
if (!empty($foot3)) {
$footmsg .= $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!
if ($commercial_license == 1) {
$footmsg .= $total_time."<br>\n</span>\n";
} else {
$footmsg .= $copyright."<br>$total_time<br>\n</span>\n";
}
echo $footmsg;
}

function foot() {
global $prefix, $user_prefix, $db, $index, $user, $cookie, $storynum, $user, $cookie, $Default_Theme, $foot1, $foot2, $foot3, $foot4, $home, $name, $admin, $commercial_license;
if(defined('HOME_FILE')) {
blocks("Down");
}
if (basename($_SERVER['PHP_SELF']) != "index.php" AND defined('MODULE_FILE') AND file_exists("modules/$name/copyright.php") && $commercial_license != 1) {
$cpname = str_replace("_", " ", $name);
echo "<div align=\"right\"><a href=\"javascript:eek:penwindow()\">$cpname &copy;</a></div>";
}
if (basename($_SERVER['PHP_SELF']) != "index.php" AND defined('MODULE_FILE') AND (file_exists("modules/$name/admin/panel.php") && is_admin($admin))) {
echo "<br>";
OpenTable();
include("modules/$name/admin/panel.php");
CloseTable();
}
themefooter();
if (file_exists("includes/custom_files/custom_footer.php")) {
include_once("includes/custom_files/custom_footer.php");
}
echo "</body>\n</html>";
ob_end_flush();
die();
}

foot();


?>

Que codigo inserto el php o el html?
Donde exactamente y como?



pcm.x10hosting.com
Advanced
 
Last edited:

mistercasti

New Member
Messages
20
Reaction score
0
Points
0
Solucionado con el tutorial en ingles. Donde me dijiste tu no funcionaba.ç

Cerrad el tema.
 

KainAngel

New Member
Messages
419
Reaction score
0
Points
0
Denada ¬¬

Yo comente que lo colocaras al final o al principio del footer, que es lo que dice el tutorial en ingles.... pero bueno, ya esta solucionado.

Un Saludo.
 

Fedlerner

Former Adm & Team Manager
Community Support
Messages
12,934
Reaction score
6
Points
38
Solucionado = *Cerrado*
 
Status
Not open for further replies.
Top