***UPDATED*** DB Technosystems Form Processor 02/09/2011

In this section you can share self-made extensions with other users of WYSIWYG Web Builder.
There is a dedicated section for commercial extensions.
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: ***UPDATED*** DB Technosystems Form Processor 02/09/2011

Post by Navaldesign »

The method is correct. The only thing that Kevin has had to change is the code in the "Custom Processing":

include "random.php";
www.dbtechnosystems.com
User avatar
Patrik iden
 
 
Posts: 479
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: ***UPDATED*** DB Technosystems Form Processor 02/09/2011

Post by Patrik iden »

Navaldesign wrote:The method is correct. The only thing that Kevin has had to change is the code in the "Custom Processing":

include "random.php";
Ahh, now it works perfect. Thank you for all your help.
User avatar
Patrik iden
 
 
Posts: 479
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: ***UPDATED*** DB Technosystems Form Processor 02/09/2011

Post by Patrik iden »

Hello. I'm trying to exclude some fields in the form processor, this is what i typed in that field: epost, namn, telefon, mobil
Translated: email, name, phone, mobile.
But it is only the email field that is excluded.

And now sudently all of the abov fields exept mobil are excluded, i dont get this?
User avatar
Patrik iden
 
 
Posts: 479
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: ***UPDATED*** DB Technosystems Form Processor 02/09/2011

Post by Patrik iden »

Hi can i use the form processor with the signup form?
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: ***UPDATED*** DB Technosystems Form Processor 02/09/2011

Post by Navaldesign »

The Signup form has a specific algorithm for password encrypion as well as a verification routine for unique username. To use the DBTS Form Processor you will need to implement these routines through the "Custom Processing" properties.

Did you solve the issue with the excluded fields ?
www.dbtechnosystems.com
User avatar
Patrik iden
 
 
Posts: 479
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: ***UPDATED*** DB Technosystems Form Processor 02/09/2011

Post by Patrik iden »

Yes i solved the excluded fields issue.
So can i take some kode from the Signup form and put that code in the Custom Processing propertis?
I only need the form processor for the mail layout and send to admin and user.
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: ***UPDATED*** DB Technosystems Form Processor 02/09/2011

Post by Navaldesign »

You can add the necessary code in the Start of Script Custom Include, but you must know what you are doing, otherwise you will only get errors.

You can't just take "some" code from the signup tool and "paste" it in the Form processor, it doesn't work this way.
www.dbtechnosystems.com
User avatar
Patrik iden
 
 
Posts: 479
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: ***UPDATED*** DB Technosystems Form Processor 02/09/2011

Post by Patrik iden »

OK. Cold you make sutch a code? What wold the price be?
Note: i only need this done if i can make the signup form in to Swedish
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: ***UPDATED*** DB Technosystems Form Processor 02/09/2011

Post by Navaldesign »

If the purpose is to have the HTML email, yes, I can do it, price can not be discussed here, you can contact me through my website contact form.

If the only reason is to use the words "username" and "password" in swedish, you can already do this.
www.dbtechnosystems.com
User avatar
Patrik iden
 
 
Posts: 479
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: ***UPDATED*** DB Technosystems Form Processor 02/09/2011

Post by Patrik iden »

OK, what i realy need is, in the mails i want it to say Användarnamn and Lösenord insted of Username and Password.
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: ***UPDATED*** DB Technosystems Form Processor 02/09/2011

Post by Navaldesign »

if you don't need the HTML emails, simply modify the wording in the Signup object code (after you convert it to Form)
www.dbtechnosystems.com
User avatar
Patrik iden
 
 
Posts: 479
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: ***UPDATED*** DB Technosystems Form Processor 02/09/2011

Post by Patrik iden »

Navaldesign wrote:If the purpose is to have the HTML email, yes, I can do it, price can not be discussed here, you can contact me through my website contact form.

If the only reason is to use the words "username" and "password" in swedish, you can already do this.
Cold this code then bee used to change the ex, Username, Password fields in to what ever? Like in the Formprocessor's email field?

I Sent you a message from your Website.
Last edited by Patrik iden on Mon Oct 24, 2011 10:20 pm, edited 1 time in total.
User avatar
Patrik iden
 
 
Posts: 479
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: ***UPDATED*** DB Technosystems Form Processor 02/09/2011

