asitis
Forum Replies Created
-
Forum: Plugins
In reply to: Plugin permission custom role…nobody? I cant imagine no one else ever had this problem?
Forum: Hacks
In reply to: Thumbnail generation positionAlrighty, that wasn’t all to hard. I found this; a good explanation for what I found; https://shailan.com/how-to-change-post-thumbnail-crop-position-in-wordpress/
As it sais, this function isn’t pluggable.. but it’s a minor edit, of which there is no real problem if the edit gets reverted on an update, plus it’s easy to notice and change back after an update! ??
Forum: Hacks
In reply to: Thumbnail generation positionYes! There it is, now to figure out how it works (ahhh, math..!) (line 341)
if ( $crop ) { // crop the largest possible portion of the original image that we can size to $dest_w x $dest_h $aspect_ratio = $orig_w / $orig_h; $new_w = min($dest_w, $orig_w); $new_h = min($dest_h, $orig_h); if ( !$new_w ) { $new_w = intval($new_h * $aspect_ratio); } if ( !$new_h ) { $new_h = intval($new_w / $aspect_ratio); } $size_ratio = max($new_w / $orig_w, $new_h / $orig_h); $crop_w = round($new_w / $size_ratio); $crop_h = round($new_h / $size_ratio); $s_x = floor( ($orig_w - $crop_w) / 2 ); $s_y = floor( ($orig_h - $crop_h) / 2 );
Forum: Hacks
In reply to: Thumbnail generation positionI understand the consequences of doing such thing, I am a experienced webmaster for quite some years now.
But AFAIK there is no function for it, nor plugin. And I DO know it’s easier to program to use the top left as starting point while cropping, so somewhere in the WordPress code there’s a line that defines to use something else then the topleft corner.
I want to know where that is, so that I might write my own function for it – maybe a plugin.Forum: Hacks
In reply to: Thumbnail generation positionHm, I don’t mind modifying some core files if that’ll do the trick..?
Forum: Plugins
In reply to: working auto tag pluginNo one? :/
Forum: Plugins
In reply to: [Plugin: Ajax Comment Posting] Breaks Dashboard in 2.9.1Found it!
The error (well, in my case) was caused by the loading image in the acp.js file (line 23).
The error is given at the ‘+acp_path+’ part, which seems to be undefined. If you remove this, define the path or just enter an absolute path, everything works again! ??Forum: Plugins
In reply to: [Plugin: Ajax Comment Posting] Breaks Dashboard in 2.9.1It seems to be a conflict with jQuery.. I cant collapse/expand or do anything in the backend which requires javascript..
I saw there was a noConflict() line in the script, but that doesnt seem to help.
Anyone got around to fix this? I’ll get on it eitherway and let you know if it works.Forum: Themes and Templates
In reply to: One post per page on index / multiple posts per page on archivesI found out that any and all solutions on the WHOLE internets didn’t work for me. Using the statement from MichealH only works for 1 page (when the counter hits /page/3 I still got a 404).
I found out that none of the solutions work (anymore) – I guess it’s a WP 2.8 thing. Whatever did worked (and still works!) is this plugin;
https://moshublog.com/2007/10/30/custom-query-string-reloaded-for-wordpress-23-with-tag-support/Though it is written for 2.3, it still works with 2.8 and it works for me to achieve the simplest of things; display one post on the frontpage, more on any other.
Forum: Themes and Templates
In reply to: One post per page on index / multiple posts per page on archivesHm, strange. I didn’t do any work on the site this weekend, and now, for some reason, this technique still causes the navigation ( next_posts_link etc) to break and come up with a 404…
Anyone?Forum: Themes and Templates
In reply to: One post per page on index / multiple posts per page on archivesWow, that actually just did it – right out of the box.
Thanks mate! ?? I kinda already gave up hope for this to ever work. Let’s hope this topic gets in the top hits on Google, because I know there are allot of people with the same problem!Forum: Themes and Templates
In reply to: Hide article image if emptyThanks mate! This works just perfectly fine! ??
Forum: Plugins
In reply to: Advanced theme editor?Yeah I know, but I do allot of minor changes (mostly for sidebar content etc) on a daily basis, and I was hoping there was somekind of advanced editor for the Theme Editor, seeing there also is one for writing posts.