Play Legend of the Green Dragon Play BNT Play Promisance Play Alien Assault Traders Play Quantum Star Play Some Chess  
   D3jsp RPGRPG   ArcadeArcade   Multiplayer PokerD3Jsp Poker   FAQ/RulesFAQ/Rules  SearchSearch  MemberlistMemberlist   UsergroupsUsergroups   ChatroomLive Chat   Log inLog in   RegisterRegister 

[Release] Prevent total forum post count decrease

 
Post new topic  This topic is locked: you cannot edit posts or make replies.  d3jsp Forum Index -> General Chat
View previous topic :: View next topic ::  


Author Message
tramway


Group: Admin
Joined: 24 Jan 2007
Donor:
Posts: 4548
Gold: 2191.53
Clan: D3JSP


ca.gif

Status:
Warn:
Reputation: 187    


<b><font color=Red>Admin</font></b>

Post#1 Posted: 25 Jul 2007 05:36 pm    Post subject: [Release] Prevent total forum post count decrease Reply with quote

Code:
##############################################################
## MOD Title: Prevent total forum post count decrease when deleting post
## MOD Author: tramway < admin@d3jsp.org > http://www.d3jsp.org (go to phpbb subforum)
##
## MOD Description: The total forum post counts and posts counts for each individual forum wont decrease anymore after
##                  a post is deleted by a moderator or admin.
##
## MOD Version: 1.0.0
## MOD Requirements: PHPBB Version 2.0.22;
##
## Installation Level: Easy
## Installation Time: ~ 5 minutes.
##
## Files To Edit:
##             
##   includes/functions_post.php
##
##             
##############################################################
## For Security Purposes, Please Check: http://www.d3jsp.org/ or http://www.phpbb.com 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, D3JSP will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.d3jsp.org or http://www.phpbb.com
##############################################################
## MOD History:
##
##   2007-07-25 - Version 1.0.0
##      - First Public Release
##     
##############################################################
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
############################################################## #
#-----[ OPEN ]------------------------------------------------
#
/includes/functions_post.php
#
#-----[ FIND ]------------------------------------------------
#
$sign = ($mode == 'delete') ? '- 1' : '+ 1';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$sign1 = ($mode == 'delete') ? '- 0' : '+ 1';
#
#-----[ FIND ]------------------------------------------------
#
$forum_update_sql = "forum_posts = forum_posts $sign";
#
#-----[ REPLACE WITH ]------------------------------------------
#
$forum_update_sql = "forum_posts = forum_posts $sign1"
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM


Downloadable file here
http://www.d3jsp.org/downloaddev.php?id=0

_____________________

If your gold is locked, please PM a senior moderator. They will be able to unlock you
Back to top
View user's profile Send private message Send e-mail Visit poster's website


Display posts from previous:   
1 Members: Guest
Post new topic  This topic is locked: you cannot edit posts or make replies.  d3jsp Forum Index -> General Chat All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum



D3jsp is proudly powered by phpBB © 2.0
Theme and Forum by tramway