Página 2 de 4

Re: Pregunta sobre botones en foro

Publicado: 13 Ago 2012, 18:53
por maravilla
The kuka, el codigo te lo he dejado en pastebin, aqui te dejo el enlace al archivo



Lo que se ve aqui es mi header_overal.html

He cambiado lo que muestra de buscar mensjaes nuevos y todo eso, utilizando lo del subsilver.

Pero se ha quedado, así:

Imagen

Antes solo me salian dos opciones y ahora me salen tres.

Pero como realmente yo quiero que quede, es asi.
Imagen

A mi me gustaria que me explicase usted como tengo que modificar el codigo, para que quede:

De color rojo.

Que se llame, Mensajes nuevos desde tu ultima visita 0 (0), con o sin parentesis, si es sin parentesis mejor que mejor.

Re: Pregunta sobre botones en foro

Publicado: 13 Ago 2012, 19:53
por ThE KuKa
Prueba esto...
BUSCA:

Código: Seleccionar todo

<!-- IF S_USER_LOGGED_IN --><a href="{U_SEARCH_NEW}">{L_SEARCH_NEW} {NEW_POST_COUNT}</a>
REEMPLAZAR POR:

Código: Seleccionar todo

<!-- IF S_USER_LOGGED_IN --><span style="color: #FF0000;"><a href="{U_SEARCH_NEW}">{L_SEARCH_NEW} {NEW_POST_COUNT}</a></span>

Re: Pregunta sobre botones en foro

Publicado: 13 Ago 2012, 20:53
por maravilla
Kuka te comento, acabo de entrar en el header_overall para buscar y reemplazar, y copio la linea que me has dado le doy a buscar y me dice esto.

Imagen

En el header_overall que he puesto abajo del todo esta la modificación, que no ha sido más que cogerlo como viene en el estilo subsiler y sustituirlo.

Re: Pregunta sobre botones en foro

Publicado: 13 Ago 2012, 21:08
por uruguayito
prueba a hacer búsquedas parciales ... y ve si te coincide con loq ue te dicen ;)

por ejemplo para este caso busca : IF S_USER_LOGGED_IN

y así vas viendo si está la línea :roll:

Re: Pregunta sobre botones en foro

Publicado: 13 Ago 2012, 21:19
por maravilla
Lo mas paecido que me sale es esto, y no es asi al menos que me este equivocando terriblemente.

<!-- IF S_USER_LOGGED_IN --> &nbsp;-&nbsp;<a href="{U_PROFILE}">{L_PROFILE}</a><!-- ENDIF -->
<!-- ENDIF -->

Re: Pregunta sobre botones en foro

Publicado: 13 Ago 2012, 21:22
por ThE KuKa
Hay que empezar a leer, y mucho.

Primero
Bloc de notas PROHIBIDO, se ha comentado mil veces, no vale para editar estos archivos y provoca errores por poner espacios donde no debe (entre otras cosas).

Segundo
La búsqueda parcial, igual, se ha comentado mil veces, busca

Código: Seleccionar todo

{L_SEARCH_NEW}
por ejemplo.

Descarga Notepad++

Re: Pregunta sobre botones en foro

Publicado: 13 Ago 2012, 21:25
por nextgen
Como te ha dicho Raúl.

Abrir: template/overall_header.html

Buscar:

Código: Seleccionar todo

<!-- IF 
S_USER_LOGGED_IN --><a href="{U_SEARCH_NEW}">{L_SEARCH_NEW} {NEW_POST_COUNT}</a>
Reemplazar por:

Código: Seleccionar todo

    <!-- IF S_USER_LOGGED_IN --><span style="color: #FF0000;"><a href="{U_SEARCH_NEW}">{L_SEARCH_NEW} {NEW_POST_COUNT}</a></span>

Re: Pregunta sobre botones en foro

Publicado: 13 Ago 2012, 21:49
por maravilla
Perfecto gente, siento lo del bloc, yo no ando mucho por aqui, y por lo poco que he leido la verdad, que no leo mas porque que esque no me entero de la mitad, no he visto por ningun lado el tema del bloc de notas, ya estoy descargando el programa que me has dejado kuka.

Ahora os comento, gracias, y disculpen!!!

Re: Pregunta sobre botones en foro

Publicado: 14 Ago 2012, 00:03
por maravilla
Bien, gente, acabo de realizar los cambios con notepad, y cuando actualizo la plantilla borro cache, y borro cache del navegador, me da un error sintactico, en el header overal, linea 237.

