phplist and flash

Solutions for other phplisters - Questions go in the questions and problems forum

phplist and flash

Postby chaddy » 1:19am, Tue 07 Dec, 2004

Is there a way to create the sign up form in flash and have the info submitted to the subscription page?
chaddy
phplist newbie
 
Posts: 1
Joined: 1:12am, Tue 07 Dec, 2004

Postby kidpositive » 12:02am, Tue 25 Jan, 2005

I would also like to do this. Have you found any clues on how to go about accomplishing this? Flash can do a lot with php, but all I want is for the email submit form to be embedded into the flash movie.
kidpositive
phplist newbie
 
Posts: 1
Joined: 11:31pm, Mon 24 Jan, 2005

Postby thekiesch » 12:53pm, Wed 16 Feb, 2005

i'm looking to do something like this as well... anyone get anything figured out?
thekiesch
phplist newbie
 
Posts: 2
Joined: 12:51pm, Wed 16 Feb, 2005
Location: Dallas, TX

Flash Form

Postby Barnaby » 8:58pm, Mon 11 Apr, 2005

I am 95% of the way there in terms of having a Flash form that works with PHPlists, and I will happily share it with members of the forum.

However, I'm stuck on one thing, which I have detailed in another post:

http://www.phplist.com/forums/viewtopic ... c&start=75

If anyone here has any ideas it would be appreciated.

Barnaby
Barnaby
phplist newbie
 
Posts: 2
Joined: 8:21pm, Mon 11 Apr, 2005

Postby JesusFreak » 8:33pm, Sun 24 Apr, 2005

Barnaby - I am also working on something like you are doing but it appears that you are further ahead. Can I get a copy of the code to play with? If I get it to work, I will send you a copy.

Thanks!

My email is info@JesusSaveMe.org.
JesusFreak
phplist newbie
 
Posts: 1
Joined: 8:26pm, Sun 24 Apr, 2005

Postby Barn » 6:12pm, Mon 25 Apr, 2005

Hey there,

I am happy to share my code. I have tried many times to upload a zipped FLA file to this board, but it won't let me for some reason. I have tried contacting the admin through the mantis.tincan.co.uk link above but to no avail.

I made this post with the basics of the code:

http://www.phplist.com/forums/viewtopic ... 2&start=75

.... but I will email you my FLA as well.

If the board admin reads this, can he please contact me?
Barn
phplist newbie
 
Posts: 3
Joined: 4:19pm, Fri 22 Apr, 2005

Postby joshman13 » 1:55pm, Sun 10 Jul, 2005

hey fellas, i'm trying to work something like this out for my site. did you ever figure out what was happening with the form variables? i'd like to take a crack at it, if not.

if you have got it working, could i get a sample to check out?
joshman13
phplist newbie
 
Posts: 3
Joined: 6:29pm, Mon 20 Jun, 2005

Looking for Flash form solution

Postby nlite10 » 9:25pm, Thu 21 Jul, 2005

nlite10 wrote:I was reading back on page 6 about a Flash subscription form solution. I was hoping to be able to get a hold of an .fla from Barnaby or mdj1 but PMing is disabled on this board. Can anyone help?

Is it bad etiquette to quote yourself?
nlite10
phplist newbie
 
Posts: 3
Joined: 9:03pm, Thu 21 Jul, 2005

Postby joshman13 » 9:46pm, Thu 21 Jul, 2005

yeah, i'd like to get something like that too.
joshman13
phplist newbie
 
Posts: 3
Joined: 6:29pm, Mon 20 Jun, 2005

The solution on flash form

Postby marald » 1:10pm, Mon 08 Aug, 2005

After some fiddling arounf, I succeeded in using a flash form to subscribe to the phplist, I don't get any confirm windows either. :D

Here's the code I use on the submit button.

->
Code: Select all
on (release){
   // reset status message
   status ="";

   // check fields for content
   if (attribute2 != "" && email != ""){
      status = "sending";
      name="subscribeform";
      subscribe = "Subscribe";
      this["list[2]"] = "signup";
      htmlemail = 1;
      this.loadVariables("put domain url here/lists/?p=subscribe&id=1", "POST");
      this.nextFrame ();
   }else{
      //Not all has been filled in
      status = "All fields are required";
   }
}

   


In this situation I've got a separate movieclip called mailinglist in which the fields (name / email) and submit/reset button are situated. You have to change the list[2] to something else if you need to subscribe to another list you've created within phplist. dynamic name of name is called attribute2 or attribute1 depending on config of subscriptionpage in phplist

Hope this is of some help to a few people..

greetz. marald
marald
phplist newbie
 
Posts: 2
Joined: 12:55pm, Mon 08 Aug, 2005
Location: netherlands

Postby professorU » 8:24pm, Thu 18 Aug, 2005

Hi marald, i tried your script and i still cant get it to work (i have tried everything i can find). :(

Could you maybe post a working .fla somewhere?

Does anyone know if safe_mode in php is "on" has anything to do with it not working?
professorU
phplist newbie
 
Posts: 2
Joined: 8:13pm, Thu 18 Aug, 2005

flash & php

Postby marald » 3:55pm, Tue 23 Aug, 2005

I will try to put a fla/php combination up soon..

But to answer your other questions:

- didn't do anything with php safe-mode
- be sure to check if you've got any extra attributes set up on the subscribe page, they all have to be accounted for.
In my setup I just had 1 extra (name) which identifies itself in the phplist as attribute2, if it is attribute1 in your case, or you haven't got it all, you should adapt my code to your specific enviroment.
marald
phplist newbie
 
Posts: 2
Joined: 12:55pm, Mon 08 Aug, 2005
Location: netherlands

Postby professorU » 1:59pm, Fri 02 Sep, 2005

Ok swell im looking forward to see a fla and have a closer look into how you did it. You can also mail it to me at: narf_bcn@hotmail.com.

I havent made any attributes, only the email that have to be filled out. Its really bugging me that i cant get it working. :(
professorU
phplist newbie
 
Posts: 2
Joined: 8:13pm, Thu 18 Aug, 2005

any progress?

Postby bcorporaal » 10:52pm, Mon 03 Oct, 2005

Has anybody succeeded in getting this to work? Or at least any progress?

So far I have been spending several hours on it but have not really gotten anywhere. My actionscript knowledge is good but my php & html form knowledge is lacking.

One of the main problems is that I have not been able to find (on the forums) a consistent & reliable list of arguments that needs to be send in order to have a subscription.

Could anyone perhaps help me with this? I think it would be a big help for many people if we could develop a reliable solution.

Thanks!
bcorporaal
phplist newbie
 
Posts: 2
Joined: 10:43pm, Mon 03 Oct, 2005

Postby jotazzu » 6:30pm, Wed 05 Oct, 2005

For subscribing you have to send the email address and any mandatory attribute which is defined in your default subscribe page. Optional attributes may be send or not.
If you want to subscribe to another subscribe page you have to send the id of that subscribe page too.
If you want to know the names of the attributes and how the mailing list is coded view the HTML source of a subscribe page when displayed in the browser.
jotazzu
PL Master
 
Posts: 183
Joined: 6:31pm, Wed 13 Jul, 2005
Location: Hamburg, Germany

Next

Return to Answers, Howtos, Tips & Tricks

Who is online

Users browsing this forum: No registered users and 0 guests