[plugin] View email in browser

3rd party code for phpList

[plugin] View email in browser

Postby duncanc » 4:23pm, Wed 09 Apr, 2014

This plugin lets a subscriber view a campaign email in their browser.

You need to include the placeholder [VIEWBROWSER] in the message or template, it will then be replaced by a link to a page provided by the plugin.

Screenshot from 2014-04-09 2.jpg
Screenshot from 2014-04-09 2.jpg (39.9 KiB) Viewed 7581 times

When the subscriber clicks the link the email will be displayed as a web page. The plugin can replace placeholders thus allowing the email to be customised for each subscriber.

The plugin is available on GitHub, see https://github.com/bramley/phplist-plugin-viewbrowser for how to install and use the plugin.
There are a few restrictions:
  • some system placeholders are not recognised, please report any that you need
  • RSS campaigns are not supported

Report any problems or questions here.
duncanc
Moderator
 
Posts: 2440
Joined: 6:34am, Sat 08 May, 2010
Location: London

Re: [plugin] View email in browser

Postby johntrot » 3:31am, Thu 11 Sep, 2014

I am running php 5.3.28, Linux, phplist 3.0.7
I installed the phplist-plugin-viewbrowser from github
Used gethub to install and have doubled checked that the install is correct using ftp.

I have all plugins in a different directory outside phplist for phplist update reasons... and have installed the following plugins - phplist-plugin-statistics, phplist-plugin-ckeditor, phplist-plugin-bounces, phplist-plugin-campaigns, phplist-plugin-attachment, phplist-plugin-subscribers, Conditional Placeholder Plugin, and of course phplist-plugin-viewbrowser.

When viewing in a Browser the following problems occur:
the embeded template images do not show, but the images in the email text show fine.
the place holders from the Conditional Placeholder Plugin show the code not the correct replacement.

Is there a workaround for these problems?
John B
johntrot
PL Geek
 
Posts: 71
Joined: 8:28pm, Fri 01 Apr, 2005

Re: [plugin] View email in browser

Postby duncanc » 1:45pm, Thu 11 Sep, 2014

I'm looking at how to incorporate the functions that you identified - embedded images in a template and allowing other plugins to do their own placeholder replacement.

But I notice that you have installed seven of my plugins but not made a donation :(
duncanc
Moderator
 
Posts: 2440
Joined: 6:34am, Sat 08 May, 2010
Location: London

Re: [plugin] View email in browser

Postby duncanc » 9:28am, Thu 18 Sep, 2014

A new release of the plugin is available. You can update the plugin on the Manage Plugins page within phplist, or manually by downloading the zip file from https://github.com/bramley/phplist-plugin-viewbrowser.

The new release handles embedded template images, and allows other plugins to transform the email.
duncanc
Moderator
 
Posts: 2440
Joined: 6:34am, Sat 08 May, 2010
Location: London

Re: [plugin] View email in browser

Postby johntrot » 3:29pm, Thu 18 Sep, 2014

your new release is working great.
Thanks
John B
johntrot
PL Geek
 
Posts: 71
Joined: 8:28pm, Fri 01 Apr, 2005

Re: [plugin] View email in browser

Postby duncanc » 5:46am, Fri 19 Sep, 2014

Excellent. Thanks for the feedback.
duncanc
Moderator
 
Posts: 2440
Joined: 6:34am, Sat 08 May, 2010
Location: London

Re: [plugin] View email in browser

Postby duncanc » 6:16am, Fri 17 Oct, 2014

There is a new release of the plugin that provides an "anonymous" page in which subscriber placeholders are removed. This can be used to allow anyone, not only phplist subscribers, to view a campaign as a web page.

See the GitHub page https://github.com/bramley/phplist-plugin-viewbrowser for more explanation.

You can update the plugin to the new release through the phplist Manage Plugins page.
duncanc
Moderator
 
Posts: 2440
Joined: 6:34am, Sat 08 May, 2010
Location: London

404 on clicking link in email

Postby whiterabbitz » 2:26am, Fri 24 Oct, 2014

Hi,

Great concept just not working for me (hopefully - yet).

Here is what I have checked and tested

The link and text are generated in the emails

format: http://news.[MYDOMAIN].com.au/view.php?m=2&uid=75070cbd1512d8fee35d995b16799c82

Put echo "am here" in first line of view.php - nothing shows just 404 page

Server is litespeed (has caused grief before).

Looked further at view.php and put in root and added to .htaccess exceptions

Got "am here" ok so is running
remove echo and Just get blank screen so xsl is there and no errors reported in browser of chrome console etc...

5 files files in plugin directory.

So 2 problems: How does he link in the email run the view.php on the plugin directory?

And even when the view.php is in the root directory it only shows blank page.

Any ideas?

Thanks in advance
whiterabbitz
phpList newbie
 
Posts: 3
Joined: 2:10am, Fri 24 Oct, 2014

Re: [plugin] View email in browser

Postby duncanc » 8:38am, Fri 24 Oct, 2014

You need to use the standalone view.php file because you are running phplist release 3.0.6 or earlier.

You will need to look at the web server or php error logs to try to see what might be failing. But the GitHub page gives the dependencies https://github.com/bramley/phplist-plugin-viewbrowser.
duncanc
Moderator
 
Posts: 2440
Joined: 6:34am, Sat 08 May, 2010
Location: London

Re: [plugin] View email in browser

Postby whiterabbitz » 7:13pm, Fri 24 Oct, 2014

Thanks for the response.

Standalone view.php? You mean I need a copy in the root?

Please explain why 3.0.6 or earlier. should i upgrade?

Prerequisites are met:

PHP Version 5.3.29

XSL enabled

and Common plugin installed

Nothing in the error logs.
whiterabbitz
phpList newbie
 
Posts: 3
Joined: 2:10am, Fri 24 Oct, 2014

Re: [plugin] View email in browser

Postby whiterabbitz » 7:35pm, Fri 24 Oct, 2014

Follow up.

Put view.php in root

modified .htaccess to allow

php error line 14 view.php getconfig() Undefined.
whiterabbitz
phpList newbie
 
Posts: 3
Joined: 2:10am, Fri 24 Oct, 2014

Re: [plugin] View email in browser

Postby duncanc » 7:44pm, Fri 24 Oct, 2014

It seems you have not followed the installation instructions https://github.com/bramley/phplist-plugin-viewbrowser#install-viewphp-phplist-306-and-earlier.

If they are not clear then please say so, but don't just ignore them.
duncanc
Moderator
 
Posts: 2440
Joined: 6:34am, Sat 08 May, 2010
Location: London


Return to Contributions: Plug-ins, Add-ons, Mods

Who is online

Users browsing this forum: Google [Bot] and 4 guests