- In the extension bar, click the AdBlock Plus icon
- Click the large blue toggle for this website
- Click refresh
- In the extension bar, click the AdBlock icon
- Under "Pause on this site" click "Always"
- In the extension bar, click on the Adguard icon
- Click on the large green toggle for this website
- In the extension bar, click on the Ad Remover icon
- Click "Disable on This Website"
- In the extension bar, click on the orange lion icon
- Click the toggle on the top right, shifting from "Up" to "Down"
- In the extension bar, click on the Ghostery icon
- Click the "Anti-Tracking" shield so it says "Off"
- Click the "Ad-Blocking" stop sign so it says "Off"
- Refresh the page
- In the extension bar, click on the uBlock Origin icon
- Click on the big, blue power button
- Refresh the page
- In the extension bar, click on the uBlock icon
- Click on the big, blue power button
- Refresh the page
- In the extension bar, click on the UltraBlock icon
- Check the "Disable UltraBlock" checkbox
- Please disable your Ad Blocker
- Disable any DNS blocking tools such as AdGuardDNS or NextDNS
- Disable any privacy or tracking protection extensions such as Firefox Enhanced Tracking Protection or DuckDuckGo Privacy.
If the prompt is still appearing, please disable any tools or services you are using that block internet ads (e.g. DNS Servers, tracking protection or privacy extensions).
Question
Izlude
A long while back I was trying to make some flash website. I lost interest because I wasn't feeling creative, but now I'd like to try again. I have a whole line up of content ready to go, but now the site refuses to work. A small orange updated the php from 4.x to 5.3.17
This is the tutorial I used (My code is more updated than shown in the link)
http://www.angelfire...dsTutorial.html
My problem is that the e-card is not showing the text that is supposed to come from a text file in a directory called dBText. (hugclub.net/dBText) (exposed for now so you can view it) The directory does generate the text with no problems (created by the php file) and the greeting appears correctly in the received email, but the actual flash e-card does not show the text.
4 files handle this, SendEcard.php, SelectEcard.php, a button in the main movie and the e-card swf itself.
Main Movie's send button after filling out the form.
SendEcard.php
<?
$CreateEcard = date(U);
$filename = $CreateEcard.".txt";
$ToEmail = $_POST["ToEmail"];
$FromEmail = $_POST["FromEmail"];
$ToName = $_POST["ToName"];
$FromName = $_POST["FromName"];
$Greeting = $_POST["Greeting"];
$IntroMessage = $_POST["IntroMessage"];
$EndMessage = $_POST["EndMessage"];
$EcardSelect = $_POST["selected"];
$Today = (date ("l dS of F Y ( h:i:s A )",time()));
$Created = "Ecard Created on $Today";
$EcardNum = $_POST['EcardSelect'];
$EcardText = "ToName={$_POST['ToName']}&ToEmail={$_POST['ToEmail']}&FromName={$_POST['FromName']}&FromEmail={$_POST['FromEmail']}&Greeting={$_POST['Greeting']}&IntroMessage={$_POST['IntroMessage']}&Created={$_POST['Created']}&";
$fp = fopen( "./dBText/$filename","w");
fwrite($fp, $EcardText, 10000);
fclose( $fp );
######Email Card########
## You can change the subject and the message part around.
## Make sure to change the Link as stated in the Tutorial.
## (Change from 'someSite' to your actual site - leave the rest the same
$ToSubject = "E-card from $FromName";
$Message = "$ToName,\nYou have recieved a Flash E-card from $FromName. \nClick the following link to view your card:\n\n http://www.hugclub.net/SelectCard.php?EcardText=$CreateEcard&ENum=$EcardNum\n\n-----------------------------------\nHere is the message that was sent:\n$ToName,\n$Greeting\n$IntroMessage\n\n-$FromName\n\n\n-----------------------------------\nThis card was sent by Bunny and Panda\n\nMaking you smile a little more each time.";
mail($ToName." <".$ToEmail.">",$ToSubject, $Message, "From: ".$FromName." <".$FromEmail.">");
## This next line returns a success message to the movie.
print "_root.holder.Status=\n Copy the following link to view your card:\n http://www.hugclub.net/SelectCard.php?EcardText=$CreateEcard%26ENum=$EcardNum\n";
?>
[/CODE]
SelectEcard.php
<?
switch ($_GET['ENum']) {
case '1':
$goto = "Ecard1.swf?EcardText=".$EcardText;
$gotoFooter = "EcardFooter.swf?EcardText=".$EcardText."&EcardSelect=1
$Dimensions = "WIDTH=700 HEIGHT=525";
$DimensionsFooter = "WIDTH=700 HEIGHT=250";
break;
case '2':
$goto = "Ecard2.swf?EcardText=".$EcardText;
$gotoFooter = "EcardFooter.swf?EcardText=".$EcardText."&EcardSelect=2
$Dimensions = "WIDTH=700 HEIGHT=525";
$DimensionsFooter = "WIDTH=700 HEIGHT=250";
break;
case '3':
$goto = "Ecard3.swf?EcardText=".$EcardText;
$gotoFooter = "EcardFooter.swf?EcardText=".$EcardText."&EcardSelect=3
$Dimensions = "WIDTH=700 HEIGHT=525";
$DimensionsFooter = "WIDTH=700 HEIGHT=250";
break;
case '4':
$goto = "Ecard4.swf?EcardText=".$EcardText;
$gotoFooter = "EcardFooter.swf?EcardText=".$EcardText."&EcardSelect=4
$Dimensions = "WIDTH=700 HEIGHT=525";
$DimensionsFooter = "WIDTH=700 HEIGHT=250";
break;
case '5':
$goto = "Ecard5.swf?EcardText=".$EcardText;
$gotoFooter = "EcardFooter.swf?EcardText=".$EcardText."&EcardSelect=5
$Dimensions = "WIDTH=700 HEIGHT=525";
$DimensionsFooter = "WIDTH=700 HEIGHT=250";
break;
case '20':
$goto = "Ecard20.swf?EcardText=".$EcardText;
$gotoFooter = "EcardFooter.swf?EcardText=".$EcardText."&EcardSelect=20
$Dimensions = "WIDTH=700 HEIGHT=525";
$DimensionsFooter = "WIDTH=700 HEIGHT=250";
break;
}
?>
[/CODE]
e-card action script: There are dynamic text fields with variables that match those in SendEcard.php such as FromName etc...
loadVariablesNum ("http://hugclub.net/dBText/"+EcardText+".txt
[/CODE]
This is what's generated in the text file: [email=ToName=You&ToEmail=zodiac_izlude@hotmail.com&FromName=Me&FromEmail=ecards@hugclub.net&Greeting=Test&IntroMessage=Hello]ToName=You&ToEmail=zodiac_izlude@hotmail.com&FromName=Me&FromEmail=ecards@hugclub.net&Greeting=Test&IntroMessage=Hello[/email] to me bla bla bla...&Created=&
This is the e-card which isn't showing the text:
http://www.hugclub.n...9764705&ENum=20
This is the e-mail I get after it sends:
http://img844.imageshack.us/img844/313/emailsample.jpg
Link to comment
https://www.neowin.net/forum/topic/1134244-old-website-need-php-and-flash-help/Share on other sites
1 answer to this question
Recommended Posts