Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.
If the asker does not get an answer then they have 10 days to request a refund.
$15
Help me install Wysija to the newsletter at the bottom of my page
socialmarketeers | 01/23/13 at 11:43am
Edit
Tutorial: How to assign prize money
(4) Responses
See a threaded view of answers?
Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.
-

Last edited:
01/23/13
12:00pmDoug Montgomery says:Need more information. It appears that you have the widget.
Also, didn't go all the way to your site...got a wot warning. -

Last edited:
01/23/13
12:35pm -

Last edited:
01/23/13
2:53pmInam Hassan says:Hi
create Application form using their standard method, preview that and at botton generate php version form there, copy that code and paste it in your footer.php file or anywhere you want, what is your footer file
I generated a test form for you and thats code is like
$widgetdata=array (
'widget_id' => '-php',
'lists' =>
array (
0 => '1',
),
'lists_name' =>
array (
1 => 'My first list',
),
'autoregister' => 'not_auto_register',
'labelswithin' => 'labels_within',
'submit' => 'Subscribe!',
'success' => 'Check your inbox now to confirm your subscription.',
'customfields' =>
array (
'firstname' =>
array (
'column_name' => 'firstname',
),
'lastname' =>
array (
'column_name' => 'lastname',
),
'email' =>
array (
'label' => 'Email',
),
),
);
$widgetNL=new WYSIJA_NL_Widget(1);
$subscriptionForm= $widgetNL->widget($widgetdata,$widgetdata);
echo $subscriptionForm;
Hope this helps -

Last edited:
01/25/13
5:59amArnav Joy says:paste this to functions.php of your theme
function processMyForm(){
//you could make some validation even though validation
//is also processed in our function
$myEmailVariable=$_POST['myEmailVariable'] ;
$myListId1=$_POST['myListId1'] ;
$myListId2=$_POST['myListId2'] ;
//in this array firstname and lastname are optional
$userData=array(
'email'=>$myEmailVariable,
'firstname'=>$firstname,
'lastname'=>$lastname);
$data=array(
'user'=>$userData,
'user_list'=>array('list_ids'=>array($myListId1,$myListId2))
);
$userHelper=&WYSIJA::get('user','helper');
$userHelper->addSubscriber($data);
//this function will add the subscriber to wysija
//if double optin is on it will send a confirmation email
//to the subscriber
//if double optin is off and you have an active automatic
//newsletter then it will send the automatic newsletter to the subscriber
}
//initialize this function only when your subscription form data has been posted
add_action('init','processMyForm') ;
and paste this where you want form to be visible:;;-
<?php $data=array('name','list_id'),array('is_enabled'=>1) ;
$modelList = &WYSIJA::get('list','model');
$wysijaLists = $modelList->get($data);
//this loop will just echo the information selected for each list
foreach($wysijaLists as $l ist){
echo 'list id : '.$list['list_id'].' , list name : '.$list['name'] ."<br/>";
}
?>
This question has expired.
socialmarketeers had additional discourse to offer.
Current status of this question: Community pot
Please log in to add additional discourse to this page.
Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.
If the asker does not get an answer then they have 10 days to request a refund.
