Página 2 de 2

Re: Agregar y aumentar posts al TOP FIVE MOD

Publicado: 10 Abr 2012, 21:16
por Rainwod
Damage ya terminé lo de las respuestas pero tengo un pequeño problema se siguen incluyendo los nuevo temas, trabajo en eso, no te procupes. Lo de la tienda ya está y estoy en progreso con lo de los puntos. :cerveza:

Re: Agregar y aumentar posts al TOP FIVE MOD

Publicado: 10 Abr 2012, 22:16
por Damage, INc
Gracias de nuevo.

Donde se siguen incluyendo los nuevos temas? en los comentarios?

Re: Agregar y aumentar posts al TOP FIVE MOD

Publicado: 11 Abr 2012, 12:37
por Rainwod
Damage, INc escribió:Gracias de nuevo.

Donde se siguen incluyendo los nuevos temas? en los comentarios?
Si men si, en los comentarios, estoy buscando una solución. Si quieres pide soporte y te paso el code con el que obtengo los comentarios.

PD: Te digo que pidas soporte tu porque yo no puedo, no tengo foro todavía.

Re: Agregar y aumentar posts al TOP FIVE MOD

Publicado: 11 Abr 2012, 14:51
por Damage, INc
No hay problema, pasame lo que pudiste hacer y estoy agradecido..
Saludos! :ok:

Re: Agregar y aumentar posts al TOP FIVE MOD

Publicado: 11 Abr 2012, 15:19
por Damage, INc
SOlucionado! Temporalmente funciona al menos con los users que seleccionaron un priimer objeto en la plataforma.

Lo que hice?

Hice los mismos cambios que decia el topic que me pasaste, solo que en el memberlist.php

Saludos y gracias por la ayuda...

Si llega a dar problemas aviso en este topic!

Re: Agregar y aumentar posts al TOP FIVE MOD

Publicado: 11 Abr 2012, 17:15
por Rainwod
Que es lo que has solucionado?????

Re: Agregar y aumentar posts al TOP FIVE MOD

Publicado: 11 Abr 2012, 22:08
por Damage, INc
Uh me confundi de topic.. ! :!:

Perdon gente. :nolose:

Re: Agregar y aumentar posts al TOP FIVE MOD

Publicado: 13 Abr 2012, 15:52
por Rainwod
Me disculpo por la demora es que tuve unos percances con la pc de mi trabajo y perdí todo lo logrado, pero ya lo he vuelto a hacer Damage aquí te va el code de los posts:

Código: Seleccionar todo

	//Start Last Posts by Rainwod
	$sql = 'SELECT p.post_id, p.forum_id, p.post_time, p.post_subject, u.username, u.user_id, u.user_colour
		FROM ' . POSTS_TABLE . ' p, ' . USERS_TABLE . ' u
		WHERE u.user_id = p.poster_id
		AND p.post_reported = 0
		AND p.post_approved = 1' ."		
		ORDER BY p.post_time DESC";
	$result = $db->sql_query_limit($sql, 10);

	while( ($row = $db->sql_fetchrow($result)) && ($row['post_subject']) )
	{
	$is_guest = $row['user_id'] != ANONYMOUS ? false : true;
	
		$template->assign_block_vars('posts', array(
			'TITLE'	 		=> censor_text($row['post_subject']),
			'AUTHOR'	=> $is_guest ? $user->lang['BY'] . ' ' . get_username_string('full', $row['user_id'], $row['username'], $row['user_colour']) : $user->lang['BY'] . ' ' . get_username_string('full', $row['user_id'], $row['username'], $row['user_colour']),
			'U_VIEW_TOPIC'	=> append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $row['forum_id'] .'&p=' . $row['post_id'].'#p'.$row['post_id']),
			'ICON'			=> $user->img('icon_post_target', $user->lang['VIEW_TOPIC']),
			));
	}
	$db->sql_freeresult($result);
	//END Last Posts by Rainwod
Abre el archivo includes/top_five.php y busca:

Código: Seleccionar todo

       		'TOPIC_TITLE' 	=> $user->lang['IN'] . ' ' . $topic_title));
    }

    $db->sql_freeresult($result);
después añade el code que te he dado. y para mostrarlo ve a /styles/prosilver/template/top_five_body.html y sustituye todo el código que hay ahí por este:

Código: Seleccionar todo

