jassimp
Forum Replies Created
-
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Table press as a databaseThank you Tobias for your great support
as you advised, i achieved the auto migration of multiple files with a php code.( i am just posting it here if it help for others)
So the migrated file will auto import to table press by the provided import optionis there any option form the auto import time interval change as the minimum is 15 minuts on it
secondly the table press showing all tables before its return to the real setting which is hiding all tables except the first row and header- how i can solve this issue?
also is there any option to search that the result to view only as full search word met in a table cell?
thank you`
<?php /** * 7design.studio * Merge multiple CSV files into one master CSV file * Remove header line from individual file */ $directory = "directory-name-where-multiple-files-to merge*"; // CSV Files Diectory Path // Open and Write Master CSV File $masterCSVFile = fopen('merge.csv',"w+"); // Process each CSV file inside root directory foreach(glob($directory) as $file) { $data = []; // Empty Data // Allow only CSV files if (strpos($file, '.csv') !== false) { // Open and Read individual CSV file if (($handle = fopen($file, 'r')) !== false) { // Collect CSV each row records while (($dataValue = fgetcsv($handle, 1000)) !== false) { $data[] = $dataValue; } } fclose($handle); // Close individual CSV file unset($data[-1]); // Remove first row of CSV, commonly tends to CSV header // Check whether record present or not if(count($data) > 0) { foreach ($data as $value) { try { // Insert record into master CSV file $val = fputcsv($masterCSVFile, $value, ", " ); } catch (Exception $e) { echo $e->getMessage(); } } } else { echo "[$file] file contains no record to process."; } } else { echo "[$file] is not a CSV file."; } } // Close master CSV file fclose($masterCSVFile); ?>- This reply was modified 6 years, 4 months ago by jassimp.
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Table press as a databaseWow that’s a great help
after this modification while we entering the data through a URL, i am facing one issue that if the searching data is not in the table, then the table header goes one line up and replacing the search box instead of no search data found message.
Also the header row format changing in to the body row formathow we can solve this?
i am using the below short code
[table_filter id=1 datatables_search_enter=true /]is there any way to get the search result only from specific column?
As i am a WP beginner, all your support is really appreciated
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Table press as a databaseForum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Table press as a databaseMany thanks Mr. Tobias for your prompt support
i was testing the table auto import extension and its doing great job
unfortunately my requirement is slight different as i want to auto import the Excel.or CSV file as Append rows to existing table as different users will upload the file to the server and each one should update the table by Append rows to existing table
the file name that uploading will be same and it will overwrite while uploading to the server. is there any possibility to auto update the table by “Append rows to existing table” method by looking in to the server file creation date and time or any other parameters?
or is there any option to get search result from more than one table in same page and same search form?Also is there any option to import the file from excel to the table list with out log in admin dashboard ( i mean through any password protected page or non admin user profile etc)
it will be much appreciated if you can advice me for some solution to solve the above requirement
the search enter option is working fine
is there any option there to remove the next and previous button form the bottom and add different(minimum 2) filter to the searchall your help is highly appreciated
best regards
Jasim
- This reply was modified 6 years, 4 months ago by jassimp.