Anti Double Post

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
Locked
User avatar
zenpig
Registered User
Posts: 642
Joined: Wed Aug 07, 2002 10:58 pm

Re: Anti Double Post

Post by zenpig »

I see you've got 2.0.3 on your website today....I understand the upgrade instructions but not everything in the bullet list/changes to the new version. I'm probably jumping the gun here since you don't have the new version available via phpBB's site but can I bug you for what those changes are? My 3 yrs. of high school French are failing me a bit ;) Excellent mod, btw..thanks for developing it.
Beer's proof that God loves us and wants us to be happy.
User avatar
Théonaute
Registered User
Posts: 341
Joined: Sun Jan 22, 2006 10:31 am

Re: Anti Double Post

Post by Théonaute »

Hi,

zenpig > This is in the MOD history, in install.xml :mrgreen:
  • [Feature] Add a "Apply to all forums" checkbox in order to edit all forums once.
  • [Feature] Mask ADP settings when forum_type is a category or a link.
  • [Fix] Specials chars are now supported in the separator text.
  • [Fix] Fix an error with poll.
Best,
Théonaute | ex-MOD Team member on phpbb-fr.com
No more phpBB's activities. No MODs updates, no new MODs... Thanks.
User avatar
ChriZathens
Registered User
Posts: 1477
Joined: Tue Apr 18, 2006 9:11 pm
Location: Athens, Greece
Name: Chris

Re: Anti Double Post

Post by ChriZathens »

Hi, there, Théonaute...
Install.xml is not shown correctly in 2.0.3....could you please check it out?
My mods in MODDB:
Add Homepage link in header - Change user activity post limit - Post number in viewtopic
If you need support click on the support tab there and post your question.
Do not PM me - chances of viewing my PMs are way thinner than viewing the support question in the customization DB...
User avatar
Théonaute
Registered User
Posts: 341
Joined: Sun Jan 22, 2006 10:31 am

Re: Anti Double Post

Post by Théonaute »

Sorry, it was not the good archive.
Everything works now.

Best,
Théonaute | ex-MOD Team member on phpbb-fr.com
No more phpBB's activities. No MODs updates, no new MODs... Thanks.
User avatar
ChriZathens
Registered User
Posts: 1477
Joined: Tue Apr 18, 2006 9:11 pm
Location: Athens, Greece
Name: Chris

Re: Anti Double Post

Post by ChriZathens »

Great, thanks... :D

Another thing:

Trouver = Find (OK)
Remplacer par = Replace with (OK)
Ajouter après = Before, add ?????
Ajouter, avant = After, add ????
My mods in MODDB:
Add Homepage link in header - Change user activity post limit - Post number in viewtopic
If you need support click on the support tab there and post your question.
Do not PM me - chances of viewing my PMs are way thinner than viewing the support question in the customization DB...
User avatar
Théonaute
Registered User
Posts: 341
Joined: Sun Jan 22, 2006 10:31 am

Re: Anti Double Post

Post by Théonaute »

Trouver = Find (OK)
Remplacer par = Replace with (OK)
Ajouter après = after, add
Ajouter, avant = before, add

:mrgreen:
Théonaute | ex-MOD Team member on phpbb-fr.com
No more phpBB's activities. No MODs updates, no new MODs... Thanks.
User avatar
ChriZathens
Registered User
Posts: 1477
Joined: Tue Apr 18, 2006 9:11 pm
Location: Athens, Greece
Name: Chris

Re: Anti Double Post

Post by ChriZathens »

Heh, the funny thing is that I did the opposite and it still works... :lol: :lol:
Thanks a lot for the translation...
My mods in MODDB:
Add Homepage link in header - Change user activity post limit - Post number in viewtopic
If you need support click on the support tab there and post your question.
Do not PM me - chances of viewing my PMs are way thinner than viewing the support question in the customization DB...
Tuxman
Registered User
Posts: 420
Joined: Sun Jun 08, 2003 6:24 pm
Location: Germany
Contact:

