-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow Email Reports to be sent in HTML #2318
Comments
I have almost finished working on this ticket. Images (Piwik logo, browser logos, ..) in emails have to link to a Piwik instance so they can be downloaded by email clients. Should we add a config option with the URL of the piwik instance to use ? Or should we use
or some sort? |
I understand changing file names of a plugin is virtually impossible. (PDFReports -> EmailReports). However, Is it ok to change
to
? Same goes for
and many others ? What about translations ? |
Replying to JulienM:
See Piwik_Url. |
re: comment:2 it's easy to rename a plugin but a bit messy for the update script, and a PITA for translators. That said, since pdf reports can also be downloaded, I would prefer simply "Reports". |
Piwik_Url is what I was looking for thanks. "Reports" is more correct indeed. For translations, how about removing the translation for other languages so it appears as "not translated" in the translation ui ? |
Attachment: |
Attachment: |
Attachment: |
Attachment: |
Attachment: |
Attachment: |
Attachment: |
Attachment: |
Attachment: |
Attachment: |
I've read the code managing database updates. I understand there is a way for plugins to define database updates the same way core does. I have to add 'format' column to the pdf table. Should this go in core or plugin DB updates ? |
core/Updates/ |
Excellent work mate...! I tested report for komodo island and it worked well :) Some feedback:
|
Now the ground work is done it's very easy to add new formats. I'm going to implement Piwik_ReportRenderer_Odt (using http://www.odtphp.com/) if that's ok. |
|
It looks like the ODTPHP is license incompatible with the GPLv3. Also, development on the library seems to have tapered off -- what version of the Open Document Format does it support? In the meantime, feel free to add support for odt, but check for the presence of the library in the event we can't include the library in the distribution. |
How about http://phpdocwriter.sourceforge.net/ ? |
phpdocwriter is LGPL (ok), but also hasn't been updated in a while. If odtphp is a better library, you could try asking the devs to update the license (eg from "GPLv2" to "GPLv2 or above"). |
phpdocwriter generates .sxw files [http://phpdocwriter.sourceforge.net/phpdocwriter/examples/ex6.php] so I'm going to send an email to the developers of ODTPHP |
On this page [they link to http://www.gnu.org/copyleft/gpl.html. In [they also link to http://www.gnu.org/copyleft/gpl.html. [http://www.gnu.org/copyleft/gpl.html] seems to be v3. Do they only need to update the text in [http://www.odtphp.com/index.php?i=credits] from
to
? |
It must have been the sleep deprivation -- I swear I saw "v2" somewhere. Thanks for double checking. Go head. |
I'm running into a bit of trouble with that library. To zip/unzip odt data they use the PclZip library. With the latest packaged version (1.0.1) it is not possible to override the temp directory used by PclZip. Looking at the latest revision http://odtphp.svn.sourceforge.net/viewvc/odtphp?view=revision&revision=51 second point:
shows they have fixed the issue. However, it has not been packaged yet. Should I update the file myself or drop the idea of having odt export for lack of quality libraries? |
grab the latest from their svn |
I should have investigated before. This library doesn't allow table generation with a variable number of columns. They suggest to use http://pear.php.net/package/OpenDocument/ |
No table support in this library. |
(In [4568]) Fixing Notice:</strong> <i>Undefined variable: reportFont</i> in <b>/home/www/dev5.piwik.org/core/ReportRenderer/Pdf.php</b> on line <b>95</b> Refs #2318 |
Regression in PDF: in Greek for example, letters now appear as ???? after 1.4-rc2 upgrade (reproducible on localhost). Before, it used to display OK. Maybe a refactoring miss out? |
(In [4619]) refs #2318 fixing font-size incorrectly interpreted in gmail |
(In [4659]) refs #2318 font & size enhancements |
(In [5313]) refs #2318 fix for r4518, xss protection broke URLs in HTML Reports, applying same protection as in datatable_cell.tpl |
(In [5415]) fixes #2706
|
(In [5582]) * fixes #2706, #2828, #2704, refs #1721, #2637, #2711, #2318, #71 : horizontal static graph implemented
|
(In [6849]) refs #3323 #3088 #2708 #71 #2318
|
See /trac/ticket/151#comment:11
Actions :
The text was updated successfully, but these errors were encountered: