×

info

Dear guests,
You are currently on the old forum we kept as a knowledge base. You will find the new community forum here
Welcome, Guest
Username: Password: Remember me
Keyword

TOPIC: How to build an external Subscribe form??

How to build an external Subscribe form?? 10 years 8 months ago #2164

  • Anonymous user
  • webby's Avatar
  • Posts: 4
  • Karma: 0
Hi,

How can I include a subscribe form on an external site?
In other words, I want to have smth. like a "Register for my Newsletter" form / box that I can take an integrate on external sites, but all the processing should be done by my joomla site.

Which is the code I should use?

So more or less the equivalent of this

<form id="form1" name="form1" method="post" action="">
<label>Name
<input type="text" name="name" id="name" />
</label>
<label>Surname
<input type="text" name="surname" id="surname" />
</label>
<label>Email
<input type="text" name="email" id="email" />
</label>
<label>Subscribe
<input type="submit" name="go" id="go" value="Senden" />
</label>
</form>


where the users should be processed and added to my normal newsletter pool powered by acymailing, only the subscribe form should be added on an external site/url.

Thanks!
Please log in to post a reply

Re:How to build an external Subscribe form?? 10 years 8 months ago #2168

  • Anonymous user
  • john's Avatar
  • Posts: 10494
  • Thank you received: 2
  • Karma: 242
Could you please configure the AcyMailing module the way you want it to appear on your external website and then send us the url of this page?
That way I will be able to give you the exact code you should use.

But basically I will:
1/ Copy the source code of the generated form (copy/paste of the Module source code)
2/ I will modify the action for the form tag so it redirects to an absolute url instead of a relative one (because it must go on your own website and don't stay on the other one)
3/ I will add the javascript directly inside the module (the file components/com_acymailing/js/acymailing_module.js + some lines already displayed on the source code)
4/ You should modify your redirect urls to do exactly what you want.
Please have a look at our official documentation before posting a new message!

If you use AcyMailing, please post a rating and a review at the Joomla! Extensions Directory.
Please log in to post a reply

Re:How to build an external Subscribe form?? 10 years 8 months ago #2171

  • Anonymous user
  • webby's Avatar
  • Posts: 4
  • Karma: 0
I am afraid it won't work that way .. as a matter of fact I wanted to include that on a facebook fan page via one of those fbml extra tabs, so when it comes to facebook you can forget about javascript.
Must be plain html, like I have posted above, the only thing I would probably need (I think?) would be the proper action URL where the form is pointing out to ...
But definitely no javascript ...

Possible?

Thanks!
Please log in to post a reply

Re:How to build an external Subscribe form?? 10 years 8 months ago #2173

  • Anonymous user
  • john's Avatar
  • Posts: 10494
  • Thank you received: 2
  • Karma: 242
Yes it's possible.
You won't have javascript checks on your fields but you probably don't need any of them anyway.

The full action url will be:
www.yourwebsite.com/index.php?option=com...gtask=sub&task=optin

Don't forget to add an hidden field with your listids otherwise the user will be added but not subscribed to any list.
And you probably want to add hidden fields for your redirect links too.
Please have a look at our official documentation before posting a new message!

If you use AcyMailing, please post a rating and a review at the Joomla! Extensions Directory.
Please log in to post a reply

Re:How to build an external Subscribe form?? 10 years 8 months ago #2174

  • Anonymous user
  • webby's Avatar
  • Posts: 4
  • Karma: 0
trying now :-)
Could please also tell me which is the name I should add to the hidden field for the lsit ID?
<input type="hidden" name="listID" value="2"/>

Thank you!
Please log in to post a reply

Re:How to build an external Subscribe form?? 10 years 8 months ago #2176

  • Anonymous user
  • webby's Avatar
  • Posts: 4
  • Karma: 0
OK, I think I am getting it, slowly, slowly :-)
One more question though ...
gtask=sub&task=optin

that task=optin means that the user does not get the doppel optin email anymore (where he has to confirm his subscriptio) but he is automatically subscribed, is that true?

If so, which would be the parameter to include in URL to make the user get the confirmation email first and have to click on that email confirmation link before he starts receiving the newsletter?

Thank you!
Please log in to post a reply

Re:How to build an external Subscribe form?? 10 years 8 months ago #2177

  • Anonymous user
  • teklord's Avatar
  • Posts: 1
  • Karma: 0
Is there documentation on how to implament a form into Acymailing? That would be great if there was, thank you very much :).
Please log in to post a reply

Re:How to build an external Subscribe form?? 10 years 8 months ago #2185

  • Anonymous user
  • john's Avatar
  • Posts: 10494
  • Thank you received: 2
  • Karma: 242
that task=optin means that the user does not get the doppel optin email anymore (where he has to confirm his subscriptio) but he is automatically subscribed, is that true?
No! The user will always receive a confirmation e-mail if you require a confirmation and if the user is not already confirmed.
There is no entry point in AcyMailing where this parameter is not applied (that would be a sort of security issue if we had one).
So this is really the action you should use.
Could please also tell me which is the name I should add to the hidden field for the lsit ID?
<input type="hidden" value="7,6,1" name="hiddenlists"/>

And you can specify a redirect link with:
<input type="hidden" value="http://www.yourredirectlink.com" name="redirect"/>

Is there documentation on how to implament a form into Acymailing?
Not yet... but I think we will implement a way to do that directly on the component so that users don't need any technical knowledge to do it.
You understand very well what's an hidden input and an action form but it's definitely not the case of all our users! ;)
Please have a look at our official documentation before posting a new message!

If you use AcyMailing, please post a rating and a review at the Joomla! Extensions Directory.
Please log in to post a reply
Time to create page: 0.077 seconds
Powered by Kunena Forum