Dima Stefantsov
Forum Replies Created
-
Forum: Plugins
In reply to: [Hash Link Scroll Offset] Page jumps before scrolling smoothlyI specifically want to set it to 0, jump instantly. Just preserve the offset, and page reload jump.
Forum: Plugins
In reply to: [Hash Link Scroll Offset] Page jumps before scrolling smoothlyAnd while you are at it, could you please let us change scroll duration?
I see you do it inline in js, having a filter would not be hard to do:
have a js variable that would be printed above your script, let your script use this variable.If it’s hard for you to implement, it’s ok, just make a check in js, “if such global variable is declared, use it, if not, use default 900”.
Thank you! I have updated plugin and it works indeed!
Forum: Plugins
In reply to: [Media Library Assistant] Sorting a gallery, once againhttp://4.stefantsov.com/s/2018.02.06_11.39.06_xdq033vc.png it shows actual upload date, but sorts by the date that was set. This date I have changed previously, with Modify Attachments Meta.
It would also be nice to never have “x hours ago”, just give me the real date and maybe time. Right now I’ve spent about 10 minutes trying to figure out have I downloaded cached old dev version, or proper new. In source code it’s timestamped 2018-01-26, and here in forum… it’s either
1 week, 5 days agoor1 week, 3 days ago. Counted it using calendar, still not sure, had to find a PC that I downloaded it first time, it’s 2018-01-24, ok so it’s not cached, all good. Relative datetime is evil.Calendar works weird / is bugged. For single-digit dates it’s good, for double-digit, for example 31 jan, it detects current date as 3 jan. http://4.stefantsov.com/s/2018.02.06_11.45.45_83roljg5.png
Well, that is the case even for posts, even when MLA is disabled 🙂
Every other aspect of it works as intended.“The update is in a new MLA Development Version dated 20180126”
Ok reading this paragraph now I understand you mentioned timestamp 2018-01-26, thank you 🙂“I have added the Uploaded on date editing to the Media/Assistant Quick Edit area.”
I can see you have added it, but this is default wordpress implementation. This is good… but it’s very hard to use. A text field of Modify Attachments Meta is much easier to use, I set all the fields with a single copypaste. You can maybe add a setting to change default wp datetime fields there with a single text field. I think I will not use it much, at least the way it is. It’s quicker to open a page with mouse3, change it there, save, close, than enter dates in this “quick” edit.
Will try to contact Schedule Posts Calendar for quick edit support.“You wrote “still no bulk edit“. I am not sure what should be done in the Bulk Edit area. It seems to me that setting multiple items to the same Uploaded on date is of limited use. Can you give me more details of how you would use this feature?
I could see some utility is setting the Uploaded on date from an IPTC or EXIF metadata value embedded in the items’ file. Would this be useful?”
I sometimes bulk-upload images. By default it’s uploaded in order of filenames I have selected, and even though they may have same current date, they differ a bit in time. Result is sort order within this bunch of photos is preserved.
I could use this functionality: bulk-change date. Images have 2018-02-06 13:51:02 to 2018-02-06 13:51:48 dates right now. After I apply “change to 2017-12-31” it will become 2017-12-31 13:51:02 to 2017-12-31 13:51:48, preserving sort order within, but changing a date, thus moving photos to the right place within whole album.
Of course I should be able to bulk-change time, while preserving current by-date order as well.Not all images have proper exif, not all photos have parsable names, but auto-mapping would be really great. I have no idea how EXIF works, I even hear about IPTC for the first time. But maybe my cellphone I take photos with really have time taken embedded into a photo. Then I’d like to set date to this value.
Second, I’d like to be able to write a regex to map filename to YYYY-MM-DD HH:mm:ss. For example, right now I might have a filename “2010.06.04 Дима Стефанцов за рабочим местом SMP.jpg”, I’d map it with something like
(?<year>\d{4})\.(?<month>\d{2})\.(?<day>\d{2}).*?.- This reply was modified 8 years, 4 months ago by Dima Stefantsov.
Forum: Plugins
In reply to: [WP Customize Login Page] Custom CSSAnd buttons should have :focus and :active styles as well. When I press buttons on mobile, it blinks in default blue. You may assume it to be equal to :hover.
- This reply was modified 8 years, 4 months ago by Dima Stefantsov.
Forum: Plugins
In reply to: [Media Library Assistant] Sorting a gallery, once againHi David.
Have tried it.Datetime edit interface doesn’t work with plugin that I use, https://ww.wp.xz.cn/plugins/schedule-posts-calendar/. It is supposed to replace default hard to use edit field with easy to use GUI http://4.stefantsov.com/s/2018.01.25_22.05.42_hnmscjhk.png
It still works on posts, but not for media: http://4.stefantsov.com/s/2018.01.25_22.06.28_3pp3f3sy.pngOtherwise, editing media datetime works. Not as easy to use as modify-attachments-meta plugin (this is important: now that I’m establishing my gallery, I’m changing a lot of dates), and still no bulk edit.
It would be nice, if I could change datetime right from here http://4.stefantsov.com/s/2018.01.25_22.12.31_wfaqe7om.png, right after clicking on this date number. Ideally it will open schedule-posts-calendar javascript interface to pick date/time, it will take just 3-5 clicks to change date of any image in library, right from library interface.
Forum: Plugins
In reply to: [Media Library Assistant] Slow mla_galleryThank you David!
In my case final shortcode is[mla_gallery my_custom_sql='attachment_category="fun" include_children="true" orderby="date" order="ASC"' size="vk-thumb" columns="0" mla_itemwidth="24%"]
to include child att categories. Now query time almost non-existent, good.Is there a reason why you don’t have it by default for [mla_gallery]? ~5sec query for ~200 images is kind of insane.
I have indeed tried to search forum before asking, but that was way too complicated, feels like immersing myself into linux kernel drivers programming 🙂
- This reply was modified 8 years, 5 months ago by Dima Stefantsov.
Forum: Fixing WordPress
In reply to: New WordPress 4.9 is not showing my page templatesThank you!
Thanks dawesi, I found your post useful!
Forum: Plugins
In reply to: [wpForo Forum] Few bugsPlease make sure the option “Members URL structure” is set “USER_NICENAME” in Forums > Settings > Members admin page.
It is set to nice usernames, as by default. When I set it to USER_ID, after I reset cache on dashboard it works ok. If USER_NICENAME, it glitches like I described above.
Also I think it’d be a good idea to add “u” or “User-” prefix to numeric usernames.
=)
I just checked and didn’t find any broken URL, please let me know which one you mean?
2. Images and text links here are not synced, and mostly lead to bbpress. Links at the left menu are alright though, no problem using migration tool, it worked perfect for my anspress.
But the best solution is Multiple Usergroups. This is also in our to-do list.
Thank you! <3
wpForo does tons of things on first activation (installation).
Nah, that was not the case. I was doing it on local 4 GHz PC, it was installed smooth, worked smooth. I had about 5 empty forums, with maybe 2-3 posts in two of them. Then I started playing with forum settings, that query and every next query was resulting in 100% CPU core load, timeout. My max_execution_time = 1200, it was browser (chrome) timeout. wpForo was clearly unusable anymore, I tried 5-10 times more. Looked at DB contents, found nothing suspicious like thousands of records.
Long users sync was not required as I was testing it on a relatively lonely site copy, with 1 user, ~70 posts+pages.
Never mind, I rolled back my DB, installed wpForo again and it’s fine since then 🙂
Thank you! 😉
- This reply was modified 9 years ago by Dima Stefantsov. Reason: wp link fail
Forum: Plugins
In reply to: [WordPress Social Login] Slow plugin performance, slowing my blogYou don’t have to trust P3. Disable WPSL and see for yourself how your site became faster.
No solution yet.
Forum: Plugins
In reply to: [SB Child List] Clean up deprecated constructorPlease!
Forum: Plugins
In reply to: [WP All Import – Product Import for WooCommerce] WC 3.01) If your browser is crashing during the parsing of the data, you’ll need to split the import file and import less records at a time.
That’s really weird thing to say. It seems there’s some “memory leak” with your import page. I guess you have running text there, it’s emptied from the screen, but maybe it never emptied from memory. Or some service JS variables not getting emptied ever. This would be the reason for browser used ram to rise this high.
This is on your side to fix, not mine. In all other cases, industry standard browser (chrome) is not crashing here.
Since you ask me to reproduce it, I guess this is something unusual for you, and continuing import from 70000 items should not eat 5gb ram. Ok.
Forum: Plugins
In reply to: [WP All Import – Product Import for WooCommerce] WC 3.0Hi. Looks like it was my code that was using $product->id instead of ->get_id(), not your. Was going to wait for current import completion to be 100% sure I was wrong. Sorry.
Your code still has
[06-Apr-2017 05:36:06] WARNING: [pool www] child 65027 said into stderr: "NOTICE: PHP message: WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's'' at line 1 for query SELECT slug FROM wp_terms WHERE name = 'Let's' made by do_action('admin_init'), WP_Hook->do_action, WP_Hook->apply_filters, PMXI_Plugin->adminInit, PMXI_Admin_Import->process, PMXI_Import_Record->process, PMWI_Import_Record->import, wp_insert_term, sanitize_title, apply_filters('sanitize_title'), WP_Hook->apply_filters, ctl_sanitize_title" [06-Apr-2017 05:43:19] WARNING: [pool www] child 65029 said into stderr: "NOTICE: PHP message: WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's Cook'' at line 1 for query SELECT slug FROM wp_terms WHERE name = 'Let's Cook' made by do_action('admin_init'), WP_Hook->do_action, WP_Hook->apply_filters, PMXI_Plugin->adminInit, PMXI_Admin_Import->process, PMXI_Import_Record->process, PMWI_Import_Record->import, wp_insert_term, sanitize_title, apply_filters('sanitize_title'), WP_Hook->apply_filters, ctl_sanitize_title" [06-Apr-2017 05:44:40] WARNING: [pool www] child 65037 said into stderr: "NOTICE: PHP message: WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's'' at line 1 for query SELECT slug FROM wp_terms WHERE name = 'Rubik's' made by do_action('admin_init'), WP_Hook->do_action, WP_Hook->apply_filters, PMXI_Plugin->adminInit, PMXI_Admin_Import->process, PMXI_Import_Record->process, PMWI_Import_Record->import, wp_insert_term, sanitize_title, apply_filters('sanitize_title'), WP_Hook->apply_filters, ctl_sanitize_title"which was hard for me to reproduce on your test servers, but it just happened few minutes ago on big 150MB .csv file.
There’s also two more issues:
1. latest chrome v57, no extensions (tried in incognito mode) using more and more RAM over time, may crash (chrome dead face x_X crash) during import process.2. continuing import from where it was last time takes WAY too much RAM. After 70000 products was processed, looks like it is trying to read all products (I notice 300 selects / second in mysql), and it also looks like it stores everything in it’s php memory. PHP process grows about 5GB in size before it loads all 70000 previous products and goes on in small batches of 20, by default, which goes easy on my RAM.
If I’d import files with few hundreds thousands of records, I will run out of RAM if I try to continue. Coupling with Issue #1 this is quite serious.
Forum: Plugins
In reply to: [WooCommerce] You are not reading before replyingHi @mikejolley. Thanks for detailed reply.
At first I was afraid I would have conflicts with current translations, but turns out solution you proposed, Loco Translate plugin, is an excellent tool!
I was able to override exactly the string I needed, while keeping default translations auto-updatable.
It still feels weird to not have a generic filter, but my issue was solved, thank you!