Post by Patrik iden »

Navaldesign wrote:if you don't need the HTML emails, simply modify the wording in the Signup object code (after you convert it to Form)
OK. I will try to translate every login tool, in to Swedish. Wil'l see how it goes :roll:
User avatar
Patrik iden
 
 
Posts: 479
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: ***UPDATED*** DB Technosystems Form Processor 02/09/2011

Post by Patrik iden »

In the Signup form code, do i change this code

Code: Select all

$crypt_pass
if so, to what? do i use the 4 first letters in the password traslation lösenord (löse) or what?

And do i change this?:

Code: Select all

$mailto = $newepost;
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: ***UPDATED*** DB Technosystems Form Processor 02/09/2011

Post by Navaldesign »

Signup page: Change these lines of code (see words in red)


$mailto = $newemail;
$subject = 'Your new account';
$message = 'A new account has been setup.';
$message .= "\r\nUsername: ";
$message .= $newusername;
$message .= "\r\nPassword: ";
$message .= $newpassword;
$message .= "\r\n";
$header = "From: webmaster@yourwebsite.com"."\r\n";
$header .= "Reply-To: webmaster@yourwebsite.com"."\r\n";
$header .= "MIME-Version: 1.0"."\r\n";
$header .= "Content-Type: text/plain; charset=utf-8"."\r\n";
$header .= "Content-Transfer-Encoding: 8bit"."\r\n";
$header .= "X-Mailer: PHP v".phpversion();
mail($mailto, $subject, $message, $header);
header('Location: '.$success_page);
exit;
www.dbtechnosystems.com
User avatar
Patrik iden
 
 
Posts: 479
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: ***UPDATED*** DB Technosystems Form Processor 02/09/2011

Post by Patrik iden »

Yes that works for the mails, but now i am translating the hole thing. Thats wy i wonderd about the prev question?
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: ***UPDATED*** DB Technosystems Form Processor 02/09/2011

Post by Navaldesign »

I repeat: The fields in the database MUST remain as they are (username and password) otherwise the other tools will NOT work.

You ONLY need to change the labels (text) in the forms (which you can do right from inside WWB) and the labels (text) in the mail. Do NOT change anything else.
www.dbtechnosystems.com
User avatar
Patrik iden
 
 
Posts: 479
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: ***UPDATED*** DB Technosystems Form Processor 02/09/2011

Post by Patrik iden »

I dont think you understand me. I Whant this hole thing in Swedish, so that all the mails and the database entrys is in swedish. I will translate all the tools.
If i can! :roll:
I just tried the translated signin form, but now i just get the message "User database not found" but the db entrys are correct setup. :oops:
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: ***UPDATED*** DB Technosystems Form Processor 02/09/2011

Post by Navaldesign »

Please understand that if you want to modify the full set of Login tools, you MUST have PHP (and probably MySQL, if you are using it) experience.
There is no way someone can guide you through the whole process, you will have to change this yourself.
www.dbtechnosystems.com
User avatar
Patrik iden
 
 
Posts: 479
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: ***UPDATED*** DB Technosystems Form Processor 02/09/2011

Post by Patrik iden »

I understand. Just one question, will it work if i put in åäö in the code?


Just if you want to and if you have the time could you take a quick look at this translated code, if you see anything wrong with it? :oops: the password for db is not in this code!

Code: Select all

