Unofficial modifications
nieoficjalne modyfikacje for?w phpBB by Przemo

Modyfikacje mniejsze - Total Posts

rzymek01 - Nie 07 Maj, 2006
Temat postu: Total Posts
Kod

INSTRUKCJA

##########################################################
## MOD Title: Total Posts
## MOD Author: rzymek01 < rzymek01@gmail.com > http://rzymek.9g.pl
## MOD Description: Mod dodaje nowy znacznik bbcode,
## mianowicie [posts]. Zamiast niego pojawi
## si? liczba napisanych pos?w.
##
## MOD Version: 1.0
##
## Installation Level: Very Easy
## Installation Time: ~2 Minute
##
## Files To Edit:
##
## includes/bbcode.php
##
##
##########################################################


#
## Aby doda? [posts] do postu
#

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

includes/bbcode.php

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

$username = ( $username == "Anonymous" ) ? $lang['Guest'] : $username;

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

$total_posts = get_db_stat('postcount');

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

$text = str_replace("[you:$uid]", $username, $text);

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

$text = str_replace("[posts:$uid]", $total_posts, $text);

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

$text = str_replace("
", "[you:$uid]", $text);

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

$text = str_replace("[posts]", "[posts:$uid]", $text);

#
#-----[ SAVE/CLOSE ALL FILES ]---------------------------
#



#
## Aby doda? [posts] do shoutbox'a
#

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


shoutbox_view.php


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

$msg_count = $row['total'];


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

$total_posts = get_db_stat('postcount');


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

$msg = str_replace("
", $username, $msg);


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

$msg = str_replace("[posts]", $total_posts, $msg);

#
#-----[ SAVE/CLOSE ALL FILES ]---------------------------
#


Powered by phpBB modified by Przemo © 2003 phpBB Group