Re: Anti Double Post

Post by Tuxman »

I don't get it... how to activate this mod? I applied all changes but no options are shown.

nvm. Got it, works. Thank you.

:oops:
[ randomly phpBBing ]
User avatar
Théonaute
Registered User
Posts: 341
Joined: Sun Jan 22, 2006 10:31 am

Re: Anti Double Post

Post by Théonaute »

Théonaute | ex-MOD Team member on phpbb-fr.com
No more phpBB's activities. No MODs updates, no new MODs... Thanks.
Tuxman
Registered User
Posts: 420
Joined: Sun Jun 08, 2003 6:24 pm
Location: Germany
Contact:

Re: Anti Double Post

Post by Tuxman »

Yeh, thanks... you should include a "how-to" in your install.xml. ;)
[ randomly phpBBing ]
User avatar
manuxtreme
Registered User
Posts: 48
Joined: Tue Aug 23, 2005 11:54 am

Re: Anti Double Post

Post by manuxtreme »

Seems to be working fine but it always showing the same time for posts.. Any ideas to solve this?
User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 18316
Joined: Thu Jan 06, 2005 1:30 pm
Location: Fishkill, NY
Name: David Colón
Contact:

Anti Double Post

Post by DavidIQ »

MOD Updated to version 2.0.3
See first post for Download Link
Apply to become a Jr. Extension Validator
My extensions | In need of phpBB services? | Was I helpful today?
No unsolicited PMs unless you're planning on asking for paid help.
User avatar
ChriZathens
Registered User
Posts: 1477
Joined: Tue Apr 18, 2006 9:11 pm
Location: Athens, Greece
Name: Chris

Re: Anti Double Post

Post by ChriZathens »

For making things easier, I'm posting here the upgrade instructions from 2.0.2 to 2.0.3 (original post in French here: http://www.modsphpbb3.fr/viewtopic.php?p=189#p189)

Open posting.php
Find

Code: Select all

            $post_data['vote_change'] = $adp_poll_vote_change; 
Replace with :

Code: Select all

            $post_data['poll_vote_change'] = $adp_poll_vote_change; 
Open adm/style/acp_forums.html
Find

Code: Select all

                if (value == {FORUM_POST})
                {
                    dE('forum_post_options', 1);
                    dE('forum_link_options', -1);
                    dE('forum_rules_options', 1);
                    dE('forum_cat_options', -1);
                }
                else if (value == {FORUM_LINK})
                {
                    dE('forum_post_options', -1);
                    dE('forum_link_options', 1);
                    dE('forum_rules_options', -1);
                    dE('forum_cat_options', -1);
                }
                else if (value == {FORUM_CAT})
                {
                    dE('forum_post_options', -1);
                    dE('forum_link_options', -1);
                    dE('forum_rules_options', 1);
                    dE('forum_cat_options', 1);
                } 
Replace with :

Code: Select all

                if (value == {FORUM_POST})
                {
                    dE('forum_post_options', 1);
                    dE('forum_link_options', -1);
                    dE('forum_rules_options', 1);
                    dE('forum_cat_options', -1);
                    dE('forum_adp_options', 1);
                }
                else if (value == {FORUM_LINK})
                {
                    dE('forum_post_options', -1);
                    dE('forum_link_options', 1);
                    dE('forum_rules_options', -1);
                    dE('forum_cat_options', -1);
                    dE('forum_adp_options', -1);
                }
                else if (value == {FORUM_CAT})
                {
                    dE('forum_post_options', -1);
                    dE('forum_link_options', -1);
                    dE('forum_rules_options', 1);
                    dE('forum_cat_options', 1);
                    dE('forum_adp_options', -1);
                } 
Find

Code: Select all

            <dl>
                <dt><label for="adp_secs">{L_ADP_SECS}:</label><br /><span>{L_ADP_SECS_EXPLAIN}</span></dt>
                <dd><input type="text" id="adp_secs" name="adp_secs" value="{ADP_SECS}" maxlength="4" size="4" /></dd>
            </dl> 