<?php
$error_message = "";
if ($_SERVER['REQUEST_METHOD'] == 'POST')
{
   $action = isset($_POST['action']) ? $_POST['action'] : '';
   $mysql_server = 'mysql315.loopia.se';
   $mysql_username = 'pers@f47255';
   $mysql_password = '';
   $mysql_database = 'fcab_se_db_4';
   $mysql_table = 'USERS';

   $success_page = './anslut.php';

   if ($action == 'signup')
   {
      $newanvändarnamn = $_POST['användarnamn'];
      $newlösenord = $_POST['lösenord'];
      $newepost = $_POST['epost'];
      $bekräftalösenord = $_POST['bekräftalösenord'];
      $newnamn = $_POST['namn'];
      $telefon = $_POST['telefon'];
      $mobil = $_POST['mobil'];
      $företag = $_POST['företag'];
      $orgnr = $_POST['orgnr'];
      $kategori = $_POST['kategori'];
      $meddelande = $_POST['meddelande'];
      if ($newlösenord != $bekräftalösenord)
      {
         $error_message = 'Lösenord och bekräfta lösenord är ej lika!';
      }
      else
      if (!ereg("^[A-Za-z0-9_!@$]{1,50}$", $newanvändarnamn))
      {
         $error_message = 'Ogiltigt användarnamn, försök igen!';
      }
      else
      if (!ereg("^[A-Za-z0-9_!@$]{1,50}$", $newlösenord))
      {
         $error_message = 'Ogiltigt lösenord, försök igen!';
      }
      else
      if (!ereg("^[A-Za-z0-9_!@$.' &]{1,50}$", $newnamn))
      {
         $error_message = 'Ogiltigt namn, försök igen!';
      }
      else
      if (!ereg("^.+@.+\..+$", $newepost))
      {
         $error_message = 'Ogiltig epost adress, försök igen!';
      }
      if (empty($error_message))
      {
         $db = mysql_connect($mysql_server, $mysql_username, $mysql_password);
         mysql_select_db($mysql_database, $db);
         $sql = "SELECT användarnamn FROM ".$mysql_table." WHERE användarnamn = '".$newanvändarnamn."'";
         $result = mysql_query($sql, $db);
         if ($data = mysql_fetch_array($result))
         {
            $error_message = 'Användarnamn upptaget, välj ett annat.';
         }
      }
      if (empty($error_message))
      {
         $crypt_pass = md5($newlösenord);
         $sql = "INSERT `".$mysql_table."` (`användarnamn`, `lösenord`, `namn`, `epost`, `active`, `telefon`, `mobil`, `företag`, `orgnr`, `kategori`, `meddelande`) VALUES ('$newanvändarnamn', '$crypt_pass', '$newnamn', '$newepost', 1, '$telefon', '$mobil', '$företag', 'orgnr', '$kategori', '$meddelande')";
         $result = mysql_query($sql, $db);
         mysql_close($db);
         $mailto = $newepost;
         $subject = 'Nytt konto hos Jobler.se';
         $message = 'Nytt konto hos Jobler.se.';
         $message .= "\r\nAnvändarnamn: ";
         $message .= $newanvändarnamn;
         $message .= "\r\nLösenord: ";
         $message .= $newlösenord;
         $message .= "\r\n";
         $header  = "From: noreply@jobler.se"."\r\n";
         $header .= "Reply-To: noreply@jobler.se"."\r\n";
         $header .= "MIME-Version: 1.0"."\r\n";
         $header .= "Content-Type: text/plain; charset=utf-8"."\r\n";
         $header .= "Content-Transfer-Encoding: 8bit"."\r\n";
         $header .= "X-Mailer: PHP v".phpversion();
         mail($mailto, $subject, $message, $header);
         header('Location: '.$success_page);
         exit;
      }
   }
}
?>
Last edited by Patrik iden on Tue Oct 25, 2011 1:35 pm, edited 2 times in total.
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: ***UPDATED*** DB Technosystems Form Processor 02/09/2011

Post by Navaldesign »

Probably not but not sure as I have NEVER seen ANY php software using such characters.

But again, I repeat: you are doing something absolutely useles, database field naming has NOTHING to do with what the user will ever see. Please try to understand that what the user sees on screen or in the mails, can be set APART from the actual field naming in the database. You are only complicating your life.
www.dbtechnosystems.com
User avatar
Patrik iden
 
 
Posts: 479
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: ***UPDATED*** DB Technosystems Form Processor 02/09/2011

Post by Patrik iden »

Can i use the Code we talked about in the password recovery tool, or is this specificly for signup tool?
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: ***UPDATED*** DB Technosystems Form Processor 02/09/2011

Post by Navaldesign »

No, you can't. The DBTS Form Processor can only store data in the database, it can not retrieve or reset data. This is also the reason why I didn't answer you back with a price, because it is useless for the other tools.
www.dbtechnosystems.com
User avatar
Patrik iden
 
 
Posts: 479
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: ***UPDATED*** DB Technosystems Form Processor 02/09/2011

Post by Patrik iden »

OK, Thank you so much for all your answers. I'm realy greatfull! :D
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: ***UPDATED*** DB Technosystems Form Processor 02/09/2011

