(0 reviews)
Subscription via URL or via an external Form
With Acajoom PRO, you can subscribe your users via an URL or via an external Form.
Subscription via an URL :
To subscribe a user to one or more lists, you can redirect the user to a special URL :
If you have the 'Joomla user id' of your user, you can redirect him to :
http://www.yoursite.com/index.php?option=com_acajoom&act=subscribe &userid=JOOMLAUSERID&listid=LISTID
Or, if you have the name and the e-mail of your user, you can redirect him to :
http://www.yoursite.com/index.php?option=com_acajoom&act=subscribe &name=NAME&email=EMAIL&listid=LISTID
You have to replace the values JOOMLAUSERID by the id of the user in the Joomla tables.
Or you have to replace the values NAME and EMAIL by the name and the e-mail of your user. The variable for the name is optional.
You have to replace the value LISTID by the id of the lists you want the user to be subscribed. If you have more than one list, you can specify several list if you separate them by a comma ( , ).
Examples :
index.php?option=com_acajoom&act=subscribe&name=Adrien&email=
This e-mail address is being protected from spambots. You need JavaScript enabled to view it
&listid=2
OR index.php?option=com_acajoom&act=subscribe&userid=34&listid=2,4,7
You can also specify the option to receive html or not with the variable receive_html ('1' for HTML, '0' for TEXT) :
http://www.yoursite.com/index.php?option=com_acajoom&act=subscribe &name=NAME&email=EMAIL&listid=LISTID&receive_html=1
You can even specify the redirect url with the variable redirect redirectlink :
http://www.yoursite.com/index.php?option=com_acajoom&act=subscribe&name=NAME &email=EMAIL&listid=LISTID&receive_html=1&redirectlink=http://www.mysite.com/mythankyoupage
Examples :
index.php?option=com_acajoom&act=subscribe&name=Adrien&email=
This e-mail address is being protected from spambots. You need JavaScript enabled to view it
&listid=2&receive_html=0
OR index.php?option=com_acajoom&act=subscribe&userid=34&listid=2,4,7&redirectlink=http://www.ijoobi.com
You can use this method of subscription if you want to integrate Acajoom with a form component for example.
Subscription via URL : integration with Fabrik
With the component 'Fabrik', you will be able to register your user using the Fabrik form, then redirect the user to the Acajoom subscription url including the values of your fields included in the form (Name and e-mail).
Example :
index.php?option=com_acajoom&act=subscribe&name={name_newsletter}&email={email_newsletter} &receive_html=1&listid=3
The fields name_newsletter and email_newsletter (the exact same name : 'email_newsletter' and 'name_newsletter') must be present in your form.
Chronoforms enables you to add some code so that you can redirect to the Acajoom component with the correct informations.
In the following example, the input "email" and "name" were added in the form.
<?php $email = JRequest::getVar('email', '', 'post'); $name = JRequest::getVar('name', '', 'post'); $MyForm->formrow->redirecturl = JURI::base()."index.php?option=com_acajoom&act=subscribe&listid=14&receive_html=1&email=$email&name=$name"; ?>
The subscription via a Form is very useful if you want to create your own subscription form or if you want to register a user from an other Website.
One Acajoom license can be installed on only one website but using the subscription via external form, you will be able to install Acajoom on your main website and add a subscription form on any other website! You will be able to manage all your lists, subscribers, Newletters on your main website and your visitors won't even know they have been subscribed to an other website as you can immediately redirect the user to an other page.
With Acajoom PRO, you can see the icon 'Create form' in the Acajoom 'lists' page.
If you click on this icon, you will be able to specify a mailing list and Acajoom will generate the code for the form.
You have to copy the entire generated code and paste it where you want. This is a HTML code so you can not directly paste this code in your WYSIWYG editor. You have to open the HTML view and paste it in the HTML area.
The code Acajoom generates is a default subscription code for the selected list.
You can add other options to this code like a redirect link:
<input name="redirectlink" value="http://theRedirectLink.com" type="hidden" />
(you can copy/paste this previous line just after the line : <input type="hidden" name="act" value="subscribe" /> in your form)
Comments(2)Add Comment
|