strub
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Fix “wp_register_script was called incorrectly” issueYou should really know what are you doing and not copy/pasting code.
This code has many security issues and errors.
I would recommend learning the basics first before writing plugins.But do not take WP for learning PHP as reference.
Forum: Developing with WordPress
In reply to: Shortcode to define height depending on width of windowsWant just to say that your code has security issues.
And, I would not use echo in a function. That is not good practice. Just return the string or whatever you like.
- This reply was modified 5 years, 10 months ago by strub.
Forum: Fixing WordPress
In reply to: Fatal Error: Cannot redeclare thb_filter_radio_images()The function thb_filter_radio_images() is added twice that is the problem.
Forum: Fixing WordPress
In reply to: Gif not displaying in front pageYeah like I said, changing those sizes is really bad, as it loads a large image.
I do not know it there is already a plugin, which handles animated gifs.
I currently working on a plugin which you can define any size or media type for images in conjunction with the picture element. This plugin could handle animated gif easily, but it is not finished yet and will cost something.
- This reply was modified 7 years, 6 months ago by strub.
Forum: Fixing WordPress
In reply to: Gif not displaying in front pageYou could disable it, but then it would load always the original uploaded image.
The reason for cropping is because of the srcset attribute on the image tag. So on smaller screens, a smaller image is loaded.
Forum: Fixing WordPress
In reply to: Gif not displaying in front pageI think WP can not handle animated GIF to crop. So if your give is still animated, WP uses the original uploaded image, otherwise a cropped version.
Forum: Fixing WordPress
In reply to: Change image “link to” to ‘none’ – globally?I do not a plugin. Directly adjusting the database is, I think not possible for that.
I would go through every post, searching the content for a elements. If found check if there is an img within. If so remove a element and replace with the img found.
This requires good PHP knowledge though.
Forum: Fixing WordPress
In reply to: Disable Image ResizeIf you do this, keep in mind that the big image is always loaded. The reason for the resizing is that WP uses under certain cirmumstances the srcset attribute, which will load the best size depending on the device resolution.
- This reply was modified 7 years, 6 months ago by strub.
Forum: Developing with WordPress
In reply to: PHP snippetsMakink things private is anyway not that easy with WP, especially for the media.
If one knows the url of the media, he can access it anyway.
Best would be to store things in the webroot, outside of public access. Then a php script checks vor valid user rights before sending it to the user.
Forum: Fixing WordPress
In reply to: How to manually call Dashboard WP news to update.Update: This might fix it. But i need to test it.
dashboard.php [ line: 1227 ]
channging:
list($link, $frag) = explode( '#', $item->get_link() );
to:
list($link, $frag) = array_pad( explode( '#', $item->get_link() ), 2, 0);
- This reply was modified 7 years, 6 months ago by strub.
Forum: Fixing WordPress
In reply to: The Best WordPress Plugins to Use for My IdeaProbably you might find Plugins for that, but I doubt.
Best is to hire a webagency for such a special case.Forum: Fixing WordPress
In reply to: WordPress & Woocommerce wil be the best option?It depends, if you really want to do big and serious business look for an alternative.
- This reply was modified 7 years, 6 months ago by strub.
Forum: Fixing WordPress
In reply to: Emoji ProblemHey I have the same problem. WP turns them automatically into svgs. That is really annoying. This should be really made better from WP. Just thinking of a css class like something like “emoji-convert” or data-emoji-convert=”false”
But I have found no simple solution yet. But as I said badly made from WP.
- This reply was modified 7 years, 6 months ago by strub.
Forum: Fixing WordPress
In reply to: Center Align 3 Images & Make it ReponsiveTry:
img { max-width: 100%; height: auto;}
- This reply was modified 7 years, 6 months ago by strub.