Post by Navaldesign »

v.3 will work with WWB7 and of course with WWB8 (it is already being tested with WWB8)
www.dbtechnosystems.com
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: ***UPDATED*** DB Technosystems Form Processor 02/09/2011

Post by Navaldesign »

When it is 100% ready.....
www.dbtechnosystems.com
User avatar
Patrik iden
 
 
Posts: 479
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: ***UPDATED*** DB Technosystems Form Processor 02/09/2011

Post by Patrik iden »

Hi I'm posting this hear, dont know ware else to post. But i wonder if you could help me whit somthing.
I Have a page that gets info from mysql, and beside that info i have inserted a mailform using the mail code from WWB mailform.
My problem is that i want to get the mailto emailaddress from the database. My Code looks like this now, but it's not working.
So if you want and have the time could you pleas have a look at it? I will gladely pay to get this to work! And this is the site address:
http://jobler.se/senaste6.php

Code: Select all

<?php
$databasename='****'; // Name of the database
$tablename='jobadd'; // Name of the table
$mysqladd='*****'; // Address to the MySQL Server - Usually localhost but could be an IP address
$mysqluser='*****'; // Your MySQL UserName
$mysqlpass='*****'; // Your MySQL Password


//CONNECT TO MYSQL
$link=mysql_connect($mysqladd, $mysqluser, $mysqlpass) or die('Could not connect to database: ' . mysql_error());

//CONNECT TO DATABASE
mysql_select_db($databasename, $link) or die('Could not connect to table: ' . mysql_error());

$Epost = $_POST['Epost'];

$query="SELECT Epost FROM jobadd WHERE Epost = '$Epost'"; 
 
$result=mysql_query($query); 
 
$row = mysql_fetch_array($result, MYSQL_ASSOC);

 
session_start();

if ($_SERVER['REQUEST_METHOD'] == 'POST') { 
  if (isset($_POST['captcha_code'],$_SESSION['random_txt']) && md5($_POST['captcha_code']) == $_SESSION['random_txt']) { 
    unset($_POST['captcha_code'],$_SESSION['random_txt']); 
  } 
  else { if ($errorpage == 'false') {
    echo '<b>Fel kod!</b><br>'; 
    echo '<a href="javascript:history.back()">Försök igen!</a>'; 
    exit; 
  } if ($errorpage == 'true')  { 
    header('Location: ././error.php'); 
  exit; 
  } 
}
}  
?>
<?php

   function ValidateEmail($email)
   {
      $pattern = '/^([0-9a-z]([-.\w]*[0-9a-z])*@(([0-9a-z])+([-\w]*[0-9a-z])*\.)+[a-z]{2,6})$/i';
      return preg_match($pattern, $email);
   }

   if($_SERVER['REQUEST_METHOD'] == 'POST')
   {
      $mailto = $Epost;
      $mailfrom = isset($_POST['email']) ? $_POST['email'] : $mailto;
      $subject = 'Svar på Tjänstförfrågan från Jobler.se';
      $message = 'Hej, Vi vill gärna lämna en facktura på denna Tjänstförfrågan';
      $success_url = './tack.php';
      $error_url = './error.php';
      $error = '';
      $eol = "\n";
      $max_filesize = isset($_POST['filesize']) ? $_POST['filesize'] * 1024 : 1024000;
      $boundary = md5(uniqid(time()));

      $header  = 'From: '.$mailfrom.$eol;
      $header .= 'Reply-To: '.$mailfrom.$eol;
      $header .= 'MIME-Version: 1.0'.$eol;
      $header .= 'Content-Type: multipart/mixed; boundary="'.$boundary.'"'.$eol;
      $header .= 'X-Mailer: PHP v'.phpversion().$eol;
      if (!ValidateEmail($mailfrom))
      {
         $error .= "The specified email address is invalid!\n<br>";
      }

      if (!empty($error))
      {
         $errorcode = file_get_contents($error_url);
         $replace = "##error##";
         $errorcode = str_replace($replace, $error, $errorcode);
         echo $errorcode;
         exit;
      }

      $internalfields = array ("submit", "reset", "send", "captcha_code");
      $message .= $eol;
      $message .= $_SERVER['REMOTE_ADDR'];
      $message .= $eol;
      foreach ($_POST as $key => $value)
      {
         if (!in_array(strtolower($key), $internalfields))
         {
            if (!is_array($value))
            {
               $message .= ucwords(str_replace("_", " ", $key)) . " : " . $value . $eol;
            }
            else
            {
               $message .= ucwords(str_replace("_", " ", $key)) . " : " . implode(",", $value) . $eol;
            }
         }
      }

      $body  = 'This is a multi-part message in MIME format.'.$eol.$eol;
      $body .= '--'.$boundary.$eol;
      $body .= 'Content-Type: text/plain; charset=ISO-8859-1'.$eol;
      $body .= 'Content-Transfer-Encoding: 8bit'.$eol;
      $body .= $eol.stripslashes($message).$eol;
      if (!empty($_FILES))
      {
          foreach ($_FILES as $key => $value)
          {
             if ($_FILES[$key]['error'] == 0 && $_FILES[$key]['size'] <= $max_filesize)
             {
                $body .= '--'.$boundary.$eol;
                $body .= 'Content-Type: '.$_FILES[$key]['type'].'; name='.$_FILES[$key]['name'].$eol;
                $body .= 'Content-Transfer-Encoding: base64'.$eol;
                $body .= 'Content-Disposition: attachment; filename='.$_FILES[$key]['name'].$eol;
                $body .= $eol.chunk_split(base64_encode(file_get_contents($_FILES[$key]['tmp_name']))).$eol;
             }
         }
      }
      $body .= '--'.$boundary.'--'.$eol;
      mail($mailto, $subject, $body, $header);
      header('Location: '.$success_url);
      mysql_close();
      exit;
   }

