Client Report Extension Email Design

Hello Everyone, I’m using Client Report Extension and making it better but there are some questions that I’m figuring out.

Not all the sections are included when I generate a report (Backup Security (Updraft), Security (Wpfence, iThemes), Uptime, Updates. When I test the email I only got (Backup and Security) rest was not included in it. I want to include everything in it.

Are there any shortcodes for Wpfence?

<style>
    @import url('https://fonts.googleapis.com/css2?family=Rubik&display=swap');<br />    @import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@500&display=swap');</p>
<p>    body{background:#f7f7f7;}<br />    h1, h2, h3, h4, h5, h6{font-family: 'Fira Sans', sans-serif;}<br />    p, span{font-family: 'Rubik', sans-serif;}<br /></style>
<div id="report-body" style="width: 600px; margin-left: auto; margin-right: auto;">
<p style="page-break-before: always; text-align: left; font-size: 16px; padding: 0px; margin: 0px; line-height: 20px;">Dear [client.name]</p>
&nbsp;
<p style="text-align: left; font-size: 16px; padding: 0px; margin: 0px; line-height: 20px;">Thank you for trusting your website to us.
We hope you find this report useful.</p>
&nbsp;
<p style="text-align: left; font-size: 16px; padding: 0px; margin: 0px;">Kind Regards
Strategia Solutions Team</p>
&nbsp;
<h3 style="font-size: 1.4em; color: #2a439e; font-weight: 500; padding: 0px; margin: 0px 0px 10px 0px; text-align: left;">Overview</h3>
<p style="padding: 0px; margin: 0px; font-size: 16px;"><span style="color: #7fb100; font-size: 1em;">✔</span> Core Updates » <span style="color: #7fb100;">[wordpress.updated.count]</span></p>
<p style="padding: 0px; margin: 0px; font-size: 16px;"><span style="color: #7fb100; font-size: 1em;">✔</span> Backups » <span style="color: #7fb100;">[backup.created.count]</span></p>
<p style="padding: 0px; margin: 0px; font-size: 16px;"><span style="color: #7fb100; font-size: 1em;">✔</span> Uptime » <span style="color: #7fb100;">[aum.uptime30]</span></p>
<p style="padding: 0px; margin: 0px; font-size: 16px;"><span style="color: #7fb100; font-size: 1em;">✔</span> Security Checks » <span style="color: #7fb100;">[wordfence.scan.count]</span></p>
&nbsp;

&nbsp;
<p style="page-break-before: always; font-size: 2em; color: #7fb100; padding: 0px; margin: 0px; text-align: left;"><img class="aligncenter wp-image-17" src="../wp-content/plugins/mainwp-client-reports-extension/images/backup.jpg" alt="backups" width="600" height="211" /></p>
&nbsp;
<h3 style="font-size: 1.4em; color: #2a439e; font-weight: 500; padding: 0px; margin: 0px 0px 10px 0px; text-align: left;">Backups Completed</h3>
<p style="font-size: 16px; color: #000; padding: 0px; margin: 0px; text-align: left;">We have created [backup.created.count] backup(s) of your website during the report period and safely stored them away giving you peace of mind!</p>
<span style="padding: 0px; margin: 0px; text-align: left;">[section.backups.created]</span>
<span style="padding: 0px; margin: 0px; text-align: left;"> [backup.created.type] on [backup.created.date]</span>
<span style="padding: 0px; margin: 0px; text-align: left;">[/section.backups.created]</span>

&nbsp;
<p style="page-break-before: always; font-size: 2em; color: #7fb100; padding: 0px; margin: 0px; text-align: left;"><img class="aligncenter wp-image-16" src="../wp-content/plugins/mainwp-client-reports-extension/images/security.jpg" alt="security" width="600" height="212" /></p>
&nbsp;
<h3 style="font-size: 1.4em; color: #2a439e; font-weight: 500; padding: 0px; margin: 0px 0px 10px 0px; text-align: left;">Security Checks Completed</h3>
<p style="font-size: 16px; color: #000; padding: 0px; margin: 0px; text-align: left;">We have scanned your website [wordfence.scan.count] time(s) to check for malicious software or malware ensuring your site stays in tip top condition.</p>
<span style="padding: 0px; margin: 0px; text-align: left;">[section.wordfence.scan]</span>
Status: [wordfence.scan.result] on [wordfence.scan.date]
<span style="padding: 0px; margin: 0px; text-align: left;">[wordfence.scan.details]</span>

&nbsp;
<p style="page-break-before: always; font-size: 2em; color: #7fb100; padding: 0px; margin: 0px; text-align: left;"><img class="aligncenter wp-image-18" src="../wp-content/plugins/mainwp-client-reports-extension/images/uptime.jpg" alt="uptime" width="600" height="211" /></p>
&nbsp;
<h3 style="font-size: 1.4em; color: #2a439e; font-weight: 500; padding: 0px; margin: 0px 0px 10px 0px; text-align: left;">Uptime</h3>
<p style="font-size: 16px; color: #000; padding: 0px; margin: 0px; text-align: left;">We check your website to make sure it is up &amp; running every 5 minutes. It can be offline for a number of reasons such as when we update &amp; test it or sometimes there may be a delay on the server - We are notified of all downtime and investigate to put this right.</p>
<span style="font-size: 16px;"> Overall uptime - [aum.alltimeuptimeratio]</span>
<span style="font-size: 16px;"> Last 30 days - [aum.uptime30]</span>

&nbsp;
<p style="page-break-before: always; font-size: 2em; color: #7fb100; padding: 0px; margin: 0px; text-align: left;"><img class="aligncenter wp-image-20" src="../wp-content/plugins/mainwp-client-reports-extension/images/updates.jpg" alt="updates" width="600" height="212" /></p>
&nbsp;
<h3 style="font-size: 1.4em; color: #2a439e; font-weight: 500; padding: 0px; margin: 0px 0px 10px 0px; text-align: left;">Theme &amp; Plugin Updates</h3>
<p style="font-size: 16px; color: #000; padding: 0px; margin: 0px; text-align: left;">We have updated [plugin.updated.count] plugin(s) and [theme.updated.count] theme(s) ensuring your website says up to date &amp; secure.</p>
&nbsp;
<p style="font-size: 1.2em; color: #2a439e; padding: 0px; margin: 0px 0px 10px 0px; text-align: left;">Plugins</p>
<span style="font-size: 16px;">[section.plugins.updated]</span>
<span style="font-size: 16px;">[plugin.name] updated from [plugin.old.version] to [plugin.current.version]</span>
<span style="font-size: 16px;">[/section.plugins.updated]</span>
<p style="font-size: 1.2em; color: #2a439e; padding: 0px; margin: 0px 0px 10px 0px; text-align: left;">Themes</p>
<span style="font-size: 16px;">[section.themes.updated]</span>
<span style="font-size: 16px;">[theme.name] updated from [theme.old.version] to [theme.current.version]</span>
<span style="font-size: 16px;">[/section.themes.updated]</span>

</div>

Hi @naveedj53,

What your header looks like? You must declared which tokens you want to use. There is a big part before the body like something:
$plugin_active_uptime = is_plugin_active( ‘advanced-uptime-monitor-extension/advanced-uptime-monitor-extension.php’ ) ? true : false;
$plugin_active_sucuri = is_plugin_active( ‘mainwp-sucuri-extension/mainwp-sucuri-extension.php’ ) ? true : false;
for example…
Also, did you declare your $default_config settings?

Fred

Hello Fred, here is the header code that I have.

<div id="report-header" style="width: 600px; margin-left: auto; margin-right: auto;">

<img class="aligncenter wp-image-24" src="../wp-content/uploads/2021/08/wp-maintenance.png" alt="templatemwp" width="463" height="442" data-wp-editing="1" />
<p style="text-align: center; font-weight: 200; font-size: 2em; padding: 0px; margin: 0px;">Website Care Report</p>
<p style="text-align: center; font-size: 2em; color: #7fb100; font-weight: 200; padding: 0px; margin: 0px;">[client.site.name]</p>
<p style="text-align: center; font-size: 1em; color: #000; font-weight: 200; padding: 0px; margin: 0px;">[report.daterange]</p>

</div>

You must have more! Like this: Screen Shot 2021-08-24 at 1...

First, I’m not using the pro report extension. Using Client Reports where you get the email template by default. I’m modifying the default template and shared the email code.

I don’t want to send pdf to clients so I switched to Client Reports.

Oh! Sorry about that @naveedj53! I missed this part… I don’t use this function then.

Is this possible that I exclude the PDF part in Pro Reports?
I don’t want the PDF to be sent to the users.

I have to design a proper email template and add it inside the PHP file for Pro Reports?

Hi Naveed,

I reviewed your template and I noticed that you don’t have a closing tag for the [section.wordfence.scan], see here:

Can you try to fix that and see if that resolves the problem?

Is this possible that I exclude the PDF part in Pro Reports?

No, Pro Reports requires the PDF attachment.

1 Like

Hi bogdan, Yes this resolved the issue but I’m not getting anything in themes and plugins. The sections are closing for those sections.

<style>
    @import url('https://fonts.googleapis.com/css2?family=Rubik&display=swap');<br />    @import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@500&display=swap');</p>
<p>    body{background:#f7f7f7;}<br />    h1, h2, h3, h4, h5, h6{font-family: 'Fira Sans', sans-serif;}<br />    p, span{font-family: 'Rubik', sans-serif;}<br /></style>
<div id="report-body" style="width: 600px; margin-left: auto; margin-right: auto;">
<p style="page-break-before: always; text-align: left; font-size: 16px; padding: 0px; margin: 0px; line-height: 20px;">Dear [client.name]</p>
&nbsp;
<p style="text-align: left; font-size: 16px; padding: 0px; margin: 0px; line-height: 20px;">Thank you for trusting your website to us.
We hope you find this report useful.</p>
&nbsp;
<p style="text-align: left; font-size: 16px; padding: 0px; margin: 0px;">Kind Regards
Strategia Solutions Team</p>
&nbsp;
<h3 style="font-size: 1.4em; color: #2a439e; font-weight: 500; padding: 0px; margin: 0px 0px 10px 0px; text-align: left;">Overview</h3>
<p style="padding: 0px; margin: 0px; font-size: 16px;"><span style="color: #7fb100; font-size: 1em;">✔</span> Core Updates » <span style="color: #7fb100;">[wordpress.updated.count]</span></p>
<p style="padding: 0px; margin: 0px; font-size: 16px;"><span style="color: #7fb100; font-size: 1em;">✔</span> Backups » <span style="color: #7fb100;">[backup.created.count]</span></p>
<p style="padding: 0px; margin: 0px; font-size: 16px;"><span style="color: #7fb100; font-size: 1em;">✔</span> Uptime » <span style="color: #7fb100;">[aum.uptime30]</span></p>
<p style="padding: 0px; margin: 0px; font-size: 16px;"><span style="color: #7fb100; font-size: 1em;">✔</span> Security Checks » <span style="color: #7fb100;">[wordfence.scan.count]</span></p>
&nbsp;

&nbsp;
<p style="page-break-before: always; font-size: 2em; color: #7fb100; padding: 0px; margin: 0px; text-align: left;"><img class="aligncenter wp-image-17" src="../wp-content/plugins/mainwp-client-reports-extension/images/backup.jpg" alt="backups" width="600" height="211" /></p>
&nbsp;
<h3 style="font-size: 1.4em; color: #2a439e; font-weight: 500; padding: 0px; margin: 0px 0px 10px 0px; text-align: left;">Backups Completed</h3>
<p style="font-size: 16px; color: #000; padding: 0px; margin: 0px; text-align: left;">We have created [backup.created.count] backup(s) of your website during the report period and safely stored them away giving you peace of mind!</p>
<span style="padding: 0px; margin: 0px; text-align: left;">[section.backups.created]</span>
<span style="padding: 0px; margin: 0px; text-align: left;"> [backup.created.type] on [backup.created.date]</span>
<span style="padding: 0px; margin: 0px; text-align: left;">[/section.backups.created]</span>

&nbsp;
<p style="page-break-before: always; font-size: 2em; color: #7fb100; padding: 0px; margin: 0px; text-align: left;"><img class="aligncenter wp-image-16" src="../wp-content/plugins/mainwp-client-reports-extension/images/security.jpg" alt="security" width="600" height="212" /></p>
&nbsp;
<h3 style="font-size: 1.4em; color: #2a439e; font-weight: 500; padding: 0px; margin: 0px 0px 10px 0px; text-align: left;">Security Checks Completed</h3>
<p style="font-size: 16px; color: #000; padding: 0px; margin: 0px; text-align: left;">We have scanned your website [wordfence.scan.count] time(s) to check for malicious software or malware ensuring your site stays in tip top condition.</p>
<span style="padding: 0px; margin: 0px; text-align: left;">[section.wordfence.scan]</span>
Status: [wordfence.scan.result] on [wordfence.scan.date]
<span style="padding: 0px; margin: 0px; text-align: left;">[wordfence.scan.details]</span>
<span style="padding: 0px; margin: 0px; text-align: left;">[/section.wordfence.scan]</span>

&nbsp;
<p style="page-break-before: always; font-size: 2em; color: #7fb100; padding: 0px; margin: 0px; text-align: left;"><img class="aligncenter wp-image-18" src="../wp-content/plugins/mainwp-client-reports-extension/images/uptime.jpg" alt="uptime" width="600" height="211" /></p>
&nbsp;
<h3 style="font-size: 1.4em; color: #2a439e; font-weight: 500; padding: 0px; margin: 0px 0px 10px 0px; text-align: left;">Uptime</h3>
<p style="font-size: 16px; color: #000; padding: 0px; margin: 0px; text-align: left;">We check your website to make sure it is up &amp; running every 5 minutes. It can be offline for a number of reasons such as when we update &amp; test it or sometimes there may be a delay on the server - We are notified of all downtime and investigate to put this right.</p>
<span style="font-size: 16px;"> Overall uptime - [aum.alltimeuptimeratio]</span>
<span style="font-size: 16px;"> Last 30 days - [aum.uptime30]</span>

&nbsp;
<p style="page-break-before: always; font-size: 2em; color: #7fb100; padding: 0px; margin: 0px; text-align: left;"><img class="aligncenter wp-image-20" src="../wp-content/plugins/mainwp-client-reports-extension/images/updates.jpg" alt="updates" width="600" height="212" /></p>
&nbsp;
<h3 style="font-size: 1.4em; color: #2a439e; font-weight: 500; padding: 0px; margin: 0px 0px 10px 0px; text-align: left;">Theme &amp; Plugin Updates</h3>
<p style="font-size: 16px; color: #000; padding: 0px; margin: 0px; text-align: left;">We have updated [plugin.updated.count] plugin(s) and [theme.updated.count] theme(s) ensuring your website says up to date &amp; secure.</p>
&nbsp;
<p style="font-size: 1.2em; color: #2a439e; padding: 0px; margin: 0px 0px 10px 0px; text-align: left;">Plugins</p>
<span style="font-size: 16px;">[section.plugins.updated]</span>
<span style="font-size: 16px;">[plugin.name] updated from [plugin.old.version] to [plugin.current.version]</span>
<span style="font-size: 16px;">[/section.plugins.updated]</span>
<p style="font-size: 1.2em; color: #2a439e; padding: 0px; margin: 0px 0px 10px 0px; text-align: left;">Themes</p>
<span style="font-size: 16px;">[section.themes.updated]</span>
<span style="font-size: 16px;">[theme.name] updated from [theme.old.version] to [theme.current.version]</span>
<span style="font-size: 16px;">[/section.themes.updated]</span>

</div>

I have updated the code but it’s not showing any parameters. I updated the plugins as well from mainwp but it’s not showing any records. WordPress tokens are not working as well.

<p style="font-size: 1.2em; color: #2a439e; padding: 0px; margin: 0px 0px 10px 0px; text-align: left;">Plugins</p>
<span style="font-size: 16px;">[section.plugins.installed]</span>
<span style="font-size: 16px;">[plugin.name] updated from [plugin.old.version] to [plugin.current.version]</span>
<span style="font-size: 16px;">[/section.plugins.installed]</span>
<p style="font-size: 1.2em; color: #2a439e; padding: 0px; margin: 0px 0px 10px 0px; text-align: left;">Themes</p>
<span style="font-size: 16px;">[section.themes.installed]</span>
<span style="font-size: 16px;">[theme.name] updated to version [theme.current.version]</span>
<span style="font-size: 16px;">[/section.themes.installed]</span>


Can you verify that there were actions performed in the selected date range?

Yes, I performed the action yesterday & today and selected the dates for this month. Also, normal plugin names and theme name is not generating in the report.

I have installed iThemes Security and WordFence on all the child websites. Maybe there are any settings that are preventing disclosing information.

Hi NaveedJ,

Thanks for verifying that.

Would you mind opening a private Help Desk ticket so we can collect some additional information & investigate further?

Sure I will do that. Thank You

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.