Page 1 of 1

[plugin] View email in browser

PostPosted: 4:23pm, Wed 09 Apr, 2014
by duncanc
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 9368 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.

Re: [plugin] View email in browser

PostPosted: 3:31am, Thu 11 Sep, 2014
by johntrot
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?

Re: [plugin] View email in browser

PostPosted: 1:45pm, Thu 11 Sep, 2014
by duncanc
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 :(

Re: [plugin] View email in browser

PostPosted: 9:28am, Thu 18 Sep, 2014
by duncanc
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.

Re: [plugin] View email in browser

PostPosted: 3:29pm, Thu 18 Sep, 2014
by johntrot
your new release is working great.
Thanks

Re: [plugin] View email in browser

PostPosted: 5:46am, Fri 19 Sep, 2014
by duncanc
Excellent. Thanks for the feedback.

Re: [plugin] View email in browser

PostPosted: 6:16am, Fri 17 Oct, 2014
by duncanc
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.

404 on clicking link in email

PostPosted: 2:26am, Fri 24 Oct, 2014
by whiterabbitz
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

Re: [plugin] View email in browser

PostPosted: 8:38am, Fri 24 Oct, 2014
by duncanc
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.

Re: [plugin] View email in browser

PostPosted: 7:13pm, Fri 24 Oct, 2014
by whiterabbitz
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.

Re: [plugin] View email in browser

PostPosted: 7:35pm, Fri 24 Oct, 2014
by whiterabbitz
Follow up.

Put view.php in root

modified .htaccess to allow

php error line 14 view.php getconfig() Undefined.

Re: [plugin] View email in browser

PostPosted: 7:44pm, Fri 24 Oct, 2014
by duncanc
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.