Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: lead capture from joomla

  1. #1
    marcielo is offline Sugar Community Member
    Join Date
    Aug 2009
    Posts
    33

    Default lead capture from joomla

    Hi there

    I'm trying to integrate a joomla form into sugar by making a lead capture. But I' getting the following message after submitting:
    You are not allowed to access this URL

    I followed the tutorial from the sugar wiki:
    http://www.sugarcrm.com/wiki/index.p...orm_submission

    I created a form with a form component in joomla, chronoforms, like the in one i wiki:
    Code:
    Welcome to my awesome lead capture form!<br>
    <br>
    <br>
    <form name="lead_capture" action="http://www.mysite/crm/leadCapture.php" method="post">
    <input type='hidden' name='redirect' value='http://www.sugarcrm.com'>
    <input type='hidden' name='lead_source' value='Web site'>
    <input type='hidden' name='user' value='my_lead_capture_form'>
    First Name: <input type='text' name='first_name'> <br>
    Last Name: <input type='text' name='last_name'> <br>
    Description:    <select name="description">
                        <option value="Sugar is good">Sugar is good</option>
                        <option value="Sugar is great">Sugar is great</option>
                        <option value="Sugar is the greatest">Sugar is the greatest</option>
                    </select><br>
    <input type='Submit' name='submit' value='Submit' >
    </form>
    </body>
    The next I did was to create a file called leadCapture_override.php:
    Code:
    <?
    $users = array(
        'my_lead_capture_form' => array(    'name' => 'my administrator username goes here',
                                            'pass' => 'MD5 hash goes here' ));
    ?>
    Now when it comes to redirect part, I'm not sure what to do. The leadCapture.php file already has some code in it, so what I did, was to insert the piece of code for the redirect right before the php closing tags:
    Code:
    <?php
    if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
    
    header('HTTP/1.1 301 Moved Permanently');
    header('Location: index.php?entryPoint=leadCapture&'.$_SERVER["QUERY_STRING"]);
    
      if(isset($_POST['redirect']) && !empty($_POST['redirect'])){
            //header("Location: ".$_POST['redirect']);
            echo '<html><head><title>SugarCRM</title></head><body>';
            echo '<form name="redirect" action="' .$_POST['redirect']. '" method="POST">';
    
            foreach($_POST as $param => $value) {
    
                if($param != 'redirect') {
                    echo '<input type="hidden" name="'.$param.'" value="'.$value.'">';
                }
            }
            if( ($return_val == '') || ($return_val  == 0) || ($return_val < 0) ) {
                echo '<input type="hidden" name="error" value="1">';
            }
            echo '</form><script language="javascript" type="text/javascript">document.redirect.submit();</script>';
            echo '</body></html>';
        } else {
    		echo "Thank You For Your Submission.";
        }
    
    ?>
    Hope someone can help.


    I use:
    windows prof, Version 5.2.0f (Build 5688) Community edidtion, Apache/2.2.3 (Debian) , PHP 5.2.9-0.dotdeb.1 , MySQL server ver. 5.0.32 , joomla 1.5.14

  2. #2
    salesagility's Avatar
    salesagility is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    2,379

    Default Re: lead capture from joomla

    Check to make sure that the userid used to authenticate has permissions to access that module.

  3. #3
    marcielo is offline Sugar Community Member
    Join Date
    Aug 2009
    Posts
    33

    Default Re: lead capture from joomla

    Yes, the user is me and as an administrator I have all the rights, as far as I can see don't I?

  4. #4
    sysdoc is offline Member
    Join Date
    Jul 2006
    Posts
    5

    Default Re: lead capture from joomla

    Marcielo,

    Did you ever get this to work??

    sysdoc

  5. #5
    marcielo is offline Sugar Community Member
    Join Date
    Aug 2009
    Posts
    33

    Default Re: lead capture from joomla

    Unfortunately I never got it to work

    So I really hope that someday someone can make it work and show how its done.

    One of the developers from chronoengine (chronoforms) says it should be easy to make it work. He said he would take a look at it, so there is some hope

  6. #6
    salesagility's Avatar
    salesagility is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    2,379

    Default Re: lead capture from joomla

    The integration between Joomla and SugarCRM using the SOAP API is very good ... we use it constantly to create web portals as customer friendly entry points to sugar - for cases, leads, accounts, quotations ... I suspect it may have something to do with the way chronoforms handles the data.

  7. #7
    sysdoc is offline Member
    Join Date
    Jul 2006
    Posts
    5

    Default Re: lead capture from joomla

    Quote Originally Posted by marcielo View Post
    Unfortunately I never got it to work

    So I really hope that someday someone can make it work and show how its done.

    One of the developers from chronoengine (chronoforms) says it should be easy to make it work. He said he would take a look at it, so there is some hope
    Marcielo,

    Do you have the url to the thread at the chronoforms forum?

    thx

    sysdoc

  8. #8
    sysdoc is offline Member
    Join Date
    Jul 2006
    Posts
    5

    Default Re: lead capture from joomla

    Quote Originally Posted by marcielo View Post
    Unfortunately I never got it to work

    So I really hope that someday someone can make it work and show how its done.

    One of the developers from chronoengine (chronoforms) says it should be easy to make it work. He said he would take a look at it, so there is some hope
    Quote Originally Posted by salesagility View Post
    The integration between Joomla and SugarCRM using the SOAP API is very good ... we use it constantly to create web portals as customer friendly entry points to sugar - for cases, leads, accounts, quotations ... I suspect it may have something to do with the way chronoforms handles the data.

    Salesagility,

    Do you know of a howto for using the soap API to accomplish this?

    thx

    sysdoc

  9. #9
    Mithun's Avatar
    Mithun is offline A Prolific Poster
    Join Date
    Mar 2009
    Location
    India
    Posts
    236

    Default Re: lead capture from joomla

    Actually Sugar WebtoLead Capture form works well with joomla extensions like chronoform and com_php
    Mithun P Sreedharan
    ITFlux Inc
    38030 Stenhammer Dr
    Fremont
    CA, USA - 94536
    Phone : (510)-792-8897
    Fax : (408)-877-1588
    For further queries mail to mithun@itflux.com

  10. #10
    agcopley is offline Sugar Community Member
    Join Date
    Nov 2007
    Location
    Santiago, Chile
    Posts
    204

    Default Re: lead capture from joomla

    Quote Originally Posted by sysdoc View Post
    Salesagility,

    Do you know of a howto for using the soap API to accomplish this?

    thx

    sysdoc
    There are a multitude of ways to do this but two ways I have used is:
    1. A simple version using the CURL library to make calls to the soap api from the Joomla side.
    You then have to decide what to do with the output, but its straightforward once you are familiar
    with curl and the soap api.

    2. A more complex verison using JSON calls from the portal using Curl and using sugar JSON to
    access the soap api locally and return data to the portal. I find this way gives me more access
    to Sugar functionality.

    Rgds
    Andrew

Page 1 of 3 123 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Lead Capture as a Joomla 1.5 Module
    By shane55 in forum Help
    Replies: 7
    Last Post: 2010-04-21, 08:35 PM
  2. Problem in "Leads Capture for Joomla 1.0.x" project page administration
    By joomcreativsug in forum Sugar Developer Website
    Replies: 1
    Last Post: 2008-04-17, 09:42 PM
  3. Need help with Lead capture
    By trey5498 in forum Installation and Upgrade Help
    Replies: 3
    Last Post: 2007-03-06, 02:50 PM
  4. Need help with web lead capture
    By bted in forum Help
    Replies: 0
    Last Post: 2006-11-16, 02:51 PM
  5. I Need Help with Lead Capture
    By pelucapampa in forum General Discussion
    Replies: 1
    Last Post: 2005-08-01, 12:22 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •