Request: Auto Table Import Extension – Allow Javascript
-
I apologize if this isn’t the right location, but seemed the best option.
The Automatic Periodic Table Import extension, it does not import the onclick part of a link or button. Specifically, something like this:
<input type="button" value="rate" onclick="window.open('https://someurl.com', '_blank', 'toolbar=no,scrollbars=1,resizable=yes,top=100,left=100,width=450,height=300');">
It’s just missing when auto-imported, but shows up when importing the same file manually.If possible to do this, it would probably be useful to some people to have this functionality.
Thanks.
-
Hi,
thanks for your post, and sorry for the trouble.
I know what you mean, but unfortunately, I can’t really think of a solution for this 🙁
The reason for this behavior is that the Auto Import is run as a non-logged-in unprivileged WordPress user (where as the manual import is run as your username). Unprivileged users are given less access rights by WordPress, and stronger security checks are applied. For example, WordPress only allows them to add content with a very limited subset of HTML tags, for security purposes. This is why your JS code is stripped during the import.
I just don’t know how to change this without endangering the security of the site here, sorry 🙁Regards,
TobiasThat makes sense.
Thank you for the quick response and years of support on this great plugin.
Hi,
no problem, you are very welcome! 🙂
Best wishes,
TobiasHi Tobias,
I work on a project and I wanted your opinion to know if your plugin and extension “tablepress talbe auto update” can work for me.
I have a script which update in my FTP a csv file (delete and create new csv file) with the same name (TableTempMethodePlus15.csv) on this same path :
/var/www/pampam.tdgt.org/www/wp-content/plugins/tablepress/tab/TableTempMethodePlus15.csvI tested this:
I imported this csv as a table in tablepress (file on server) with the path : /var/www/pampam.tdgt.org/www/wp-content/plugins/tablepress/tab/TableTempMethodePlus15.csv
In “Auto Import Tables”, for my tab “tableau.csv”, I selected “Auto Import”, Source Type : File on server, Perfor Auto Update : 15min, source :
/var/www/pampam.tdgt.org/www/wp-content/plugins/tablepress/tab/TableTempMethodePlus15.csvAfter this import, I modified some datas in the CSV to see if 15 minutes later, my modifications have beeen update on my tab, and it is not and I have no date on “Last Update”
You can see this on these screenshots :
https://gyazo.com/c58051a289710780d660dc30f0a9be61
https://gyazo.com/7b95e5c52baeb7c0f500b6d93eca5d06I hope you will understand my problem, please let me know if my need is possible with your awsome plugin and extension.
Best regards.
-
This reply was modified 5 years, 10 months ago by
pampam95.
Hi,
thanks for your question, and sorry for the trouble.
Most likely, there’s something not working with the WP Cron system on your site. These cron jobs require active site visitors (as these are triggering them in the background). So, for example caching plugins can cause problems here, and testing this will often not work on development sites (because there are not visitors).
One idea (if the server and the service plan with the web host company supports them) is to use a real server cronjob, which can be more stable. The setup is slightly different for each company, but here’s a fairly common set up guide:
https://www.siteground.com/tutorials/wordpress/setup-cron-job.htmAlso, you can try to use plugins like https://wordpress.org/plugins/core-control/ or https://wordpress.org/plugins/wp-cron-control/ to fix issues with the cron system.
Regards,
TobiasHi Tobias, thanks for your return, WP Cron was the problem, I disabled it and I confifured an external Cron on my linux.
I have on other question for you, as I said, I imported csv file as table in tablepress.
This table is now updated everyday.
Is it possible with tablepress to highlight with a color some lines in my table with conditions without having datas in base?
Example, I have two columns in my table, and I want to hightlight every lines where value in column 1 is equal to “2” and value in column 2 is equal to “2” ?
highlight means color the lines in blue for example
Thanks for return.
Regards.
-
This reply was modified 5 years, 9 months ago by
pampam95.
Hi,
to some degree, you can highlight rows by their value, see this approach: https://wordpress.org/support/topic/highlight-a-row-based-on-value/
Unfortunately, this can’t really do conditions like “column 1 AND column 2”.Regards,
TobiasThanks for return, I have to understand that its impossible with tablepress to make conditions ? Here, I want to highlight row 1 if 2 equal 2, I think you already understood but it’s to be sure :p
COLUMN1 COLUMN2
TEAM 1 2 2TEAM2 3 1
Do you have an alternative ?
Your plugin is awsome and it avoid me to create a php array and request my base… and I want to keep using it 🙁Hi,
if it’s such a “simple” condition, with just one column, the link above should help.
Only if you have conditions that take into account multiple columns, that’s not directly possible.Regards,
TobiasHi Tobias, I find a solution to my precedent trouble to keep using your plugin.
Did you already reduce a tablepress table ?
I have 20 table on my page and I want to let the possibility to users to reduce the tables they want to.
If you have a code for that it will be great, I will make you a donation if you can help me on that.
Best regards.
Hi,
I’m not sure what you mean with “reduce” here. Can you please explain that, maybe with an example?
Regards,
TobiasOn this page, I have several array (create with tablepress, imported as csv file) :
http://pampam.tdgt.org/demo-football/Every array has a name “Methode +1,5 BUTS”, “Methode +2,5 BUTS”
Every array has a lot of lines, I want my users have the choice to reduce the arrays they want, for example, to hide the first array to see only the second one.
It can be to click on a button +/- to hide or show each array.
Is it clear enough ?
Regards.
Hi,
ah, I see. TablePress doesn’t have a native feature for this (because this is more a feature that a theme should offer, or another plugin).
You could maybe also try this manual approach: https://tobias.baethge.com/2009/07/expandhide-accordion-feature-explained/Regards,
TobiasHi Tobias, I found a solution to my precedent request.
An easy way to do that is to to create an accordion content on the wordpress page, and I can put my table Id into 🙂
you can see the result here :
https://betseriesmax.com/demo-football/New question, is it possible to my user if he clicks or pass the mouse on a row of my table to display a windows with some infos according to the row in question ?
Best regards.
Hi,
that’s good to hear!
For that new question, this might help: https://wordpress.org/support/topic/how-to-expand-tablepress-row/#post-3741566
Regards,
Tobias -
This reply was modified 5 years, 10 months ago by
The topic ‘Request: Auto Table Import Extension – Allow Javascript’ is closed to new replies.