?>
This also regards to the subject.

Thank you.

/Patrik
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: ***UPDATED*** DB Technosystems Form Processor 02/09/2011

Post by Navaldesign »

First, this has nothing to do with this thread, and posting it here makes it harder for other users to find answers regarding the DBTS Form Processor.

You should be starting a new thread.

Now, regarding your code, it is rather meaningless.

I mean, you are trying to retrieve an email address (Epost) from the database, but then you do nothing with it! so what's the purpose ?

Then, you do his retrieval in ALL cases, even when the method is not POST. In that case, the WHERE clause is invalid as no value exists for Epost.

But even when the method is POST , you are trying to retrieve the record from the database but you then don't extract it from the $row you retrieved, neither are you using it anywhere .

Can you explain what's the purpose of this so I can help you ? and please start a new thread.
www.dbtechnosystems.com
User avatar
Patrik iden
 
 
Posts: 479
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: ***UPDATED*** DB Technosystems Form Processor 02/09/2011

Post by Patrik iden »

Thanks for your reply. New Thread: viewtopic.php?f=21&t=42999&p=214462#p214462
User avatar
kevinp
 
 
Posts: 96
Joined: Wed Feb 21, 2007 2:51 pm
Location: Preston, Lancashire, England

Re: ***UPDATED*** DB Technosystems Form Processor 02/09/2011

Post by kevinp »

Hi Naval

Personally I think the work you do to extend the capabilities of WB is verging on a miracle. Your extensions are brilliant and I think I can confidently say that everyone in the forum appreciates the work you do in your free time without payment and understand that your paid work has to come first. If people need something extra and need it fast then, as I have done in the past, they can contact you and pay for it (at very reasonable rates I must add). Keep up the excellent work Naval but not at the expense of your health.

Cheers

Kevinp
User avatar
BaconFries
 
 
Posts: 5371
Joined: Thu Aug 16, 2007 7:32 pm

Re: ***UPDATED*** DB Technosystems Form Processor 02/09/2011

Post by BaconFries »

I have to say this to, Naval the work you do is Fantastic, without your contribution to WB many wouldnt have the great features that your extensions offer. I fully appreciate this, but I do get a bit peeved at times, when you are getting constantly asked, when will this be ready! or when will this ready!!... so please just release "When you think it should be released" or when it is ready, after all "Patience is a virtue" and "Good this will come to those who wait.... Patiently "
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: ***UPDATED*** DB Technosystems Form Processor 02/09/2011

Post by Navaldesign »

