[BETA] Post Control / Approval MOD

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
User avatar
nims
Registered User
Posts: 310
Joined: Sun Aug 13, 2006 12:29 pm
Contact:

Re: [BETA] Post Control / Approval MOD

Post by nims » Sat Jul 21, 2007 7:56 am

I can understand your situation ;) anyway thanks for that link.
Outsource content writing - Freelance Content Writers
*** Everything related to kids - Kids ***
SEO- search engine optimisation melbourne

User avatar
crackerboy
Registered User
Posts: 255
Joined: Sun Jul 15, 2007 5:49 pm

Re: [BETA] Post Control / Approval MOD

Post by crackerboy » Tue Jul 24, 2007 8:49 pm

Will this mod work with subforums?
Where i want a approval for posting is in a sub/subforum and i cant much about PHP but have a friend that can adapt it to work with subforums if thats a problem

sbourdon
Registered User
Posts: 174
Joined: Sat Nov 13, 2004 6:29 pm

Re: [BETA] Post Control / Approval MOD

Post by sbourdon » Wed Jul 25, 2007 1:07 am

crackerboy wrote:Will this mod work with subforums?
(...) have a friend that can adapt it to work with subforums if thats a problem


You'll have to talk to your friend then, because it won't be compatible with subforums by default. But that's something that can be easily fixed! ;)

MrJacky
Registered User
Posts: 17
Joined: Tue Jun 05, 2007 10:43 pm

Re: [BETA] Post Control / Approval MOD

Post by MrJacky » Wed Sep 05, 2007 3:58 pm

I find that this MOD suit my forum a lot and I went ahead to download it.

Because I hate installations by hand, so I went ahead to install this with EasyMOD.

Of course, it was not compliant with it, but, since I am gonna use it too, I edited the installation file. Every code can now be processed by EasyMOD, but I am not sure if it is EasyMOD-compliant or not.

There's one "FIND AND REPLACE" which I cannot get EasyMOD to process for several times. But, it can be done by hand. It was added in the installation file as "DIY INSTRUCTION". And if you managed to get it processed, do share it with everyone here.

Other code not included are the French and Spanish language packs code changes, and extra MOD changes (extra code changes for the Topic Preview MOD, etc.).

The author can feel free to include this in the Post Control MOD if he wants.

This was tested with a standard phpBB installation with no other MODs installed.

For anyone interested to use this, it's very simple. Just open up Notepad, WordPad or any word editors you like, copy this whole thing, and paste it inside. If you do not want to override the original installation file, then just save it as another filename.

Remember to place the file inside the Post Control MOD folder for EasyMOD to process.

Code: Select all

############################################################## 
## (ENGLISH TRANSLATION BELOW)
##
## MOD Title: Post Control (EasyMOD-compliant Modified)
## MOD Author: Ani' < vlad@swords-rpg.net > (Fred) http://www.swords-rpg.net
## MOD Description: 
##		Ce mod permet d'empecher que le texte d'un post soit affiché si il n'a 
##		pas été validé par un modérateur ou un administrateur (ou si il a été invalidé
##		par l'un d'eux). 
##		En attendant la validation, seul l'auteur du post, et bien sur les admin/modos
##		pourront le lire.
##
## MOD Compatibility: testé sur phpBB 2.0.17 - 2.0.21
##
## MOD Version: 0.2.6 
##
## EasyMOD compliant: NO
## 
## Installation Level: intermédiaire 
## Installation Time: 40 Minutes 
## Files To Edit: 21
##		- modcp.php
##		- posting.php
##		- search.php
##		- viewforum.php
##		- viewtopic.php
##		- admin/admin_board.php
##		- admin/admin_forums.php
##		- includes/functions_post.php
##		- includes/page_header.php
##		- includes/topic_review.php
##		- languages/lang_french/lang_main.php
##		- languages/lang_english/lang_main.php
##		- languages/lang_spanish/lang_main.php
##		- templates/subSilver/overall_header.tpl
##		- templates/subSilver/posting_body.tpl
##		- templates/subSilver/subSilver.cfg
##		- templates/subSilver/subSilver.css
##		- templates/subSilver/viewtopic_body.tpl
##		- templates/subSilver/admin/board_config_body.tpl
##		- templates/subSilver/admin/forum_admin_body.tpl
##		- templates/subSilver/admin/forum_edit_body.tpl
##
## Included Files: 12
##		- pc_list.php
##		- functions_post_control.php
##		- pc_list_body.tpl
##		- valid.gif (french/english/spanish)
##		- invalid.gif (french/english/spanish)
##		- icon_valid.gif
##		- watch.gif
##		- unwatch.gif
##
############################################################## 
## Pour des raisons de sécurité, vous êtes prier de consulter régulièrement http://www.phpbb-fr.com 
## ou http://www.phpbb.com afin d'obtenir la dernière version de ce MOD.
## Télécharger ce MOD à partir des sites autres que phpBB peut être dangereux pour votre 
## forum phpBB. 
############################################################## 
## License: 
##		Distribué sous la licence publique générale GNU
############################################################## 
## Author Notes: 
##
##		/!\ BETA VERSION /!\
##		Bien que fonctionnel, ce MOD est toujours en développement, et doit être utilisé avec prudence !
##		
##		MISE A JOUR DEPUIS UNE VERSION 0.1.x
##		Etant donné les nombreuses modifications entre les versions 0.1.x et 0.2.x, il est impossible d'effectuer
##		une mise à jour. Il faudra désinstaller l'ancienne version avant d'installer la nouvelle.
##		/!\ ne pas oublier d'effacer includes/functions_valid.php !
##
##		Un grand merci à Phpbbnewbi et Leparachute pour les images qui accompagnent ce mod
##
##		SUPPORT 
##		le support de ce MOD s'effectuera uniquement sur les forums de http://www.phpbb-fr.com et http://www.phpbb.com
##
############################################################## 
## INFORMATIONS D'UTILISATION
##
##		ACTIVATION / DÉSACTIVATION DU CONTRÔLE
##		- Dans la page d'édition/création des forums, dans le panneau d'administration, il est
##		  possible de choisir si un forum sera controlé par défaut ou non.
##			- Tout nouveau sujet créé dans un forum controlé devra être validé par un modé-
##			  rateur/administrateur, de même que ses réponses.
##			- Un modérateur/administrateur peut, lorsqu'il crée un sujet dans un forum con-
##			  trolé, décidé de ne pas soumettre les réponses au controle.
##			- Les nouveaux sujets et leurs réponses dans un forum non-controlé seront "libres".
##		- L'administrateur/modérateur peut à tout moment décider d'activer/désactiver le con-
##		  trôle des posts dans un topic donné, que celui-ci soit ou non dans un forum contrôlé.
##		- Dans la Configuration de l'ACP, il est possible de spécifier si TOUS les messages doivent
##		  être contrôlés ou si seulement ceux des invités (Utilisateurs anonymes) doivent l'être.
##		- Également dans l'ACP, vous pouvez décider de contrôler ou non les messages édités.
##		- /!\ En activant le contrôle dans un forum, seuls les nouveaux sujets seront contrôlés. Les
##		  sujets déjà existants resteront libres par défaut (il reste cependant possible d'activer 
##		  le contrôle au cas par cas dans les topics :))
##
##		CONTROLE DES MESSAGES
##		- L'administrateur/modérateur peut valider/invalider un message en cliquant sur le bou-
##		  ton correspondant dans le coin du message (un modérateur ne peut pas invalider le mes- 
##		  sage d'un administrateur).
##		- Les messages posté par un administrateur/modérateur ne sont pas soumis au contrôle
##		- L'administrateur/modérateur peut valider tous les messages en attente dans un sujet 
##		  via un bouton placé en bas de la page du topic, ou une case à cocher lorsqu'il poste un 
##		  message.
##		
##		MESSAGES EN ATTENTE
##		- Dans la page viewforum (liste des topics), le titre des messages non-validés ne sera pas 
##		  affiché, excepté aux administrateurs/modérateurs, et à l'auteur du sujet (excepté si le
##		  message a été posté par un invité).
##		-Dans la page viewtopic (page d'affichage des messages), le titre et le texte des messages,
##		  non-validés ainsi que l'avatar et la signature de leur auteur, ne seront pas affichés excepté
##		  aux administrateurs/modérateurs, et à l'auteur du sujet (excepté si le message a été posté 
##		  par un invité).
##		- Il est impossible de citer un message non validé.
##		- Les messages non-validés n'apparaitront ni dans la zone de revue du sujet, ni dans les 
##		  résultats d'une recherche.
##		- Un lien présent dans l'header (menu de haut de page du forum) permet aux modérateur/
##		  administrateurs d'accéder à une liste des messages à valider. Ce lien n'apparait pas aux
##		  "simples membres", ni aux invités.
##		- La liste des messages en attente n'affichera que les messages pouvant être validés par
##		  la personne qui la regarde (un admin verra la liste de tous les messages, mais un modérateur
##		  ne verra que les messages non-validés postés dans les forums dont il est responsable.
##
############################################################## 
## ENGLISH TRANSLATION
##
##		1. CHOSE FORUMS/TOPICS WHERE POSTS MUST BE VALIDATED/APPROVED 
##		- You can mark forums for validation in the Administration Control panel (in forum management). By default, when posting in these forums posts have to be approved by a moderator or administrator before they are made public. (Already existing topics in these forums can still be posted in as normal, but can be marked for validation one by one.) 
##		- When moderators and administrators create new topics within non-marked forums, they can chose if replies have to be approved or not. 
##		- Administrators and moderators can activate/deactivate validation within any topic at any time - in both marked and non-marked forums. 
##		- In the Administration Control panel (in Configuration), it is possible to specidy if Post Control applies to regular users in addition to the Anonymous users.
##		- Also in the Configuration section of the Administration Control panel, you may decide if Post Control applies to edited posts as well.
##
##		2. POSTS AWAITING VALIDATION ARE HIDDEN UNTIL APPROVED 
##		- On the viewforum page (where topics are listed ), titles of posts awaiting validation are hidden to everyone except: administrators, moderators and the author of the topic. 
##		- On the viewtopic page (where you read the posts), titles, messages, avatars and signatures of posts awaiting validation are hidden, except to administrators, moderators and the author of the topic. 
##		- Posts awaiting validation will not appear in topic reviews or within search results. 
##		- Posts made by administrators and moderators are always posted as normal and are never hidden. 
##
##		3. APPROVE OR DISSAPROVE POSTS AWAITING VALIDATION 
##		- To approve or disapprove single posts awaiting validation, moderators and administrators simply click an icon within the post (a moderator cannot disapprove a post made by an administrator). 
##		- Posts awaiting validation within a topic can all be approved or disapproved at once by simply clicking the icon at the bottom of the topic's page (or by using a check box when posting a message). 
##
##		MISC 
##		- A post awaiting validation cannot be quoted. 
##		- A link in the menu at the top gives moderators and administrators access to a list of posts currently awaiting validation. 
##		- This list will only show posts that can be validated by the person looking at it. In other words, administrators can see all messages, but a moderator can only see messages in forums where he/she is a moderator.
##
############################################################## 
## BOGUES CONNUS
##
##		- aucun
##
## À FAIRE
##
##		- Ajouter: "Activer le contrôle des messages dans ce sujet" dans le fichier posting.php pour les forums non-contrôlés
##		- Opérations de masse dans modcp.php et pc_list.php
##
############################################################## 
## MOD History 
##
##  24-07-2006 - Version 0.2.6 (par sbourdon)
##		- Corrections dans le fichier d'installation
##		- Compatible avec le MOD "ezParticle"
##		- La fonction permettant de contrôler les posts édités est désormais accessible via l'ACP
##		- La fonction permettant de ne contrôler que les posts des invités est désormais accessible via l'ACP (brett (aka: minorgod) - brettbrewer.com)
##		- Traduction du MOD en espagnol (Kartmawey)
##
##  10-03-2006 - Version 0.2.5 (par sbourdon)
##		- Fix: "Activer / Désactiver le contrôle des messages dans ce sujet" (icône de la loupe) dans les forums non-contrôlés est désormais fonctionnel
##		- Fix: Le nombre de résultats de recherches tient désormais compte des posts non-validés
##		- Compatible avec le MOD "RSS Syndication"
##
##  24-02-2006 - Version 0.2.4 (par sbourdon)
##		- Fixes
##		- Ajout d'une fonction permettant de ne contrôler que les posts des invités
##		- Corrections dans le fichier d'installation
##		- Uniformisation du template avec le thème subSilver
##		- Traduction du MOD en anglais
##		- Compatible avec les MODs "Topic Preview" et "Printable Page"
##		- Désormais distribué sous la licence publique générale GNU, avec l'accord d'Ani' < vlad@swords-rpg.net > (Fred) http://www.swords-rpg.net
##
##  26-02-2005 - Version 0.2.3
##		- Fix: il est impossible de citer un message non validé (jusqu'à présent c'était possible 
##		  en entrant directement le lien /posting.php?mode=quote&p=X)
##
##  26-02-2005 - Version 0.2.2
##		- Fix: un modérateur ne peut plus invalider le post d'un administrateur
##		- Ajout d'une liste des messages non-validés (cette liste est basée sur les permissions de 
##		  modération. Un lien d'accès est placé dans l'header du forum (lien visible uniquement par les
##		  modos/admins))
##
##  25-02-2005 - Version 0.2.1
##		- Fix
##		- Ajout des informations du MOD (activé ou non) dans la liste des forums (panneau d'admin)
##
##  24-02-2005 - Version 0.2.0
##		- Code entièrement révisé
##		- Fixes (dont le bug qui empechait les modérateurs de valider/invalider un message)
##		- Ajout de la possibilité d'invalider un post ou un topic dans un forum "libre"
##		- Ajout d'une classe CSS pour l'affichage des textes du MOD
##		- Le MOD est renommé "Post Control" (il s'appellait auparavant "Post Validation")
##
##  17-07-2004 - Version 0.1.8
##		- Fixes
##		- Ajout de boutons de modération au bas de 
##		  viewtopic permettant d'activer/désactiver 
##		  le contrôle des posts dans le topic
##		- Blocage du titre des sujets non-validés
##		  dans l'en-tete du viewtopic et dans la
##		  barre de titre du navigateur
##
##  11-07-2004 - Version 0.1.7
##		- Les posts non-validés ne sont plus affichés
##		  à la recherche
##		 
##  30-06-2004 - Version 0.1.6
##		- Fixes
##		- Ajouts de fonctions dans "functions_post_control"
##		- Correction - et simplification - du fichier 
##		  d'installation
##		- Impossibilité pour un invité de voir les posts
##		  d'autres invités
## 
##  29-06-2004 - Version 0.1.5  
##		- Fixes
##		- Ajouts de fonctions dans "functions_post_control"
##
##  28-06-2004 - Version 0.1.4  
##		- Fixes
##		- Possibilité d'invalider des messages.
##		- Ajout des images Valider/Invalider et du
##		  fichier functions_post_control.php
##		- Remplacement du titre des messages non-validés 
##		  (viewtopic, revue du sujet, viewforum et modcp)
##		- Effacement de l'avatar et de la signature pour les 
##		  messages non-validés
##		  
##  26-06-2004 - Version 0.1.3  
##		- L'option de validation de tous les messages
##		  d'un sujet (dans la page "posting") ne sera affichée 
##		  que si il y a des messages en attente.
##		- Possibilité pour les modos/admin de définir des
##		  topics libres à l'intérieur d'un forum bloqué.
##		- Impossible de citer un message non validé (le bouton
##		  n'apparaitra plus)
##		- Ajout d'un bouton permettant de valider tous les 
##		  messages d'un sujet, à coté des boutons "verrouiller",
##		  "déplacer", etc. (il ne s'affichera que si des 
##		  messages sont en attente)
##
##  25-06-2004 - Version 0.1.2  
##		- Ajout des clefs de langue.
##		- Les messages non-validés ne sont plus visibles. 
##		  dans la zone de "revue du sujet".
##
##  25-06-2004 - Version 0.1.1  
##		- Fix.
##		- Ajout d'une option de validation de masse.
##
##  24-06-2004 - Version 0.1.0  
##		- première diffusion.
##
############################################################## 
## Avant d'ajouter ce MOD à votre forum, il vous est fortement conseillé d'effectuer une sauvegarde 
## des éléments que vous allez modifier. 
############################################################## 
# 
#-----[ DIY INSTRUCTIONS ]------------------------------------------
#
  As this installation file is made to be EasyMOD-compliant, the following instructions