Aqui os dejo la modificacion que he realizado para que verifiqueis que esta bien echa, puesto que solo era borrar lo puesto copiar y pegar dudo que me aya equivocado, pero de todas formas os dejo la muestra de la modificación y de ete modo podran verla..



Mil gracias.

Re: Pregunta sobre botones en foro

Publicado: 14 Ago 2012, 00:12
por ThE KuKa
Usa el BBCode del foro por favor, con ese PasteBin salen las lineas desplazadas.
Copia el archivo entero y pegalo aquí, sin PasteBin
Usa BBCode Code

Código: Seleccionar todo

TU CÓDIGO AQUÍ...

Re: Pregunta sobre botones en foro

Publicado: 14 Ago 2012, 00:17
por maravilla
Aqui lo teneis en code, estaba intentando averiguar como lo poniais vosotros asi. Gracias.

Código: Seleccionar todo

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}" xml:lang="{S_USER_LANG}">
<link rel="shortcut icon" type="image/ico" href="http://forocolorin.com/images/favicon.ico" />
<head>

    <script type="text/javascript" 
    src="{ROOT_PATH}mobiquo/tapatalkdetect.js"></script>


<meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" />
<meta http-equiv="content-language" content="{S_USER_LANG}" />
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="resource-type" content="document" />
<meta name="distribution" content="global" />
<meta name="copyright" content="2000, 2002, 2005, 2007 phpBB Group" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
{META}
<title>{SITENAME} &bull; <!-- IF S_IN_MCP -->{L_MCP} &bull; <!-- ELSEIF S_IN_UCP -->{L_UCP} &bull; <!-- ENDIF -->{PAGE_TITLE}</title>

<!-- IF S_ENABLE_FEEDS -->
	<!-- IF S_ENABLE_FEEDS_OVERALL --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {SITENAME}" href="{U_FEED}" /><!-- ENDIF -->
	<!-- IF S_ENABLE_FEEDS_NEWS --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FEED_NEWS}" href="{U_FEED}?mode=news" /><!-- ENDIF -->
	<!-- IF S_ENABLE_FEEDS_FORUMS --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_ALL_FORUMS}" href="{U_FEED}?mode=forums" /><!-- ENDIF -->
	<!-- IF S_ENABLE_FEEDS_TOPICS --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FEED_TOPICS_NEW}" href="{U_FEED}?mode=topics" /><!-- ENDIF -->
	<!-- IF S_ENABLE_FEEDS_TOPICS_ACTIVE --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FEED_TOPICS_ACTIVE}" href="{U_FEED}?mode=topics_active" /><!-- ENDIF -->
	<!-- IF S_ENABLE_FEEDS_FORUM and S_FORUM_ID --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FORUM} - {FORUM_NAME}" href="{U_FEED}?f={S_FORUM_ID}" /><!-- ENDIF -->
	<!-- IF S_ENABLE_FEEDS_TOPIC and S_TOPIC_ID --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_TOPIC} - {TOPIC_TITLE}" href="{U_FEED}?f={S_FORUM_ID}&t={S_TOPIC_ID}" /><!-- ENDIF -->
<!-- ENDIF -->

<link rel="stylesheet" href="{T_STYLESHEET_LINK}" type="text/css" />

<script type="text/javascript">
// <![CDATA[
<!-- IF S_USER_PM_POPUP -->
	if ({S_NEW_PM})
	{
		popup('{UA_POPUP_PM}', 400, 225, '_phpbbprivmsg');
	}
<!-- ENDIF -->

function popup(url, width, height, name)
{
	if (!name)
	{
		name = '_popup';
	}

	window.open(url.replace(/&/g, '&'), name, 'height=' + height + ',resizable=yes,scrollbars=yes,width=' + width);
	return false;
}

function jumpto()
{
	var page = prompt('{LA_JUMP_PAGE}:', '{ON_PAGE}');
	var per_page = '{PER_PAGE}';
	var base_url = '{A_BASE_URL}';

	if (page !== null && !isNaN(page) && page == Math.floor(page) && page > 0)
	{
		if (base_url.indexOf('?') == -1)
		{
			document.location.href = base_url + '?start=' + ((page - 1) * per_page);
		}
		else
		{
			document.location.href = base_url.replace(/&/g, '&') + '&start=' + ((page - 1) * per_page);
		}
	}
}

