Forums / Addon Sideboxes / CampaignMonitor Sidebox Support Thread

CampaignMonitor Sidebox Support Thread

Locked

Started by lukemcr on 22 Jan 2009, 2:37 PM · Views: 10,120

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
22 Jan 2009, 2:37 PM
#1
lukemcr avatar

lukemcr

New Zenner

Join Date:
Feb 2007
Location:
Sacramento, CA
Posts:
64
Plugin Contributions:
0

CampaignMonitor Sidebox Support Thread

To download CampagnMonitor Sidebox v1.0, go to
http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=1239

CampaignMonitor Sidebox lets customers sign up for your CampaignMonitor-enabled newsletter by entering their e-mail address in to a sidebox on your store. CampaignMonitor is developer- and designer-friendly, and costs USD $5.00 per campaign sent, plus USD $0.01 per recipient. To sign up for CampaignMonitor, go to http://campaignmonitor.com.

Installation instructions are in the README that comes with the download. No file overwrites or needed: it should be impossible for this module to break your store, but you should always be careful and back up your store for the addon you install after this one.

You can also download CampaignMonitor Sidebox at http://lukemcreynolds.com/software/zen-cart/campaignmonitor_sidebox_for_zen_cart_v1.0/, and view the README file online by clicking here.

Please use this support thread if you have any questions, can't get the addon to work, or need some help.

6 Feb 2009, 5:36 PM
#2
deko avatar

deko

New Zenner

Join Date:
Sep 2004
Posts:
34
Plugin Contributions:
0

Re: CampaignMonitor Sidebox Support Thread

Hi Luke,

I have installed the side box ok but each time someone subscribes I get "0 Success" appearing above the box?
It looks like some form of debugging message. I've looked in 'tpl_campaignmonitor_sidebox.php' and this is the closest I can find to tracking it...

//Set the next line, CURLOPT_NOBODY, to 0 to enable debugging.
curl_setopt($ch, CURLOPT_NOBODY, 1);

Is this related? If so shouldn't the '1' disable debugging?

Thanks

d.

7 Feb 2009, 5:12 AM
#3
lukemcr avatar

lukemcr

New Zenner

Join Date:
Feb 2007
Location:
Sacramento, CA
Posts:
64
Plugin Contributions:
0

Re: CampaignMonitor Sidebox Support Thread

Hi deko,

I'll take a look at it this weekend, and get back to you as soon as I can.

9 Feb 2009, 9:31 PM
#4
lukemcr avatar

lukemcr

New Zenner

Join Date:
Feb 2007
Location:
Sacramento, CA
Posts:
64
Plugin Contributions:
0

Re: CampaignMonitor Sidebox Support Thread

Hi Deko,

I'm going to re-write the sidebox to use the official CampaignMonitor PHP API. They came out with a new version of it shortly after I published the first version of the CampaignMonitor Sidebox.

I'll post on here once I've done that. I'll be able to do it within the week, hopefully.

Luke

10 Feb 2009, 12:19 AM
#5
deko avatar

deko

New Zenner

Join Date:
Sep 2004
Posts:
34
Plugin Contributions:
0

Re: CampaignMonitor Sidebox Support Thread

Sorry Luke, I seem to be creating more work for you :)

I see Rob from FWR Media is reworking his oscommerce version too.
http://forums.oscommerceproject.org/index.php?showtopic=362

thx
d.

10 Feb 2009, 5:23 AM
#6
lukemcr avatar

lukemcr

New Zenner

Join Date:
Feb 2007
Location:
Sacramento, CA
Posts:
64
Plugin Contributions:
0

Re: CampaignMonitor Sidebox Support Thread

Oh no, no worries - this is just a personal project of mine. I learn best by doing.

12 Feb 2009, 5:29 PM
#7
lukemcr avatar

lukemcr

New Zenner

Join Date:
Feb 2007
Location:
Sacramento, CA
Posts:
64
Plugin Contributions:
0

Re: CampaignMonitor Sidebox Support Thread

Alright Deko,

I'm in the process of making a new release, but here's a quick fix for you. It involves just two line changes.

In includes/templates/template_default/sideboxes/tpl_campaignmonitor_sdebox.php, change line 20 from