After, add :

Code: Select all

            <dl>
                <dt><label for="adp_apply_to_all">{L_ADP_APPLY_TO_ALL}:</label><br /><span>{L_ADP_APPLY_TO_ALL_EXPLAIN}</span></dt>
                <dd><input type="checkbox" class="radio" id="adp_apply_to_all" name="adp_apply_to_all" value="1" /></dd>
            </dl> 
Open includes/acp/acp_forums.php
Find

Code: Select all

                            'adp_text_edit'            => request_var('adp_text_edit', '-- %D --'), 
Replace with :

Code: Select all

 'adp_text_edit'            => utf8_normalize_nfc(request_var('adp_text_edit', '-- %D --',true)), 
Find

Code: Select all

                            $forum_perm_from = request_var('forum_perm_from', 0); 
Before, add :

Code: Select all

    // Begin : Anti Double Posts
                            // Copy Anti-Double post settings ?
                            $adp_apply_to_all = request_var('adp_apply_to_all', 0);
                            if($adp_apply_to_all)
                            {
                                $forum_data_adp = array();
                                $forum_data_adp['adp_enable'] = $forum_data['adp_enable'];
                                $forum_data_adp['adp_admins'] = $forum_data['adp_admins'];
                                $forum_data_adp['adp_modos'] = $forum_data['adp_modos'];
                                $forum_data_adp['adp_auto_edit'] = $forum_data['adp_auto_edit'];
                                $forum_data_adp['adp_text_edit'] = $forum_data['adp_text_edit'];
                                $forum_data_adp['adp_always'] = $forum_data['adp_always'];
                                $forum_data_adp['adp_days'] = $forum_data['adp_days'];
                                $forum_data_adp['adp_hours'] = $forum_data['adp_hours'];
                                $forum_data_adp['adp_mins'] = $forum_data['adp_mins'];
                                $forum_data_adp['adp_secs'] = $forum_data['adp_secs'];
                                
                                $sql = "UPDATE " . FORUMS_TABLE . "
                                    SET " . $db->sql_build_array('UPDATE', $forum_data_adp) . "
                                    WHERE forum_type = " . FORUM_POST;
                                $db->sql_query($sql);
                                
                                unset($forum_data_adp);
                            }
    // End : Anti Double Posts   
Find

Code: Select all

                                'adp_text_edit'            => '', 
Replace with :

Code: Select all

                                'adp_text_edit'            => '-- %D --', 
Open language/en/mods/anti_double_post.php
Find

Code: Select all

        'ADP_SECS_EXPLAIN'        => 'Number of seconds during which double posts are not possible.', 
After, add :

Code: Select all

        'ADP_APPLY_TO_ALL'                => 'Apply to all forums',
        'ADP_APPLY_TO_ALL_EXPLAIN'        => '<strong>WARNING :</strong> If you check this, all forums will be set with this ADP settings.', 
My mods in MODDB:
Add Homepage link in header - Change user activity post limit - Post number in viewtopic
If you need support click on the support tab there and post your question.
Do not PM me - chances of viewing my PMs are way thinner than viewing the support question in the customization DB...
User avatar
manuxtreme
Registered User
Posts: 48
Joined: Tue Aug 23, 2005 11:54 am

Re: Anti Double Post

Post by manuxtreme »

Anyway to make it bumb the threads as well? Or would it work with the "Mark Edit Posts Unread" Mod?? as essentially this mod is editing the previous post.. Correct or am I mistaken?
User avatar
Théonaute
Registered User
Posts: 341
Joined: Sun Jan 22, 2006 10:31 am

Re: Anti Double Post

Post by Théonaute »

You're right.
Use my other MOD.

Best,
Théonaute | ex-MOD Team member on phpbb-fr.com
No more phpBB's activities. No MODs updates, no new MODs... Thanks.
Locked

Return to “[3.0.x] MOD Database Releases”