|
 |
 |
Menú principal |
 |
|
|
|
 |
dzStaffStatus |
 |
 |
Administradores |
|
el_cuervo |
|
|
Dixso |
|
 |
Colaboradores |
|
AnyKiller |
|
|
nestormateo |
|
|
docser |
|
 |
Moderadores |
|
cardiru |
|
|
javiermisol |
|
 |
Traductores |
|
gnrx |
|
 |
Miembros: |
 |
Nuevos Hoy: |
6 |
 |
Nuevos Ayer: |
11 |
 |
Total: |
71470 |
 |
Ultimo: |
| arok |
 |
Conectados |
 |
Miembros: |
2 |
 |
Invitados: |
58 |
 |
Total: |
60 |
 |
Miembros Online |
 |
Iniciado |
|
 |
asylum |
|
|
|
|
 |
Sponsor |
 |
|
|
|
 |
dp-Tools |
 |
|
|
|
 |
Enlázanos |
 |
|
|
|
Theme creado por dev-postnuke.com |  |  | |  |
|
|
|
turismoenactivo
|
|
|
Enviado: 11/05/2004 a las 09:05 |
|
Novato
Karma: 0 (0 Votos)
Registrado: 08/05/04
Mensajes: 15
Estado: Desconectado Ultima visita: 10/04/05 |
Hola simpatizantes del foro, tengo el siguiente problema: instale perfectamente mi postnuke pero subi un theme nuevo "Esmerald", en adm le di a dicho theme cmo predeterminado y ahora no me deja entrar en ninguna pagina , ni index,php, ni admi.php, tan solo puedo adceder a install.php y gracias a que aun no retire los archivos de install. Volvi a cargar el nuevo theme por si faltaba algun archivo y nada, sigue el mismo maldito error.
En dichas pagiinas index y adm me sale el siguiente error:
Fatal error: Call to undefined function: sql_query() in D:\Inetpub\webs\turismoenactivocom\themes\Emerald\theme.php on line 66
No puedo adceder a ninguna pagina de mi sitio, como lo soluciono?
|
|
|
|
|
|
|
|
|
andreag
|
|
|
Enviado: 11/05/2004 a las 09:05 |
|
Forero
Karma: 10 (4 Votos)
Registrado: 01/06/03
Mensajes: 124
Estado: Desconectado Ultima visita: 10/04/05 |
Como además de ese theme que no funciona (esa eterna manía de instalar themes que no son para Postnuke), seguramente tienes un par de ellos que sí lo hacen, elige uno de ellos, y te subes por FTP a tui sitio Postnuke, entras en larpeta themes; renombrea la carpeta del tema maldito (Emerald) con algún nombre para saber que es esa (por ejemplo shit) y para terminar renombras una carpeta de algún theme que sí funcione, como Emerald (respeta las mayúsculas).
Vuelve a entrar en Postnuke y ya está. Ahora sólo tienes que entrar en Administración-Configuración y ajustar el theme al que de verdad quieras usar. Luego archiva el theme shit (antes Emerald) en la papelera más profunda que conozcas y trágate la llave; renombra la carpeta salvadora a su nombre original (ojo, teniendo en cuenta que no sea el theme en activo) y todo vuelve a la normalidad.
Para los "ahorradores", siempre viene bien tener a mano un theme sobrante, uno que jamás utilicemos, pero que nos salve cuando hacemos los "experimentos con gaseosa".
Claro que también es conveniente tener el Swiss Knife, que permite hacer ésto y más cosas sin necesidad de tantas vueltas.
|
|
|
|
|
|
|
hache
|
|
|
Enviado: 11/05/2004 a las 09:05 |
|
Posteador de Oro
Karma: 9 (11 Votos)
Registrado: 06/09/03
Mensajes: 1328
Estado: Desconectado Ultima visita: 11/03/07 |
Solo falto que dentro del theme esta en las primeras lineas del theme.php
el nombr del theme tambien tienes que cambiarlo a Esmerald
Saludos
Y si usas la busqeida waisen escribio miles de trucos para arreglar esto
Saludos
|
|
|
|
|
|
|
Invitado
|
|
|
Enviado: 11/05/2004 a las 10:05 |
|
|
Usuario no registrado
|
En este mismo foro hay un tema fijo... PROBLEMAS AL INSTALAR THEMES, consultalo, no se por que os da tanto miedo consultar temas ya respondidos y os empeñais en preguntar lo mismo miles y miles de veces.
Salu2 de Waisen.
|
|
|
|
|
|
|
turismoenactivo
|
|
|
Enviado: 11/05/2004 a las 12:05 |
|
Novato
Karma: 0 (0 Votos)
Registrado: 08/05/04
Mensajes: 15
Estado: Desconectado Ultima visita: 10/04/05 |
Si , ya se que teneis razon, pero gusta + aprender hasta que jodemos el invento jajajaj.
He realizado los cambios anteriores, he quitado con el ftp el them Esmerald, he renombrado a otro tmeme bueno con el nombre Esmerald, en dicho theme he cambiado dentro del archivo them.php el lo siguiente $thename = "SeaBreze"; que era elanterior nombre del theme, por esto otro: $thename = "Esmerald";.
Ahora resulta que sale este otro error al intertar entrar y dice así: Fatal error: Call to undefined function: themeheader() in D:\Inetpub\webs\turismoenactivocom\header.php on line 191
He consultado el archivo header.php y no encuentro el fallo. Os paso el codigo de dicho archivo por si lo necesitais:
<?php
// $Id: theme.php,v 1.4 2002/12/03 09:14:37 larsneo Exp $ Exp $Name: $
// ----------------------------------------------------------------------
// POST-NUKE Content Management System
// Copyright (C) 2002 by the PostNuke Development Team.
// http://www.postnuke.com/
// ----------------------------------------------------------------------
// Based on:
// Thatware - http://thatware.org/
// PHP-NUKE Web Portal System - http://phpnuke.org/
// ----------------------------------------------------------------------
// LICENSE
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License (GPL)
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// To read the license please visit http://www.gnu.org/copyleft/gpl.html
// ----------------------------------------------------------------------
// Filename: theme.php
// Original Author(s): Vanessa Haakenson vanessa@distance-educator.com
// Purpose: Theme layout
// ----------------------------------------------------------------------
//
/**
* version: 1.0 - Designs4Nuke.com
*/
/************************************************************/
/* Theme Colors Definition */
/* */
/* Define colors for your web site. $GLOBALS[bgcolor2] is generaly */
/* used for the tables border as you can see on OpenTable() */
/* function, $GLOBALS[bgcolor1] is for the table background and the */
/* other two bgcolor variables follows the same criteria. */
/* $texcolor1 and 2 are for tables internal texts */
/************************************************************/
$thename = "Esmerald";
$postnuke_theme = true;
themes_get_language();
$bgcolor1 = "#FFFFFF"; // White: 0/0/100
$bgcolor2 = "#E6E6E6"; // Lightest Grey: 0/0/90
$bgcolor3 = "#CCCCCC"; // Med Grey: 0/0/80
$bgcolor4 = "#F3F3F3"; // Light Gray - #4C5EA8
$bgcolor5 = "#ACB2D4"; // Light Cornflower Blue HSB: 213/19/83
$bgcolor6 = "#CC6600"; // Warm Orange: 30/100/80
$textcolor1 = "#000000"; // Black
$textcolor2 = "#000000"; // Black
/************************************************************/
/* OpenTable Functions */
/* */
/* Define the tables look & feel for your site. For */
/* this we have two options: OpenTable and OpenTable2 */
/* functions. Then CloseTable and CloseTable2 */
/* function to close our tables. The difference */
/* is OpenTable has a 90% width and OpenTable2 has */
/* a width according with the table content. */
/************************************************************/
function opentable() {
echo " <table width=\"90%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\"> | \n";
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"5\"> | \n";
}
function opentable2() {
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"0\"> | \n";
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"5\"> | \n";
}
function closetable() {
echo " | | \n";
}
function closetable2() {
echo " |
|
\n";
}
/************************************************************/
/* 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() {
$slogan = pnConfigGetVar('slogan');
$sitename = pnConfigGetVar('sitename');
$banners = pnConfigGetVar('banners');
$type = pnVarCleanFromInput('type');
echo "</head>\n"
."<body text=\"#333333\" link=\"#000000\" alink=\"#FF9900\" vlink=\"#CC6600\" topmargin=\"0\" marginheight=\"0\" marginwidth=\"0\" leftmargin=\"0\" rightmargin=\"0\" bgcolor=\"$GLOBALS[bgcolor1]\"><table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\" bgcolor=\"$GLOBALS[bgcolor1]\">\n"
."\n"
."<td colspan=\"2\" valign=\"top\" height=\"91\" background=\"themes/$GLOBALS[thename]/images/hbkg.gif\">\n"
."<a href=\"index.php\"><img src=\"themes/$GLOBALS[thename]/images/logoshort.gif\" width=\"230\" height=\"91\" border=\"0\" align=\"top\">\n"
."\n"
."
\n"
."\n";
if (!pnUserLoggedIn()) {
echo "<td bgcolor=\"$GLOBALS[bgcolor4]\" valign=\"middle\" align=\"left\" width=\"50%\"> <a class=\"pn-sub\" href=\"user.php?op=loginscreen&module=NS-User\">"._MEMBERLOGIN."<img src=\"themes/$GLOBALS[thename]/images/go.gif\" width=\"29\" height=\"29\" align=\"absmiddle\" border=\"0\">\n";
} else {
echo "<td bgcolor=\"$GLOBALS[bgcolor4]\" valign=\"middle\" align=\"left\" width=\"50%\"> <a class=\"pn-sub\" href=\"user.php\">"._YOURACCCOUNT."<img src=\"themes/$GLOBALS[thename]/images/go.gif\" width=\"29\" height=\"29\" align=\"absmiddle\" border=\"0\">\n";
}
echo "\n"
."<td width=\"50%\" height=\"21\" align=\"right\" bgcolor=\"$GLOBALS[bgcolor4]\" valign=\"middle\">\n";
include "themes/$GLOBALS[thename]/top_links.php";
echo "<img src=\"themes/$GLOBALS[thename]/images/blank.gif\" width=\"1\" height=\"1\">\n"
."
\n"
."\n"
."<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n"
."\n"
."<td width=\"150\" valign=\"top\" bgcolor=\"$GLOBALS[bgcolor4]\">\n"
."<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n"
."<tr bgcolor=\"$GLOBALS[bgcolor4]\">\n"
."<img src=\"themes/$GLOBALS[thename]/images/blank.gif\" width=\"1\" height=\"17\" alt=\"\" border=\"0\">\n"
." | \n"
."
\n"
."\n"
."<td valign=\"top\">\n";
blocks('left');
echo "\n"
."
\n"
."\n"
."\n"
."<td width=\"35\" bgcolor=\"$GLOBALS[bgcolor1]\" align=\"left\" valign=\"top\">\n"
."<div align=\"left\"><img src=\"themes/$GLOBALS[thename]/images/lefttop.gif\" width=\"17\" height=\"17\" border=\"0\" alt=\"\">\n"
."\n"
."<td width=\"100%\" valign=\"top\" align=\"center\" bgcolor=\"$GLOBALS[bgcolor1]\">\n";
if ($GLOBALS['index'] == 1) {
echo "<span class=\"message-centre\">\n";
blocks('centre');
echo "\n";
}
}
/************************************************************/
/* Function themefooter() */
/* */
/* Controls 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, $GLOBALS[index] variable needs to be global and is used to */
/* determine if the page you're viewing is the Homepage or */
/* and internal one. */
/* Remember the footer contains the formatting for the */
/* right side bar on the three column page design */
/************************************************************/
function themefooter() {
if ($GLOBALS['index'] == 1) {
echo "<td width=\"140\" valign=\"top\" bgcolor=\"$GLOBALS[bgcolor1]\">";
blocks('right');
}
echo "
\n"
."\n"
."\n"
."<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"$GLOBALS[bgcolor1]\">\n"
."<tr bgcolor=\"$GLOBALS[bgcolor3]\">\n"
."<td height=\"10\"><img src=\"themes/$GLOBALS[thename]/images/blank.gif\" width=\"1\" height=\"1\" border=0 alt=\"\">\n"
."\n"
."<tr bgcolor=\"$GLOBALS[bgcolor4]\">\n"
."\n"
."<table width=\"90%\" border=\"0\" cellspacing=\"0\" cellpadding=\"5\" align=\"center\">\n"
." | \n"
."\n"
."<div align=\"center\">\n"
."<font class=\"pn-sub\">\n";
footmsg();
echo "\n"
."\n"
." | \n"
."
\n"
."\n"
."\n"
."\n"
."\n";
}
/************************************************************/
/* Function themeindex() */
/* This formats the articles/stories on the homepage */
/************************************************************/
function themeindex ($_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $info, $links, $preformat) {
echo "\n"
."<table width=\"95%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n"
."
\n"
."<font class=\"pn-title\">$preformat[catandtitle] \n"
."<font class=\"pn-normal\">$info[hometext] \n";
if ($preformat['notes']){
echo "<font class=\"pn-sub\">$preformat[notes] \n";
}
echo "<font class=\"pn-sub\">"._PUBLISHED." $info[briefdatetime]\n"
." | \n"
."
\n"
."\n"
."\n";
}
/************************************************************/
/* Function themearticle() */
/* This function formats the stories on the story, */
/* when you click on the "Title Link" or "Read More..." */
/* link */
/************************************************************/
function themearticle ($_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $info, $links, $preformat) {
OpenTable();
echo "<img src=\"themes/$GLOBALS[thename]/images/note_icon.gif\" width=\"14\" height=\"15\" alt=\"*\" border=\"0\" align=\"absmiddle\">\n"
."<font class=\"pn-normal\">$preformat[catandtitle]
\n"
."<font class=\"pn-sub\">"._POSTED." $info[briefdatetime]<hr size=\"1\">\n"
."<div align=\"right\">\n"
."<font class=\"pn-sub\">$preformat[send] "._EMAILTOAFRIEND." $preformat[print] "._PRINTTHISSTORY."\n"
."<font class=\"pn-normal\">\n";
if (pnSecAuthAction(0, 'Stories::Story', "$info[aid]:$info[cattitle]:$info[sid]", ACCESS_EDIT)) {
echo "<span class=\"pn-sub\"> [ <a href=\"admin.php?module=NS-AddStory&op=EditStory&sid=$info[sid]\">"._EDIT." ]";
}
if (pnSecAuthAction(0, 'Stories::Story', "$info[aid]:$info[cattitle]:$info[sid]", ACCESS_DELETE)) {
echo "[ <a href=\"admin.php?module=NS-AddStory&op=RemoveStory&sid=$info[sid]\">"._DELETE." ]";
}
echo "
\n"
."<font class=\"pn-art\">$preformat[searchtopic]\n"
."$preformat[fulltext]";
CloseTable();
}
/************************************************************/
/* Function themesidebox() */
/* Controls look of the left side blocks. */
/************************************************************/
function themesidebox($block) {
if (empty($block['position'])) {
$block['position'] = "a";
}
if($block['position'] == 'l') { // left side blocks
echo "<table width=\"150\" border=\"0\" cellspacing=\"0\" cellpadding=\"5\">\n"
."
\n"
."<td class=\"pn-title-lblock\">$block[title]\n"
."
\n"
."\n"
."<td valign=\"top\">$block[content]\n"
."\n"
."
\n"
."\n"
."<table width=\"150\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">\n"
."\n"
."\n"
."<hr size=\"1\">\n"
." | \n"
."
\n"
."\n";
}
if($block['position'] == 'r') {
echo "
<table width=\"140\" border=\"0\" background=\"themes/$GLOBALS[thename]/images/right_bkg.gif\" cellpadding=\"0\" cellspacing=\"0\">\n"
."\n"
."<td valign=\"top\" height=\"13\" colspan=\"2\">\n"
."<div align=\"left\"><img src=\"themes/$GLOBALS[thename]/images/corner_top_right.gif\" width=\"15\" height=\"13\">\n"
."\n"
."<td rowspan=\"3\" background=\"themes/$GLOBALS[thename]/images/orange.gif\" width=\"1%\"><img src=\"themes/$GLOBALS[thename]/images/blank.gif\" width=\"2\" height=\"100%\" alt=\"\" border=\"0\">\n"
."
\n"
."\n"
."<td width=\"8%\"><img src=\"themes/$GLOBALS[thename]/images/blank.gif\" width=\"10\" height=\"1\" alt=\"\" border=\"0\">\n"
."<td width=\"91%\">$block[content]\n"
."
\n"
."\n"
."<td height=\"11\" colspan=\"2\" valign=\"bottom\">\n"
."<div align=\"left\"><img src=\"themes/$GLOBALS[thename]/images/corner_bottom_right.gif\" width=\"11\" height=\"11\">\n"
."\n"
."
\n"
."";
}
if($block['position'] == 'c') {
echo "<font class=\"pn-normal\">$block[content]";
}
}
?>
|
|
|
|
|
turismoenactivo
|
|
|
Enviado: 11/05/2004 a las 13:05 |
|
Novato
Karma: 0 (0 Votos)
Registrado: 08/05/04
Mensajes: 15
Estado: Desconectado Ultima visita: 10/04/05 |
Gracias Waisen, me puse a estudiar un poco y di con el eror. Consegui entrar en mi web gracias a tus explicaciones, entre con tecleando la url:
ttp://www.tusitio.com/admin.php?module=NS-Settings&op= main&theme=PostNuke
Ya solo tuve que enterrar al jodido theme maldito jajajajaja, todo perfecto. Me diste un buen tiron de orejas. Hasta la proxima amigo
|
|
|
|
|
|
|
Invitado
|
|
|
Enviado: 11/05/2004 a las 14:05 |
|
|
Usuario no registrado
|
Menuda morcilla has puesto ¿Para que se supone que es ese codigo?
Jaja, ¿tiron de orejas? Para nada, solo son consejos, acabais antes buscando en el foro que esperando sentados a que os respondamos. Hay dias que ni me conecto asi que no estare aqui siempre... en cambio el buscador si XD
Salu2 de Waisen.
|
|
|
|
|
|
|
freakerd
|
|
|
Enviado: 13/01/2005 a las 11:01 |
|
Novato
Karma: 0 (0 Votos)
Registrado: 13/01/05
Mensajes: 1
Estado: Desconectado Ultima visita: 10/04/05 |
Hola a tod@s. Soy nueva en este foro y no se si es el adecuado para el problema que tengo. Estaba posteando en otro foro y de repente me salio este error:
Fatal error: Call to undefined function: sql_query() in /home2/frahanaisland/public_html/html/includes/monitor.php on line 105
sobre una pagina en blanco, y ya no puedo acceder a esa pagina, ni por un link, ni abriendo la pagina principal, siempre me sale el mismo error. Cualquier otra pagina la puedo abrir bien. Mi OS es WinXP, y mi navegador Firefox, aunque probe tambien con Explorer y sigue dando el error.
Les agradezco cualquier ayuda que me puedan dar.
|
|
|
|
|
|
 |