were removed from the original installation because EasyMOD has failed to process this code
several times.

  If you are installing by hand, just include this as well. 
  If you are installing by EasyMOD, you will need to modify this code by hand, 
unless you managed to get this processed by EasyMOD. Open up this Install.txt to see the 
code better.

------[ OPEN ]----------------------------------------
	search.php

------[ FIND ]----------------------------------------
							$sql = "SELECT m.post_id 
								FROM " . SEARCH_WORD_TABLE . " w, " . SEARCH_MATCH_TABLE . " m 
								WHERE w.word_text LIKE '$match_word' 
									AND m.word_id = w.word_id 
									AND w.word_common <> 1 
									$search_msg_only";
									
------[ REPLACE WITH ]---------------------------------
							$sql = "SELECT m.post_id 
								FROM " . SEARCH_WORD_TABLE . " w, " . SEARCH_MATCH_TABLE . " m, " . POSTS_TABLE . " p 
								WHERE p.post_id = m.post_id 
									AND p.validate = 0 
									AND w.word_text LIKE '$match_word' 
									AND m.word_id = w.word_id 
									AND w.word_common <> 1 
									$search_msg_only";

-------------------------------------------------------
  The following code has been removed from the original installation because they are not
required in a standard English phpBB installation. If you have French and Spanish language
packs installed, do include the following code changes.

-----[ OPEN ]----------------------------- 
   language/lang_french/lang_main.php

-----[ FIND ]---------------------------- (Post Control) 
//
// That's all Folks!
// -------------------------------------------------