/**
* Find a member
*/
function find_username(url)
{
	popup(url, 760, 570, '_usersearch');
	return false;
}

/**
* Mark/unmark checklist
* id = ID of parent container, name = name prefix, state = state [true/false]
*/
function marklist(id, name, state)
{
	var parent = document.getElementById(id);
	if (!parent)
	{
		eval('parent = document.' + id);
	}

	if (!parent)
	{
		return;
	}

	var rb = parent.getElementsByTagName('input');
	
	for (var r = 0; r < rb.length; r++)
	{
		if (rb[r].name.substr(0, name.length) == name)
		{
			rb[r].checked = state;
		}
	}
}

<!-- IF ._file -->

	/**
	* Play quicktime file by determining it's width/height
	* from the displayed rectangle area
	*
	* Only defined if there is a file block present.
	*/
	function play_qt_file(obj)
	{
		var rectangle = obj.GetRectangle();

		if (rectangle)
		{
			rectangle = rectangle.split(',')
			var x1 = parseInt(rectangle[0]);
			var x2 = parseInt(rectangle[2]);
			var y1 = parseInt(rectangle[1]);
			var y2 = parseInt(rectangle[3]);

			var width = (x1 < 0) ? (x1 * -1) + x2 : x2 - x1;
			var height = (y1 < 0) ? (y1 * -1) + y2 : y2 - y1;
		}
		else
		{
			var width = 200;
			var height = 0;
		}

		obj.width = width;
		obj.height = height + 16;

		obj.SetControllerVisible(true);

		obj.Play();
	}
<!-- ENDIF -->

// ]]>
</script>
</head>
<body class="{S_CONTENT_DIRECTION}">

<a name="top"></a>


<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td width="15" style="padding: 0;background: url('{T_THEME_PATH}/images/left_bkg.gif') repeat-y; width: 15px;"></td>
		<td style="padding: 0;">

<div id="wrapheader">

				

	<table cellpadding="0" cellspacing="0" width="100%" style="height: 100px;background: url({T_THEME_PATH}/images/top_bkg.gif) repeat-x;">
		<tr>
			<td><center>
				<table cellpadding="0" cellspacing="0">
					<tr>
						<td style="padding: 0;">
							<a href="{U_INDEX}"><img style="margin: -4px 40px -4px -4px;" src="{T_THEME_PATH}/images/site_logo.gif" alt="{SITENAME}" /></a>
						</td><td>
							<h1>{SITENAME}</h1><span class="gen">{SITE_DESCRIPTION}</span>
						</td>
					</tr>
				</table>
			</center></td>
		</tr>
	</table>
	
	<table id="menu_bkg" cellpadding="0" cellspacing="0" width="100%" style="height: 34px;background: url({T_THEME_PATH}/images/menu_bkg.gif) repeat-x;">
		<tr>
			<td style="padding: 0;">
				<center>
					<a href="{U_FAQ}">{L_FAQ}</a>
							
					<!-- IF U_RESTORE_PERMISSIONS --> &nbsp;-&nbsp;<a href="{U_RESTORE_PERMISSIONS}">{L_RESTORE_PERMISSIONS}</a><!-- ENDIF -->
				
					<!-- IF S_BOARD_DISABLED and S_USER_LOGGED_IN --> &nbsp;-&nbsp;<span style="color: red;">{L_BOARD_DISABLED}</span><!-- ENDIF -->
				
					<!-- IF not S_IS_BOT -->
						<!-- IF S_USER_LOGGED_IN -->
							<!-- IF S_DISPLAY_PM --> &nbsp;-&nbsp;<a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}<!-- IF PRIVATE_MESSAGE_INFO_UNREAD -->, {PRIVATE_MESSAGE_INFO_UNREAD}<!-- ENDIF --></a><!-- ENDIF -->
						<!-- ELSEIF S_REGISTER_ENABLED --> &nbsp;-&nbsp;<a href="{U_REGISTER}">{L_REGISTER}</a>
						<!-- ENDIF -->
					<!-- ENDIF -->
				
					<!-- IF S_DISPLAY_SEARCH --> &nbsp;-&nbsp;<a href="{U_SEARCH}">{L_SEARCH}</a><!-- ENDIF -->
					<!-- IF not S_IS_BOT -->
						<!-- IF S_DISPLAY_MEMBERLIST --> &nbsp;-&nbsp;<a href="{U_MEMBERLIST}">{L_MEMBERLIST}</a><!-- ENDIF -->
						<!-- IF S_USER_LOGGED_IN --> &nbsp;-&nbsp;<a href="{U_PROFILE}">{L_PROFILE}</a><!-- ENDIF -->
					<!-- ENDIF -->
				
					<!-- IF not S_IS_BOT -->&nbsp;-&nbsp;<a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a>&nbsp;<!-- ENDIF -->
				</center>
			</td>
		</tr>
	</table>
	
	
	<table cellpadding="0" cellspacing="0" width="100%" style="height: 30px;background: url({T_THEME_PATH}/images/below_menu_bkg.gif) repeat-x;">
		<tr>
			<td style="padding: 0;">
				&nbsp;
			</td>
		</tr>
	</table>

	<div id="datebar">
		<table width="100%" cellspacing="0">
		<tr>
			<td class="gensmall"><!-- IF S_USER_LOGGED_IN -->{LAST_VISIT_DATE}<!-- ENDIF --></td>
			<td class="gensmall" align="{S_CONTENT_FLOW_END}">{CURRENT_TIME}<br /></td>
		</tr>
		</table>
	</div>

