HTML - Form Post Won't Work In Ie V9
Everyone,
An XHTML class project is posting to an e-mail address. The code works in FireFox, Chrome, and Safari, but not in IE v9. Here's the first several lines of the document, down to the <form> tag: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <link rel="stylesheet" type="text/css" href="../style-sheets/assignments-styles.css" /> <link rel="shortcut icon" href="../images/favicon.ico" type="x-icon" /> <link rel="icon" href="../images/favicon.ico" type="x-icon" /> <title>Site Opinion Form</title> <style type="text/css"> <!-- legend {float: left; color: #00008b; font-style: italic; font-size: small} --> </style> </head> <body> <form method="post" action="mailto:fname.lname@student.swic.edu?subject=Student's Assignment Input"> TIA. Similar TutorialsHello! I've got a form called 'register_form1' on my website and, at first, the submit button is disabled (whether with disabled="true" or with a short javascript mybutton.disabled='true'). After inputing text in a few input areas, I would like the button to enable. And that is done by a short javascript. But, when submiting, the POST array is empty... $name, $username, $date are null strings (I suppose). the php file ....: PHP Code: <?php $name = $_POST['inputname']; echo($name); .................. and so on ?> On the other hand, if the button is enabled and never disabled, the POST method works. I've also tried the following: I changed the type of the button to 'button', not to 'submit', and then, when it was enabled, at a given moment (onClick event), I called myForm.submit(). Same results, nothing happened. Any help is welcome. Thank you in advance. Andrei Could somebody please help .... The following form posts correctly to an email, when viewed in FireFox, but not in IE .... any ideas ? Code: <font face="Arial, ARIAL"><br><b>Lat/Long : <input size="35" type="TEXT" id="latbox" name="latbox" value="" onchange="coffeemsg()"> <br> <script language="JavaScript"> if (navigator.appVersion.lastIndexOf('Win') != -1) { dropline = "\r\n" } else { dropline = "\n" } function coffeemsg(form) { document.ccform.Message.value = ( ' ' + dropline + dropline + '--------- Add Club Request --------' + dropline + 'Club Name : ' + document.ccform.clubname.value + dropline + 'Meeting : ' + document.ccform.meetingdays.value + dropline + 'Time : ' + document.ccform.time.value + dropline + 'District : ' + document.ccform.district.value + dropline + 'Address : ' + document.ccform.address1.value + dropline + ' ' + document.ccform.address2.value + dropline + ' ' + document.ccform.address3.value + dropline + ' ' + document.ccform.address4.value + dropline + ' ' + dropline + dropline + ' Lat/long : '+ document.getElementById("latbox").value + dropline + '--------- Contact Details --------' + dropline + 'Name : ' + document.ccform.name.value + dropline + 'Phone : ' + document.ccform.phone.value + dropline + 'E-mail : ' + document.ccform.email.value + dropline + dropline + dropline + 'Message : ' + document.ccform.message.value + dropline + dropline + dropline ); } // --> </script> <br> <div align="LEFT"> <form name="ccform" action="mailto:addmyclub@fishhoeklionsclub.org.za?subject=Lions Club Addition&cc=hylton@conacher.co.za" method="post" enctype="text/plain"> <table border="0" width="100%"> <tr><!-- Row 1 --> <td><strong><u><font face="Arial">Club Details<br></font></u></strong> <form name="ccform" action="mailto:webmaster@fishhoeklionsclub.org.za?subject=Lions Club Addition&cc=hylton@conacher.co.za" method="post" enctype="text/plain"><input type="hidden" name="Message"> <p><font face="Arial, ARIAL"><b>Club Name:</b></font> <p><input onchange="coffeemsg()" size="25" name="clubname"> </p></form></td><!-- Col 1 --> <td> <p><font face="Arial, ARIAL"><b>Meeting Day:</b></font> <p><input onchange="coffeemsg()" size="25" name="meetingdays"> </p></td><!-- Col 2 --></tr> <tr><!-- Row 2 --> <td> <p><font face="Arial, ARIAL"><b>Meeting Time/s:</b></font> <p><input onchange="coffeemsg()" size="25" name="time"> </p></td><!-- Col 1 --> <td> <p><font face="Arial, ARIAL"><b>District:</b></font> <p><select name="district"> <option selected="" value="410A">410A</option> <option value="410B">410B</option> <option value="410C">410C</option> <option value="410D">410D</option> </select> </tr> <tr><!-- Row 3 --> <td> <p><font face="Arial, ARIAL"><b>Address:</b></font> <p><input onchange="coffeemsg()" size="25" name="address1"> <p><input onchange="coffeemsg()" size="25" name="address2"> <p><input onchange="coffeemsg()" size="25" name="address3"> <p><input onchange="coffeemsg()" size="25" name="address4"> </p></td><!-- Col 1 --> <td> <p> <font face="Arial, ARIAL"><b>Additional Info:</b></font><p><textarea name="message" rows="5" wrap="auto" cols="45" onchange="coffeemsg()"></textarea> </p></td><!-- Col 2 --></tr> <strong><u><font face="Arial">Your Details</font></u></strong><br><br> <font face="Arial, ARIAL"><b>Name:</b></font><p> <input size="25" name="name" onchange="coffeemsg()"> </p></td><!-- Col 1 --> <td> <p> <font face="Arial, ARIAL"><b>Phone:</b></font><p> <input size="25" name="phone" onchange="coffeemsg()"> </p></font></td><!-- Col 2 --></tr> <tr><!-- Row 6 --> <td> <p> <font face="Arial, ARIAL"><b>Email:</b></font><p> <input size="25" name="email" onchange="coffeemsg()"> </p></td><!-- Col 1 --> <td></td><!-- Col 2 --></tr> </table> <center> <input type="submit" value="Send Request" onclick="coffeemsg()"> </center> </form> Any Help would be much appreciated I was looking at w3schools.com and was reading about <Form> but i found a line that i dont know what means so i wanted to hear if U guys could tell me the meaning in some other ways so i might understandt it The line is this: This method sends the form-data as an HTTP post transaction... I dont understandt what they mean with the HTTP post transaction. THX U for the help Hi, I have created what I think is a valid form aimed at obtaining basic user info for a credit app. My question is, how do I get the info sent to an e-mail address? Also, once that occurs if you have some basic advice on how this can be considered "secure" that will be helpful. Thanks, Chris <li class="buttons" style="left: 192px; top: 0px; height: 52px"> <input type="hidden" name="form_id" value="165100" /> <input id="saveForm" class="button_text" type="submit" name="submit" value="Submit" /> <form method=post action="http://us.1.p4.webhosting.yahoo.com/forms?login=mhtrans123&to=chf_2258@yahoo.com"> <td> <form method=post action="http://us.1.p4.webhosting.yahoo.com/forms?login=mhtrans123&to=chf_2258@yahoo.com"> <input name="submitButton" tabindex="5" type="submit" value="Submit" /><input name="resetButton" tabindex="6" type="reset" value="Reset" /></form> </td> </li> and here is the link to the whole page http://www.mhtrans.com/form1 Again, Thanks Hi all, Is it possible to 'post' a request without using a form? e.g. <a href="LoginCustomer">Login</a> if yes... could you tell me how? many thanks...... mike Hey all, This is probably a stupid question, but it's driving me nuts - I have a simple form with 2x file uploads on it, and when the user clicks a button a PHP script is run. This scrip is picked up by checking the global $_POST variable for 'upload'. This works fine and my PHP script does the upload when I only select one file (using either one), but when both are filled in for some reason the global $_POST variable is empty, so my script will not run. Before looking down the PHP route I'm wondering if everything is ok with my form, or if there is some error that I am missing that is causing this problem? Any help is greatly appciated. Thanks. Code: <form action="" method="post" name="client-balances-selection" enctype="multipart/form-data"> <div id="current-balances"> <h3>Current client balances</h3> <input type="file" name="current_balances" class="file_upload" /> </div> <div id="past-balances"> <h3>Past client balances</h3> <input type="file" name="past_balances" class="file_upload" /> </div> <input type="submit" name="upload" class="button-primary" value=<?php _e('Compare'); ?> /> <input type="submit" name="delete" class="button-delete" value=<?php _e('Delete old files'); ?> /> </form> Hello all, I am having trouble pasting this html into my content management system and am looking for a solution. We are attempting to have people visit this page and opt-in for email services such as our newsletter. The form isn't posting properly and isn't functioning correctly. Any help would be greatly appreciated. Thank you. Here's the code the site gives you to post into your content manager: <style> .link, .signupframe { color: #226699; font-family: Arial, Helvetica, sans-serif; } .link { text-decoration: none; } .signupframe { border: 1px solid #000000; background: #ffffff; } </style> <form method=post action="https://app.icontact.com/icp/signup.php" name="icpsignup" id="icpsignup676" accept-charset="UTF-8" onsubmit="return verifyRequired676();" > <input type=hidden name=redirect value="http://www.icontact.com/www/signup/thanks.html" /> <input type=hidden name=errorredirect value="http://www.icontact.com/www/signup/error.html" /> <div id="SignUp"> <table width="260" class="signupframe" border="0" cellspacing="0" cellpadding="5"> <tr> <td valign=top align=right> <font size="1" face="Arial,Helvetica, sans-serif">*</font> <font size="2">Email</font> </td> <td align=left> <input type=text name="fields_email"> </td> </tr> <input type=hidden name="listid" value="11267"> <input type=hidden name="specialid:11267" value="FKCE"> <input type=hidden name=clientid value="693760"> <input type=hidden name=formid value="676"> <input type=hidden name=reallistid value="1"> <input type=hidden name=doubleopt value="0"> <TR> <TD> </TD> <TD><font size="1">*</font><font size="2"> = Required Field</FONT></TD> </TR> <tr> <td> </td> <td><input type="submit" name="Submit" value="Submit"></td> </tr> </table> </div> </form> <script type="text/javascript"> var icpForm676 = document.getElementById('icpsignup676'); if (document.location.protocol === "https:") icpForm676.action = "https://app.icontact.com/icp/signup.php"; function verifyRequired676() { if (icpForm676["fields_email"].value == "") { icpForm676["fields_email"].focus(); alert("The Email field is required."); return false; } return true; } </script> <a class="link" href="http://www.icontact.com"><font size="2">Email Marketing You Can Trust</font></a> Is it possible in to "post" to 2 different Url's on 2 different servers from just 1 form on a html page? I have used form mail scripts elswhere with success. What would the html look like? I have tried a few different ways and have only been able to call whichever script location I list fisrt. Any help appreciated! http://www.jabproductsonline.com/test/default.html At this site I have a web form that has two steps. Each just gets information, but the second step doesn't ultimately post to the url it's supposed to go to. What's up with this? I have the same type of web form working elsewhere (orange.977mb.com) but this one doesn't seem to want to work. It's posting to a https site, but you can see the code just by going to the web form and checking it out. If you fill in the information, make it clear that it's testing stuff Thanks! Hi, I am trying to construct a multipart form-data post request to a web server. However I keep getting malformed multipart post. My set up is Debian Etch/Mozilla 5.0x. I have constructed the multipart post request as follows Code: POST http://192.168.2.5/upload.cgi HTTP/1.1 Accept-Language: en-us Content-Type: multipart/form-data; boundary=---------------------------7d2b119100532 User-Agent: Mozilla/3.01 (compatible) Host: 192.168.2.5 Pragma: no-cache Content-Length: 717 -----------------------------7d2b119100532 Content-Disposition: form-data; name="field1" 5107115015_auto_end -----------------------------7d2b119100532 Content-Disposition: form-data; name="flat_file"; filename="travellerdata.dat" Content-Type: text/plain <SYSSN>5107115015</SYSSN> <HDD slot="0"> <serial>DA40P7C003P5</serial> <model>MAW3300NC</model> <firmware>0104</firmware> </HDD> <network> <adapter slot="1"> <interface slot="1"> <mac>00:E0:81:4B:8F:FD</mac> </interface> </adapter> </network> <BIOS> <revision></revision> <date>06/23/06</date> </BIOS> <CPU_count>4</CPU_count> <CPU slot="0"> <serial>00020F120000000000000000</serial> </CPU> -----------------------------7d2b119100532-- this is the server response that I get Code: Server Response is HTTP/1.1 200 OK Date: Fri, 26 Sep 2008 05:13:55 GMT Server: Apache/2.2.3 (Debian) PHP/5.2.0-8+etch10 Transfer-Encoding: chunked Content-Type: text/html; charset=UTF-8 f3 <h1>Software error:</h1> <pre>Malformed multipart POST </pre> <p> For help, please send mail to the webmaster (<a href="mailto:webmaster@localhost">webmaster@localhost</a>), giving this error message and the time and date of the error. </p> Appreciate if someone can point out where I am going wrong. Thanks, I hope I've posted this in the right place, apologies in advance if I haven't. I'm trying to post multiple XML files using a HTML form. The code I'm using is below and although I am able to select multiple files in Mozilla Firefox it is only ever successfully uploading one file. I need to be able to post 100s of XMLs in a single post, as well as receiving the responses for all uploaded files. I have no experience in this type of thing before, is someone able to assist me and am I even on the right track? Heeelp! <h2>Upload</h2> <form ENCTYPE="multipart/form-data" action="https://asp.test.com.au/ttms/sandbox/ws/external/public/client-profile-xml/multi/receiver" method="POST"> <input type="file" name="linkfile" multiple="multiple"> <br/> <input type="submit"> </form> HI, I just started here... like two minutes ago. I NEED help on getting a form to automatically post to a page on my website. So, i'm making a class website, right, and I need my teacher to be able to post stuff on a page and have it erase what was already on there (every week). My teacher does not know html, so I would like to have a text box automatically edit the page, I am a medium web designer... but I do not know ANYTHING about this, I have searched EVERYWHERE and couldn't find ANYTHING. It got so annoying that I gave up for about 6 months... until today, which is why I'm asking this. By the way, I would also like "Contact us" forms to go directly to my email, WITHOUT any CRAPPY websites (like the one I'm using now) any help would be very appreciated!! I'm looking to write a form with input fields which, upon submitting, would post to a specific forum. Now, I'm not sure if this is some kind of javascript trickery or something (I am far from familiar with JS). Here's an example of this page: http://www.violentrevolution.net/e10...y/survey.php?2 Now, what happens upon submitting that forum, the information is posted to a forum where clan members can discuss the application. I'm looking to replicate that function, but I've gone over the code and I can't seem to see the modularity of it (i.e. changing the forum to which it posts). Thanks for any help in advance. So i want to Post and Get in the same form for reasons of keeping the URL looking clean. I need to pass a PHP array through to the next page, and I don't want random gibberish in the URL. So, I can just Post this, but this is for a search page, and it would be nice to Get their search query for the reasons of the advantage of Get over Post, and because it looks better in my opinion. Anyways. The thing I am posting takes no user input, and it is defined in the beginning of the page. The thing I want to Get is user defined in a textbox. So, I need the method of the Form to be Get, but is it possible to also Post something? Thanks, If i wasn't clear i'm sorry and i'll try to explain it better. i know how to create a web page i have done it already but i need to create a from and lots of options to choose from and submit stuff and how do i make it work? and what i have to do? thanks Hello everyone! My form seems to work... but I'm not getting the submission in my e-mail! You can check it out he www.BoatingHitList.com/formtest.html Here's the code for my form: HTML Code: <form name="htmlform" method="post" action="html_form_send.php"> <table width="500px"> </tr> <tr> <td valign="top"> <label for="name">Name*</label> </td> <td valign="top"> <input type="text" name="name" maxlength="50" size="30"> </td> </tr> <tr> <td valign="top"> <label for="email">Email Address*</label> </td> <td valign="top"> <input type="text" name="email" maxlength="80" size="30"> </td> </tr> <tr> <td valign="top"> <label for="telephone">Location (city, state, country)*</label> </td> <td valign="top"> <input type="text" name="location" maxlength="50" size="30"> </td> </tr> <tr> <td valign="top"> <label for="telephone">Website Address*</label> </td> <td valign="top"> <input type="text" name="website" maxlength="50" size="30"> </td> </tr> <tr> <td valign="top"> <label for="telephone">Website Title*</label> </td> <td valign="top"> <input type="text" name="websitetitle" maxlength="50" size="30"> </td> </tr> <tr> <td valign="top"> <label for="telephone">Listing Category*</label> </td> <td valign="top"> <select name="category"> <option>Select Category <option>BOAT SHOWS/EVENTS <option>BOATING ASSOCIATIONS <option>BOOKS/MAGAZINES <option>BROKERS - NEW BOATS <option>BROKERS - USED BOATS <option>CHARTERS <option>CLASSIFIEDS <option>FINANCE/INSURANCE <option>FORUMS <option>MARINAS <option>PARTS/ACCESSORIES <option>REPAIR/MAINTENANCE <option>SERVICES </select> </td> </tr> <tr> <td valign="top"> <label for="comments">Website Description (25 words or less)*</label> </td> <td valign="top"> <textarea name="comments" maxlength="300" cols="25" rows="6"></textarea> </td> </tr> <tr> <td colspan="2" style="text-align:center"> <input type="submit" value="Submit"> </td> </tr> </table> </form> And here's the code for my php page - www.BoatingHitList.com/html_form_send.php HTML Code: <?php if(isset($_POST['email'])) { // CHANGE THE TWO LINES BELOW $email_to = "submit@boatinghitlist.com"; $email_subject = "Boating Hit List Submission"; function died($error) { // your error code can go here echo "We are very sorry, but there were error(s) found with the form you submitted. "; echo "These errors appear below.<br /><br />"; echo $error."<br /><br />"; echo "Please go back and fix these errors before submitting.<br /><br />"; die(); } // validation expected data exists if(!isset($_POST['name']) || !isset($_POST['email']) || !isset($_POST['comments'])) { died('We are sorry, but there appears to be a problem with the form you submitted.'); } $name = $_POST['name']; // required $email_from = $_POST['email']; // required $location = $_POST['location']; // required $website = $_POST['website']; // required $websitetitle = $_POST['websitetitle']; // required $category = $_POST['category']; // required $comments = $_POST['comments']; // required $error_message = ""; $email_exp = "^[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$"; if(!eregi($email_exp,$email_from)) { $error_message .= 'Please enter a valid e-mail address.<br />'; } $string_exp = "^[a-z .'-]+$"; if(!eregi($string_exp,$name)) { $error_message .= 'Please enter a valid name.<br />'; } if(strlen($comments) < 2) { $error_message .= 'Please enter a valid website description.<br />'; } if(strlen($error_message) > 0) { died($error_message); } $email_message = "Form details below.\n\n"; function clean_string($string) { $bad = array("content-type","bcc:","to:","cc:","href"); return str_replace($bad,"",$string); } $email_message .= "Name: ".clean_string($name)."\n"; $email_message .= "Email: ".clean_string($email_from)."\n"; $email_message .= "Location: ".clean_string($location)."\n"; $email_message .= "Website Address: ".clean_string($website)."\n"; $email_message .= "Website Title: ".clean_string($websitetitle)."\n"; $email_message .= "Listing Category: ".clean_string($category)."\n"; $email_message .= "Website Description: ".clean_string($comments)."\n"; // create email headers $headers = 'From: '.$email_from."\r\n". 'Reply-To: '.$email_from."\r\n" . 'X-Mailer: PHP/' . phpversion(); @mail($email_to, $email_subject, $email_message, $headers); ?> <!-- place your own success html below --> <p><center><img src="http://www.boatinghitlist.com/BHLlogo.gif"> <p><font face="calibri" size="4"> Thank you for submitting your website to BoatingHitList.com.</font> <p><font face="calibri" size="4"> Please make sure you include a link back to us on your website. All websites are individually reviewed to ensure they are placed in the correct category and that your website links back to us. Upon your website's approval, you will receive an e-mail notification. If your website is denied, you will receive an e-mail with the reason(s) your website was denied. <p>Choose one of the codes below to display our link back on your website: <p> <textarea rows="6" cols="30"> <a href="http://www.boatinghitlist.com" target="_blank"><img src="http://www.boatinghitlist.com/BHLicon.jpg" height="70" width="70" border="0"></a> </textarea> <p> Will display as: <p> <a href="http://www.boatinghitlist.com" target="_blank"><img src="http://www.boatinghitlist.com/BHLicon.jpg" height="70" width="70" border="0"></a> <p> <textarea rows="6" cols="30"> Visit <a href="http://www.boatinghitlist.com" target="_blank">www.BoatingHitList.com</a> for a directory of boating industry websites! </textarea> <p> Will display as: <p> Visit <a href="http://www.boatinghitlist.com" target="_blank">www.BoatingHitList.com</a> for a directory of boating industry websites! <p> <a href="http://www.boatinghitlist.com">CLICK HERE TO GO BACK TO www.BoatingHitList.com</a> <?php } ?> I'm completely baffled. I have a contact form on this website: http://www.waldronforest.com/ that works just fine when I test it in FireFox, but when I try to use it in internet explorer I can't even click on the fields. Anyone have any idea why? Thanks! I'm convinced that its very simple but cant figure it out yet. I'd really appreciate your help. I'm trying to integrate my aweber code into a graphical form. AWEBER CODE ---------------------------------------- HTML Code: <form method="post" class="af-form-wrapper" action="http://www.aweber.com/scripts/addlead.pl" > <div style="display: none;"> <input type="hidden" name="meta_web_form_id" value="378818622" /> <input type="hidden" name="meta_split_id" value="" /> <input type="hidden" name="listname" value="superpowernutri" /> <input type="hidden" name="redirect" value="http://google.com" id="redirect_3851a3a65806cdcf11082fdddc304cdb" /> <input type="hidden" name="meta_adtracking" value="superpower" /> <input type="hidden" name="meta_message" value="1" /> <input type="hidden" name="meta_required" value="name,email" /> <input type="hidden" name="meta_tooltip" value="" /> </div> <div id="af-form-378818622" class="af-form"><div id="af-body-378818622" class="af-body af-standards"> <div class="af-element"> <label class="previewLabel" for="awf_field-31806523">Name: </label> <div class="af-textWrap"> <input id="awf_field-31806523" type="text" name="name" class="text" value="" tabindex="500" /> </div> <div class="af-clear"></div></div> <div class="af-element"> <label class="previewLabel" for="awf_field-31806524">Email: </label> <div class="af-textWrap"><input class="text" id="awf_field-31806524" type="text" name="email" value="" tabindex="501" /> </div><div class="af-clear"></div> </div> <div class="af-element buttonContainer"> <input name="submit" class="submit" type="submit" value="Submit" tabindex="502" /> <div class="af-clear"></div> </div> --------------------------------------- THE GRAPHICAL FORM THAT I'M TRYING TO INTEGRATE THE ABOVE CODE INTO: ---------------------------------------------------------------------- HTML Code: AUTORESPONDER CODE START HERE //--> <!-- You can edit or replace the form below with your own autoresponder code --> <form> <input type="text" name="name" class="name_field" value="Enter Your First Name" onFocus="if(this.value == 'Enter Your First Name'){ this.value = ''; this.style.color= '#1a1a1a'; }" onBlur="if(this.value == ''){ this.value = 'Enter Your First Name'; this.style.color= '#818181'; }" /> <input type="text" name="email" class="email_field" value="Enter Your Email Address" onFocus="if(this.value == 'Enter Your Email Address'){ this.value = ''; this.style.color= '#1a1a1a'; }" onBlur="if(this.value == ''){ this.value = 'Enter Your Email Address'; this.style.color= '#818181'; }" /> <input type="submit" name="submit" value="" class="opt_btn" /> </form> <!-- YOUR AUTORESPONDER CODE END HERE //--> ---------------------------------------- big kisses to anyone who can help me solve this HI need help to editing the template form that can't work. below is the forms code, some one know what to sit or add any for make the form work. <td valign="top" width="270" style="height:100% "> <!--webbot BOT="GeneratedScript" PREVIEW=" " startspan --><script Language="JavaScript" Type="text/javascript"><!-- function FrontPage_Form1_Validator(theForm) { if (theForm.Name.value == "") { alert("Please enter a value for the \"Your full name\" field."); theForm.Name.focus(); return (false); } if (theForm.Email_address.value == "") { alert("Please enter a value for the \"E-mail address\" field."); theForm.Email_address.focus(); return (false); } if (theForm.Message.value == "") { alert("Please enter a value for the \"Your message\" field."); theForm.Message.focus(); return (false); } return (true); } //--></script><!--webbot BOT="GeneratedScript" endspan --><form method="POST" name="FrontPage_Form1" action="mailto:support@itacstudio.com" onSubmit="return FrontPage_Form1_Validator(this)" webbot-action="--WEBBOT-SELF--" language="JavaScript"> <!--webbot bot="SaveResults" startspan S-Email-Format="TEXT/PRE" S-Email-Address="support@itacstudio.com.com" B-Email-Label-Fields="TRUE" B-Email-ReplyTo-From-Field="TRUE" S-Email-ReplyTo="Email_address" S-Builtin-Fields="REMOTE_NAME HTTP_USER_AGENT" S-Form-Fields="Name Email_address Telephone Message " U-Confirmation-Url="index-4.html" --><input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><!--webbot bot="SaveResults" endspan i-checksum="43374" --> <table cellpadding="0" cellspacing="0" border="0" style="height:100% "> <tr> <td valign="top" width="270" height="125"> <div style=" margin-left:0px; margin-top:0px "><a href="index-4.html"><img src="images/p4.jpg" alt="" border="0" width="270" height="122"></a></div> </td> </tr> <tr> <td valign="top" width="270" style="background-image: url('images/5_bg.gif'); background-repeat: no-repeat; background-attachment: scroll; background-color: #E7E7E7; height: 100%; background-position: Right 100%"> <div style=" margin-left:28px; margin-top:21px "><img src="images/5_w3.gif" alt="" border="0" width="123" height="17"></div> <div style=" margin-left:30px; margin-top:11px; margin-right:20px; line-height:14px " class="b2">Your full name:</div> <div style="margin-left:30px; margin-top:0px;"><!--webbot bot="Validation" S-Display-Name="Your full name" B-Value-Required="TRUE" --><input type="text" class="b" style=" width:217px; height:20px; border-style:solid; border-width:1px; border-color:#BEC0C2; background-color:#E7E7E7 " size="20" name="Name"></div> <div style=" margin-left:30px; margin-top:4px; margin-right:20px; line-height:14px " class="b2">E-mail address:</div> <div style="margin-left:30px; margin-top:0px;"><!--webbot bot="Validation" S-Display-Name="E-mail address" B-Value-Required="TRUE" --><input type="text" class="b" style=" width:217px; height:20px; border-style:solid; border-width:1px; border-color:#BEC0C2; background-color:#E7E7E7 " size="20" name="Email_address"></div> <div style=" margin-left:30px; margin-top:4px; margin-right:20px; line-height:14px " class="b2">Your telephone:</div> <div style="margin-left:30px; margin-top:0px;"><input type="text" class="b" style=" width:217px; height:20px; border-style:solid; border-width:1px; border-color:#BEC0C2; background-color:#E7E7E7 " size="20" name="Telephone"></div> <div style=" margin-left:30px; margin-top:4px; margin-right:20px; line-height:14px " class="b2">Your message:</div> <div style="margin-left:30px; margin-top:1px;"><!--webbot bot="Validation" S-Display-Name="Your message" B-Value-Required="TRUE" --><textarea cols="35" rows="35" class="b" style=" width:217px; height:144px; border-style:solid; border-width:1px; border-color:#BEC0C2; background-color:#E7E7E7; overflow:hidden " name="Message"></textarea></div> <div class="b" style="width: 84; height: 19; margin-left: 180px; margin-top: 3px"><input border="0" src="images/button_submit.jpg" name="I1" width="55" height="13" type="image"></div> </td> </tr> </table> </form> Hello all mates! I am working with my forum trying to properly edit the html for the posts so that they will display any custom script/html of my choice. I want this to appear in ONLY the first post in every thread. I am also trying to find out how to make a bot that automatically posts another second post in every thread, with my own custom scripts/html. At the moment I am trying to add some adsense ads this way. What I am looking for is two things: 1 - How to get the adsense ad aligned to either right or left of the text within the first post. 2 - How to get an adsense bot autopost an ad as post number 2 in any thread (including being applied to all threads already existing) I am using IPB3. I previously used Adsense Bot for IPB2, and that worked fine, but it is not supported for IPB3. It uses the Universal Mod Installer, and in IPB3 there is a new "hook" feature to ass custom mods etc, but I do not know how to alter the code for the Adsense Bot to work with IPB3 so I am trying to get it done from scratch by adding codes directly into the templates. If anyone know how to configure / modify the old Adsense Bot to work with IPB3 that would be great of course, so I am attaching it here just in case someone wants to take a look at it and its documentation and scripts. But primarily I am looking for the two mentioned features, one is how to get the script running in ONLY the first post of every thread - at the moment I got it running, but it is global and implements into all posts not only the first. I also have figured out how to make a script appear, such as an ad, between posts, but not after ONLY the first post, nor how to make a bot that posts a post just like any member, which is what I am really looking for when it comes to that part. This is the code I have entered into the topicViewTemplate in Topic View: Code: {parse template="aip" group="topic" params="$post"} <div style="display:block;float:right;margin: 0px 10px 0px 0px;"> <script type="text/javascript"><!-- google_ad_client = "pub-3737464431076938"; /* forum posts large recnt */ google_ad_slot = "6548059149"; google_ad_width = 336; google_ad_height = 280; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </div> This works perfectly for adding my desired custom script embedded within the posts. The problem is that it gets embedded in ALL posts and not only the first as I would want. Here is a link to my forum for an example on how it looks: http://www.conspiraciesforums.com/fo...ic/3-atlantis/ I know I have to edit/add some code regarding post counts etc to configure it to only affect the first post - my question is how to do that? And as seen, the second post shows the ad as well, here I would want a bot to post a post containing another ad - between the first and third post of every thread (which will be standard members posts). I have messed my brain with this for more than a week now trying different things, looking around at forums, googling, trying scripts and so on, mods etc, but as of yet have not found the solution to these things for IPB3. Any help here would be extremely greatly appreciated and I'll buy you a beer if you're ever around my part of the world! :p Thanks and bless you! -M |