Thank you Kevin, Thank you Baconfries, for your support and touching wording! :D
www.dbtechnosystems.com
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: ***UPDATED*** DB Technosystems Form Processor 02/09/2011

Post by Navaldesign »

avielbaum wrote:Hi,

I have purchased the WYSIWYG WB8 and I'm trying for hours to get the DBTS extension to work with theWB8, I have tried several times to install it from the extension manager after downloading the zip file from the DBTS web site , it says that the install was sucse but i can't see any new extension in the WB8

Attached please find the WYSIWYG WB8 interface showing the extensions installed, no DBTS

I hope it's the correct location to post my question, can you please instruct me what to do

Thanks a lot

Avi

I’m afraid there is no much I can say as this doesn’t depend on my extension.

Maybe you have changed the folder where WWB is looking for the extension ?

You can also try this: copy the extension wbx file in Documents/WYSIWYG Webbuilder/system/extensions and also in c/programs/WYSIWYG Webbuilder folders.
www.dbtechnosystems.com
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: ***UPDATED*** DB Technosystems Form Processor 02/09/2011

Post by Navaldesign »

@parcou: viewtopic.php?f=42&t=20732 Look for the download link. Or, install through WWB's Extension Manager.
www.dbtechnosystems.com
User avatar
Patrik iden
 
 
Posts: 479
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: ***UPDATED*** DB Technosystems Form Processor 02/09/2011

Post by Patrik iden »

Hi i have this code as an include file in the form processor. Can i also use it in WWB Signup tool?
The code generates a 10 carracter code.

Code: Select all

<?
//set the random id length 
$random_id_length = 10; 

//generates a random id encrypt it and store it in $rnd_id 
$rnd_id = crypt(uniqid(rand(),1)); 

//removes any slashes that might have been generated 
$rnd_id = strip_tags(stripslashes($rnd_id)); 

//Removing any . or / and reversing the string 
$rnd_id = str_replace(".","",$rnd_id); 
$rnd_id = strrev(str_replace("/","",$rnd_id)); 

//finally take the first 10 characters from the $rnd_id 
$rnd_id = substr($rnd_id,0,$random_id_length); 
// I've added this later in the echo and e-mail 
//echo "When contacting us please quote: $rnd_id"; 
//Converts the reference to uppercase 
$rnd_id = strtoupper($rnd_id);

$_POST['Regkod'] = $rnd_id; // This line adds in the POST superglobal the unique ID you created
$autoresponderend .= "\nWhen contacting us please quote: $rnd_id"; // This line adds to the autoresponder footer the message with the quote ID
?>

User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: ***UPDATED*** DB Technosystems Form Processor 02/09/2011

Post by Navaldesign »

If this is a question about the Login tools code, you should be posting it there and not in this thread.

Generaly speaking, Yes, you can add it in the signup tool code, as long as you know what you are doing.
www.dbtechnosystems.com
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: ***UPDATED*** DB Technosystems Form Processor 02/09/2011

Post by Navaldesign »

Did you read the instructions ? It is fully detailed in the manual.
www.dbtechnosystems.com
User avatar
Patrik iden
 
 
Posts: 479
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: ***UPDATED*** DB Technosystems Form Processor 02/09/2011

Post by Patrik iden »

Are u getting my emails George? Just want to know if you are willing to do this or not?
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: ***UPDATED*** DB Technosystems Form Processor 02/09/2011

Post by Navaldesign »

ABVFP is rather old and doesn't have the features that this extension has.
www.dbtechnosystems.com
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: ***UPDATED*** DB Technosystems Form Processor 02/09/2011

Post by Navaldesign »

Please install the extension through the extension Manager. Then, while you are still in the extension Manager, select the extension and click on "Getting started"

This will result in opening the Help File (Manual) where you will find all necessary instructions.

Remember to Restart WWB so the extension becomes active.
www.dbtechnosystems.com
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: ***UPDATED*** DB Technosystems Form Processor 02/09/2011

Post by Navaldesign »

Sorry, but aits been a long time since our last discussions. Can you please send me an email again with details of what you want ?
www.dbtechnosystems.com
User avatar
Patrik iden
 
 
Posts: 479
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: ***UPDATED*** DB Technosystems Form Processor 02/09/2011

Post by Patrik iden »

Hi, George. I Wonder if you could help me with this?

