No puedo poner la publi!!!!!!!!!

Status
Not open for further replies.

Hadekone

New Member
Messages
192
Reaction score
0
Points
0
he probado de todo, me dijo el credaor del Nuke et una forma que se supone es la correcta y no me sale!!! me sale un 1 en vez de un banner!

probe con la guia que hizo Kansy y tampoco"!!!

Ayuda!!! `please ayuda!
 

sourcedominate

New Member
Messages
20
Reaction score
0
Points
0
Haz un <?php include("ladirecciónquetedaelhosting") ?> en el header.html o footer.html de tu web.
Aún que sea html se te verá perfectamente, ya que nuke et después se compila en php.
Cualquier cosa dilo!
Saludos!:naughty:
 

Fedlerner

Former Adm & Team Manager
Community Support
Messages
12,934
Reaction score
6
Points
38
Posteanos el código de tu index.php aver si te podemos ayudar...
 

Kansy

Community Advocate
Community Support
Prime Account
Messages
2,621
Reaction score
9
Points
38
No, La publicidad se pone en header o en footer. EL index no tiene nada que ver...... Que posteee el codigo del header y el footer... A ver si mi guia esta mal :S
 

Fedlerner

Former Adm & Team Manager
Community Support
Messages
12,934
Reaction score
6
Points
38
ajajaj, tenes razón, me equiboque yo. Igualmente ya sabía, yo también utilizé Php-Nuke, y se que hay que modificar el header.php, perdón. :p
Aveces se da que el banner no aparece por el skin/template que uno tiene. Prueba cambiando el skin y si no te funciona, posteanos el header.php...
 

Kansy

Community Advocate
Community Support
Prime Account
Messages
2,621
Reaction score
9
Points
38
mmmm Que conste que yo aki no digo k te ekivokes.. Ni digo k tu lo digas mal y yo bien.. Yo soy un patata xD

A ver NO se si tendra mucho que ver lo de la skin pero que lo pruebe es una buena idea. Siendo el Header.php un archivo que vene asi y que por mucho template que uses no se modifica Puede verse afectado por eso????

Nuse :S pero weno ara tengo una horita libere antes de ke me echen a dormir asi k investigare lo k pueda
 

Fedlerner

Former Adm & Team Manager
Community Support
Messages
12,934
Reaction score
6
Points
38
Hace poco ayude a un inglés a instalar su Nuke-Et, y teníamos problemas porque el template hacía que el banner de x10hosting no se mostrara, que el template tapara el banner. El banner estaba, pero tapado por el template. El código estaba colocado arriba de todo del header.php pero igualmente pasaba.
 

Kansy

Community Advocate
Community Support
Prime Account
Messages
2,621
Reaction score
9
Points
38
mmmmmm Pues que nos diga que template es, Sigo teniendo mi antigua web activa en mi antiguo hosting, puedo Subir ese mismo template y hacer pruebas si kiere
 

Kansy

Community Advocate
Community Support
Prime Account
Messages
2,621
Reaction score
9
Points
38
Aviso k yo uso nuke-et no php-nuke.... Subirlo no puedo epero si echarle un vistazo
 

Kansy

Community Advocate
Community Support
Prime Account
Messages
2,621
Reaction score
9
Points
38
Preuba a editar los codigos de la publicidad en el overall.header y en el simple_header Ya dije k de phpnuke no tengo ni papa :S
 
Last edited:

Hadekone

New Member
Messages
192
Reaction score
0
Points
0
aqui os dejo el header.php, el header.html y el theme.php

este es el header.php

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.       */
/************************************************************************/
/* NUKE ET: Modificaci� del PHP-Nuke                                   */
/* ==================================                                   */
/*                                                                      */
/* Modificaciones y creaciones exclusivas de la ET creadas por Truzone  */
/*                                                                      */
/* Copyright (c) 2004 por Truzone						                */
/* http://www.truzone.org                                               */
/************************************************************************/

if(!defined('NUKE_ET')) {
    Header("Location: error.php?op=e403");
    die();
}

require_once("mainfile.php");

global $google_tap, $name, $prefix, $db;

if($google_tap==1){
	ob_start();
}

##################################################
# Include some common header for HTML generation #
##################################################

$header = 1;

function head() {
    global $slogan, $sitename, $module_name, $home, $banners, $nukeurl, $Version_Num, $artpage, $topic, $hlpfile, $user, $hr, $theme, $cookie, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $textcolor1, $textcolor2, $forumpage, $adminpage, $userpage, $pagetitle, $precarga, $charset;
    $ThemeSel = get_theme();
    include("themes/$ThemeSel/theme.php");
    echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
    echo "<html>\n";
    echo "<head>\n";
    echo "<title>$sitename $pagetitle</title>\n";
    include("includes/meta.php");
    include("includes/javascript.php");
	 if(file_exists("modules/$module_name/javascript.php")){
	 include("modules/$module_name/javascript.php");
	 }
    if (file_exists("themes/$ThemeSel/images/favicon.ico")) {
	 echo "<link REL=\"shortcut icon\" HREF=\"themes/$ThemeSel/images/favicon.ico\" TYPE=\"image/x-icon\">\n";
    }


    echo "<LINK REL=\"StyleSheet\" HREF=\"themes/$ThemeSel/style/style.css\" TYPE=\"text/css\">\n\n\n";
    echo "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"RSS\" href=\"backend.php\">\n";
    echo '<link rel="alternate" type="application/x-opera-widgets" title="'.$sitename.'" href="http://widgets.opera.com/widgetize/Feed%20Reader/Advanced/?serve&amp;skin=skin&amp;widgetname='.$sitename.'&amp;url='.$nukeurl.'/backend.php&amp;rel=myopera&amp;ref=">';
    include("includes/my_header.php");
    echo "\n\n\n</head>\n\n";
    themeheader();
}

global $home,$act_nuke,$admin,$prefix,$user_prefix,$cookie,$user,$db,$guardar_estats;

if($act_nuke==0 && !is_admin($admin) && !eregi('admin.php',$_SERVER['SCRIPT_NAME'])){ 
Header("Location: error.php?op=off"); 
die(); 
}


online();

head();

if($guardar_estats=='1'){

include("includes/counter.php");
}else{
global $ora, $oral, $user, $cookie, $admin, $prefix, $db, $nukeurl, $REMOTE_ADDR, $HTTP_SERVER_VARS, $HTTP_USER_AGENT;
}

if(is_user($user)){
	cookiedecode($user);
	$resul = $db->sql_query("select * from ".$prefix."_mens_privados where estado='1' and enviado_a='$cookie[0]'");
	$num = $db->sql_numrows($resul);
	$num = intval($num);
		if($num >= 1){
		echo "<center><table width=\"90%\" bgcolor='red'><tr><td align='center'>"
		. "<h3>Tienes un nuevo mensaje privado, para acceder a tu bandeja de "
		. "entrada click <a href=\"modules.php?name=Mensajes_Privados\">aqui</a></h3>"
		. "</td></tr></table></center>";
		$db->sql_query("update ".$prefix."_mens_privados set estado='5' where estado='1' and enviado_a='$cookie[0]'");
		}
}
if ($home == 1) {
    message_box();
    blocks(Center);
}

?>

ahora el theme.php
 

Hadekone

New Member
Messages
192
Reaction score
0
Points
0
y el header.html que es donde se pone el $publicidad

Code:
<table class="bodyline" width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td align="center" valign="top">
<table class="topbkg" width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td width="60%" height="110"><a href="index.php"><img src="themes/fisubsilversh/images/logo.gif" border="0" alt="$sitename"></a></td>
<td width="40%" height="110">$publicidad &nbsp;</td>
</tr>
</table>
<td></td>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="topnav" width="165" nowrap><div align="center"><font class="content">$theuser</font></div></td>
<td class="topnav" nowrap><div align="center"><font class="content">• &nbsp; <a href="index.php">Principal</a> &nbsp;• &nbsp;<a href="modules.php?name=Downloads">Descargas</a> &nbsp;• &nbsp;<a href="modules.php?name=Your_Account">Tu Cuenta</a> &nbsp;• &nbsp;<a href="modules.php?name=Forums">Foros</a> &nbsp;•</font></div></td>
<td class="topnav" width="165" nowrap><div align="center"><font class="content">$datetime
</font></div></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" class="tbl"><tr><td class="tbll"><img src="themes/fisubsilversh/forums/images/spacer.gif" alt="" width="8" height="4" /></td><td class="tblbot"><img src="themes/fisubsilversh/forums/images/spacer.gif" alt="" width="8" height="4" /></td><td class="tblr"><img src="themes/fisubsilversh/forums/images/spacer.gif" alt="" width="8" height="4" /></td></tr></table>
<table width="100%" cellpadding="0" cellspacing="0" border="0" align="center">
<tr valign="top">
<td>$public_msg<img src="themes/fisubsilversh/forums/images/spacer.gif" width="1" height="1" border="0" alt=""></td>
</tr></table>
<table width="100%" cellpadding="0" cellspacing="0" border="0" align="center">
<tr valign="top">
<td valign="top" width="7" background="themes/fisubsilversh/forums/images/spacer.gif">

Haber si me podeis ayudar, ademas en mi web sale un 1 donde deberia estar el banner
 

Hadekone

New Member
Messages
192
Reaction score
0
Points
0
Code:
<?php

/************************************************************/
/* Theme Name: fisubsilver shadow                           */
/* Theme Design: coldblooded (www.nukemods.com)             */
/* version 3.0                                              */
/* Theme inspired by the phpbb2 style fisubsilversh by      */
/* Daz (http://www.forumimages.com/)                        */
/*                                                          */
/* Copyright Notice                                         */
/* - THIS PACKAGE IS NOT RELEASED AS GPL/GNU SCRIPTING.     */
/* - Our Package name and link MUST REMAIN in the credit    */
/*   footer of all Nuke generated pages.                    */
/*   Translations are permitted, not renaming.              */
/* - This package CAN NOT be ported without written         */
/*   permission.                                            */
/* - This package CAN NOT be mirrored without written       */
/*   permission.                                            */
/* - Use of this package requires that credits to the       */
/*   original PHPNuke remain in all site generated          */
/*   page footers.                                          */
/************************************************************/

/************************************************************/
/* Theme Colors Definition                                  */
/*                                                          */
/* Define colors for your web site. $bgcolor2 is generaly   */
/* used for the tables border as you can see on OpenTable() */
/* function, $bgcolor1 is for the table background and the  */
/* other two bgcolor variables follows the same criteria.   */
/* $texcolor1 and 2 are for tables internal texts           */
/************************************************************/

$bgcolor1 = "#EAEDF4";
$bgcolor2 = "#C3D1E3";
$bgcolor3 = "#EAEDF4";
$bgcolor4 = "#EAEDF4";
$textcolor1 = "#000000";
$textcolor2 = "#006699";

include("themes/fisubsilversh/tables.php");

/************************************************************/
/* Function themeheader()                                   */
/*                                                          */
/* Control the header for your site. You need to define the */
/* BODY tag and in some part of the code call the blocks    */
/* function for left side with: blocks(left);               */
/************************************************************/


function themeheader() {
    global  $admin, $user, $banners, $sitename, $slogan, $cookie, $prefix, $db, $nukeurl, $anonymous, $name;
    if ($banners == 1) {
    $numrows = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_banner WHERE type='0' AND active='1'"));
   /* Get a random banner if exist any. */
   /* More efficient random stuff, thanks to Cristian Arroyo from http://www.planetalinux.com.ar */

    if ($numrows>1) {
   $numrows = $numrows-1;
   mt_srand((double)microtime()*1000000);
   $bannum = mt_rand(0, $numrows);
    } else {
   $bannum = 0;
    }
    $sql = "SELECT bid, imageurl, clickurl, alttext FROM ".$prefix."_banner WHERE type='0' AND active='1' LIMIT $bannum,1";
    $result = $db->sql_query($sql);
    $row = $db->sql_fetchrow($result);
    $bid = $row[bid];
    $imageurl = $row['imageurl'];
    $clickurl = $row['clickurl'];
    $alttext = $row['alttext'];

    if (!is_admin($admin)) {
       $db->sql_query("UPDATE ".$prefix."_banner SET impmade=impmade+1 WHERE bid='$bid'");
    }
    if($numrows>0) {
   $sql2 = "SELECT cid, imptotal, impmade, clicks, date FROM ".$prefix."_banner WHERE bid='$bid'";
   $result2 = $db->sql_query($sql2);
   $row2 = $db->sql_fetchrow($result2);
   $cid = intval($row2['cid']);
   $imptotal = $row2['imptotal'];
   $impmade = $row2['impmade'];
   $clicks = $row2['clicks'];
   $date = $row2['date'];

/* Check if this impression is the last one and print the banner */

   if (($imptotal <= $impmade) AND ($imptotal != 0)) {
       $db->sql_query("UPDATE ".$prefix."_banner SET active='0' WHERE bid='$bid'");
       $sql3 = "SELECT name, contact, email FROM ".$prefix."_bannerclient WHERE cid='$cid'";
       $result3 = $db->sql_query($sql3);
       $row3 = $db->sql_fetchrow($result3);
       $c_name = $row3['name'];
       $c_contact = $row3['contact'];
       $c_email = $row3['email'];
       if ($c_email != "") {
      $from = "$sitename <$adminmail>";
      $to = "$c_contact <$c_email>";
      $message = ""._HELLO." $c_contact:\n\n";
      $message .= ""._THISISAUTOMATED."\n\n";
      $message .= ""._THERESULTS."\n\n";
      $message .= ""._TOTALIMPRESSIONS." $imptotal\n";
      $message .= ""._CLICKSRECEIVED." $clicks\n";
      $message .= ""._IMAGEURL." $imageurl\n";
      $message .= ""._CLICKURL." $clickurl\n";
      $message .= ""._ALTERNATETEXT." $alttext\n\n";
      $message .= ""._HOPEYOULIKED."\n\n";
      $message .= ""._THANKSUPPORT."\n\n";
      $message .= "- $sitename "._TEAM."\n";
      $message .= "$nukeurl";
      $subject = "$sitename: "._BANNERSFINNISHED."";
      mail($to, $subject, $message, "From: $from\nX-Mailer: PHP/" . phpversion());
       }
   }
   if(eregi(".swf", $imageurl) OR eregi(".fla", $imageurl)){
    $showbanners = "<embed src=\"$imageurl\"></embed>&nbsp;"; 
   }else{
    $showbanners = "<a href=\"banners.php?op=click&bid=$bid\" target=\"_blank\"><img src=\"$imageurl\" border=\"0\" alt='$alttext' title='$alttext'></a>&nbsp;";
   }
    }
}
    cookiedecode($user);
    $username = $cookie[1];
    if ($username == "") {
        $username = "Anonymous";
    }
    echo "<body leftmargin=\"1\" topmargin=\"1\" marginwidth=\"1\" marginheight=\"1\">";

    if ($username == "Anonymous") {
   $theuser = "&nbsp;&nbsp;<a href=\"modules.php?name=Your_Account\">"._LOGIN."</a> or <a href=\"modules.php?name=Your_Account&file=registro\">"._BREG."</a>";
    } else {
   $theuser = "&nbsp;&nbsp;"._BWEL." $username!";
    }

    $datetime = "<script type=\"text/javascript\">\n\n"
           ."<!--   // Array ofmonth Names\n"
           ."var monthNames = new Array( \""._JANUARY."\",\""._FEBRUARY."\",\""._MARCH."\",\""._APRIL."\",\""._MAY."\",\""._JUNE."\",\""._JULY."\",\""._AUGUST."\",\""._SEPTEMBER."\",\""._OCTOBER."\",\""._NOVEMBER."\",\""._DECEMBER."\");\n"
           ."var now = new Date();\n"
           ."thisYear = now.getYear();\n"
           ."if(thisYear < 1900) {thisYear += 1900}; // corrections if Y2K display problem\n"
           ."document.write(now.getDate() + \" de \" + monthNames[now.getMonth()] + \" de \" + thisYear);\n"
           ."// -->\n\n"
           ."</script>";

   $public_msg = public_message();
    $publicidad = include("http://staff.x10hosting.com/adCode.php?ad=corporate");
    $tmpl_file = "themes/fisubsilversh/header.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
    blocks(left);
    $tmpl_file = "themes/fisubsilversh/left_center.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}
 

Kansy

Community Advocate
Community Support
Prime Account
Messages
2,621
Reaction score
9
Points
38
mmm se corta en el theme.php supongoque sera porque es muy largo todo..... Probaste ponerlo como digo en mi guia encima del header y dentro y dices que no te funciona. Has provado a cambiar el template.

Haz lo delindex.html diciendo que estas solucionando problemas poniendo publi para asi no ganarte un baneo de 4 dias :D

Nu se que mas, me echan msi papas a la cama ya... Mañana cole :(:(:(:(

Mañana me paso por aki y te digo algo mas!!!!

Adios y buenas noches xD<----Vaya cosas pa decir en unos foros xDDDD

------------------------------------------------

k rapido xDDD prueba a hacer lo de mi guia en este ultimo. buenas noches!!! ara si k m voy
 
Last edited:

Hadekone

New Member
Messages
192
Reaction score
0
Points
0
Code:
/************************************************************/
/* Function themefooter()                                   */
/*                                                          */
/* Control the footer for your site. You don't need to      */
/* close BODY and HTML tags at the end. In some part call   */
/* the function for right blocks with: blocks(right);       */
/* Also, $index variable need to be global and is used to   */
/* determine if the page your're viewing is the Homepage or */
/* and internal one.                                        */
/************************************************************/

function themefooter() {
    global $index, $foot1, $foot2, $foot3, $foot4, $copyright, $totaltime, $footer_message;
    if ($index == 1) {
	$tmpl_file = "themes/fisubsilversh/center_right.html";
	$thefile = implode("", file($tmpl_file));
	$thefile = addslashes($thefile);
	$thefile = "\$r_file=\"".$thefile."\";";
	eval($thefile);
	print $r_file;
	blocks(right);
    }

echo "</td></tr></table>\n";
footmsg();
// PLEASE DO NOT TOUCH THE NEXT LINE(s).
// YOU CAN ONLY ADD TO IT IF YOU MODIFY THIS THEME :-)
echo"<table width=\"100%\" border=\"0\" cellpadding=\"4\">"
  . "<tr>"
  . "<td align=\"center\"><font class=\"small\">:: fisubsilver shadow phpbb2 style by <a href=\"http://www.forumimages.com/\">Daz</a> :: PHP-Nuke theme by coldblooded <a href=\"http://www.nukemods.com\">(www.nukemods.com)</a> ::</font></div></td>"
  . "</tr>"
  . "</table>"
 ."";

}

/************************************************************/
/* Function themeindex()                                    */
/*                                                          */
/* This function format the stories on the Homepage         */
/************************************************************/

function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
    global $anonymous, $tipath;
    if ($notes != "") {
	$notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>\n";
    } else {
	$notes = "";
    }
    if ("$aid" == "$informant") {
	$content = "$thetext$notes\n";
    } else {
	if($informant != "") {
	    $content = "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$informant\">$informant</a> ";
	} else {
	    $content = "$anonymous ";
	}
	$content .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
    }
    $posted = ""._POSTEDBY." ";
    $posted .= get_author($aid);
    $posted .= " "._ON." $time $timezone ($counter "._READS.")";
    $tmpl_file = "themes/fisubsilversh/story_home.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}

/************************************************************/
/* Function themearticle()                                  */
/*                                                          */
/* This function format the stories on the story page, when */
/* you click on that "Read More..." link in the home        */
/************************************************************/

function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
    global $admin, $sid, $tipath;
    $posted = ""._POSTEDON." $datetime "._BY." ";
    $posted .= get_author($aid);
    if ($notes != "") {
	$notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>\n";
    } else {
	$notes = "";
    }
    if ("$aid" == "$informant") {
	$content = "$thetext$notes\n";
    } else {
	if($informant != "") {
	    $content = "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$informant\">$informant</a> ";
	} else {
	    $content = "$anonymous ";
	}
	$content .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
    }
    $tmpl_file = "themes/fisubsilversh/story_page.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}

/************************************************************/
/* Function themesidebox()                                  */
/*                                                          */
/* Control look of your blocks. Just simple.                */
/************************************************************/

function themesidebox($title, $content, $side=0) {

    if($side=="l"){    
    $tmpl_file = "themes/fisubsilversh/blocks.html";
    }else{
    $tmpl_file = "themes/fisubsilversh/blocks2.html";
    }
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}

?>

podeis ver la manera que me dijieorn en la web oficial
en $publicidad = include("http://staff.x10hosting.com/adCode.php?ad=corporate");


SIENTO LOS 4 POST PERO PARECE SER QUE HAY LIMITE DE CARACTERES...
 

Kansy

Community Advocate
Community Support
Prime Account
Messages
2,621
Reaction score
9
Points
38
Haz lo k t dije, edita el anterior al k puse yo antes omo digo en la guia nada de $publi ni eso si es nuke-eta mi manera debe de funcionar :D
 

Hadekone

New Member
Messages
192
Reaction score
0
Points
0
bueno kreo haber conseguido poner la publi, lo que pasa que me sale como url al intentar clicar...esta

http://streetgaming.exofire.net/%5C'http://x10hosting.com/advert/adclick.php?n=a7fb3e9d\'

como hago para quitar mi url de la direccion?
solo deberia salir esto, no puse nada mas
http://x10hosting.com/advert/adclick.php?n=a7fb3e9d\'
 
Status
Not open for further replies.
Top