[This should probably move to the Mods forum.]
It's done. Posts from Guests no require the correct entering of the text in a control picture (or image verification). There were a couple of ways I could have implemented this. The first was using the existent code in the user control panel. That was a bit too hard for me. It is not a simple pull out. Instead, I decided to integrate in "Image verification mod." It did require a couple of fixes to make it work.
Please feel free to try it out at
http://www.snowtire.info/forumHere is the info on the original mod (which I had originally taken from phpbb-hacks.com)
- Code: Select all
=========================== Image verification mod for phpBB Released ]http://boastology.com[/url] Developed by Kailash Nadh Email : [url=http://kailashnadh.name]http://kailashnadh.name[/url], [url=http://bnsoft.net]http://bnsoft.net[/url] Blog : [url=http://boastology.com/blog]http://boastology.com/blog[/url] ===========================
Here are the changes I made to the files. These changes are in lue of the changes in the Read Me file that came with the mod. I started with IM 1.4.0 with security 1.03 and phpBB 2.0.20 updates.
1. Add "img_verify.php" to root directory
2. In "img_verify.php" change every occurance of "$_SESSION[" to "$HTTP_SESSION_VARS["
3. In .../templates/fisubice/ find
- Code: Select all
</tr>{ATTACHBOX}{POLLBOX}{DELAYEDPOST}
After it add
- Code: Select all
<BEGIN> <tr> <td>Image verification</td> <td><img><br> <input></td> </tr> <END>
4. In "posting.php" find
- Code: Select all
//// Set toggles for various options//if ( !$board_config['allow_html'] )
After it add (NOTE]else { // Image verification mod (http://kailashnadh.name) $get_code=true; include "img_verify.php"; if(isset($HTTP_POST_VARS['mode']) && isset($HTTP_POST_VARS['username'])) { if(empty($HTTP_POST_VARS['image_verify']) || $HTTP_POST_VARS['image_verify'] != $verify_string) { message_die(GENERAL_MESSAGE, "Invalid verification code!"); } else { unset($HTTP_SESSION_VARS['phpbb2_img_verify']); } }}[/code]
5. still in "posting.php" find
- Code: Select all
if( !$userdata['session_logged_in'] || ( $mode == 'editpost' && $post_info['poster_id'] == ANONYMOUS ) ){ $template->assign_block_vars('switch_username_select', array());}
change it to
- Code: Select all
if( !$userdata['session_logged_in'] || ( $mode == 'editpost' && $post_info['poster_id'] == ANONYMOUS ) ){ $template->assign_block_vars('switch_username_select', array()); $template->assign_block_vars('switch_image_verification', "");}
Enjoy,
- John