I'n got this hidden field in an mailform that is using your form processor to echo a price
based on the price given in the column Pris. This works.

Svarsavgift
<?php echo $price = $row['Pris']; ?>

Bot now in the Form Processor settings i got ".$_POST['mailto']." as Admin mail, that gets an emailaddress
from DB and i'v got autorespond ON. Also i'v got myadminmail@jobler.se as BCC so this mail is sent to admin throw BCC.

Now i want the resolt of the code below to only get maild to autoresponder and BCC (admin) not to ".$_POST['mailto']."

How can i do this pleas?


Regards

/Patrik.
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: ***UPDATED*** DB Technosystems Form Processor 02/09/2011

Post by Navaldesign »

I'm sorry, this needs some consideration and at the moment I don't have the time to analyze it.
www.dbtechnosystems.com
User avatar
Patrik iden
 
 
Posts: 479
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: ***UPDATED*** DB Technosystems Form Processor 02/09/2011

Post by Patrik iden »

Navaldesign wrote:I'm sorry, this needs some consideration and at the moment I don't have the time to analyze it.

OK. Thanks anyway. Could you pleas get back to me when you have the time pleas?
User avatar
Patrik iden
 
 
Posts: 479
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: ***UPDATED*** DB Technosystems Form Processor 02/09/2011

Post by Patrik iden »

Maybe you could answer this? (Nothing to do with the prev question)

If i have a text field in visch i put this <?php echo $price = $row['Pris']; ?> then it is added to DB
But if if i make a hidden field with the sane value then this value will not be registered in DB the collumn/field is blank?

The anme of the text textfield/hidden field is Köparens uppskattade pris and i have this column in DB.
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: ***UPDATED*** DB Technosystems Form Processor 02/09/2011

Post by Navaldesign »

It should be writen anyway, so you are probably doing something wron.

Patrik, please don't get me wrong, but the extension is provided as is. Your issues are strictly personal and of only interest to you, so this is not something I can dedicate time to. I have a work I'm doing for a living, and such issues can only be solved on a paid for basis. As you know I have dedicated quite some time to you last time. Since (as the last time) you can't provide access to the account so I can program, test and debug, there is no way to help you, not even for a fee.
www.dbtechnosystems.com
User avatar
Patrik iden
 
 
Posts: 479
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: ***UPDATED*** DB Technosystems Form Processor 02/09/2011

Post by Patrik iden »

Navaldesign wrote:It should be writen anyway, so you are probably doing something wron.

Patrik, please don't get me wrong, but the extension is provided as is. Your issues are strictly personal and of only interest to you, so this is not something I can dedicate time to. I have a work I'm doing for a living, and such issues can only be solved on a paid for basis. As you know I have dedicated quite some time to you last time. Since (as the last time) you can't provide access to the account so I can program, test and debug, there is no way to help you, not even for a fee.
I understand. I will still post questions, if you dont want to answer then dont, thow i wold appreciate just a yes or no.

Thank you for your help.
User avatar
Patrik iden
 
 
Posts: 479
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: ***UPDATED*** DB Technosystems Form Processor 02/09/2011

Post by Patrik iden »

Navaldesign wrote:It should be writen anyway, so you are probably doing something wron.

Patrik, please don't get me wrong, but the extension is provided as is. Your issues are strictly personal and of only interest to you, so this is not something I can dedicate time to. I have a work I'm doing for a living, and such issues can only be solved on a paid for basis. As you know I have dedicated quite some time to you last time. Since (as the last time) you can't provide access to the account so I can program, test and debug, there is no way to help you, not even for a fee.
I understand. I will still post questions, in cases some one else can help me. If you dont want to answer then dont, thow i wold appreciate just a yes or no.

Thank you for your help.
User avatar
Patrik iden
 
 
Posts: 479
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: ***UPDATED*** DB Technosystems Form Processor 02/09/2011

Post by Patrik iden »

Hi, how can i do to get a special message to only the email address in BCC field?
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: ***UPDATED*** DB Technosystems Form Processor 02/09/2011

Post by Navaldesign »

You can't . A BCC mail, by definition, means Black Carbon Copy, that is, an exact copy of the mail sent to an original recipient, that is sent also to the BCC email address. You will need to write custom code for this.
www.dbtechnosystems.com
Post Reply