Ver Mensaje Individual
  #2 (permalink)  
Antiguo 08/06/2004, 08:13
SidV
 
Fecha de Ingreso: mayo-2004
Ubicación: CABA - Argentina
Mensajes: 278
Antigüedad: 20 años, 1 mes
Puntos: 3
mmmm
Nunca lo he visto aplicado...
Pero vamos a hacer el intento ok?
Primero, te va a salir 500 pesos! jajajaja (no joda).
Acordate de hacer buckup del archivo que te voy a ahcer modificar.

Anda a My_Egallery/public/displayCategory.php
Busquemos las funciones que queres eliminar:
Código:
function displaySizeGall($row, $crow) {
        global $font;
        
	if($row[imginfo][2]) {
		$size = $row[imginfo];
		return "<font class=\"".$font['tiny']."\"><b>"._GALSIZE."</b>: $size[0]x$size[1]</font>";
	}
	else {
		return "<font class=\"".$font['tiny']."\"><b>"._GALSIZE."</b>: "._GALUNKNOWN."</font>";
	}
}

function displayFormatGall($row) {
        global $font;
	$ext = $row[imginfo][2];
	switch($ext) {
		case 1: $type = 'GIF'; break;
		case 2: $type = 'JPEG'; break;
		case 3: $type = 'PNG'; break;
		case 4: $type = 'WBMP'; break;
		default: 
			$type = $ext; break;
	}
	return "<font class=\"".$font['tiny']."\"><b>Format</b>: $type</font>";
}

function displayNumCommentsGall($row) {
	global
		$galleryvar,
		$prefix,
                $font
	;
	$numcomments = mysql_fetch_array(mysql_query("SELECT COUNT(cid) AS total FROM $prefix"._gallery_comments." WHERE pid=$row[pid]"));
	if($galleryvar['allowcomments']) {
		return "<font class=\"".$font['tiny']."\"><b>"._GALNBCOMMENTS."</b>: $numcomments[total]</font>";
	}
}

function displayHitsGall($row) {
	global $font;
        return "<font class=\"".$font['normal']."\"><b>"._GALHITS."</b><br>$row[counter]</font>";
}

function displayRateGall($row) {
	global
		$galleryvar, $font;
	;
	if($allowrate) {
		return "<font class=\"".$font['normal']."\"><b>"._GALRATING."</b><br>$row[rate]</font>";
	}
}
Ahora habria que eliminar dichas funciones, pues hacen que se muestren las cosas que vos queres ocultar.
Tenes dos formas:
1.- Eliminas las lineas.
2.- Comentas las lineas: de esta forma mantenes la estructura del archivo php y te preparas para futuros cambios.

Recomiendo que pruebes "comentar" las lineas. Sabes hacerlo no? ( es con dos barras invertidas al principio de cada funcion, ejemplo ... // function )

Guarda y subi el archivo.
Verificca como te fue y contame.
No te aseguro nada :(
Nunca hice esto jeje.

Salu2
__________________
ReC Blog =)