-----[ BEFORE, ADD ]--------------------- (Post Control)
// Post Control MOD by Ani
$lang['valid_title'] = 'Post Control';
$lang['valid_not_auth'] = 'Vous n\'êtes pas autorisé à effectuer cette action !';
$lang['valid_already'] = 'Ce message est déjà validé !';
$lang['invalid_already'] = 'Ce message est déjà invalidé !';
$lang['valid_success'] = 'Ce message a été validé.';
$lang['invalid_success'] = 'Ce message a été invalidé.';
$lang['valid_waiting'] = 'Ce message est en attente de validation';
$lang['valid_action'] = 'Valider ce message';
$lang['invalid_action'] = 'Invalider ce message';
$lang['valid_all_failure'] = 'Cependant, la validation automatique des messages a échouée !<br />';
$lang['valid_all_success'] = 'De plus, tous les messages de ce sujet ont été validés.<br />';
$lang['valid_needed'] = '<br />Cependant, l\'option de Validation des messages a été activée; ainsi, votre message doit être approuvé par le webmestre ou un modérateur avant d\'être affiché.<br />';
$lang['valid_all_action'] = 'Valider tous les messages en attente dans ce sujet';
$lang['valid_free'] = 'Désactiver le contrôle des messages dans ce sujet';
$lang['valid_all_modcp_failure'] = 'Echec de la validation des messages de ce sujet.';
$lang['valid_all_modcp_success'] = 'Tous les messages de ce sujet ont été validés.';
$lang['invalid'] = 'Non-validé';
$lang['valid_twaiting'] = 'Sujet en attente de validation';
$lang['valid_forum'] = 'Activer le contrôle des messages dans ce forum';
$lang['watch'] = 'Activer le contrôle des messages dans ce sujet';
$lang['unwatch'] = 'Désactiver le contrôle des messages dans ce sujet';
$lang['watch_on'] = 'Le contrôle des messages a été activé dans ce sujet';
$lang['watch_off'] = 'Le contrôle des messages a été désactivé dans ce sujet';
$lang['controled'] = 'Contrôlé';
$lang['non-controled'] = 'Non-Contrôlé';
$lang['invalid_not_auth'] = 'Un modérateur ne peut pas invalider le message d\'un administrateur.';
$lang['waitings'] = ' Message(s) en attente de validation';
$lang['no_waitings'] = 'Aucun message n\'attend d\'être validé dans le(s) forum(s) dont vous êtes modérateur.';
$lang['list_title'] = 'Liste des messages non-validés';
$lang['go_to_post'] = 'Message';
$lang['list_access_not_auth'] = 'Vous n\'êtes pas autorisé à accéder à cette page.';
$lang['quote_no_valid'] = 'Vous ne pouvez pas citer un message non-validé.';
$lang['post_control_users'] = 'À l\'intérieur des Forums contrôlés, Post Control s\'exécute sur les messages des membres en plus de ceux des utilisateurs anonymes';
$lang['post_control_edited'] = 'Lorsqu\'activé, Post Control doit contrôler les messages édités';

-----[ OPEN ]-----------------------------
   language/lang_spanish/lang_main.php

-----[ FIND ]---------------------------- (Post Control)
//
// That's all, Folks!
// -------------------------------------------------

-----[ BEFORE, ADD ]--------------------- (Post Control)
// Post Control MOD by Ani
$lang['valid_title'] = 'Post Control';
$lang['valid_not_auth'] = 'No está autorizado a realizar esta acción!';
$lang['valid_already'] = 'Este mensaje ya ha sido validado!';
$lang['invalid_already'] = 'Este mensaje ya ha sido invalidado!';
$lang['valid_success'] = 'El mensaje ha sido validado.';
$lang['invalid_success'] = 'El mensaje ha sido invalidado.';
$lang['valid_waiting'] = 'Este mensaje está pendiente de validación';
$lang['valid_action'] = 'Validar este mensaje';
$lang['invalid_action'] = 'Invalidar este mensaje';
$lang['valid_all_failure'] = 'La Validación Automática de mensajes ha fallado!<br />';
$lang['valid_all_success'] = 'Además, todos los mensajes dentro de este tema han sido aprobados.<br />';
$lang['valid_needed'] = '<br />La Validación de Posts ha sido activada; por tanto, su mensaje tiene que ser aprobado por el administrador o por un moderador antes de aparecer online.<br />';
$lang['valid_all_action'] = 'Validar todos los mensajes pendientes de validación en este tema';
$lang['valid_free'] = 'Desactivar Post Control en este tema';
$lang['valid_all_modcp_failure'] = 'Error - no se pudieron aprobar todos los mensajes pendientes de validación en este tema.';
$lang['valid_all_modcp_success'] = 'Todos los mensajes pendientes de validación en este tema han sido aprobados.';
$lang['invalid'] = 'No validado';
$lang['valid_twaiting'] = 'Este tema está pendiente de validación';
$lang['valid_forum'] = 'Activar Post Control en este foro';
$lang['watch'] = 'Activar Post Control en este tema';
$lang['unwatch'] = 'Desactivar Post Control en este tema';
$lang['watch_on'] = 'Post Control está ahora activado en este tema';
$lang['watch_off'] = 'Post Control está ahora desactivado en este tema';
$lang['controled'] = 'Validación activada';
$lang['non-controled'] = 'Validación no activada';
$lang['invalid_not_auth'] = 'Un moderador no puede invalidar mensajes de un administrador.';
$lang['waitings'] = ' Mensaje(s) esperando validación';
$lang['no_waitings'] = 'No hay mensajes pendientes de validación en los foros que modera.';
$lang['list_title'] = 'Listado de mensaje(s) no validados';
$lang['go_to_post'] = 'Mensaje';
$lang['list_access_not_auth'] = 'No está autorizado a acceder a esta página.';
$lang['quote_no_valid'] = 'Un mensaje pendiente de validación no puede ser citado.';
$lang['post_control_users'] = '¿Aplicar el MOD POST CONTROL a los usuarios regulares además de a los usuarios ANÓNIMOS?';
$lang['post_control_edited'] = 'Cuando esté activado, ¿Post Control se aplica a los mensajes editados?';

-------------------------------------------------------
  The following code has been removed from the original installation because they are not 
required in a standard installation, rather they are only needed if you have the specified 
MOD installed. They are not included because this file has been made compliant for standard
phpBB installations.

-----[ OPEN ]-----------------------------
   viewforum.php

-----[ FIND ]---------------------------- (Post Control: correctif pour Topic Preview)
NOTE: optionnel, ne faites ceci que si vous avez installé le MOD "Topic Preview" / optional, do this only if you have the "Topic Preview" MOD installed
      $summary = htmlspecialchars(strip_tags($summary)); 

      // <--------- topic preview mod end 

-----[ AFTER, ADD ]--------------------- (Post Control: correctif pour Topic Preview)
NOTE: optionnel, ne faites ceci que si vous avez installé le MOD "Topic Preview" / optional, do this only if you have the "Topic Preview" MOD installed
	// Post Control MOD by Ani START
	if (validation_msg($topic_rowset[$i]['topic_first_post_id']) != 0 )
	{
	$summary =  ( $userdata['user_id'] != ANONYMOUS && ($userdata['user_id'] == $topic_rowset[$i]['topic_poster'] || $is_auth['auth_mod'])) ? $summary : $lang['valid_twaiting'];
	}
	// Post Control MOD by Ani END

-----[ OPEN ]----------------------------- 
   printview.php

-----[ FIND ]---------------------------- (Post Control: correctif pour Printable Page)
NOTE: optionnel, ne faites ceci que si vous avez installé le MOD "Printable Page" / optional, do this only if you have the "Printable Page" MOD installed
//
// gzip_compression
//

-----[ BEFORE, ADD ]--------------------- (Post Control: correctif pour Printable Page)
NOTE: optionnel, ne faites ceci que si vous avez installé le MOD "Printable Page" / optional, do this only if you have the "Printable Page" MOD installed
include_once($phpbb_root_path . 'includes/functions_post_control.'.$phpEx);

-----[ FIND ]---------------------------- (Post Control: correctif pour Printable Page)
NOTE: la ligne complète est plus longue / complete line is longer
NOTE: optionnel, ne faites ceci que si vous avez installé le MOD "Printable Page" / optional, do this only if you have the "Printable Page" MOD installed
$sql = "SELECT t.topic_id, t.topic_title

-----[ IN-LINE FIND ]------------- (Post Control: correctif pour Printable Page)
NOTE: optionnel, ne faites ceci que si vous avez installé le MOD "Printable Page" / optional, do this only if you have the "Printable Page" MOD installed
$sql = "SELECT

-----[ IN-LINE AFTER, ADD ]------ (Post Control: correctif pour Printable Page)
NOTE: optionnel, ne faites ceci que si vous avez installé le MOD "Printable Page" / optional, do this only if you have the "Printable Page" MOD installed
 t.topic_first_post_id, t.topic_poster, 

-----[ FIND ]---------------------------- (Post Control: correctif pour Printable Page)
NOTE: optionnel, ne faites ceci que si vous avez installé le MOD "Printable Page" / optional, do this only if you have the "Printable Page" MOD installed
$topic_title = $forum_row['topic_title'];

-----[ AFTER, ADD ]--------------------- (Post Control: correctif pour Printable Page)
NOTE: optionnel, ne faites ceci que si vous avez installé le MOD "Printable Page" / optional, do this only if you have the "Printable Page" MOD installed
// Post Control MOD by Ani START
if (validation_msg($forum_row['topic_first_post_id']) != 0 )
{
	$topic_title = ( $userdata['user_id'] != ANONYMOUS && ($userdata['user_id'] == $forum_row['topic_poster'] || $is_auth['auth_mod'])) ? $topic_title . ' (' . $lang['invalid'] . ')' : $lang['valid_twaiting'];
}
// Post Control MOD by Ani END

$topic_first_post_id = intval($forum_row['topic_first_post_id']);

-----[ FIND ]---------------------------- (Post Control: correctif pour Printable Page)
NOTE: optionnel, ne faites ceci que si vous avez installé le MOD "Printable Page" / optional, do this only if you have the "Printable Page" MOD installed
	$bbcode_uid = $postrow[$i]['bbcode_uid'];

