HTML - Redirect With A Post
I'm working on a website for a organization I belong to. It's quite simple - a few html pages with posts handled by perl. I'm writing a registration script for them, and need to do the following:
Currently when registration is confirmed, they write to their userdatabase and email out a confirmation. But payment is all handled via paypal. They've been relying on users to click a link at the bottom to go to paypal to conduct the transaction, but users can be not-so-smart sometimes. Many have thought that payment was taken care of, and they didn't need to worry about it, and hence, we've been getting a lot of non-payment. I'd like to, after the confirmation where databases are written, etc., just have something like a meta refresh at the top of the page that will redirect them to paypal. But, paypal accepts its info via a post. How does one do such a refresh with a post command in it? Or is there another way? Similar TutorialsHello 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 can someone tell me how i would go about creating a redirect for an old RSS feed. i want the old feed address to point to my new Wordpress-created RSS feed address. i searched around a bit and found this code snippet... Code: <?xml version="1.0"?> <redirect> <newLocation>http://www.wepub.com/myweblog/rss.xml</newLocation> </redirect> ...but when i put it in place of my old feed code, here was the browser result... Code: This XML file does not appear to have any style information associated with it. The document tree is shown below. <redirect> <newLocation>http://www.wepub.com/myweblog/rss.xml</newLocation> </redirect> am i doing this wrong? what is my best option? I have a situation where I snd peoplle to a different page to do a download and I want them to be redirected back as soon as the download completes. Is there a command for that? Hi I want to know what main difference is between 301 redirect and 302 redirect. I redirected my site permanently (301) to another site and I lost all my original hyperlinks on the old webpage. If I want to keep all previous links alive, what should I do? Thanks! Is there any HTML code to redirect mistyped urls? Let's say someone wanted to get to a music section of my site. They type in XXX.com/music instead of XXX.com/music.html. Any way to get this done? hi how do u use a redirect 301 code in html file in a website ? and wat is the use of that ? Hello I'm redirecting pages using 301 redirect in my htaccess file, like redirect 301 "/servicesxxx.php" http://www.site.com/services.php but I have a page like this: www.somename.site.ca/indexpage.php I tried putting the whole thign in there but it doesn't work. How can I successfully redirect that page? Hello all, So I am doing site management, and I have a problem with a redirection that is going on. There is a directory in the root called venngo (http://url/vengngo/) however it redirects to a different page all together, so I removed the folder, uploaded a new one, and it still redirects. I have checked my cache and multiple machines, so I know it is not on my side. The only time my page works is if I physically add /index.php tot eh directory to make it (http://url/vengngo/index.php) What should I be looking for in the files for the website for a possible redirection script. Maybe htaccess? hi, i need some help with this. the following line is in a script <META http-equiv='refresh' content='1; URL=http://lblah.com/radio.php?ipp=84.95.247.20&port=22930&ch=898'> now this script redirects to another page.. is there some way i can get it to do this without actually leaving the page im on. thanks in advance for your help Redirect might not actually be the thing that I'm looking for, but I here's what I'm looking for. When you visit the website, and image is shown taking up the whole page. It stays for 2-5 seconds, then redirects you to the normal home page. (Maybe the image would also be a link to the home page so people could speed things up) Thanks very much. I went to a site for optimization & on review it told me my site had a re-direct, which was bad. Its been awhile since I tinkered with my site, so beats me where I put it. Can anyone help find out where it is? Newbie to this forum. Thanks. website is: kallico.net Thanks for any help on this, or anything else to help it get noticed more. I have a link going direct to pdf documents on one site eg www.one.com/blah.pdf. The pdf's are moving to a new web site www.two.com/blah.pdf. How do I redirect people that link direct to the old pdf to the new one. These pdfs are coming up very high in Google. I was hoping if I changed them to redirects Google would follow. Also for those that have a link in their web site to these pdfs it will be broken when I move them to the new url. I have about 300 files in the format gb3aa.htm, gb3ab.htm, gb3zz.htm etc in my root directory and I want to redirect users to /newdirectory/gb3aa.htm etc If I put 300 entries in my .htaccess file such as: redirect /gb3aa.htm http://www.mydomain.com/newdirectory/gb3aa.htm it would work fine, but there must be a smarter way of doing this? I did try: RedirectMatch gb3(.*)\.htm$ /newdirectory/gb3$1.htm but this did not work. So, what is the smart way of achieving this please? I'm using the Dodosmail script, and am trying to redirect to a different page, once the form has been completed. I've followed the readme file and have entered in the after URL, but everytime, the form sends me to my dodosmail.php page, and not starterpack.php (which I want). The form works, but it just doesn't send me to the right page. Does anyone know if I've gone wrong at all with the coding? HTML Code: <form action="http://broadcast.tcg-publicity.org/dodosmail2_5/dodosmail.php" method="post"> <p> <input type="hidden" name="subject" value="Broadcast-Join" /> <input type="hidden" name="your_email_address" value="broadcast-tcg@live.co.uk" /> <input type="hidden" name="check_email_address" value="no" /> <input type="hidden" name="required_fields" value="firstname,email,website,set" /> <input type="hidden" name="after_url" value="starterpack.php"> Name: <input type="text" name="firstname" /> <br /> Email: <input type="text" name="email" /> <br /> Website: <input type="text" name="website" /> <br /> Birthday: <select name="date"> <option value="01">01</option> <option value="02">02</option> <option value="03">03</option> <option value="04">04</option> <option value="05">05</option> <option value="06">06</option> <option value="07">07</option> <option value="08">08</option> <option value="09">09</option> <option value="10">10</option> <option value="11">11</option> <option value="12">12</option> <option value="13">13</option> <option value="14">14</option> <option value="15">15</option> <option value="16">16</option> <option value="17">17</option> <option value="18">18</option> <option value="19">19</option> <option value="20">20</option> <option value="21">21</option> <option value="22">22</option> <option value="23">23</option> <option value="24">24</option> <option value="25">25</option> <option value="26">26</option> <option value="27">27</option> <option value="28">28</option> <option value="29">29</option> <option value="30">30</option> <option value="31">31</option> </select> <select name="month"> <option value="january">January</option> <option value="february">February</option> <option value="march">March</option> <option value="april">April</option> <option value="may">May</option> <option value="june">June</option> <option value="july">July</option> <option value="august">August</option> <option value="september">September</option> <option value="october">October</option> <option value="november">November</option> <option value="december">December</option> </select> <br /> Collecting Set: <input type="text" name="set" /> <br /> Referred By?: <input type="text" name="referrer" /> <br>Comments: <textarea rows="5" cols="20" wrap="physical" name="comments"> </textarea> <br> <input type="submit" value="Submit" /> </form> remove please i have a question. What is the best way to redirect someone using a textarea form to redircet to a new webpage. What i want is the textarea to grab the input and add it to the end of a url. e.g. someone puts 'abcd' into the text box and presses the submit button. the button then grabs the text entered and adds it to the end of a specific predetermined url 'www.1234.com' and it redirects to 'www.1234.com/abcd' any help would be appreciated Mark I am doing i tech project and we have to make a website (WOO) we have to use claris (i am not) but i am using dreamweaver anywho i would like to make a submit button that connects to another webpage file on my schools intranet and i would like a redirecting thankyou page like something on the ubunut forums page something cool that will wow him. i can do it in java too if it is easyer admin please help me to delete this post. thanks Hello all, I just joined the forums and am not very experienced in HTML at all but have a question that I hope you guys can help me with. So here it goes. I have a site called doodletype.com and when I am working on it I would like that domain and all of its directories to be redirected to one page which would be a page that tells people coming to the site that it is under construction. I've seen this done on many other pages but I can't seem to find out how to do it properly. I can get the URL to redirect correctly when all the user types in is doodletype.com but when the user types in something like doodletype.com/Directory it redirects this URL to a URL like this newsite.com/index.html/Directory. So it appends the /Directory to the end of the redirect URL which then creates the wrong URL and a page cannot be found error. Where as I would like to find out some way of ignoring anything the user puts past doodletype.com/ and just always no matter what the user puts past doodletype.com/ redirect to only newsite.com/index.html and not newsite.com/index.html/Directory. Any help would be great and thanks for your time. Hello, If I were to change my pages from thispage.html to thispage.php or this-page.html how would I make sure that the old page will redirect to the new one? |