```
//Set the next line, CURLOPT_NOBODY, to 0 to enable debugging.

">
to 

```
//Set the next line, CURLOPT_RETURNTRANSFER, to 0 to enable debugging.
```

And on line 21, change 

```
curl_setopt($ch, CURLOPT_NOBODY, 1);
```

to

```
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 
```That should do it. Let me know if you're having any more problems. Future releases will actually *use* the curlopt codes to display meaningful information, but I haven't done that yet.
15 Feb 2009, 12:04 PM
#8
deko avatar

deko

New Zenner

Join Date:
Sep 2004
Posts:
34
Plugin Contributions:
0

Re: CampaignMonitor Sidebox Support Thread

Thanks Luke!

I'll test this in the next couple of days, currently looking into email marketer from interspire for larger lists.

d.

11 Feb 2010, 5:47 AM
#9
shirster avatar

shirster

Zen Follower

Join Date:
Sep 2005
Location:
Hong Kong
Posts:
301
Plugin Contributions:
0

Re: CampaignMonitor Sidebox Support Thread

Thanks for this excellent mod, Luke ! Could you please explain a bit more why customer cannot unsubscribe in this box and must click on the link in an email?

But my main purpose of bumping this thread is to include the keywords "Campaign Monitor" so that I can find it easily later on...

Would be great if you could add the link of this support thread to the module downlode page :)

Thanks again, can't wait to try it out !

:)

11 Feb 2010, 7:02 AM
#10
lukemcr avatar

lukemcr

New Zenner

Join Date:
Feb 2007
Location:
Sacramento, CA
Posts:
64
Plugin Contributions:
0

Re: CampaignMonitor Sidebox Support Thread

Hi Shirster,

Customers can't unsubscribe using this sidebox because I haven't built it to do that yet! I make a living doing web development, and one of the things I like to do in my spare time is make the software I use slightly better for myself and everyone else. Once I get a little bit of free time, I'll post an updated version - an anniversary version, perhaps, considering the most recent version of this sidebox came out almost a year ago. Subscribe to this thread if you want to know when I finish it. :-)

Oh, and I'll see if I can add a link to this thread in the official ZC download page here: http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=1239

There should be a link to this thread in the readme as well.

Luke

21 May 2010, 3:53 AM
#11
jasmel avatar

jasmel

Zen Follower

Join Date:
Feb 2008
Location:
Washington State
Posts:
230
Plugin Contributions:
0

Re: CampaignMonitor Sidebox Support Thread

Thank you... I just installed this and made a test subscription.. everything worked like a charm!

One thing I noticed was some instructions in the readme.pdf file:

  1. Edit the file includes/languages/english/extra_definitions/campaignmonitor_sidebox_defines.php.
    Set the BOX_CAMPAIGNMONITOR_NEWSLETTER_ID to your CampaignMonitor API key. (You
    got this in step 2 of the pre-installation instructions.)
    Set the BOX_CAMPAIGNMONITOR_NEWSLETTER_U to the value of the List ID of the particular

these BOX_CAMPAINGMONITOR_NEWSLETTER_ID and _U don't exist.
They are actually; $api_key .= and $list_key .=

which is mentioned in the earlier section.

  1. Place your API key in the language file. Open
    includes/languages/english/extra_definitions/campaignmonitor_sidebox_defines.php and edit line 5. In
    place of "abcde12345abcde12345abcde12345", put your API key. (The line starts with "$api_key".)
  2. Find your API Subscriber List ID. To do this, click on "Manage Subscribers" for the
    CampaignMonitor client that you want to add Zen Cart integration for. Then, click on the list that you
    want to integrate with Zen Cart. Finally, click on "(edit list name/type)" near the top of the page. Your
    API Subscriber List ID will be on the bottom of the page, directly above the "Save Changes" button.
  3. Place the API Subscriber List ID in the language file. It goes in line 6, the line directly below your
    API key. Replace "12345abcde12345abcde12345abcde" with your API Subscriber List ID.

Thanks again!

~ jasmel : ** My Store** Using Contributions: Wallet Theme | Simple Google | Quantity Discounts | Godaddy | FAQ's | Confirm Email Address Entry | Admin login as customer | Newsletter Subscribe | CampaingMonitor

21 May 2010, 5:14 AM
#12
lukemcr avatar

lukemcr

New Zenner

Join Date:
Feb 2007
Location:
Sacramento, CA
Posts:
64
Plugin Contributions:
0

Re: CampaignMonitor Sidebox Support Thread

Good catch! I'll update the documentation in the next release to reflect the change.