Ver Mensaje Individual
  #2 (permalink)  
Antiguo 13/07/2006, 05:04
Avatar de Azrael666
Azrael666
 
Fecha de Ingreso: noviembre-2004
Mensajes: 652
Antigüedad: 19 años, 5 meses
Puntos: 1
hala.. continuo:


2) este codigo muestra la media de mensajes por dia (pero claro, es la media total, no el numero de mensajes al dia):

Código:
############################################################## 
## MOD Title: Posts Per Day Average on Topic 
## MOD Author: FuNEnD3R < [email protected] > http://www.funender.com 
## MOD Description: This will display the total posts per day average underneath the user's avatar 
## MOD Version: 1.0.3 
## 
## Translation: ThE KuKa - http://www.phpbb-es.com
## Installation Level: Easy 
## Installation Time: 5 Minutes 
## Files To Edit: viewtopic.php, viewtopic_body.tpl 
## Included Files: N/A 
############################################################## 
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the 
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code 
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered 
## in our MOD-Database, located at: http://www.phpbb.com/mods/ 
############################################################## 
## Author Notes: You can visit the forums of www.funender.com for a demonstration
## 
############################################################## 
## MOD History: 
##
##   2004-11-30 - 1.0.1 
##      - First Release
## 
##   2004-12-22 - 1.0.2 
##      - Slightly modified install file for easier installation
##  
##   2005-03-23 - 1.0.1 
##      - Compatiable with phpBB 2.0.13
##
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
############################################################## 

# 
#-----[ OPEN ]------------------------------------------ 
# 

language/lang_spanish/lang_main.php 

# 
#-----[ FIND ]------------------------------------------ 
# Busqueda parcial, esta linea acaba con punto y coma ;

$lang['A_critical_error']

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 

$lang['Post_per_day'] = 'Mensajes por Día: '; 

# 
#-----[ OPEN ]------------------------------------------ 
# 

viewtopic.php 

# 
#-----[ FIND ]------------------------------------------ 
# 

	$poster_joined = ( $postrow[$i]['user_id'] != ANONYMOUS ) ? $lang['Joined'] . ': ' . create_date($lang['DATE_FORMAT'], $postrow[$i]['user_regdate'], $board_config['board_timezone']) : '';

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 

   $ppd_regdate = $postrow[$i]['user_regdate']; 
   $ppd_memberdays = max(1, round( ( time() - $ppd_regdate ) / 86400 )); 
   $posts_per_day = $lang['Post_per_day'] . round(($postrow[$i]['user_posts'] / $ppd_memberdays), 2) ;

# 
#-----[ FIND ]------------------------------------------ 
# 

      'RANK_IMAGE' => $rank_image, 
      'POSTER_JOINED' => $poster_joined, 

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 

'POST_DAY_STATS' => $posts_per_day, 

# 
#-----[ OPEN ]------------------------------------------ 
# 

templates/subSilver/viewtopic_body.tpl
 
# 
#-----[ FIND ]------------------------------------------ 
# 

<td width="150" align="left" valign="top" class="{postrow.ROW_CLASS}"><span class="name"><a name="{postrow.U_POST_ID}"></a><b>{postrow.POSTER_NAME}</b></span><br /><span class="postdetails">{postrow.POSTER_RANK}<br />{postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}<br /><br />{postrow.POSTER_JOINED}<br />{postrow.POSTER_POSTS}<br />{postrow.POSTER_FROM}</span><br /></td> 

# 
#-----[ IN-LINE FIND ]------------------------------------------ 
# 

{postrow.POSTER_POSTS} 

# 
#-----[ IN-LINE AFTER, ADD ]------------------------------------------ 
# 

<br />{postrow.POST_DAY_STATS}

# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 
# EoM
que igual tampoco es muy dificil de modificar, pero tampoco me ha dado por mirarlo a fondo (mas que nada porque estoy en el curro jeje)

Pues nada.. yo tenia la idea de juntar esos dos MODs en uno, haciendoles las respectivas modificaciones de limitar solo temas y no foros completos y el mostrar los mensajes por dia en lugar de la media total por dia,

que igual puede ser mas facil: si sacando el numero de mensajes del usuario ese dia con una consulta en el codigo ya se lo puedo pasar directamente al primer MOD pues no necesitaria usar el segundo..

y nada.. es para ver si alguien esta interesado en el proyectito, que ofrezca su colaboracion aportando ideas de como puedo hacerlo (o que intente hacerlo si tiene tiempo y nos vaya poniendo resultados por aqui jajaja)
__________________
ALOZORRO v5.0 (ahora en .es)