[MODDB] Anti-Spam ACP

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!
Get Involved
Geisthund
Registered User
Posts: 352
Joined: Fri Jul 01, 2005 1:23 pm

Re: [RC] Anti-Spam ACP

Post by Geisthund »

Hi

I just installed Version 0.9.1 and appear to have a problem.
Open: viewtopic.php
Find

Code: Select all

'search'		=> ($auth->acl_get('u_search')) ? append_sid("{$phpbb_root_path}search.$phpEx",
Add after
Tip: Add these lines on a new blank line after the preceding line(s) to find.

Code: Select all

				// START Anti-Spam ACP
				'user_flagged'	=> $row['user_flagged'] ? true : false,
				// END Anti-Spam ACP
Which gives me

Code: Select all

'search'		=> ($auth->acl_get('u_search')) ? append_sid("{$phpbb_root_path}search.$phpEx",	
				// START Anti-Spam ACP
				'user_flagged'	=> $row['user_flagged'] ? true : false,
				// END Anti-Spam ACP														 
 "author_id=$poster_id&sr=posts") : '',	
If I do that then I get a blank page if I try to view any topic's via viewtopic.php.
Sorry if I'm being thick!!!

User avatar
EXreaction
Former Team Member
Posts: 5666
Joined: Sun Aug 21, 2005 9:31 pm
Location: Wisconsin, U.S.
Name: Nathan

Re: [RC] Anti-Spam ACP

Post by EXreaction »

Add after means add after the end of the line, as it says in the instructions

User avatar
Wushu
Registered User
Posts: 14
Joined: Tue Jun 27, 2006 5:50 pm

Re: [RC] Anti-Spam ACP

Post by Wushu »

Is there any chance at all of this mod being released for pre-PHP 5.X?

My hosting company is running a version 4 php, and they have no plans to upgrade.

Geisthund
Registered User
Posts: 352
Joined: Fri Jul 01, 2005 1:23 pm

Re: [RC] Anti-Spam ACP

Post by Geisthund »

EXreaction wrote:Add after means add after the end of the line, as it says in the instructions
Which is as this but I get a blank page.

Code: Select all

'search'      => ($auth->acl_get('u_search')) ? append_sid("{$phpbb_root_path}search.$phpEx",   
            // START Anti-Spam ACP
            'user_flagged'   => $row['user_flagged'] ? true : false,
            // END Anti-Spam ACP                                           
"author_id=$poster_id&sr=posts") : '',  
So what your install.xml should say is
Find:

Code: Select all

'search'		=> ($auth->acl_get('u_search')) ? append_sid("{$phpbb_root_path}search.$phpEx", "author_id=$poster_id&sr=posts") : '',
and add after:

Code: Select all

            // START Anti-Spam ACP
            'user_flagged'   => $row['user_flagged'] ? true : false,
            // END Anti-Spam ACP      
Which gives you:

Code: Select all

'search'		=> ($auth->acl_get('u_search')) ? append_sid("{$phpbb_root_path}search.$phpEx",	 "author_id=$poster_id&sr=posts") : '',	
			   // START Anti-Spam ACP
            'user_flagged'   => $row['user_flagged'] ? true : false,
            // END Anti-Spam ACP
Yes?????

User avatar
EXreaction
Former Team Member
Posts: 5666
Joined: Sun Aug 21, 2005 9:31 pm
Location: Wisconsin, U.S.
Name: Nathan

Re: [RC] Anti-Spam ACP

Post by EXreaction »

Wushu wrote:Is there any chance at all of this mod being released for pre-PHP 5.X?

My hosting company is running a version 4 php, and they have no plans to upgrade.
Nope, get a new host.
Geisthund wrote:
EXreaction wrote:Add after means add after the end of the line, as it says in the instructions
Which is as this but I get a blank page.

Code: Select all

'search'      => ($auth->acl_get('u_search')) ? append_sid("{$phpbb_root_path}search.$phpEx",   
            // START Anti-Spam ACP
            'user_flagged'   => $row['user_flagged'] ? true : false,
            // END Anti-Spam ACP                                           
"author_id=$poster_id&sr=posts") : '',  
So what your install.xml should say is
Find:

Code: Select all

'search'		=> ($auth->acl_get('u_search')) ? append_sid("{$phpbb_root_path}search.$phpEx", "author_id=$poster_id&sr=posts") : '',
and add after:

Code: Select all

            // START Anti-Spam ACP
            'user_flagged'   => $row['user_flagged'] ? true : false,
            // END Anti-Spam ACP      
Which gives you:

Code: Select all

'search'		=> ($auth->acl_get('u_search')) ? append_sid("{$phpbb_root_path}search.$phpEx",	 "author_id=$poster_id&sr=posts") : '',	
			   // START Anti-Spam ACP
            'user_flagged'   => $row['user_flagged'] ? true : false,
            // END Anti-Spam ACP
Yes?????
No, it should not say that. The instructions are correct and if you install them as they should be according to the ModX install instructions it will work.

Geisthund
Registered User
Posts: 352
Joined: Fri Jul 01, 2005 1:23 pm

Re: [RC] Anti-Spam ACP

Post by Geisthund »

Open: viewtopic.php
Find

Code: Select all

'search'		=> ($auth->acl_get('u_search')) ? append_sid("{$phpbb_root_path}search.$phpEx",
Add after
Tip: Add these lines on a new blank line after the preceding line(s) to find.

Code: Select all

				// START Anti-Spam ACP
				'user_flagged'	=> $row['user_flagged'] ? true : false,
				// END Anti-Spam ACP
Which gives me

Code: Select all

'search'		=> ($auth->acl_get('u_search')) ? append_sid("{$phpbb_root_path}search.$phpEx",	
				// START Anti-Spam ACP
				'user_flagged'	=> $row['user_flagged'] ? true : false,
				// END Anti-Spam ACP														 
 "author_id=$poster_id&sr=posts") : '',	
So this is correct??? but I get a blank viewtopic if I do the edit above.

User avatar
EXreaction
Former Team Member
Posts: 5666
Joined: Sun Aug 21, 2005 9:31 pm
Location: Wisconsin, U.S.
Name: Nathan

Re: [RC] Anti-Spam ACP

Post by EXreaction »

No, that is not correct.

Geisthund
Registered User
Posts: 352
Joined: Fri Jul 01, 2005 1:23 pm

Re: [RC] Anti-Spam ACP

Post by Geisthund »

Open: viewtopic.php
Find

Tip: This may be a partial find and not the whole line.
Code:Select All
'search' => ($auth->acl_get('u_search')) ? append_sid("{$phpbb_root_path}search.$phpEx",
Add after

Tip: Add these lines on a new blank line after the preceding line(s) to find.
Code:Select All
// START Anti-Spam ACP
'user_flagged' => $row['user_flagged'] ? true : false,
// END Anti-Spam ACP
I have installed hundreds of mods over the years and reading the instructions above (copied from your install.xml) the result would be:-
'search' => ($auth->acl_get('u_search')) ? append_sid("{$phpbb_root_path}search.$phpEx",
// START Anti-Spam ACP
'user_flagged' => $row['user_flagged'] ? true : false,
// END Anti-Spam ACP
which produces a blank viewtopic.

User avatar
ric323
Former Team Member
Posts: 22909
Joined: Tue Feb 06, 2007 12:33 am
Location: Melbourne, Australia
Name: Ric
Contact:

Re: [RC] Anti-Spam ACP

Post by ric323 »

You seem to not be reading these two tips:
Tip: This may be a partial find and not the whole line.
and
Tip: Add these lines on a new blank line after the preceding line(s) to find.
The Knowledge Base contains solutions to many common problems!
How to fix "Doesn't have a default value" and "Incorrect string value: xxx for column 'post_text' " errors.
How to do a clean re-install of the latest phpBB3 version.
Problems with permissions? Read phpBB3 Permissions

User avatar
Wushu
Registered User
Posts: 14
Joined: Tue Jun 27, 2006 5:50 pm

Re: [RC] Anti-Spam ACP

Post by Wushu »

ok, thanks. thats kinda what i figured.

Geisthund
Registered User
Posts: 352
Joined: Fri Jul 01, 2005 1:23 pm

Re: [RC] Anti-Spam ACP

Post by Geisthund »

So this is correct???

Code: Select all

'search'		=> ($auth->acl_get('u_search')) ? append_sid("{$phpbb_root_path}search.$phpEx", "author_id=$poster_id&sr=posts") : '',
			// START Anti-Spam ACP
            'user_flagged'   => $row['user_flagged'] ? true : false,
            // END Anti-Spam ACP  
Cheers

User avatar
EXreaction
Former Team Member
Posts: 5666
Joined: Sun Aug 21, 2005 9:31 pm
Location: Wisconsin, U.S.
Name: Nathan

Re: [RC] Anti-Spam ACP

Post by EXreaction »

Geisthund wrote:So this is correct???

Code: Select all

'search'		=> ($auth->acl_get('u_search')) ? append_sid("{$phpbb_root_path}search.$phpEx", "author_id=$poster_id&sr=posts") : '',
			// START Anti-Spam ACP
            'user_flagged'   => $row['user_flagged'] ? true : false,
            // END Anti-Spam ACP  
Cheers
Yes

User avatar
muggins
Registered User
Posts: 1183
Joined: Fri Feb 22, 2008 5:12 pm
Location: Texas
Name: Donovan
Contact:

Re: [RC] Anti-Spam ACP

Post by muggins »

I will have to try again. :oops:

I messed up an edit somewhere, and I get a white page when I try to access the ACP...
Muggins

User avatar
EXreaction
Former Team Member
Posts: 5666
Joined: Sun Aug 21, 2005 9:31 pm
Location: Wisconsin, U.S.
Name: Nathan

Re: [RC] Anti-Spam ACP

Post by EXreaction »

Make sure you try to access one of the main forum pages before the ACP. The mod automatically installs the database sections and if you are in the ACP it will cause an error because the acp index file it automatically loading a file which has already been included without checking.

User avatar
muggins
Registered User
Posts: 1183
Joined: Fri Feb 22, 2008 5:12 pm
Location: Texas
Name: Donovan
Contact:

Re: [RC] Anti-Spam ACP

Post by muggins »

Ah. Thanks.
Muggins

Locked

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