-----[ AFTER, ADD ]--------------------- (Post Control: correctif pour Printable Page)
NOTE: optionnel, ne faites ceci que si vous avez installé le MOD "Printable Page" / optional, do this only if you have the "Printable Page" MOD installed
	//
	// Post Control MOD by Ani START
	//
	$qpost_id = $postrow[$i]['post_id'];

	// vérifie si le post est validé ou non
	$val = validation_msg($qpost_id);
	if ($val)
	{
		// affichage d'un post non validé pour l'auteur et les modos
		if ( $userdata['user_id'] != ANONYMOUS && ( $userdata['user_id'] == $postrow[$i]['poster_id'] || $is_auth['auth_mod']))
		{
			$post_subject .= ' (<span style="color: red"><span style="font-weight: bold">' . $lang['invalid'] . '</span></span>)';
			$message .= '<br /><br /><div align="center"><span style="color: red"><span style="font-weight: bold">' . $lang['valid_waiting'] . '</span></span></div>';
		}
		else
		{
			// affichage pour un "simple utilisateur"
			$pctitle = ($qpost_id == $forum_row['topic_first_post_id']) ? $lang['valid_twaiting'] : $lang['valid_waiting'];
			$post_subject = '<span style="color: red"><span style="font-weight: bold">' . $pctitle . '</span></span>';
			$message = '<div align="center"><span style="color: red"><span style="font-weight: bold">' . $lang['valid_waiting'] . '</span></span></div>';
		}
	}
	//
	// Post Control MOD by Ani END
	//
 
-----[ OPEN ]----------------------------- 
   rss.php
   
-----[ FIND ]----------------------------------------- (Post Control: correctif pour RSS Syndication MOD)
NOTE: optionnel, ne faites ceci que si vous avez installé le MOD "RSS Syndication" / optional, do this only if you have the "RSS Syndication" MOD installed
                WHERE t.topic_status != 1
                AND p.post_id = t.topic_last_post_id
                AND pt.post_id = p.post_id
                AND u.user_id = p.poster_id

-----[ AFTER, ADD ]------------------------------------ (Post Control: correctif pour RSS Syndication MOD)
NOTE: optionnel, ne faites ceci que si vous avez installé le MOD "RSS Syndication" / optional, do this only if you have the "RSS Syndication" MOD installed
                AND p.validate = 0			

-----[ FIND ]----------------------------------------- (Post Control: correctif pour RSS Syndication MOD)
NOTE: optionnel, ne faites ceci que si vous avez installé le MOD "RSS Syndication" / optional, do this only if you have the "RSS Syndication" MOD installed
                WHERE p.topic_id = ".intval($topic)."
                AND pt.post_id = p.post_id
                AND t.topic_id = p.topic_id
                AND u.user_id = p.poster_id

-----[ AFTER, ADD ]------------------------------------ (Post Control: correctif pour RSS Syndication MOD)
NOTE: optionnel, ne faites ceci que si vous avez installé le MOD "RSS Syndication" / optional, do this only if you have the "RSS Syndication" MOD installed
                AND p.validate = 0			

-----[ FIND ]----------------------------------------- (Post Control: correctif pour RSS Syndication MOD)
NOTE: optionnel, ne faites ceci que si vous avez installé le MOD "RSS Syndication" / optional, do this only if you have the "RSS Syndication" MOD installed
                WHERE t.forum_id = ".intval($forum)."
                AND t.topic_status != 1
                AND p.post_id = t.topic_last_post_id
                AND pt.post_id = p.post_id
                AND u.user_id = p.poster_id

-----[ AFTER, ADD ]------------------------------------ (Post Control: correctif pour RSS Syndication MOD)
NOTE: optionnel, ne faites ceci que si vous avez installé le MOD "RSS Syndication" / optional, do this only if you have the "RSS Syndication" MOD installed
                AND p.validate = 0

-----[ OPEN ]------------------------------------------  
   fetcharticles.php

-----[ FIND ]-------------------------------------------- (Post Control: Correctif pour ezParticle)
NOTE: optionnel, ne faites ceci que si vous avez installé le MOD "ezParticle" / optional, do this only if you have the "ezParticle" MOD installed
			  t.topic_status <> 2';

-----[ REPLACE WITH ]------------------------------------- (Post Control: Correctif pour ezParticle)
NOTE: optionnel, ne faites ceci que si vous avez installé le MOD "ezParticle" / optional, do this only if you have the "ezParticle" MOD installed
			  t.topic_status <> 2 AND
			  p.validate = 0';
   
-----[ FIND ]-------------------------------------------- (Post Control: Correctif pour ezParticle)
NOTE: optionnel, ne faites ceci que si vous avez installé le MOD "ezParticle" / optional, do this only if you have the "ezParticle" MOD installed
			  t.topic_status <> 2

-----[ REPLACE WITH ]------------------------------------- (Post Control: Correctif pour ezParticle)
NOTE: optionnel, ne faites ceci que si vous avez installé le MOD "ezParticle" / optional, do this only if you have the "ezParticle" MOD installed
			  t.topic_status <> 2 AND
			  p.validate = 0   

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

#
#-----[ SQL ]------------------------------------------ (Post Control)
#
# pour activer Post Control sur TOUS les forums (actuels et futurs) par défaut, changez le '0' en '1' dans la ligne suivante (uniquement dans la première !!)
# to activate Post Control on ALL forums (present and future), change '0' to '1' in the next line (only in the first line !!)
#
ALTER TABLE phpbb_forums ADD val_request TINYINT( 1 ) DEFAULT '0' NOT NULL ;
ALTER TABLE phpbb_posts ADD validate TINYINT( 1 ) DEFAULT '0' NOT NULL ;
ALTER TABLE phpbb_topics ADD val_request TINYINT( 1 ) DEFAULT '0' NOT NULL ;
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('post_control_users', '1');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('post_control_edited', '0');

# 
#-----[ COPY ]------------------------------------------ (Post Control)
#
copy ROOT/pc_list.php to pc_list.php
copy ROOT/includes/functions_post_control.php to /includes/functions_post_control.php
copy ROOT/templates/subSilver/pc_list_body.tpl to /templates/subSilver/pc_list_body.tpl
copy ROOT/templates/subSilver/images/icon_valid.gif to /templates/subSilver/images/icon_valid.gif
copy ROOT/templates/subSilver/images/lang_english/valid.gif to /templates/subSilver/images/lang_english/valid.gif
copy ROOT/templates/subSilver/images/lang_english/invalid.gif to /templates/subSilver/images/lang_english/invalid.gif
copy ROOT/templates/subSilver/images/lang_french/valid.gif to /templates/subSilver/images/lang_french/valid.gif
copy ROOT/templates/subSilver/images/lang_french/invalid.gif to /templates/subSilver/images/lang_french/invalid.gif
copy ROOT/templates/subSilver/images/lang_spanish/valid.gif to /templates/subSilver/images/lang_spanish/valid.gif
copy ROOT/templates/subSilver/images/lang_spanish/invalid.gif to /templates/subSilver/images/lang_spanish/invalid.gif
copy ROOT/templates/subSilver/images/watch.gif to /templates/subSilver/images/watch.gif
copy ROOT/templates/subSilver/images/unwatch.gif to /templates/subSilver/images/unwatch.gif

# 
#-----[ OPEN ]------------------------------------------ 
#
   modcp.php

# 
#-----[ FIND ]------------------------------------------ (Post Control)
#
include($phpbb_root_path . 'includes/functions_admin.'.$phpEx);

# 
#-----[ AFTER, ADD ]------------------------------------------ (Post Control)
#
include_once($phpbb_root_path . 'includes/functions_post_control.'.$phpEx);

