
Berichten verwijderen zonder dat postcount omlaag gaat
Forumregels
Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.

Berichten verwijderen zonder dat postcount omlaag gaat
Hoe kun je berichten verwijderen zonder dat de postcount omlaag gaat? Er zijn namelijk wat topics op m'n forum die veel posts bevatten. Als ik ze zou wissen gaan gebruikers er met 100 posts op achteruit en dat zullen ze vast niet leuk vinden 

Zal moeilijk worden inderdaad..
Je zal dus flinke SQL stuut ervoor moeten zijn..
Of je eigen post systeempje erin brengen die je dan alvast op die waardes zet..
Je zal dus flinke SQL stuut ervoor moeten zijn..
Of je eigen post systeempje erin brengen die je dan alvast op die waardes zet..
[+] Isento at DeviantArt
http://www.breezeland.com gratis aleen ... x klikken per maand
Als je nu gewoon eens de pruning inschakeld? Dan worden de post-counts volgens mij niet gewijzigd... Kan da?
Cheers, w0lfie
» w0lfie.be
» Access - The Party Concept!
» w0lfie.be
» Access - The Party Concept!
Mja... 't Is 't een of 't ander heSuperNova schreef:maar ja dan worden bepaalde berichten die je wilt bewaren ook gehukt

Uhm, ma geldt dat ook voor sticky posts? Of Mededelingen?
Cheers, w0lfie
» w0lfie.be
» Access - The Party Concept!
» w0lfie.be
» Access - The Party Concept!
ik heb zon hack gevonden die ervoor zorgt dat de postcounts niet omlaag gaat..maar ik weet niet hoe ik het moet laten werken..
ik begrijp alleen niet wat ik hier moet invulle..

<?php
/*
Correct Users' Post Counts
by omega13a (omega13a@sonicunited.com)
if you have any problem with this mod, please email me at omega13a@sonicunited.com or post a message at http://forums.sonicunited.com/viewforum.php?f=6
Instructions:
Edit the varibles below, upload this script, and run it.
*/
//Edit these varibles to your host
$host = "localhost";
$user = "sonicuni_sonic"; //the mySQL user
$password = "grozit"; //the mySQL user's password
$dbname = "sonicuni_forums"; //the name of your mySQL database
$posttable = "phpbb_posts"; //the table where your post info is stored...
$usertable = "phpbb_users"; //the table where all your users' info is stored...
//Do not edit anything below unless you know what you are doing...
$link = mysql_connect ($host, $user, $password); //Connect to the database...
$query = "SELECT DISTINCT poster_id, COUNT(poster_id) AS posts FROM " . $posttable . " GROUP BY poster_id";//Find out how many posts each user has made...
$result = mysql_db_query($dbname,$query,$link);
while ( $row = mysql_fetch_array($result)) {
$query2 = "UPDATE ".$usertable." SET user_posts = ".$row[posts]." where user_id =".$row[poster_id];//Update their profile
if (mysql_db_query($dbname,$query2,$link)) {
print("<font color='blue'>The user with the ID of ".$row[poster_id]." was updated.</font><br />\n");
} else {
print("<font color='red'>The user with the ID of ".$row[poster_id]." was not updated.</font><br />\n");
}
}
mysql_close($link);//and we're done...
?>
ik begrijp alleen niet wat ik hier moet invulle..

$posttable = "phpbb_posts"; //the table where your post info is stored...
$usertable = "phpbb_users"; //the table where all your users' info is stored...
ohw dus je moet niks veranderen aanmichaa113 schreef:staat zo goed.Of je moet een andere prefix hebben (bijv. forum_)
$posttable = "phpbb_posts"; //the table where your post info is stored...
$usertable = "phpbb_users"; //the table where all your users' info is stored...
hmm okee..ff kijke of het lukt..
