aleister
Forum Replies Created
-
Forum: Plugins
In reply to: Check if posts lives somewhere else when old permalink triggers 404My only thought with ‘init’ would that it could be used if there was an easy way you could tell from the URL whether or not the link was good. That method would only work though if there was a consistent way to differentiate good and bad links just by looking (depending on the old permalink structure).
Let us know how it works for you ??
Forum: Plugins
In reply to: Related PostsForum: Plugins
In reply to: list pluginWhat did you have in mind for editing this list, if you do not want to edit a post/page?
Forum: Fixing WordPress
In reply to: Prevent Author impersonation in commentI am not sure why there would be an ampersand there – there is not one in my code. What version of WordPress are you using?
Forum: Plugins
In reply to: New Plugin: Drop-Down Post ListWhoops – the call to the actual function should have ‘echo ‘ in front of it, like in the original example ??
As for feedback, either works. I am most likely to remember to implement requested features if they are in the comments for that page though. When I do add an options page, I will add in the choice of the jump menu, or traditional select box.
Forum: Plugins
In reply to: New Plugin: Drop-Down Post ListYes, that will work in the theme files ??
<?php if (function_exists('ddpl_list')) { ddpl_list(#); } ?>
And if you add the code directly to a post or page, you do not have to worry about it breaking anything if you disable it, because it is formatted as an html comment and will be hidden. ??
Forum: Fixing WordPress
In reply to: Prevent Author impersonation in commentAll done ?? I tested it out on my own server, but if it gives you any problems just let me know.
I decided to make the code available on my site as well. You can find the instructions here:
https://www.dagondesign.com/articles/prevent-author-impersonation-in-wordpress-comments/
Summary: This modification to WordPress prevents comment authors from using the names of the post authors on your site. It does this by first checking to see if the comment author is logged in. If they are not, it compares their name to the list of registered authors. If there is a match, the comment is blocked and a custom message is displayed. The name comparison is case-insensitive. This code was written for WordPress 2.2.x
Forum: Fixing WordPress
In reply to: Prevent Author impersonation in commentIt is possible – I am writing some code right now for you – give me a minute ??
Forum: Fixing WordPress
In reply to: Direct Image linking on server?On many servers, .htaccess (basically a configuration file for the Apache web server) is configured to disallow hotlinking from remote sites. This is often accomplished through the use of rewrite conditions and rules in this file.
One thing you can try, is creating a file called .htaccess in the directory with the images, and adding the following code to it:
RewriteEngine off
Keep in mind that if you are doing this in Windows, it will not let you create a file starting with a period, so you can call it htaccess.txt (for example), upload it to your server, and then rename to .htaccess
One final note is that files starting with a period are considered hidden on most web servers, and after you rename it, you may not see it anymore depending on the settings in your FTP client.
There are other methods to implement hotlinking protection of course, but this may work for you. If not, you could contact your host. ??
Forum: Your WordPress
In reply to: JimmyIncIt is a bit dark, but I agree with ladynada – it is easily readable. I have always been fond of that shade of green with darker themes as well ??
Overall I think you did a great job! Now all you need to do is make the forum match *grin*
Forum: Themes and Templates
In reply to: ?Theme Like www.ads-software.com siteI do not believe the theme is available for download, but there may be one out there very similar. There is a big collection of themes here:
Forum: Fixing WordPress
In reply to: Posting time appears on pagesIt is a matter of removing the code from your theme that displays the time. The code used, and its location in your files can vary though, depending on what theme you are using.
When you say on top of your pages, do you mean above each post? Or in the header somewhere?
Forum: Fixing WordPress
In reply to: Comments causing excessive load timesI personally like the ‘Paged Comments’ plugin:
https://www.keyvan.net/code/paged-comments/
I have a couple of posts with over 1000 comments, and it does a great job handling them. There are several options as well.
Example (copied from my site):
Pages: [31] 30 29 28 27 26 25 24 23 22 21 … 1 ? Show All
Forum: Plugins
In reply to: Is there a way to include ads?I may be misunderstanding the question, but if you are wanting to put ads on your website you would need to signup with an advertising program such as Google Adsense. Then you could generate ads for your site and then add them to your template files.
Forum: Plugins
In reply to: Check if posts lives somewhere else when old permalink triggers 404That is a very nice idea actually ??
As far as a plugin hook, you should be able to use the ‘init’ action, as it is processed after WordPress loads, but before anything is sent to the browser (which you would need for your redirect to work).