# 
#-----[ FIND ]------------------------------------------ (Post Control)
#
//
// Do major work ...
//
switch( $mode )
{

# 
#-----[ AFTER, ADD ]------------------------------------------ (Post Control)
#
	// Post Control MOD by Ani START
	case 'valid_all':
		valid_all_mod($topic_id);
		break;
	case 'valid_free_on':
		valid_free_on($topic_id);
		break;
	case 'valid_free_off':
		valid_free_off($topic_id);
		break;
	// Post Control MOD by Ani END

# 
#-----[ FIND ]------------------------------------------ (Post Control)
#
			$topic_title = $row['topic_title'];
			if ( count($orig_word) )
			{
				$topic_title = preg_replace($orig_word, $replacement_word, $topic_title);
			}

# 
#-----[ AFTER, ADD ]--------------------- (Post Control)
# 
			// Post Control MOD by Ani START
			if (validation_msg($row['topic_first_post_id']) != 0 )
			{
				$topic_title = $topic_title . ' (<span class="post_control" />' . $lang['invalid'] . '</span>)';
			}
			// Post Control MOD by Ani END

# 
#-----[ OPEN ]-----------------------------
# 
   posting.php

# 
#-----[ FIND ]---------------------------- (Post Control)
# 
include($phpbb_root_path . 'includes/functions_post.'.$phpEx);

# 
#-----[ AFTER, ADD ]--------------------- (Post Control)
# 
include_once($phpbb_root_path . 'includes/functions_post_control.'.$phpEx);

# 
#-----[ FIND ]---------------------------- (Post Control)
# 
//
// What auth type do we need to check?
//
$is_auth = array();
switch( $mode )
{

# 
#-----[ AFTER, ADD ]--------------------- (Post Control)
# 
	// Post Control MOD by Ani START
	case 'validate':
		valid_post($post_id, $userdata);
		break;
	case 'invalidate':
		invalid_post($post_id, $userdata);
		break;
	// Post Control MOD by Ani END

# 
#-----[ FIND ]---------------------------- (Post Control)
# 
// --------------------
//  What shall we do?
//

# 
#-----[ BEFORE, ADD ]--------------------- (Post Control)
# 
// Post Control MOD by Ani START
if ($submit || $refresh)
{
	$valid_free = ( forum_request_val($forum_id) == 1 ) ? ( !empty($HTTP_POST_VARS['valid_free']) ) ? 0 : 1 : 0;

	if ($is_auth['auth_mod'])
	{
		$valid_all = ( !empty($HTTP_POST_VARS['valid_all']) ) ? TRUE : 0;
	}
}
// Post Control MOD by Ani END

# 
#-----[ FIND ]---------------------------- (Post Control)
# la ligne complète est plus longue / complete line is longer
				submit_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id, $poll_id, $topic_type, $bbcode_on, $html_on, $smilies_on, $attach_sig

# 
#-----[ IN-LINE FIND ]------------- (Post Control)
# 
, $smilies_on, $attach_sig

# 
#-----[ IN-LINE AFTER, ADD ]------ (Post Control)
# 
, $valid_all, $valid_free

# 
#-----[ FIND ]------------------------------------------ (Post Control)
#
		if ( $mode == 'quote' )
		{

# 
#-----[ AFTER, ADD ]------------------------------------------ (Post Control)
#
			// Post Control MOD by Ani
			if (validation_msg($post_id) == 1)
			{
				message_die(GENERAL_MESSAGE, $lang['quote_no_valid']);
			}

# 
#-----[ FIND ]---------------------------- (Post Control)
# 
//
// Topic type selection
//
$topic_type_toggle = '';

# 
#-----[ BEFORE, ADD ]--------------------- (Post Control)
# 
// Post Control Mod by Ani START
// affichage de l'option de validation de tous les messages en attente du topic
if (($is_auth['auth_mod'] && ( $mode == 'editpost' || $mode == 'reply' )) && ( post_waiting($topic_id) == 1 ))
{
	$template->assign_block_vars('switch_valid_all_checkbox', array());
}

// affichage de l'option permettant de déclarer un topic libre dans un forum à validation obligatoire
if (($is_auth['auth_mod'] && ($mode == 'newtopic' || ( $mode == 'editpost' && $post_data['first_post']))) && ( forum_request_val($forum_id) == 1 ) )
{
	$template->assign_block_vars('switch_valid_free_checkbox', array());
}
// Post Control Mod by Ani END

# 
#-----[ FIND ]---------------------------- (Post Control)
# 
	'L_DELETE_POST' => $lang['Delete_post'],

# 
#-----[ AFTER, ADD ]--------------------- (Post Control)
# 
	'L_VALID_ALL' => $lang['valid_all_action'],
	'L_VALID_FREE' => $lang['valid_free'],

# 
#-----[ OPEN ]-----------------------------
# 
   search.php

# 
#-----[ FIND ]---------------------------- (Post Control)
# 
						WHERE post_time >= " . $userdata['user_lastvisit'];

# 
#-----[ REPLACE WITH ]--------------------- (Post Control)
# 
						WHERE post_time >= " . $userdata['user_lastvisit'] . "
						AND validate=0";

# 
#-----[ FIND ]---------------------------- (Post Control)
# 
						WHERE poster_id = " . $userdata['user_id'];

# 
#-----[ REPLACE WITH ]--------------------- (Post Control)
# 
						WHERE poster_id = " . $userdata['user_id'] . "
						AND validate=0";

# 
#-----[ FIND ]---------------------------- (Post Control)
# 
					WHERE poster_id IN ($matching_userids)";

# 
#-----[ REPLACE WITH ]--------------------- (Post Control)
# 
					WHERE poster_id IN ($matching_userids)" . "
					AND validate=0";

# 
#-----[ FIND ]---------------------------- (Post Control)
# 
			if ( $auth_sql != '' )
			{
				$sql = "SELECT t.topic_id, f.forum_id
					FROM " . TOPICS_TABLE . "  t, " . FORUMS_TABLE . " f
					WHERE t.topic_replies = 0 
						AND t.forum_id = f.forum_id
						AND t.topic_moved_id = 0
						AND $auth_sql";
			}
			else
			{
				$sql = "SELECT topic_id 
					FROM " . TOPICS_TABLE . "  
					WHERE topic_replies = 0 
						AND topic_moved_id = 0";
			}

# 
#-----[ REPLACE WITH ]--------------------- (Post Control)
# 
			if ( $auth_sql != '' )
			{
				$sql = "SELECT t.topic_id, f.forum_id
					FROM " . TOPICS_TABLE . "  t, " . FORUMS_TABLE . " f, " . POSTS_TABLE . " p
					WHERE t.topic_replies = 0 
						AND t.forum_id = f.forum_id
						AND t.topic_moved_id = 0
						AND t.topic_id = p.topic_id
						AND p.validate = 0
						AND $auth_sql";
			}
			else
			{
				$sql = "SELECT t.topic_id 
					FROM " . TOPICS_TABLE . " t, " . POSTS_TABLE . " p  
					WHERE t.topic_id = p.topic_id
						AND t.topic_replies = 0
						AND p.validate = 0 
						AND t.topic_moved_id = 0";
			}

# 
#-----[ OPEN ]-----------------------------
# 
   viewforum.php

# 
#-----[ FIND ]---------------------------- (Post Control)
# 
		$topic_title = ( count($orig_word) ) ? preg_replace($orig_word, $replacement_word, $topic_rowset[$i]['topic_title']) : $topic_rowset[$i]['topic_title'];

# 
#-----[ AFTER, ADD ]--------------------- (Post Control)
# 
		// Post Control MOD by Ani START
		include_once($phpbb_root_path . 'includes/functions_post_control.'.$phpEx);
		if (validation_msg($topic_rowset[$i]['topic_first_post_id']) != 0 )
		{
			$topic_title =  ( $userdata['user_id'] != ANONYMOUS && ($userdata['user_id'] == $topic_rowset[$i]['topic_poster'] || $is_auth['auth_mod'])) ? $topic_title . ' (<span class="post_control" />' . $lang['invalid'] . '</span>)' : '<span class="post_control" />' . $lang['valid_twaiting'] . '</span>';
		}
		// Post Control MOD by Ani END

# 
#-----[ OPEN ]-----------------------------
# 
   viewtopic.php

# 
#-----[ FIND ]---------------------------- (Post Control)
# 
//
// Start initial var setup
//

# 
#-----[ BEFORE, ADD ]--------------------- (Post Control)
# 
include_once($phpbb_root_path . 'includes/functions_post_control.'.$phpEx);

# 
#-----[ FIND ]---------------------------- (Post Control)
# la ligne complète est plus longue / complete line is longer
$sql = "SELECT t.topic_id, t.topic_title

# 
#-----[ IN-LINE FIND ]------------- (Post Control)
# 
$sql = "SELECT

# 
#-----[ IN-LINE AFTER, ADD ]------ (Post Control)
#
 t.topic_first_post_id, t.topic_poster, 

# 
#-----[ FIND ]---------------------------- (Post Control)
# 
$topic_id = intval($forum_topic_data['topic_id']);
$topic_time = $forum_topic_data['topic_time'];

# 
#-----[ AFTER, ADD ]--------------------- (Post Control)
# 
// Post Control MOD by Ani START
if (validation_msg($forum_topic_data['topic_first_post_id']) != 0 )
{
	$topic_title = ( $userdata['user_id'] != ANONYMOUS && ($userdata['user_id'] == $forum_topic_data['topic_poster'] || $is_auth['auth_mod'])) ? $topic_title . ' (' . $lang['invalid'] . ')' : $lang['valid_twaiting'];
}
// Post Control MOD by Ani END

# 
#-----[ FIND ]---------------------------- (Post Control)
# 
	$topic_mod .= "<a href=\"modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=split&sid=" . $userdata['session_id'] . '"><img src="' . $images['topic_mod_split'] . '" alt="' . $lang['Split_topic'] . '" title="' . $lang['Split_topic'] . '" border="0" /></a>&nbsp;';

# 
#-----[ AFTER, ADD ]--------------------- (Post Control)
# 
	// Post Control by Ani Start
	$topic_mod .= ( topic_request_val($topic_id) == 1 ) ? "<a href=\"modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=valid_free_on&sid=" . $userdata['session_id'] . '"><img src="' . $images['icon_unwatch'] . '" alt="' . $lang['unwatch'] . '" title="' . $lang['unwatch'] . '" border="0" /></a>&nbsp;' : "<a href=\"modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=valid_free_off&sid=" . $userdata['session_id'] . '"><img src="' . $images['icon_watch'] . '" alt="' . $lang['watch'] . '" title="' . $lang['watch'] . '" border="0" /></a>&nbsp;';
	if ( post_waiting($topic_id) == 1 )
	{
		$topic_mod .= "<a href=\"modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=valid_all&sid=" . $userdata['session_id'] . '"><img src="' . $images['icon_valid'] . '" alt="' . $lang['valid_all_action'] . '" title="' . $lang['valid_all_action'] . '" border="0" /></a>&nbsp;';
	}
	// Post Control by Ani End

# 
#-----[ FIND ]---------------------------- (Post Control)
# 
	$user_sig_bbcode_uid = $postrow[$i]['user_sig_bbcode_uid'];

# 
#-----[ AFTER, ADD ]--------------------- (Post Control)
# 
	//
	// Post Control MOD by Ani START
	//
	$qpost_id = $postrow[$i]['post_id'];
	$valid_img = '';
	$valid = '';

	// vérifie si le post est validé ou non
	$val = validation_msg($qpost_id);
	if ($val)
	{
		// affichage d'un post non validé pour l'auteur et les modos
		if ( $userdata['user_id'] != ANONYMOUS && ( $userdata['user_id'] == $postrow[$i]['poster_id'] || $is_auth['auth_mod']))
		{
			$post_subject .= ' (<span class="post_control">' . $lang['invalid'] . '</span>)';
			$message .= '<br /><br /><div align="center"><span class="post_control">' . $lang['valid_waiting'] . '</span></div>';
			if ( $is_auth['auth_mod'] )
			{
				// affichage du bouton de validation
				$temp_url = "posting.$phpEx?mode=validate&" . POST_POST_URL . "=" . $qpost_id . "&sid=" . $userdata['session_id'];
				$valid_img = '<a href="' . $temp_url . '"><img src="' . $images['valid'] . '" title="' . $lang['valid_action'] . '" border="0" /></a>&nbsp;';
				$valid = '<a href="' . $temp_url . '">' . $lang['valid_action'] . '</a>';
			}
		}
		else
		{
			// affichage pour un "simple utilisateur"
			$pctitle = ($qpost_id == $forum_topic_data['topic_first_post_id']) ? $lang['valid_twaiting'] : $lang['valid_waiting'];
			$post_subject = '<span class="post_control">' . $pctitle . '</span>';
			$message = '<div align="center"><span class="post_control">' . $lang['valid_waiting'] . '</span></div>';
			$user_sig = '';
			$poster_avatar = '';
			$quote_img = '';
			$quote = '';
		}
	}
	else if ( $is_auth['auth_mod'] )
	{
		// affichage du bouton d'invalidation
		$temp_url = "posting.$phpEx?mode=invalidate&" . POST_POST_URL . "=" . $qpost_id . "&sid=" . $userdata['session_id'];
		$valid_img = '<a href="' . $temp_url . '"><img src="' . $images['invalid'] . '" title="' . $lang['invalid_action'] . '" border="0" /></a>&nbsp;';
		$valid = '<a href="' . $temp_url . '">' . $lang['invalid_action'] . '</a>';
	}
	//
	// Post Control MOD by Ani END
	//

# 
#-----[ FIND ]---------------------------- (Post Control)
# 
		'QUOTE_IMG' => $quote_img,
		'QUOTE' => $quote,

# 
#-----[ AFTER, ADD ]--------------------- (Post Control)
# 
		'VALID_IMG' => $valid_img,

# 
#-----[ OPEN ]-----------------------------
# 
   admin/admin_forums.php

# 
#-----[ FIND ]---------------------------- (Post Control)
# 
			$statuslist = "<option value=\"" . FORUM_UNLOCKED . "\" $forumunlocked>" . $lang['Status_unlocked'] . "</option>\n";
			$statuslist .= "<option value=\"" . FORUM_LOCKED . "\" $forumlocked>" . $lang['Status_locked'] . "</option>\n"; 

# 
#-----[ AFTER, ADD ]--------------------- (Post Control)
# 
			// Post Control MOD by Ani Start
			$vastatus = ( $row['val_request'] == 1 ) ? $valyes = 'selected="selected"' : $valno = 'selected="selected"';
			$val_list = '<option value="' . TRUE . '" ' . $valyes . '>' . $lang['Yes'] . '</option>';
			$val_list .= '<option value="' . FALSE . '" ' . $valno . '>' . $lang['No'] . '</option>';
			// Post Control MOD by Ani End

# 
#-----[ FIND ]---------------------------- (Post Control)
# 
				'S_STATUS_LIST' => $statuslist,

# 
#-----[ AFTER, ADD ]--------------------- (Post Control)
# 
				'S_FORUM_VAL_LIST' => $val_list,
				'L_FORUM_VAL' => $lang['valid_forum'],

# 
#-----[ FIND ]---------------------------- (Post Control)
# la ligne complète est plus longue / complete line is longer
			$sql = "INSERT INTO " . FORUMS_TABLE . " (forum_id, forum_name, cat_id, forum_desc, forum_order, forum_status, prune_enable

# 
#-----[ IN-LINE FIND ]------------- (Post Control)
# 
, forum_status, prune_enable

# 
#-----[ IN-LINE AFTER, ADD ]------ (Post Control)
# 
, val_request

# 
#-----[ FIND ]---------------------------- (Post Control)
# juste en dessous, la ligne complète est plus longue / just below, complete line is longer
				VALUES ('" . $next_id . "', '" . str_replace("\'", "''", $HTTP_POST_VARS['forumname']) . "', " . intval($HTTP_POST_VARS[POST_CAT_URL]) . ", '" . str_replace("\'", "''", $HTTP_POST_VARS['forumdesc']) . "', $next_order, " . intval($HTTP_POST_VARS['forumstatus']) . ", " . intval($HTTP_POST_VARS['prune_enable'])

# 
#-----[ IN-LINE FIND ]------------- (Post Control)
# 
, " . intval($HTTP_POST_VARS['prune_enable'])

# 
#-----[ IN-LINE AFTER, ADD ]--------------------- (Post Control)
# 
 . ", " . intval($HTTP_POST_VARS['forum_val'])

# 
#-----[ FIND ]---------------------------- (Post Control)
# la ligne complète est plus longue / complete line is longer
			$sql = "UPDATE " . FORUMS_TABLE . "
				SET forum_name = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumname']) . "', cat_id = " . intval($HTTP_POST_VARS[POST_CAT_URL]) . ", forum_desc = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumdesc']) . "', forum_status = " . intval($HTTP_POST_VARS['forumstatus']) . ", prune_enable = " . intval($HTTP_POST_VARS['prune_enable']) . "

# 
#-----[ IN-LINE FIND ]------------- (Post Control)
# 
, prune_enable = " . intval($HTTP_POST_VARS['prune_enable']) . "

# 
#-----[ IN-LINE AFTER, ADD ]------ (Post Control)
# 
, val_request = " . intval($HTTP_POST_VARS['forum_val']) . "


# 
#-----[ FIND ]------------------------------------------ (Post Control)
#
					'NUM_POSTS' => $forum_rows[$j]['forum_posts'],

# 
#-----[ AFTER, ADD ]------------------------------------------ (Post Control)
#
					'POST_CONTROL' => ( $forum_rows[$j]['val_request'] == 1 ) ? $lang['controled'] : $lang['non-controled'],

# 
#-----[ OPEN ]-----------------------------
# 
   admin/admin_board.php
   
# 
#-----[ FIND ]---------------------------- (Post Control)
# 
$smtp_no = ( !$new['smtp_delivery'] ) ? "checked=\"checked\"" : "";

# 
#-----[ AFTER, ADD ]------------------------------------------ (Post Control)
#
//POST CONTROL MOD START
$post_control_users_yes = ( $new['post_control_users'] ) ? "checked=\"checked\"" : "";
$post_control_users_no = ( !$new['post_control_users'] ) ? "checked=\"checked\"" : "";
$post_control_edited_yes = ( $new['post_control_edited'] ) ? "checked=\"checked\"" : "";
$post_control_edited_no = ( !$new['post_control_edited'] ) ? "checked=\"checked\"" : "";
//POST CONTROL MOD END

# 
#-----[ FIND ]---------------------------- (Post Control)
# 
	"L_ALLOW_NAME_CHANGE" => $lang['Allow_name_change'],

# 
#-----[ AFTER, ADD ]------------------------------------------ (Post Control)
#
	//POST CONTROL MOD START
	"L_POST_CONTROL_USERS" => $lang['post_control_users'],
	"L_POST_CONTROL_EDITED" => $lang['post_control_edited'],
	//POST CONTROL MOD END

# 
#-----[ FIND ]---------------------------- (Post Control)
# 
	"COPPA_FAX" => $new['coppa_fax'])

# 
#-----[ REPLACE WITH ]------------------------------------------ (Post Control)
#
	"COPPA_FAX" => $new['coppa_fax'],
	//POST CONTROL MOD START
	"POST_CONTROL_USERS_YES" => $post_control_users_yes,
	"POST_CONTROL_USERS_NO" => $post_control_users_no,
	"POST_CONTROL_EDITED_YES" => $post_control_edited_yes,
	"POST_CONTROL_EDITED_NO" => $post_control_edited_no)
	//POST CONTROL MOD END   
					
# 
#-----[ OPEN ]-----------------------------
# 
   includes/functions_post.php

# 
#-----[ FIND ]---------------------------- (Post Control)
# la ligne complète est plus longue / complete line is longer
function submit_post($mode, &$post_data, &$message, &$meta, &$forum_id, &$topic_id, &$post_id, &$poll_id, &$topic_type, &$bbcode_on, &$html_on, &$smilies_on, &$attach_sig

# 
#-----[ IN-LINE FIND ]------------- (Post Control)
# 
, &$attach_sig

# 
#-----[ IN-LINE AFTER, ADD ]------ (Post Control)
#
, &$valid_all, &$valid_free

# 
#-----[ FIND ]---------------------------- (Post Control)
# 
		//
		// Flood control
		//

# 
#-----[ BEFORE, ADD ]--------------------- (Post Control)
# 
		//
		// Post Control MOD by Ani Start
		//
		include_once($phpbb_root_path . 'includes/functions_post_control.'.$phpEx);
		$val = 0;
		if ($mode == 'reply' || $mode == 'editpost')
		{
			$vamsg = '';
			if ( $valid_all == 1 )
			{
				$vamsg =  ( valid_all($topic_id) == 0) ? $lang['valid_all_failure'] : $lang['valid_all_success'];
			}
			if ( topic_request_val($topic_id) == 1 && forum_request_val($forum_id) == 1 )
			{
				$is_auth = auth(AUTH_ALL, $forum_id, $userdata);
				$val = (!$is_auth['auth_mod']) ? 1 : 0;
			}
		}
		if ($mode == 'newtopic' || ( $mode == 'editpost' && $post_data['first_post']))
		{
			if ( forum_request_val($forum_id) == 1 )
			{
				// oui, il en a besoin. Et le posteur ?
				$is_auth = auth(AUTH_ALL, $forum_id, $userdata);
				if (!$is_auth['auth_mod'])
				{
					$val = 1;
					$valid_free = 1;
				}
			}
		}
		//
		// Post Control MOD by Ani End
		//

# 
#-----[ FIND ]---------------------------- (Post Control)
# la ligne complète est plus longue / complete line is longer
		$sql  = ($mode != "editpost") ? "INSERT INTO " . TOPICS_TABLE . " (topic_title

# 
#-----[ IN-LINE FIND ]------------- (Post Control)
# 
, topic_status, topic_type

# 
#-----[ IN-LINE AFTER, ADD ]------ (Post Control)
#
, val_request

# 
#-----[ IN-LINE FIND ]------------- (Post Control)
# 
, $topic_type

# 
#-----[ IN-LINE AFTER, ADD ]------ (Post Control)
#
, $valid_free

# 
#-----[ IN-LINE FIND ]------------- (Post Control)
# 
, topic_type = $topic_type

# 
#-----[ IN-LINE AFTER, ADD ]------ (Post Control)
#
, val_request = $valid_free

# 
#-----[ FIND ]---------------------------- (Post Control)
# la ligne complète est plus longue / complete line is longer
	$sql = ($mode != "editpost") ? "INSERT INTO " . POSTS_TABLE . " (topic_id, forum_id, poster_id, post_username, post_time, poster_ip, enable_bbcode, enable_html, enable_smilies, enable_sig

# 
#-----[ BEFORE, ADD ]------------------------------------------ (Post Control)
#
	if ( topic_request_val($topic_id) == 1 )
	{
		$val = 0;
		if($userdata['user_id'] == ANONYMOUS || $board_config['post_control_users'] == "1" && $userdata['user_level'] == USER || $board_config['post_control_edited'] == "1" && $userdata['user_level'] == USER){
			$val = 1;
		}
	}

# 
#-----[ IN-LINE FIND ]------------- (Post Control)
# 
, enable_smilies, enable_sig

# 
#-----[ IN-LINE AFTER, ADD ]------ (Post Control)
#
, validate

# 
#-----[ IN-LINE FIND ]------------- (Post Control)
# 
, $smilies_on, $attach_sig

# 
#-----[ IN-LINE AFTER, ADD ]------ (Post Control)
# 
, $val

# 
#-----[ IN-LINE FIND ]------------- (Post Control)
#
, enable_smilies = $smilies_on, enable_sig = $attach_sig

# 
#-----[ IN-LINE AFTER, ADD ]------ (Post Control)
#
, validate = $val

# 
#-----[ FIND ]---------------------------- (Post Control)
# 
	$meta = '<meta http-equiv="refresh" content="3;url=' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . "=" . $post_id) . '#' . $post_id . '">';

# 
#-----[ REPLACE WITH ]--------------------- (Post Control)
# 
	if ($val == 0)
	{
	$meta = '<meta http-equiv="refresh" content="3;url=' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . "=" . $post_id) . '#' . $post_id . '">';
	}
	// Post Control MOD by Ani
	$valmsg = ($val == 1 ) ? $lang['valid_needed'] : '';

# 
#-----[ FIND ]---------------------------- (Post Control)
# juste en dessous (la ligne complete est plus longue) / just below (complete line is longer)
	$message = $lang['Stored'] . '<br /><br />' . sprintf($lang['Click_view_message'],

# 
#-----[ IN-LINE FIND ]------------- (Post Control)
# 
$lang['Stored'] . '<br />

# 
#-----[ IN-LINE AFTER, ADD ]------ (Post Control)
# 
'.$valmsg.$vamsg.'

# 
#-----[ OPEN ]------------------------------------------ 
#
   includes/page_header.php

# 
#-----[ FIND ]------------------------------------------ (Post Control)
#
//
// Login box?
//

# 
#-----[ BEFORE, ADD ]------------------------------------------ (Post Control)
#
// Post Control MOD by Ani
if ($userdata['user_level'] > 0)
{
	$template->assign_block_vars('is_modo', array(
		'U_PC_LIST' =>  append_sid('pc_list.'.$phpEx),
		'L_PC_LIST' => $lang['valid_title']
	));
}

# 
#-----[ OPEN ]-----------------------------
# 
   includes/topic_review.php

# 
#-----[ FIND ]---------------------------- (Post Control)
# 
			$row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
			$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];

# 
#-----[ AFTER, ADD ]------ (Post Control)
# 
			//
			// Post Control MOD by Ani START
			//
			include_once($phpbb_root_path . 'includes/functions_post_control.'.$phpEx);
			$val = validation_msg($row['post_id']);
			if ($val != 0 )
			{
				$is_auth = auth(AUTH_ALL, $forum_id, $userdata);
				if ( $userdata['user_id'] != ANONYMOUS && ( $userdata['user_id'] == $row[$i]['poster_id'] || $is_auth['auth_mod']))
				{
					$message .= '<br><br><center><b><big><FONT SIZE="2" COLOR="#FF0066">' . $lang['valid_waiting'] . '</FONT></big></b></center>';
					$post_subject .= ' (<b><FONT COLOR="#FF0066">' . $lang['invalid'] . '</FONT></b>)';
				}
				else
				{
					$message = '<center><b><big><FONT SIZE="2" COLOR="#FF0066">' . $lang['valid_waiting'] . '</FONT></big></b></center>';
					$post_subject = '<b><FONT COLOR="#FF0066">' . $lang['valid_waiting'] . '</FONT></b>';
				}
			}
			//
			// Post Control MOD by Ani END
			//

# 
#-----[ OPEN ]-----------------------------
# 
   language/lang_english/lang_main.php

# 
#-----[ FIND ]---------------------------- (Post Control)
# 
//
// That's all, Folks!
// -------------------------------------------------

# 
#-----[ BEFORE, ADD ]--------------------- (Post Control)
# 
// Post Control MOD by Ani
$lang['valid_title'] = 'Post Control';
$lang['valid_not_auth'] = 'You are not authorized to perform this action!';
$lang['valid_already'] = 'This post has already been validated!';
$lang['invalid_already'] = 'This post has already been invalidated!';
$lang['valid_success'] = 'The post has been validated.';
$lang['invalid_success'] = 'The post has been invalidated.';
$lang['valid_waiting'] = 'This post is awaiting validation';
$lang['valid_action'] = 'Validate this post';
$lang['invalid_action'] = 'Invalidate this post';
$lang['valid_all_failure'] = 'But automatic posts validation has failed!<br />';
$lang['valid_all_success'] = 'Also, all posts within this topic have been approved.<br />';
$lang['valid_needed'] = '<br />But Posts Validation have been activated; therefore, your message has to be approved by the webmaster or a moderator before appearing online.<br />';
$lang['valid_all_action'] = 'Validate all posts awaiting validation in this topic';
$lang['valid_free'] = 'Deactivate Post Control in this topic';
$lang['valid_all_modcp_failure'] = 'Failure - Could not approve all posts awaiting validation in this topic.';
$lang['valid_all_modcp_success'] = 'All posts awaiting validation in this topic have been approved.';
$lang['invalid'] = 'Not validated';
$lang['valid_twaiting'] = 'This topic is awaiting validation';
$lang['valid_forum'] = 'Activate Post Control in this forum';
$lang['watch'] = 'Activate Post Control in this topic';
$lang['unwatch'] = 'Deactivate Post Control in this topic';
$lang['watch_on'] = 'Post Control is now activated in this topic';
$lang['watch_off'] = 'Post Control is now deactivated in this topic';
$lang['controled'] = 'Validation activated';
$lang['non-controled'] = 'Validation not activated';
$lang['invalid_not_auth'] = 'A moderator cannot invalidate a post made by an administrator.';
$lang['waitings'] = ' Message(s) awaiting validation';
$lang['no_waitings'] = 'No posts are awaiting validation in forums which you moderate.';
$lang['list_title'] = 'List of non-validated post(s)';
$lang['go_to_post'] = 'Message';
$lang['list_access_not_auth'] = 'You are not authorized to access this page.';
$lang['quote_no_valid'] = 'A post awaiting validation cannot be quoted.';
$lang['post_control_users'] = 'Inside Controlled Forums, Post Control applies to regular users in addition to the Anonymous users?';
$lang['post_control_edited'] = 'When activated, Post Control applies to edited posts?';

# 
#-----[ OPEN ]-----------------------------
# 
   templates/subSilver/posting_body.tpl

# 
#-----[ FIND ]---------------------------- (Post Control)
# 
			<td><span class="gen">{L_DELETE_POST}</span></td>
		  </tr>
		  <!-- END switch_delete_checkbox -->

# 
#-----[ AFTER, ADD ]------ (Post Control)
# 
		  <!-- BEGIN switch_valid_all_checkbox -->
		  <tr> 
			<td><input type="checkbox" name="valid_all" /></td>
			<td><span class="gen">{L_VALID_ALL}</span></td>
		  </tr>
		  <!-- END switch_valid_all_checkbox -->
		  <!-- BEGIN switch_valid_free_checkbox -->
		  <tr> 
			<td><input type="checkbox" name="valid_free" /></td>
			<td><span class="gen">{L_VALID_FREE}</span></td>
		  </tr>
		  <!-- END switch_valid_free_checkbox -->

# 
#-----[ OPEN ]-----------------------------
# 
   templates/subSilver/subSilver.css

# 
#-----[ FIND ]---------------------------- (Post Control)
# 
a.gen:hover,a.genmed:hover,a.gensmall:hover	{ color: #DD6900; text-decoration: underline; }

# 
#-----[ AFTER, ADD ]--------------------- (Post Control)
# 
.post_control { color: red; font-weight: bold;}

# 
#-----[ OPEN ]-----------------------------
# 
   templates/subSilver/overall_header.tpl

# 
#-----[ FIND ]---------------------------- (Post Control)
#
						<td height="25" align="center" valign="top" nowrap="nowrap"><span class="mainmenu">&nbsp;<a href="{U_PROFILE}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_profile.gif" width="12" height="13" border="0" alt="{L_PROFILE}" hspace="3" />{L_PROFILE}</a>&nbsp; &nbsp;<a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_message.gif" width="12" height="13" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" />{PRIVATE_MESSAGE_INFO}</a>&nbsp; &nbsp;<a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_login.gif" width="12" height="13" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a>&nbsp;</span></td>

# 
#-----[ AFTER, ADD ]------------------------------------------ (Post Control)
#
						<!-- BEGIN is_modo -->
						&nbsp;<a href="{is_modo.U_PC_LIST}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_members.gif" width="12" height="13" border="0" alt="{is_modo.L_PC_LIST}" hspace="3" />{is_modo.L_PC_LIST}</a>&nbsp;
						<!-- END is_modo -->

# 
#-----[ OPEN ]-----------------------------
# 
   templates/subSilver/subSilver.cfg

# 
#-----[ FIND ]---------------------------- (Post Control)
# 
$images['icon_quote'] = "$current_template_images/{LANG}/icon_quote.gif";

# 
#-----[ AFTER, ADD ]--------------------- (Post Control)
# 
$images['icon_valid'] = "$current_template_images/icon_valid.gif";
$images['valid'] = "$current_template_images/{LANG}/valid.gif";
$images['invalid'] = "$current_template_images/{LANG}/invalid.gif";
$images['icon_watch'] = "$current_template_images/watch.gif";
$images['icon_unwatch'] = "$current_template_images/unwatch.gif";

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

# 
#-----[ FIND ]---------------------------- (Post Control)
# 
				<td valign="top" nowrap="nowrap">{postrow.QUOTE_IMG} {postrow.EDIT_IMG} {postrow.DELETE_IMG} {postrow.IP_IMG}</td>

# 
#-----[ IN-LINE FIND ]------------- (Post Control)
# 
<td valign="top" nowrap="nowrap">

# 
#-----[ IN-LINE AFTER, ADD ]------ (Post Control)
# 
{postrow.VALID_IMG} 

# 
#-----[ OPEN ]-----------------------------
# 
   templates/subSilver/admin/board_config_body.tpl

# 
#-----[ FIND ]---------------------------- (Post Control)
# 
	<tr>
		<td class="row1">{L_ENABLE_PRUNE}</td>
		<td class="row2"><input type="radio" name="prune_enable" value="1" {PRUNE_YES} /> {L_YES}&nbsp;&nbsp;<input type="radio" name="prune_enable" value="0" {PRUNE_NO} /> {L_NO}</td>
	</tr>

# 
#-----[ AFTER, ADD ]------------------------------------------ (Post Control)
#
	<tr>
		<td class="row1">{L_POST_CONTROL_USERS}</td>
		<td class="row2"><input type="radio" name="post_control_users" value="1" {POST_CONTROL_USERS_YES} /> {L_YES}&nbsp;&nbsp;<input type="radio" name="post_control_users" value="0" {POST_CONTROL_USERS_NO} /> {L_NO}</td>
	</tr>   
	<tr>
		<td class="row1">{L_POST_CONTROL_EDITED}</td>
		<td class="row2"><input type="radio" name="post_control_edited" value="1" {POST_CONTROL_EDITED_YES} /> {L_YES}&nbsp;&nbsp;<input type="radio" name="post_control_edited" value="0" {POST_CONTROL_EDITED_NO} /> {L_NO}</td>
	</tr>

# 
#-----[ OPEN ]-----------------------------
# 
   templates/subSilver/admin/forum_admin_body.tpl

# 
#-----[ FIND ]---------------------------- (Post Control)
# 
		<th class="thHead" colspan="7">{L_FORUM_TITLE}</th>

# 
#-----[ IN-LINE FIND ]------------------------------------------ (Post Control)
#
colspan="7"

# 
#-----[ IN-LINE REPLACE ]------------------------------------------ (Post Control)
#
colspan="8"

# 
#-----[ FIND ]------------------------------------------ (Post Control)
#
		<td class="catRight" align="center" valign="middle"><span class="gen">&nbsp;</span></td>

# 
#-----[ REPLACE ]------------------------------------------ (Post Control)
#
		<td class="catRight" align="center" valign="middle" colspan="2"><span class="gen">&nbsp</span></td>

# 
#-----[ FIND ]---------------------------- (Post Control)
# 
		<td class="row2" align="center" valign="middle"><span class="gen"><a href="{catrow.forumrow.U_FORUM_RESYNC}">{L_RESYNC}</a></span></td>

# 
#-----[ AFTER, ADD ]--------------------- (Post Control)
# 
		<td class="row1" align="center" valign="middle"><span class="gen">{catrow.forumrow.POST_CONTROL}</span></td>

# 
#-----[ FIND ]------------------------------------------ (Post Control)
#
		<td colspan="7" class="row2"><input class="post" type="text" name="{catrow.S_ADD_FORUM_NAME}" /> <input type="submit" class="liteoption"  name="{catrow.S_ADD_FORUM_SUBMIT}" value="{L_CREATE_FORUM}" /></td>

# 
#-----[ IN-LINE FIND ]------------------------------------------ (Post Control)
#
colspan="7"

# 
#-----[ IN-LINE REPLACE ]------------------------------------------ (Post Control)
#
colspan="8"


# 
#-----[ FIND ]------------------------------------------ (Post Control)
#
		<td colspan="7" height="1" class="spaceRow"><img src="../templates/subSilver/images/spacer.gif" alt="" width="1" height="1" /></td>

# 
#-----[ IN-LINE FIND ]------------------------------------------ (Post Control)
#
colspan="7"

# 
#-----[ IN-LINE REPLACE ]------------------------------------------ (Post Control)
#
colspan="8"

# 
#-----[ FIND ]------------------------------------------ (Post Control)
#
		<td colspan="7" class="catBottom"><input class="post" type="text" name="categoryname" /> <input type="submit" class="liteoption"  name="addcategory" value="{L_CREATE_CATEGORY}" /></td>

# 
#-----[ IN-LINE FIND ]------------------------------------------ (Post Control)
#
colspan="7"

# 
#-----[ IN-LINE REPLACE ]------------------------------------------ (Post Control)
#
colspan="8"

# 
#-----[ OPEN ]-----------------------------
# 
   templates/subSilver/admin/forum_edit_body.tpl

# 
#-----[ FIND ]---------------------------- (Post Control)
# 
	<tr> 
	  <td class="row1">{L_FORUM_STATUS}</td>
	  <td class="row2"><select name="forumstatus">{S_STATUS_LIST}</select></td>
	</tr>

# 
#-----[ AFTER, ADD ]--------------------- (Post Control)
# 
	<tr> 
	  <td class="row1">{L_FORUM_VAL}</td>
	  <td class="row2"><select name="forum_val">{S_FORUM_VAL_LIST}</select></td>
	</tr>

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

sbourdon
Registered User
Posts: 174
Joined: Sat Nov 13, 2004 6:29 pm

Re: [BETA] Post Control / Approval MOD

Post by sbourdon » Wed Sep 05, 2007 6:40 pm

Thanks a lot for sharing; I guess a lot of people will appreciate this! :D

Cheers!

abraham808
Registered User
Posts: 2
Joined: Mon Nov 26, 2007 5:03 pm

Re: [BETA] Post Control / Approval MOD

Post by abraham808 » Mon Nov 26, 2007 5:09 pm

Hi.

I installed the latest mod and the problem that i'm having is as follows:

1) After i post as a regular user the subject has hexidecimal numbers. The post it self is blank.
2) I try to approve it and it's still blank and the hexidecimal numbers still appear in the subject field and topic field.