<div class="forabg">
	<div class="inner"><span class="corners-top"><span></span></span>
		<table class="table1" cellspacing="1" id="top_five">
		<thead>
		<tr>
			<th style="width: 50%;">{L_NEWEST_TOPICS}</th>
			<th style="width: 20%;">{L_TOP_FIVE_ACTIVE}</th>
			<th style="width: 30%;">{L_TOP_FIVE_NEWEST}</th>
		</tr>
		</thead>
		<tbody>
			<tr class="bg2">
					<td valign="top"><!-- BEGIN top_five_topic --><!-- IF top_five_topic.NO_TOPIC_TITLE-->{top_five_topic.NO_TOPIC_TITLE}<!-- ELSE --><a href="{top_five_topic.U_TOPIC}">{top_five_topic.TOPIC_TITLE}</a><br />&nbsp;&nbsp;{top_five_topic.USERNAME_FULL}&nbsp;&nbsp;{top_five_topic.LAST_TOPIC_TIME}<br /><!-- ENDIF --><!-- END top_five_topic --></td>
					<td valign="top"><!-- BEGIN posts -->{posts.ICON}&nbsp;<a href="{posts.U_VIEW_TOPIC}">{posts.TITLE}</a><br />&nbsp;&nbsp;{posts.AUTHOR}<br /><!-- END posts --></td>
					<td valign="top"><!-- BEGIN top_five_newest -->{top_five_newest.USERNAME_FULL}<br />&nbsp;&nbsp;{L_JOINED}: {top_five_newest.REG_DATE}<br /><!-- END top_five_newest --></td>
				</tr>
		</tbody>
		</table>

	<span class="corners-bottom"><span></span></span></div>
</div>
Lo de los puntos y la tienda casi está solo dame unas horas, espero que te sirva esto men. :cerveza:

Re: Agregar y aumentar posts al TOP FIVE MOD

Publicado: 13 Abr 2012, 16:56
por Damage, INc
Rainwood gracias por la ayuda, pero he pegado los codigos y no logra separar los nuevos temas, de los nuevos comentarios, es decir, se mezclan entre ambos.
Ya sé que has hecho lo mejor que has podido y te agradezco por esa ayuda. No se cual será el problema, lo probaste vos? y te anduvo bien?

Gracias de nuevo! :ok:

Re: Agregar y aumentar posts al TOP FIVE MOD

Publicado: 13 Abr 2012, 17:06
por Rainwod
Men el problema es que los nuevos topics también son nuevos posts. Ese es el problema

Re: Agregar y aumentar posts al TOP FIVE MOD

Publicado: 14 Abr 2012, 14:29
por Rainwod
Man ya está listo lo de los puntos acá te van las instrucciones:
Ve al archivo /styles/prosilver/template/top_five_body.html y busca:

Código: Seleccionar todo

			<th style="width: 50%;">{L_NEWEST_TOPICS}</th>
			<th style="width: 20%;">{L_TOP_FIVE_ACTIVE}</th>
			<th style="width: 30%;">{L_TOP_FIVE_NEWEST}</th>
reemplazalo por(Este cambio es para acomodar el espacio de las columnas y agregar la de los puntos):

Código: Seleccionar todo

			<th style="width: 40%;">{L_NEWEST_TOPICS}</th>
			<th style="width: 10%;">{L_TOP_FIVE_ACTIVE}</th>
			<th style="width: 25%;">{L_TOP_FIVE_NEWEST}</th>
			<th style="width: 25%;">{L_POINTS_MOST_RICH_CASH_USERS}</th>
luego busca:

Código: Seleccionar todo

					<td valign="top"><!-- BEGIN top_five_newest -->{top_five_newest.USERNAME_FULL}<br /> {L_JOINED}: {top_five_newest.REG_DATE}<br /><!-- END top_five_newest --></td>
y debajo pon este code:

Código: Seleccionar todo

				    <td valign="top"><p><!-- BEGIN rich_user --><!-- IF not rich_user.S_FIRST_ROW --> &bull; <!-- ENDIF -->{rich_user.USERNAME} ({rich_user.SUM_POINTS} {rich_user.SUM_POINTS_NAME})<!-- END rich_user --></td>
Espero que te sirva men, ahhh recuerda marcar como solucionado el tema de la tienda en el que te ayudé.