</div>

<div id="wrapcentre">

	<!-- IF S_DISPLAY_SEARCH -->
	<p class="searchbar">
		<span style="float: {S_CONTENT_FLOW_BEGIN};"><a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a> | <a href="{U_SEARCH_ACTIVE_TOPICS}">{L_SEARCH_ACTIVE_TOPICS}</a></span>
		<!-- IF S_USER_LOGGED_IN -->
		<span style="float: {S_CONTENT_FLOW_END};"><!-- IF S_LOAD_UNREADS --><a 
href="{U_SEARCH_UNREAD}">{L_SEARCH_UNREAD}</a><!-- IF S_USER_LOGGED_IN --> | <!-- ENDIF --><!-- ENDIF -->  <!-- IF S_USER_LOGGED_IN --><span style="color: #FF0000;"><a href="{U_SEARCH_NEW}">{L_SEARCH_NEW} {NEW_POST_COUNT}</a></span> | <a 
href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a><!-- 
ENDIF --></span>
		<!-- ENDIF -->
	</p>
	<!-- ENDIF -->

	<br style="clear: both;" />

	<!-- INCLUDE breadcrumbs.html -->

	<br />

Re: Pregunta sobre botones en foro

Publicado: 14 Ago 2012, 00:20
por ThE KuKa
Prueba este archivo, antes haz una copia de seguridad del tuyo original.

Re: Pregunta sobre botones en foro

Publicado: 14 Ago 2012, 00:32
por maravilla
Nada kuka, se queda exactamente igual que como lo tenia.

Ni cambia el nombre ha mensajes nuevos desde su ultima visita, ni se pone de color rojo, ni sale el numero de los mensajes que estan sin leer.

Re: Pregunta sobre botones en foro

Publicado: 14 Ago 2012, 00:41
por ThE KuKa
  1. ¿Los cambios en includes/functions.php los hiciste correctamente?
  2. Necesito un usuario de Prueba para ver tu foro como usuario registrado
  3. Volvemos al punto 1... adjunta aquí con el BBCode el archivo functions.php

Re: Pregunta sobre botones en foro

Publicado: 14 Ago 2012, 00:50
por maravilla
kuka, acabo de revisar todo el tema y no he visto por ningun lado que me hayan dicho que debo realizar cambios en el includes, por lo tanto no nos lo he hecho, pero ahora me quedo con la mosca....Por que a mi parecer todo lo que se me ha dicho, ha sido para modiricar el header_overall.html

El usuario te lo dejo por privado mejor que lo uso yo tambien cuando quiero ver cosas, con ese usuario si te das cuenta a la derecha de los foros tengo dos imagenes enlazadas, una para cuando no hay mensajes nuevos y otra para cuando los hay, si te das cuenta en la mayoria de los foros ese usuario tiene mensajes por leer, lo que te quiero decir con esto, es que despues de cada cambio he entrado con ese usuario para verificar si se habia producido el cambio.

Inclusive pienso porque es como lo he visto en otros foros, que no es necesario que aya mensajes nuevos para que se vea el boton asi, la unica diferencia que habrá si hay o no hay mensajes nuevos es el numero que sale al la derecha del boton, si es a 0 es que no hay mensajes si tienes 10, pues tendras 10 mensajes para leer...

El codigo te lo coloco en otro mensaje que el foro no me deja porque tiene mas caracteres de los permitidos.