Go Back   Pligg CMS Forum > Pligg Development > Modification Tutorials

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-10-2008, 07:42 PM
Pligg Donor
Pligg Version: 9.9
Pligg Template: push it
 
Join Date: Feb 2006
Posts: 67
Thanks: 8
Thanked 4 Times in 3 Posts
[mod request] (re)captcha for ajax contact form?

I like the ajax contact form that ships with pligg, but it really needs a captcha.

I get so much spam from my other sites that have contact forms with no captcha, I'm afraid to put another contact form online without one

Anybody have any tips/instructions for adding a captcha (or recaptcha) to the ajax contact form?

If someone can figure out a way to make it work with the existing recpatcha public/private keys that are used for the pligg recaptcha registration plugin, I'll be happy to pay via PayPal (and the finished result can be shared here in the community)
Reply With Quote
  #2 (permalink)  
Old 01-13-2008, 02:10 PM
Pligg Donor
Pligg Version: 9.9
Pligg Template: push it
 
Join Date: Feb 2006
Posts: 67
Thanks: 8
Thanked 4 Times in 3 Posts
Anybody interested?
Reply With Quote
  #3 (permalink)  
Old 01-24-2008, 06:02 PM
Pligg Donor
Pligg Version: 9.9
Pligg Template: push it
 
Join Date: Feb 2006
Posts: 67
Thanks: 8
Thanked 4 Times in 3 Posts
Anybody?
Reply With Quote
  #4 (permalink)  
Old 03-30-2008, 02:00 AM
New Pligger
Pligg Version: None
 
Join Date: Mar 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
1. Go to dagon design, download their secure form mailer Secure PHP Form Mailer Script · Dagon Design
2. upload it to your web directory
3. create a file contact.php in the root directory
Code:
include_once('Smarty.class.php');
$main_smarty = new Smarty;

include('config.php');
include(mnminclude.'html1.php');
include(mnminclude.'ts.php');
include(mnminclude.'link.php');
include(mnminclude.'tags.php');
include(mnminclude.'search.php');
include(mnminclude.'smartyvariables.php');
//include("./contactus/contact.php");

// module system hook
$vars = '';
check_actions('search_top', $vars);

// breadcrumbs and page title
$navwhere['text1'] = "Contact Us";
$navwhere['link1'] = getmyurl('contact');
$main_smarty->assign('navbar_where', $navwhere);
$main_smarty->assign('posttitle', " / Contact Us");

//sidebar
//$main_smarty = do_sidebar($main_smarty);

// pagename	
define('pagename', 'contact'); 
$main_smarty->assign('pagename', pagename);


// show the template
$main_smarty->assign('tpl_center', $the_template . '/contact_center');
$main_smarty->display($the_template . '/pligg.tpl');
4. create a file contact_center.tpl in your template directory
code:
Code:
{php}
include('./contactus/contact.php');
{/php}
NB: I renamed the folder dd-formmailer to contactus and the file dd-formmailer.php to contactus.php if i hadn't it would show include('./dd-formmailer/dd-formmailer.php');

5. Edit the dd-formmailer.php file according to their instructions.

Last edited by blooksllc; 03-30-2008 at 02:01 AM.. Reason: change quote to code
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Bug in Ajaxcontact Module - no checks in contact form fan007 Module Support 0 06-13-2008 04:08 PM
Ajax Contact Form v0.1 ??? dragan General Help 10 04-24-2008 03:44 AM
Another AJAX Contact form sending error GeneralLedger Bug Report 2 03-22-2008 02:49 PM
[SOLVED] No Emails from Ajax Contact Form jawinn General Help 6 07-09-2007 07:47 AM
Ajax Contact Form v0.1 Sadmir General Help 1 03-26-2007 12:39 PM


Search Engine Friendly URLs by vBSEO 3.2.0