bbAntiSpam: Discuss how to stop web spam

The forum is retired.

bbAntiSpam Forum Index - phpBB spam - Textual Confirmation for Joomla

Author Message
Phil
Guest





Posted: Sat Nov 01, 2008 8:51 pm    Post subject: Textual Confirmation for Joomla  

Hi,

Been using your excellent Textual confirmation mod for several years now on a phpBB 2 forum and am now moving my site to Joomla...

Was wondering whether you could kind of easily port this to Joomla where the spambot issue exists too...Not enough expert in php to do it and don't know how tough this would be but I bet everyone would benefit from your talents on this...

Cheers

Phil
admin
Site Admin


Joined: 18 Apr 2006
Posts: 805
Location: Saint-Petersburg, Russia

Posted: Sun Nov 02, 2008 5:45 am    Post subject:  

Hi Phil,

for Joomla you can try Advanced Textual Confirmation. The installation is similar to how it is installed for other tools:

http://bbantispam.com/forum/viewtopic.php?t=283

I think that the file to edit is "includes/defines.php".
_________________
Oleg Parashchenko, bbAntiSpam
Do you love our tools? Please sponsor further development!
Phil
Guest





Posted: Sun Nov 02, 2008 2:05 pm    Post subject:  

Hi Oleg,

Hacked the file defines.php to include bbantispam.php and it does work...once...

I mean, I get the question, tried wrong answers then the right one and got successfully connected...BUT, if I stay in the same session and try to create another account, the question does not come up again!

Does this mean that it's somehow taking care of the session id, does it need to re-read defines.php or else?

Since I'm not a real php professional, I can't really dig into what has to be done...

Any ideas?

Thanks a lot...

Phil
admin
Site Admin


Joined: 18 Apr 2006
Posts: 805
Location: Saint-Petersburg, Russia

Posted: Mon Nov 03, 2008 4:26 am    Post subject:  

Hi Phil,

I think everything is in order. After an user answered a question, the tool remembers it and doesn't bother the user anymore. It's a small usability trick to make your visitors happy.

If you want to see the question-answer form once again, you can: 1) change questions, or 2) clear browser cookies for the site.
_________________
Oleg Parashchenko, bbAntiSpam
Do you love our tools? Please sponsor further development!
phil91



Joined: 02 Nov 2008
Posts: 1

Posted: Wed Nov 05, 2008 8:51 pm    Post subject:  

Hi Oleg,

You're right...Nice trick...It does work the way you indicate and that is cool...Thanks very much indeed for this. I am sure this will be highly publicized. By far the best way to protect against spambots...

Phil
admin
Site Admin


Joined: 18 Apr 2006
Posts: 805
Location: Saint-Petersburg, Russia

Posted: Thu Nov 06, 2008 4:35 am    Post subject:  

Hi Phil,

I'm happy to know that everything works fine now. And thanks for the nice words!
_________________
Oleg Parashchenko, bbAntiSpam
Do you love our tools? Please sponsor further development!
Martin
Guest





Posted: Fri Mar 05, 2010 8:18 am    Post subject:  

I'm trying to put ATC into my Joomla 1.5.
This is my includes/defines.php file:

Code:
<?php
/**
* @version      $Id: defines.php 10381 2008-06-01 03:35:53Z pasamio $
* @package      Joomla
* @copyright   Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
* @license      GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

/**
* Joomla! Application define
*/

//Global definitions
//Joomla framework path definitions
$parts = explode( DS, JPATH_BASE );

//Defines
define( 'JPATH_ROOT',         implode( DS, $parts ) );

define( 'JPATH_SITE',         JPATH_ROOT );
define( 'JPATH_CONFIGURATION',    JPATH_ROOT );
define( 'JPATH_ADMINISTRATOR',    JPATH_ROOT.DS.'administrator' );
define( 'JPATH_XMLRPC',       JPATH_ROOT.DS.'xmlrpc' );
define( 'JPATH_LIBRARIES',       JPATH_ROOT.DS.'libraries' );
define( 'JPATH_PLUGINS',      JPATH_ROOT.DS.'plugins'   );
define( 'JPATH_INSTALLATION',   JPATH_ROOT.DS.'installation' );
define( 'JPATH_THEMES'      ,   JPATH_BASE.DS.'templates' );
define( 'JPATH_CACHE',         JPATH_BASE.DS.'cache');


Where and which string should I add to defines.php file?
Help me please Smile
admin
Site Admin


Joined: 18 Apr 2006
Posts: 805
Location: Saint-Petersburg, Russia

Posted: Sat Mar 06, 2010 4:36 am    Post subject:  

I think if you insert this as the first like, it should be ok:
Code:
<?php include_once 'bbantispam.php'; ?>

Probably you also need to specify the path to bbantispam.php in full.
_________________
Oleg Parashchenko, bbAntiSpam
Do you love our tools? Please sponsor further development!
Martin
Guest





Posted: Sat Mar 06, 2010 9:22 am    Post subject:  

Thank you very, very much Oleg. It works like a charm Laughing

I've tried with:

<?php require_once 'bbantispam.php'; ?>

but if you wrote it should be "include", I'm sure it will be the better way in this case.

Once again - Thank you Smile
admin
Site Admin


Joined: 18 Apr 2006
Posts: 805
Location: Saint-Petersburg, Russia

Posted: Mon Mar 08, 2010 4:22 am    Post subject:  

I'm glad it worked. Best luck!
_________________
Oleg Parashchenko, bbAntiSpam
Do you love our tools? Please sponsor further development!
Martin
Guest





Posted: Thu Mar 11, 2010 8:18 am    Post subject:  

Another issue ...

I've tested ATC in my Joomla 1.5 site. As I wrote before, I have
Code:
<?php include_once 'bbantispam.php'; ?>
in my includes/defines.php file. Everythig works but ...

When I clear browser cookies for my site, I get ATC screen also f.e. after trying to add photo in some "add image" form.

I try to implement ATC only as the verification after complete the registry form. How can I solve this problem?
admin
Site Admin


Joined: 18 Apr 2006
Posts: 805
Location: Saint-Petersburg, Russia

Posted: Fri Mar 12, 2010 3:25 am    Post subject:  

To implement only in the registration form, someone has to investigate the internals of Joomla -- not very hard, but anyway requires some effort. I'm not ready to do it. Therefore, I'd suggest to have all as it is.

But I'm curious why the verification form appeared during "add image" and not during re-login to Joomla.
_________________
Oleg Parashchenko, bbAntiSpam
Do you love our tools? Please sponsor further development!

Ok.