jayp
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Hotlink conflict with wordpress?Just go into the admin under options permalinks and hit the update button. This will rewrite the rules in your .htaccess file for your link structure.
Also, its best not to use your control panel for hotlink protection, as it rewrites the .htaccess file and that’s what caused wordpress to mess up. If you google for .htaccess and hotlinking solutions, you can find some and manually add them to your .htaccess file. (You’ll need to be able to download, edit, and upload this file of course).
Also, you might find this article useful. It’s an A List Apart article on a better way to protect against hotlinking.
Forum: Plugins
In reply to: Plugin To Stop Self PingbacksIt’s so disheartening to spend several hours searching, trying, and isolating exactly where the problem / solution is — all so that I don’t ask a vague question with no supporting details — only to have the post disappear into oblivion without any response.
If the WordPress support forums aren’t a good place to ask, are there any other places where a person could speak to people who develop plugins and work with WordPress?
Forum: Plugins
In reply to: Limiting Link Length in commentsI just realized… You’re not trying to shorten the length… Only add a space so it wraps.
I was wanting something that took a long length and shortened it, putting in […] into the shortened part.
I’ll play with it.
Forum: Plugins
In reply to: Limiting Link Length in commentsKafkaesqui,
I tried your plugin, but no luck.
It turned the following link:
https://scienceblogs.com/intersection/2006/01/popular_misunderstandings_of_e_1.php
into this:
[…]https://scienceblogs.com/intersection/2006/01/popular_misunderstan[…]dings_of_e_1.php
which is even longer and only made the problem worse. The actual link (the href attribute) still pointed to the right place.
I may play around with it myself and see if I can code a solution… (Or I may not.)
If you know what the problem is or have a solution, I’m interested.
Forum: Plugins
In reply to: Limiting Link Length in commentsJust to clarify, could italics anywhere in the page be causing the problem? I wasn’t thinking it was just the comments that would cause the trouble.
If you’re only having the problem on one post, then that obviously says it ain’t the italics.
If you want to fix it bad enough, just change one thing at a time until you can isolate what’s causing the problem. Then the next step is figuring out a solution…
Now back to my original question – Anybody know a WordPress equivalent to the JS script I linked to in my original post on this thread?
Forum: Plugins
In reply to: Limiting Link Length in commentsKafkaesqui,
First off, the urls you provided give a 404 error.
Secondly, would a plugin like you’re talking about work? Remember, a link has two parts. [a href=”x”]y[/a]
We’d need to chop off the length of ‘y’ if it was too long, while leaving ‘x’ unchanged so that the link would still work.
Forum: Plugins
In reply to: Limiting Link Length in commentsKatie,
Here’s one thing that might cause your problem. IE has a bug where it calculates widths, and then applies italics formatting to the text. If italics run up against the right margin of a block, this will push that block slightly wider… You can test this simply by saving the html of the post that’s causing you problems as a local file on your computer. Then, edit the source of that local file to remove all italics. If that fixes your problem, you’ve identified what’s causing it. You can adjust your site’s layout to allow for some extra room if this happens. (If you’re taking up 100% of the width, take up 99% or 98%, whatever). Anyway, this might help you.
Forum: Fixing WordPress
In reply to: Trackback not working with Movable Type?Yeah, I’ve pretty confirmed… My trackbacks work in WordPress, they work in Typepad. But they don’t work in MoveableType. I’m assuming this would be an MT problem, not a WordPress problem, but I just wondered if anybody knew anything about it…
Forum: Fixing WordPress
In reply to: Trackback not working with Movable Type?I’m bumping this in the hopes someone might see it…
Anyone?
Forum: Fixing WordPress
In reply to: Trackback not working with Movable Type?Sorry. I have a WordPress blog. That’s all I have access to. It seems that my trackbacks I’m trying to send from WordPress aren’t showing up on MT blogs…
Forum: Plugins
In reply to: Getting a simple list of categories and authors, WITHOUT links!You’re saying use PHP to parse what’s getting returned from list cats and strip out the links? Could I still loop over it to format things how I want?
I’ll have to look into this
Forum: Plugins
In reply to: Getting a simple list of categories and authors, WITHOUT links!The only hacks to the core files were the rss files, to change the title. The other code I wrote was in the template itself!
I hate to say this… Though I can cobble together a little bit of code (especially if I keep trying long enough), I don’t consider myself the greatest coder in the world, don’t write PHP code regularly, and don’t know much about how to write wordpress plugins. I guess I’ll have to figure that out some day. For now, I was just happy to have most of this stuff incorporated into a theme, since that should be mostly compatible with future releases. (If I have to go back and fix the titles on the rss feeds, that won’t take me too long).
Can anybody else point me in the right direction? I was especially interested in knowing if getting a list of categories and authors (without links) wasn’t possible with WordPress’s native functions and if I’d taken a good approach with my own solution.
Forum: Plugins
In reply to: Getting a simple list of categories and authors, WITHOUT links!i’m going to bump this…
Can anyone comment?
Forum: Themes and Templates
In reply to: get_links adding <em> to every link it returnsSo basically the problem disappeared… The list started outputing without the < em > tags. I’m sure I must have flipped some switch, but as I was changing lots and lots of things, I have no idea what did it.
Anyway, sorry to post. I seriously looked around the documentation and searched high and low in WordPress for an hour before posting.
Forum: Fixing WordPress
In reply to: Checking if there are next postsI had to figure this one out too. But, I strongly did not want to modify the core files (because of the trouble that comes when updating). After way more work than should have been necessary, I came up with this solution, which I’m quite proud of…
I’ve written two functions and put them into a file called _extra_functions.php in the directory of my template…
This file has these two functions:
<?php
//functions tell whether there are previous or next 'pages' from the current page
//returns 0 if no 'page' exists, returns a number > 0 if 'page' does exist
//ob_ functions are used to suppress the previous_posts_link() and next_posts_link() from printing their output to the screenfunction has_previous_posts() {
ob_start();
previous_posts_link();
$result = strlen(ob_get_contents());
ob_end_clean();
return $result;
}function has_next_posts() {
ob_start();
next_posts_link();
$result = strlen(ob_get_contents());
ob_end_clean();
return $result;
}
?>The “magic” is by using PHP’s ob_ functions to capture the output from the native wordpress functions and prevent them from printing to the screen.
Then, whereever I need to use it, I do this…
<?php include (TEMPLATEPATH . '/_extra_functions.php'); ?>
<?php if ( has_previous_posts() || has_next_posts() ) { // only show if previous or next links are needed ?>//nav block goes here
<?php } //end if ?>
Thought I should post in case this could help someone else.