sbourdon
Registered User
Posts: 174
Joined: Sat Nov 13, 2004 6:29 pm

Re: [BETA] Post Control / Approval MOD

Post by sbourdon » Mon Nov 26, 2007 6:03 pm

abraham808 wrote:Hi.

I installed the latest mod and the problem that i'm having is as follows:

1) After i post as a regular user the subject has hexidecimal numbers. The post it self is blank.
2) I try to approve it and it's still blank and the hexidecimal numbers still appear in the subject field and topic field.
Hello,

Looks like you probably made a couple of mistakes while installing the MOD...
Please review every step of the instllation file one by one and make sure you did nothing wrong.

Good luck!
P.S.: Have you ever intalled a MOD before? Because this is one that is particularly difficult to install...

abraham808
Registered User
Posts: 2
Joined: Mon Nov 26, 2007 5:03 pm

Re: [BETA] Post Control / Approval MOD

Post by abraham808 » Mon Nov 26, 2007 6:31 pm

No i've never done a MoD before. I'll look at each line again and make sure there are no mistakes. thanks

User avatar
wads24
Registered User
Posts: 526
Joined: Fri Jun 10, 2005 4:44 am
Name: James

Re: [BETA] Post Control / Approval MOD

Post by wads24 » Fri May 09, 2008 10:39 am

i am looking for a mod that will force new users to have their posts approved until they reach a certain # of posts, or until they are member of certain group... would this mod be able to do this?
Thanks in advance for a reply.

sbourdon
Registered User
Posts: 174
Joined: Sat Nov 13, 2004 6:29 pm

Re: [BETA] Post Control / Approval MOD

Post by sbourdon » Fri May 09, 2008 10:56 am

wads24 wrote:i am looking for a mod that will force new users to have their posts approved until they reach a certain # of posts, or until they are member of certain group... would this mod be able to do this?
No, unfortunately...

Post Reply

Return to “[2.0.x] MODs in Development”