[ABD] - show user post count

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Locked
yakusha
Registered User
Posts: 71
Joined: Mon Apr 03, 2006 8:30 pm

[ABD] - show user post count

Post by yakusha »

MOD Title: show user post count
MOD Description: Your Post (Your Post Count).
MOD Version: Alpha: 0.1.0

MOD Download: files in topic

Code: Select all

##############################################################
## MOD Title: show user post count
## MOD Author: yakusha < n/a > (www.yakusha.net) http://www.phpbbturkiye.net
## MOD Description: this mod change post count information
## New Post => Your Post (Your Post Count)
## Users like this options.
##
## MOD Version: 0.1.0
##
## Installation Level: Easy
## Installation Time: 1 minutes
## Files To Edit: (1)
## includes/functions.php
## Included Files: n/a
## License: Open Source :)
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes:
## Angelside, I like you.
##
##############################################################
## MOD History:
##
## 2007-04-23 - Version 0.1.0
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------------
#

includes/functions.php

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

   // Which timezone?
   $tz = ($user->data['user_id'] != ANONYMOUS) ? strval(doubleval($user->data['user_timezone'])) : strval(doubleval($config['board_timezone']));

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

	if( $user->data['user_id'] != ANONYMOUS )
	{
	   $sql = "SELECT COUNT(post_id) as total
	         FROM " . POSTS_TABLE . "
	         WHERE poster_id = " . $user->data['user_id'];
	   $result = $db->sql_query($sql);
	   if( $result )
	   {
	      $row = $db->sql_fetchrow($result);
	      $user->lang['SEARCH_SELF'] = $user->lang['SEARCH_SELF'] . "&nbsp;(" . $row['total'] . ")";
	      
	   }
	}

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
developed on: http://www.phpbbturkiye.net/viewtopic.php?f=17&t=175
demo: http://www.yoldusleri.com
Last edited by yakusha on Wed May 23, 2007 11:37 pm, edited 2 times in total.
User avatar
3Di
Former Team Member
Posts: 16032
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: [alfa] - show user post count

Post by 3Di »

Hello,

We see that you've posted your MOD's contents in your topic starter. Please instead offer your MOD as a textfile download (uploading your MOD's install textfile to a server and giving a direct link, with no registration restrictions), rather than posting the MOD's contents in your post, as you have done.

Please edit your topic starter as outlined in MOD Development forum rules section 3.f.5. This will allow people to see what your MOD is about at a glance.

Thank you for your cooperation,
The phpBB MOD Team
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
Looking for a specific feature or alternative option? We will rock you! 🚀
Locked

Return to “[3.0.x] Abandoned MODs”