Al Brookbanks Posted October 21, 2003 Share Posted October 21, 2003 Name: contact.zip Version: 1.1 Author: OhMyGod Short Description: Updated contact_us.php Long Description: Contact e-mail form. Allows visitor to submit e-mail to any department (e-mail address) you allow the customer to contact. Customer selects a department by selecting the e-mail address from a pulldown box. Also allows the customer to specify the subject of the e-mail message. [Download File] Link to comment Share on other sites More sharing options...
Guest claridgep Posted October 22, 2003 Share Posted October 22, 2003 Just downloaded the new version... and unless I'm seeing things, it's still contact_us.zip and the install.txt says it's last updated 9.10!! Peter Link to comment Share on other sites More sharing options...
Guest Posted October 22, 2003 Share Posted October 22, 2003 Hey guys Was This One A Joke It Is The Same Contact Form!!! Please Advise wildbill Link to comment Share on other sites More sharing options...
Guest ohmygod Posted October 22, 2003 Share Posted October 22, 2003 The file I submitted to Brooky was called contact.zip containing two files, all dated 10/17/2003. The last updated date in the install.txt as well as the contact_us.php was changed to 10/17/2003. Link to comment Share on other sites More sharing options...
Guest ohmygod Posted October 22, 2003 Share Posted October 22, 2003 Send me a privat message with your e-mail and I will e-mail you the correct zipfile until Brooky can update the correct file. Link to comment Share on other sites More sharing options...
Guest ohmygod Posted October 22, 2003 Share Posted October 22, 2003 I just checked the download and it says the filename is contact.zip but it is actually linking to the old contact_us.zip file. Link to comment Share on other sites More sharing options...
Guest d_v_pelt Posted October 28, 2003 Share Posted October 28, 2003 Hello, I don't get it...how do you install this script?? :S Link to comment Share on other sites More sharing options...
Guest ohmygod Posted October 29, 2003 Share Posted October 29, 2003 Follow the instructions in the install.txt file. Brooky informed me that the ocrrect file is now available. Link to comment Share on other sites More sharing options...
Guest d_v_pelt Posted October 29, 2003 Share Posted October 29, 2003 when i try that it won't work OPEN: admin/lang/english.inc.php 1 create a MOD TEXT section (skip if you allready have one) 2 insert: //*************************** // MOD CONTACT_US TEXT //*************************** $la_mod_cont_header ="Contact us"; $la_mod_cont_email_inv = "Either no email was entered or it was not valid!"; $la_mod_cont_mess_inv = "You did not enter a message!"; $la_mod_cont_corr = "Click here to try again"; $la_mod_cont_mess = "Your Message:"; $la_mod_cont_name = "Your Name:"; $la_mod_cont_addr = "Your E-mail:"; $la_mod_cont_department = "Select Department"; $la_mod_cont_subject = "Subject"; $la_mod_cont_send = "Send Us Email"; $la_mod_cont_succ = "Your email has been successfully sent to:"; $la_mod_cont_sub_header = "Send us email using the form below:"; $la_mod_cont_char = "characters remaining on your input limit"; $la_mod_cont_Mfrom = "Message from:"; $la_mod_cont_Msend = "This message was sent from your contact form located at"; $la_mod_cont_Mwho = "Here is the message from"; $la_mod_cont_Mmail = "at"; Create mod text?? I only followed the 2nd step. It still won't work And when i insert the contact_us.php it doesn't replace any file?? Im sorry Im a n00b in PHP can anybody help me? Link to comment Share on other sites More sharing options...
Guest stijnj Posted October 29, 2003 Share Posted October 29, 2003 hey read thistopic ! greetz Stijn Link to comment Share on other sites More sharing options...
Guest Dede Posted November 3, 2003 Share Posted November 3, 2003 What am I missing?????? I added the mod files to English.inc.php and lodged the contact.php to the store folder. [contact_us.php just gives an error stream on the screen - contact.php does not] but nothing happens. If I enter the path to contact.php in the browser, I get the original contact form, but using the contact us link in Information, I just get my old page as supplied with the cubecart download. There's something I don't understand - but what? :) Link to comment Share on other sites More sharing options...
Guest stijnj Posted December 8, 2003 Share Posted December 8, 2003 for those who would like to have a 1 step link to the contact us page please read this topic Link to comment Share on other sites More sharing options...
Guest webhost Posted January 10, 2004 Share Posted January 10, 2004 hello, im not able to download the contact mod or english packs, is there something wrong with the links?? Link to comment Share on other sites More sharing options...
Guest readitag Posted January 10, 2004 Share Posted January 10, 2004 They were probably lost when brooky had server problems recently. I would imagine that he will have them restored soon. Link to comment Share on other sites More sharing options...
Guest webhost Posted January 12, 2004 Share Posted January 12, 2004 hello there, im not impatient but would like to know when i can show my customer some french and other mods which are still not available, Any ideas on avail, thanks. :rolly: Link to comment Share on other sites More sharing options...
Guest Posted January 12, 2004 Share Posted January 12, 2004 I have tried to install this mod, how do you get the link to know where to find the form? I have looked at all the instructions here in the forum, added the mod text to the english.inc.php file, uploaded the contact_us.php , nothing is showing. I deleted my Contact page that was there and now have none. I know I must be missing some little thing. How do you get the link in the info box? When I type the url in , the form is there but I can't make a link to it! I don't understand php very well - does it make any difference where the new text goes in the english file? :rolly: Link to comment Share on other sites More sharing options...
Guest stijnj Posted January 13, 2004 Share Posted January 13, 2004 deedee, read my post in this topic Link to comment Share on other sites More sharing options...
Guest Posted January 13, 2004 Share Posted January 13, 2004 That is the post I followed and still nothing shows in the box. I also changed admin1 to admin and deleted the old contact form. I'll re-check everything but already did this twice. Thanks Update - In rechecking, I looked the code over that I was to paste in the information.php and found my error, I had statistics turned off! Guess it was simple after all. Thanks again! Link to comment Share on other sites More sharing options...
Guest Posted October 5, 2004 Share Posted October 5, 2004 Stijni all your posts that refer to other topics return to the home page Is there anywhere to see how to fix this mod please :) Link to comment Share on other sites More sharing options...
Guest ohmygod Posted October 6, 2004 Share Posted October 6, 2004 Not sure what happened to the zip file. But to see the script in action go here: Contact Us Script I simply added a line to the contact us document: <strong>E-mail Us:</strong><a href=contact_us.php>Contact Form</a> This is contact_us.php file I am using: <?php /*************************************************************************** * * CUBECART 2.00 INFO * **************************************************************************** * Developer: Alistar Brookbanks (Brooky.com) * Copyright: (C)2003 http://www.brooky.com * Copyright: (C)2003 http://www.cubecart.com * This program is not "free" software and restrictions apply! * Further Info: http://www.cubecart.com/license.php * Contact [email protected] if any conditions are not clear. * * Licensees holding valid "CubeCart Licence Number" may edit * the (powered by CubeCart) from browser title and "Powered by CubeCart" * and "(c) Brooky.com" from the web page footer. * * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING * THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE. This and all others in the download package can only be * redistributed with written permission from Alistair Brookbanks! * * The "CubeCart License" is available to purchase at * https://secure.cubecart.com/ * For pricing please contact us via e-mail at [email protected] *************************************************************************** * * MOD INFO * ************************************************************************** * * File info : contact_us.php * Purpose : Let your customers leave a message * * Author : Angela Poling is the original author (made this mod for estore) * http://pdc-giftshop.com * : Stijn Jammaers modified the script so it fits CubeCart 2.00 * : http://www.pastij.be * * Last update: 10/05/2004 by Ohmygod * * * Special note : allways backup your files before adding mods !! * * * **************************************************************************/ session_start(); include("admin/config.php"); include( "admin/settings.inc.php"); include( "shoppingcart.php"); include( "header.inc.php"); $cart = new Cart; include("subheader.inc.php"); // start border sb("100%","$la_mod_cont_header",$colour_1,$colour_2); // navigation echo"<a href=\"store.php\" target=\"_self\">Home</a> > $la_mod_cont_header<br>"; // if contact form has been submit if($submit){ // validate senders email if ((!ereg("^[a-zA-Z0-9_.]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$", $from_email))or(empty($from_email))) { Echo "<p><div align='center'><font color=#990000><b>$la_mod_cont_email_inv</b></font></p>"; $again=1; }//end validate email // ensure names have been entered if (empty($from_name)) { Echo "<p><div align='center'><font color=#990000><b> $la_account_form_must</b></font></p>"; $again=1; } // if user did not enter a message if(empty($message)) { Echo "<p><div align='center'><font color=#990000><b>$la_mod_cont_mess_inv</b></font></p>"; $again=1; } // display link if error occurred if ($again==1) { echo"<p align=\"center\"><a href = \"contact_us.php?session=$session\">$la_mod_cont_corr</a></p>"; } // end ($again==1) // build message if(empty($again)){ $subject = "$la_mod_cont_Mfrom: $from_name"; $messagebody .="Message from website: $la_mod_cont_Msend $site_url.\r\n\r\n"; $messagebody .="Customer Name: $la_mod_cont_Mwho $from_name E-mail address: $la_mod_cont_Mmail $from_email.\r\n\r\n\r\n"; $message = stripslashes($message); $messagebody .="$message"; // send mail mail($to_email, $subject_email, $messagebody, "From: $from_email"); // confirmation message echo"<p align=\"center\">$la_mod_cont_succ <b>$to_email</b>!</p>"; } }//end if submit // display tell a friend form if(!$submit){ if(session_is_registered(valid_user)) { $select = mysql_query ("select * from ".$prefix."store_customer where email='$valid_user'"); $row = mysql_fetch_array($select); $from_name=$row["name"]; $from_email=$row["email"]; } ?> <p align="left"><?echo $la_mod_cont_sub_header?></p><br> <script language="JavaScript"> <!-- var ns6=document.getElementById&&!document.all function restrictinput(maxlength,e,placeholder){ if (window.event&&event.srcElement.value.length>=maxlength) return false else if (e.target&&e.target==eval(placeholder)&&e.target.value.length>=maxlength){ var pressedkey=/[a-zA-Z0-9\.\,\/]/ //detect alphanumeric keys if (pressedkey.test(String.fromCharCode(e.which))) e.stopPropagation() } } function countlimit(maxlength,e,placeholder){ var theform=eval(placeholder) var lengthleft=maxlength-theform.value.length var placeholderobj=document.all? document.all[placeholder] : document.getElementById(placeholder) if (window.event||e.target&&e.target==eval(placeholder)){ if (lengthleft<0) theform.value=theform.value.substring(0,maxlength) placeholderobj.innerHTML=lengthleft } } function displaylimit(theform,thelimit){ var limit_text='<b><span id="'+theform.toString()+'">'+thelimit+'</span></b> <?echo $la_mod_cont_char?> ' if (document.all||ns6) document.write(limit_text) if (document.all){ eval(theform).onkeypress=function(){ return restrictinput(thelimit,event,theform)} eval(theform).onkeyup=function(){ countlimit(thelimit,event,theform)} } else if (ns6){ document.body.addEventListener('keypress', function(event) { restrictinput(thelimit,event,theform) }, true); document.body.addEventListener('keyup', function(event) { countlimit(thelimit,event,theform) }, true); } } --> </script> <form name="form" action="contact_us.php?session=$session" method="post" > <table width="450" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="150" align="left"><strong>Your Name</strong></td> <td><input name="from_name" value="<?php echo $from_name; ?>" type="text" class="textbox" size="30" maxlength="30"><font color="#990000"> *</font></td> </tr> <tr> <td width="150" align="left"><strong>Your E-mail address</strong></td> <td><input name="from_email" value="<?php echo $from_email; ?>" type="text" class="textbox" size="30" maxlength="30"><font color="#990000"> *</font></td> </tr> <tr> <td width="150" align="left"><strong><?echo $la_mod_cont_addr?></strong></td> <td><select name="to_email" value="<?php echo $to_email; ?>"> <option selected value="Please Select Department">Please Select Department </option> <option value="emailaddress1">emailaddress1</option> <option value="emailaddress2">emailaddress2</option> <option value="emailaddress3">emailaddress3 </option> </select><font color="#990000"> *</font></td> </tr> <td width="150" align="left"><strong>Subject</strong></td> <td><input name="subject_email" value="<?php echo $subject_email; ?>" type="text" class="textbox" size="30" maxlength="30"><font color="#990000"> *</font></td> </tr> <tr> <td align="left" valign="top"><strong>Your Message</strong></td> <td valign="top"><textarea name="message" cols="54" rows="10" id="message"><?php echo $message; ?></textarea><br><strong><font color=red>Characters Left: </font></strong> <script language="javascript">displaylimit("document.form.message",1024)</script> </td> </tr> <tr> <td width="150" align="left" valign="top"> </td> <td><input type="submit" name="submit" class="submit" value="Send Message"><br> <?echo $la_account_form_must?></td> </tr> </table> </form> <? }//end if no submit // end border eb($bg_colour,$colour_1); include("subfooter.inc.php"); include("footer.inc.php"); ?> Make sure to replace the emailaddress1 -emailaddress3 values with your e-mail addresses and descriptions. You can of course additional addresses. Hope that helps. Link to comment Share on other sites More sharing options...
Guest Posted October 6, 2004 Share Posted October 6, 2004 Thanks buddy! :) Link to comment Share on other sites More sharing options...
Guest ohmygod Posted October 7, 2004 Share Posted October 7, 2004 Thanks buddy! Very welcome! Link to comment Share on other sites More sharing options...
Recommended Posts