Free Web Hosting Forum
Go Back   Free Web Hosting Forum > Website Building > Web Programming
Reload this Page "infinite responder" redirect code needed
Reply
 
Thread Tools Display Modes
(#1 (permalink))
Old
Member
nanotech is on a distinguished road
 
Posts: 41
Join Date: Apr 2012
Default "infinite responder" redirect code needed - 04-28-2012, 11:28 PM

i have been trying to delay redirect the opt-in and opt-out confirmation landing page to my website home page

<a href="http://www.XXXXXXXXXXX.net/">Back to Homepage</a>

the line code above works BUT it isnt a delayed redirect

i have tryed copy paste the code bellow in the edit responder window setup



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Your Page Title</title>
<meta http-equiv="REFRESH" content="0;url=http://www.the-domain-you-want-to-redirect-to.com"></HEAD>
<BODY>
Optional page text here.
</BODY>
</HTML>

but it doesnt work despite the fact that it says

( Opt-In Confirmation Page: --- [Note: Supports HTML -- Be careful!] )


i wonder if someone can tell me what should be done to solve the problem

any help appreciated
Reply With Quote
Sponsored Links
(#2 (permalink))
Old
Senior Member
grace1004 is on a distinguished road
 
Posts: 735
Join Date: Dec 2010
Default 04-29-2012, 02:32 AM

Code:
<meta http-equiv="REFRESH" content="0;url=http://www.the-domain-you-want-to-redirect-to.com"></HEAD>
From the above code, please change content from 0 to 5:

content="5;url=http://

If 5 seconds is too late, you can change the number as you want.
Reply With Quote
(#3 (permalink))
Old
Member
nanotech is on a distinguished road
 
Posts: 41
Join Date: Apr 2012
Default 04-29-2012, 02:23 PM

i mean the code line disappear from that screen after i save it

could it be possible that it doesnt allow other tags than <a>

i mean every time i have a <html> or <meta> tag is in my code line and i try to save it in that screen

when i go back to it it is gone like i never saved it

but if it is a <a> tag it stays on that screen after i save it and run like it should

it is like that in this screen the other html tags arent allowed

could it be possible

or am i doing things the wrong way

Last edited by nanotech; 04-29-2012 at 02:28 PM.
Reply With Quote
(#4 (permalink))
Old
Senior Member
grace1004 is on a distinguished road
 
Posts: 735
Join Date: Dec 2010
Default 04-30-2012, 01:12 AM

I do not clearly understand your explanation above. If you want to redirect to the main page
after showing the confirmation message for opt_in or opt_out, how about the following code?
Before trying, you need to make two files--opt_in.html and opt_out.html as shown below and
put them in public_html directory.

Code:
<a href="opt_in.html">Allow PR Mail</a>
<a href="opt_out.html">Disallow PR Mail</a>
opt_in.html
===========
<html>
<title>Your Page Title</title>
<BODY>
You have agreed to receive our PR mail.
<meta http-equiv="REFRESH" content="2;url=http://www.the-domain-you-want-to-redirect-to.com">
</BODY>
</html>

opt_out.html
============
<html>
<title>Your Page Title</title>
<BODY>
You have rejected to receive our PR mail.
<meta http-equiv="REFRESH" content="2;url=http://www.the-domain-you-want-to-redirect-to.com"></HEAD>
</BODY>
</html>

If a client click "Allow PR Mail" it will go to opt_in. html, where the client will get the message
"You have agreed to receive our PR mail", and after 2 seconds it will be redirected to the main
page. In case of clicking "Disallow PR Mail", it will work in the same way.

Last edited by grace1004; 04-30-2012 at 01:37 AM.
Reply With Quote
(#5 (permalink))
Old
Member
nanotech is on a distinguished road
 
Posts: 41
Join Date: Apr 2012
Default 04-30-2012, 02:52 AM

can your code be done automatically without clicking to an hyperlink

in that case what should i do
Reply With Quote
(#6 (permalink))
Old
Senior Member
grace1004 is on a distinguished road
 
Posts: 735
Join Date: Dec 2010
Default 04-30-2012, 03:59 AM

If you don't want to use <a> tag code, just run the code in opt_in. html or opt_out.html
respectively. I am not sure my susggestion helps, as I didn't see your whole code.
Reply With Quote
(#7 (permalink))
Old
Member
nanotech is on a distinguished road
 
Posts: 41
Join Date: Apr 2012
Default 05-05-2012, 01:50 PM

that code is 10 pages long
Reply With Quote
(#8 (permalink))
Old
Member
nanotech is on a distinguished road
 
Posts: 41
Join Date: Apr 2012
Default 05-05-2012, 01:58 PM

heres update_top.responder.php

the OptInDisplay variable is where i have a problem


<?php
if ($DB_OptMethod == "Single") {
$opt_1 = "CHECKED";
$opt_2 = "";
}
else {
$opt_1 = "";
$opt_2 = "CHECKED";
}
include_once('popup_js.php');
?>

<table border="0" cellpadding="5">
<tr>
<td width="700">
<A HREF="#responder_msgs"><< Zoom down to the responder's messages >></A>
</td>
<td>
<a href="manual.html#editresps2" onclick="return popper('manual.html#editresps2')">Help</a>
</td>
</tr>
</table>

<?php
print "<br> \n";
print "<center> \n";
print "<table width=\"700\"><tr><td> \n";
print "<table width=\"100%\" bgcolor=\"#660000\" style=\"border: 1px solid #000000;\"><tr><td> \n";
print "<p class=\"white_header\">-- Edit Responder --</p>\n";
print "</td></tr></table> \n";
print "<center> \n";
print "<table width=\"100%\" bgcolor=\"#CCCCCC\" style=\"border: 1px solid #000000;\"><tr><td> \n";
print "<center> \n";
print "<table border=\"0\"> \n";
print "<tr><td width=\"200\"> \n";
print "<FORM action=\"responders.php\" method=POST> \n";
print "<strong><br>Responder Name:</strong></td> \n";
print "<td><input name=Resp_Name size=63 maxlength=250 class=\"fields\" value=\"$DB_ResponderName\"></td>\n";
print "</tr> \n";
print "<tr><td width=\"200\"><strong>Opt-In Level:</strong></td> \n";
print "<td>\n";
print "<input type=\"radio\" name=\"OptMethod\" value=\"Single\" $opt_1>Single \n";
print "<input type=\"radio\" name=\"OptMethod\" value=\"Double\" $opt_2>Double\n";
print "</td>\n";
print "</tr>\n";
print "<tr><td width=\"200\"><strong>Notify Owner on Sub/Unsub:</strong></td> \n";
print "<td>\n";
if ($DB_NotifyOnSub == 1) {
print " <input type=\"RADIO\" name=\"NotifyOwner\" value=\"1\" checked>Yes \n";
print " <input type=\"RADIO\" name=\"NotifyOwner\" value=\"0\">No\n";
} else {
print " <input type=\"RADIO\" name=\"NotifyOwner\" value=\"1\">Yes \n";
print " <input type=\"RADIO\" name=\"NotifyOwner\" value=\"0\" checked>No\n";
}
print "</td>\n";
print "</tr>\n";
print "<tr><td width=\"200\"><strong>Owner Name:</strong></td> \n";
print "<td><input name=Owner_Name size=63 maxlength=97 value=\"$DB_OwnerName\" class=\"fields\"></td>\n";
print "</tr> \n";
print "<tr><td width=\"200\"><strong>Owner Email:</strong></td>\n";
print "<td><input name=Owner_Email size=63 maxlength=100 value=\"$DB_OwnerEmail\" class=\"fields\"></td>\n";
print "</tr> \n";
print "<tr><td width=\"200\"><strong>Reply-to Email:</strong></td> \n";
print "<td><input name=Reply_To size=63 maxlength=100 value=\"$DB_ReplyToEmail\" class=\"fields\"></td> \n";
print "</tr> \n";
print "<tr> \n";
print "<td colspan=\"2\"> \n";
print "<br> \n";
print "<strong>Responder Description:</strong> --- <em>[Note: Supports HTML -- Be careful!]</em><br> \n";
print "<textarea name=\"Resp_Desc\" rows=14 cols=90 class=\"html_area\">$DB_ResponderDesc</textarea> \n";
print "<br><br></td> \n";
print "</tr> \n";
print "<tr><td width=\"200\"><strong>Opt-In Redirect URL:</strong></td> \n";
print "<td><input name=OptInRedir size=63 maxlength=100 value=\"$DB_OptInRedir\" class=\"fields\"></td>\n";
print "</tr> \n";
print "<tr><td width=\"200\"><strong>Opt-Out Redirect URL:</strong></td> \n";
print "<td><input name=OptOutRedir size=63 maxlength=100 value=\"$DB_OptOutRedir\" class=\"fields\"></td>\n";
print "</tr> \n";
print "<tr> \n";
print "<td colspan=\"2\"> \n";
print "<br> \n";
print "<strong>Opt-In Confirmation Page:</strong> --- <em>[Note: Supports HTML -- Be careful!]</em><br> \n";
print "<textarea name=\"OptInDisplay\" rows=14 cols=90 class=\"html_area\">$DB_OptInDisplay</textarea> \n";
print "</td> \n";
print "</tr> \n";
print "<tr> \n";
print "<td colspan=\"2\"> \n";
print "<br> \n";
print "<strong>Opt-Out Confirmation Page:</strong> --- <em>[Note: Supports HTML -- Be careful!]</em><br> \n";
print "<textarea name=\"OptOutDisplay\" rows=14 cols=90 class=\"html_area\">$DB_OptOutDisplay</textarea> \n";
print "</td> \n";
print "</tr> \n";
print "<tr> \n";
print "<td colspan=\"2\">\n";
print "<input type=\"hidden\" name=\"action\" value=\"do_update\"> \n";
print "<input type=\"hidden\" name=\"r_ID\" value=\"$Responder_ID\"> \n";
print "<p align=\"right\"> \n";
print "<input type=\"submit\" name=\"Save\" value=\"Save\" alt=\"Save\" class=\"save_b\"> \n";
print "</p> \n";
print "</td> \n";
print "</tr> \n";
print "</td></tr></table> \n";
print "</center> \n";
print "</FORM> \n";
print "</td></tr></table> \n";
print "</center> \n";
print "<br> \n";
print "</td></tr></table> \n";
print "<table width=\"100%\"><tr> \n";
print "<td width=\"200\"> \n";
print "<FORM action=\"responders.php\" method=POST> \n";
print "<input type=\"hidden\" name=\"action\" value=\"list\"> \n";
print "<input type=\"submit\" name=\"back\" value=\"<< Back\" alt=\"<< Back\" class=\"b_b\"> \n";
print "</FORM> \n";
print "</td> \n";
print "<td width=\"200\">\n";
print "<FORM action=\"responders.php\" method=POST>\n";
print "<input type=\"hidden\" name=\"action\" value=\"custom_stuff\">\n";
print "<input type=\"hidden\" name=\"r_ID\" value=\"$Responder_ID\">\n";
print "<input type=\"submit\" name=\"submit\" value=\"All custom data\">\n";
print "</FORM>\n";
print "</td>\n";
print "<td width=\"80\"> \n";
print "<FORM action=\"responders.php\" method=POST> \n";
print "<input type=\"hidden\" name=\"action\" value=\"POP3\"> \n";
print "<input type=\"hidden\" name=\"r_ID\" value=\"$Responder_ID\"> \n";
print "<input type=\"submit\" name=\"POP3\" value=\"POP3\" alt=\"POP3\"> \n";
print "</FORM> \n";
print "</td> \n";
print "</tr></table> \n";
print "</center> \n";
?>
Reply With Quote
(#9 (permalink))
Old
Member
nanotech is on a distinguished road
 
Posts: 41
Join Date: Apr 2012
Default 05-05-2012, 02:02 PM

this one is filename s.php only part of the 10 pages long code

note the OptInDisplay string

# Are they confirmed?
if ($DB_Confirmed == "1") {
# Yes, display the error page.
if ($SilentMode != 1) {
include('templates/open.page.php');
include('templates/already_subscribed.subhandler.php');
copyright();
include('templates/close.page.php');
}
die();
}
else {
# Send confirmation msg
SendMessageTemplate('templates/subscribe.confirm.txt');

# Display from the DB or the template
if ((trim($DB_OptInDisplay)) == "") {
# Display the template
if ($SilentMode != 1) {
include('templates/open.page.php');
include('templates/sub_confirm.subhandler.php');
copyright();
include('templates/close.page.php');
}
die();
}
else {
# Display from the DB
if ($SilentMode != 1) {
include('templates/open.page.php');
print $DB_OptInDisplay;
copyright();
include('templates/close.page.php');
}
die();
}
}
}

# They aren't already subscribed, let's proceed...
$DB_ResponderID = $Responder_ID;
$DB_SentMsgs = "";
$DB_EmailAddress = $Email_Address;
$DB_TimeJoined = time();
$DB_Real_TimeJoined = time();
$CanReceiveHTML = $HandleHTML;
$DB_LastActivity = time();
$DB_FirstName = $FirstName;
$DB_LastName = $LastName;
$DB_IPaddy = $IPaddy;
$DB_ReferralSource = $ReferralSrc;
$DB_UniqueCode = generate_unique_code();
$DB_Confirmed = "0";

if ($DB_OptMethod == "Double") {
# Add a non-confirmed row to the DB
$query = "INSERT INTO InfResp_subscribers (ResponderID, SentMsgs, EmailAddress, TimeJoined, Real_TimeJoined, CanReceiveHTML, LastActivity, FirstName, LastName, IP_Addy, ReferralSource, UniqueCode, Confirmed)
VALUES('$DB_ResponderID','$DB_SentMsgs', '$DB_EmailAddress', '$DB_TimeJoined', '$DB_Real_TimeJoined', '$CanReceiveHTML', '$DB_LastActivity', '$DB_FirstName', '$DB_LastName', '$DB_IPaddy', '$DB_ReferralSource', '$DB_UniqueCode', '$DB_Confirmed')";
$DB_result = mysql_query($query) or die("Invalid query: " . mysql_error());
$DB_SubscriberID = mysql_insert_id();

# Send confirmation msg
SendMessageTemplate('templates/subscribe.confirm.txt');

# Display from the DB or the template
if ((trim($DB_OptInDisplay)) == "") {
# Display the template
if ($SilentMode != 1) {
include('templates/open.page.php');
include('templates/sub_confirm.subhandler.php');
copyright();
include('templates/close.page.php');
}
die();
}
else {
# Display from the DB
if ($SilentMode != 1) {
include('templates/open.page.php');
print $DB_OptInDisplay;
copyright();
include('templates/close.page.php');
}
die();
}
}
else {
Reply With Quote
(#10 (permalink))
Old
Member
nanotech is on a distinguished road
 
Posts: 41
Join Date: Apr 2012
Default 05-05-2012, 02:07 PM

note where it says [Note: Supports HTML -- Be careful!]

is it possible that it only support <a and <img tags i just want to know if those are the only tag supported in opt-in confirmation frame

and why the tags <meta <html and <body doesnt stay in the textarea after i save the line code in it

Last edited by nanotech; 05-05-2012 at 02:15 PM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.2
vBulletin Skin developed by: vBStyles.com