WPChina
Forum Replies Created
-
No problem I will contact you at your support site instead. I tested it on wp-rss-feed-to-post/includes/wprss-ftp-converter.php and you can see it on line 304.
WPRSS_FTP_Utils::log( 'Applying post_content filter...', FUNCTION, WPRSS_FTP_Utils::LOG_LEVEL_SYSTEM ); $post_content = apply_filters( 'wprss_ftp_converter_post_content', $item->get_content(), $source );
Sorry the “dumb” was a placeholder I use for testing and forgot to find/replace before adding here. So the function should actually be wprss_ftp_converter_post_content and that is part of an addon to your free plugin, so best to contact you on your site.
- This reply was modified 6 years, 9 months ago by WPChina. Reason: edited path to file
Also I see this lots in the error logs:
[Thu Jun 21 09:38:34.451478 2018] [proxy_fcgi:error] [pid 883:tid 140568139085568] [client xxx.xx.xx.xx:54002] AH01071: Got error 'PHP message: PHP Warning: is_dir(): open_basedir restriction in effect. File(.) is not within the allowed path(s): (/var/www/vhosts/domain.com/:/tmp/) in /var/www/vhosts/domain.com/httpdocs/wp-content/plugins/amp-cache/ampforwp-cache.php on line 97\n'
- This reply was modified 6 years, 9 months ago by WPChina.
Hello:
I will contact you on the support webform at your site instead ok? I will do that now.Any update on this? It seems like a big problem.
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Embedding table into an emailI created an addon for this! I will send it to Tobias via email now.
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Embedding table into an emailAlso, please look at my suggested parameters. Any chance we can include those in the future? ??
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Embedding table into an emailThank you for the Edit link removal extension!
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Embedding table into an emailOk, I have a solution. However, you must understand the requirements and shortcomings of emails first:
1) Emails cannot have <form> inside. If they do, they will marked as phishing/spam by most recipients.
2) Emails can’t access json or javascript because they also will be marked as phishing and spam messages.
3) Email programs will often strip out the <head> of an email. That means if you embedded CSS int he <head>, it will disappear. A workaround for this is to *also* place the CSS within the <body> of the email.So that means when you embed your table into an HTML email, you can only expect to have the table contents available. You will not be able to have the search box, or other niceties like column adjustments.
To make the HTML email, I just add a file in my WP installation called email.php and I put it in a directory called /email/. So if my WP is installed at domain.com, the email is found at domain.com/email/email.php. I then add this to the top of the email.php:
<?php require('../wp-blog-header.php'); ?>
That one line of code will allow your email.php to act as if it is part of your WP installation.
Then I add the shortcode somewhere in the HTML body of the email.php like this:
<?php echo do_shortcode("[table id=15 hide_columns=all show_columns='A,B,G,K' /]"); ?>
Then it works. Just copy the HTML source of domain.com/email/email.php from your browser and paste it into your email program to send.
The downside is without the CSS, the table will just be text. So it will look bad. If you load the CSS in the <body?> it will look better, but I have an even better idea:
Maybe allow TablePress to operate without any “outside” effects like json/css/etc. Instead just print a table and have CSS as part of the div to make the columns different colors. One way to do that is to allow some more parameters in the shortcode such as:
a) external_files=off [this means the table relies on no external styles or code files]
b) header_color=#669999 [this allows the header of the column to have specific color]
c) footer_color=#669966 [this allows the footer of the column to have specific color]
d) row_color_alternate=’#000066,#006666′ [this allows us to manually set the 2 colors to make each row an alternating color. The first color in the list is the first color on the top row below the header, if the header is given its own color]
e) table_border=2 [pixels for the border size]
f) table_padding=5 [pixels for the padding size]However, I found a bug, and I’m not sure if it a security issue….
If you login as admin to your WP within the same browser as you load domain.com/email/email.php you will see an “Edit” below the table. I actually didn’t pay attention the first time I did this, and I sent that to a few thousand members of a WP site I manage. So they could click on the Edit link and visit the WP admin login page. They still needed a password to login, so it was relatively safe, but I’m unsure why the Edit link always shows and how to remove it. Any ideas?
- This reply was modified 7 years, 5 months ago by WPChina.
Let us know if we can help. I sent you a donation a week ago, so you have my email details and you can message me confidentially if you want me to help test anything on live, heavy use sites running Tablepress.
I did notice in the past 4 hours my load averages have gone up by 50-75% on WordPress sites running at 50,000+ user sessions a day and have Tablepress installed. I’ve been working all day to find the cause, so hopefully your fix helps to fix my problem?
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Embedding table into an emailHi no problem. Actually this is not about email but instead about CSS. A manual solution is to place the full CSS from tablepress into the email rather than have a link, since links are stripped. So that is what I will do ??
Ok thank you. I am already implementing~
Hello: that looks like a great extension and I will buy it if it can handle things in this situation:
So I will add a new column for “Date”. That way I can keep track in a large table all the info based on Date. But I will “Hide” that column from the frontend because I only need the date on backend.
If I hide the Date on backend but use the date as the search term like the following, will it correctly filter based on date? I mean, since it is a hidden column can it still be used? Here is a sample shortcode:
[table id=1 filter="2017-09-22" /]
Ah that fixes it. Ok I understand the logic now~
Forum: Plugins
In reply to: [Publish To Apple News] “API: DATE_NOT_RECENT” errorYes I control our box and both server and PHP are set to nist, so accurate within a few seconds. However, we offset to our local +X GMT. Could the offset be the problem? If so, that’s tough to change as the offset is important for many other server-side functions.
Hello yes no problem, I will contact you shortly. many thanks for your great support!!