ptvguy
Forum Replies Created
-
Forum: Requests and Feedback
In reply to: New Profile – EW…Who had the sudden need to fix things that weren’t broken???
Forum: Fixing WordPress
In reply to: Attach image to post from media libraryIf I write a series of posts on one subject or idea and use the same image on all of these posts to visually tie them together, that image will only exist in the gallery of the first post in that series. I have to reupload it (the exact same image) in each post as a separate file to make it appear in the gallery of each post. That is an unnecessary use of resources on both the server and the client ends. We need a way to use the media library to attach a single image to as many posts or pages as we want.
Forum: Installing WordPress
In reply to: 2.8 Crashed My Site!!! Using Options theme.Not really the topic for this discussion, but go back to your original header.php file (without your recent changes) and reupload it over the current broken one.
Forum: Fixing WordPress
In reply to: [Plugin: Search Everything] No searchresults with 2.8Finally, it’s fixed. Version 6.3.1 did the trick.
Forum: Plugins
In reply to: [Plugin: Twitter for WordPress] Error in hyperlink discoveryThanks for the fix. It works great.
For any beginners finding this thread and wondering how to use ramir’s fix for version 1.9.6 of Twitter for WordPress, open the twitter.php file and replace the following lines (115-119):
// Props to Allen Shaw // match protocol://address/path/file.extension?some=variable&another=asf% $text = preg_replace("/\b([a-zA-Z]+:\/\/[a-z][a-z0-9\_\.\-]*[a-z]{2,6}[a-zA-Z0-9\/\*\-\?\&\%]*)\b/i","<a href=\"$1\" class=\"twitter-link\">$1</a>", $text); // match www.something.domain/path/file.extension?some=variable&another=asf% $text = preg_replace("/\b(www\.[a-z][a-z0-9\_\.\-]*[a-z]{2,6}[a-zA-Z0-9\/\*\-\?\&\%]*)\b/i","<a href=\"https://$1\" class=\"twitter-link\">$1</a>", $text);
with ramir’s code:
// Props to ramir // turn an incomplete url beginning with www. into a complete url beginning with https:// $text = preg_replace("/(?<!:\/\/)(www\.([a-z][a-z0-9\-]*[a-z0-9]\.)*[a-z]+(\/[a-zA-Z0-9\#\%\_\=\*\-\?\&\.]*[a-zA-Z0-9\#\%\_\=\*\-\?\&])*)/i","https://$1", $text); // turn complete url beginning with protocol:// into a-elements $text = preg_replace("/([a-zA-Z]+:\/\/([a-z][a-z0-9\-]*[a-z0-9]\.)*[a-z]+(\/[a-zA-Z0-9\#\%\_\=\*\-\?\&\.]*[a-zA-Z0-9\#\%\_\=\*\-\?\&])*)/i","<a href=\"$1\" class=\"twitter-link\">$1</a>", $text); // Props to Allen Shaw
Forum: Fixing WordPress
In reply to: Adding Java Script.Depending on your theme and the specific placement you want, you’re probably going to have to go into the PHP files themselves for this. (single.php, page.php, header.php, etc.) The Snippets plugin might help you a little.
Forum: Plugins
In reply to: Yoast RemoveGood God, a Yoast Toast plugin!
This might have been useful back before WP offered screen options to easily (and non-technically, I might add) turn such feeds off. Now it just comes across as a needless dig. I hope that Mr. de Valk doesn’t get too upset about this and stop offering his plugins for free.
I doubt that you could ever offer a “competing” plugin considering the sheer time required to not only keep it up to date constantly but deal with the incredible volume of support issues. That’s exactly why I don’t release my plugins or themes. I could never be nearly as diplomatic as he is.
Forum: Fixing WordPress
In reply to: Adding Java Script.You need to explain a little more about what you’re trying to do. A standard Text Widget can be used to place a JavaScript element in the sidebar, but it sounds like you’re talking about playing with the header.
Forum: Plugins
In reply to: Akismet’s Nonexistant CommentsNothing so far.
Forum: Fixing WordPress
In reply to: Double Forward Slash In ImagesOkay, I feel like an idiot. It’s fixed now. Thanks, Shane.
Forum: Fixing WordPress
In reply to: Nested List ProblemI don’t have that problem anymore since 2.7.1. No sign of it in 2.8 either, but I have “WordPress should correct invalidly nested XHTML automatically” turned off now.
Forum: Plugins
In reply to: [Plugin: Popularity Contest] Plugin gives error in WP 2.8That fixed the error problems for me on activation, but I still can’t use it since it now interferes with the feature gallery in the Options theme.
Forum: Fixing WordPress
In reply to: [Plugin: Search Everything] No searchresults with 2.8I just tried out version 6.2.5 and got the same problem. It all works great as long as I don’t turn on “Search every category name and description.”
Forum: Installing WordPress
In reply to: 2.8 Problems and Solutions (FAQ)Have them restore you to a backup.
Forum: Plugins
In reply to: [Plugin: Popularity Contest] Plugin gives error in WP 2.8Go in through FTP and remove the whole plugin folder. It will automatically deactivate the plugin.