unoamigo
Forum Replies Created
-
Forum: Plugins
In reply to: Trying to make pluginprara, it’s in progress. I’ve been asked to write something up, I intend to. However it won’t be until Tuesday evening or Wednesday when I can. (it’s finals week)
If your lucky, someone will write up some documentation before then and put it on wiki. If not, something will be up on Tuesday or Wednesday by me.
Until then, you will just have to browse some of the plugins that have already been created for examples of how to develop them.
Good luck! ??Forum: Plugins
In reply to: WP 1.2, StatisticsIn light of the problems Beel has discovered due to the use of htmlspecialchars() I’ve decided to remove the use of the function from the code entirely.
This has the potential to make code invalid, but I imagine most authors concerned with the validity of their code will use the html special char code instead of relying on a php script.
Anyone else run into some fun bugs for me? ??
Or feature requests/alterations? Things that should be clarified in the install directions?Forum: Plugins
In reply to: WP 1.2, StatisticsGeesh, that is an evil commenters name.
Dump the htmlspecialchars on the author and see if the link works then. I suppose I’ll have to do that as well, since it is apparently an issue that pops up.
That htmlspecialchars functioni is probably working against you. Since » is not recognized by the web browser, that is what it is using for the URI.
Apache does not translate such things so it’s trying to load a page that quite naturally does not exist.
If getting rid of htmlspecialchars, does not alleviate the problem. We will work out a solution.Forum: Plugins
In reply to: onthisday hackHeh, sweet. I was thinking about writing something to do just that earlier today!
Thanks!Forum: Plugins
In reply to: Where to place my hacked code?Well, I’d be happy too, but it will have to wait till Tuesday or Wednesday. It’s kindove finals week here and a paper is due Monday at 5PM, test on tuesday, presentation on Thursday.
Yeah, I have a pretty slack finals week, but I should at least take Monday and half of Tuesday seriously. ??
I’m reasonably familiar with it (WP 1.2 Stats), although I have a hunch that there are probably a few cool things I don’t know about yet.Forum: Plugins
In reply to: WP 1.2, StatisticsFixed, the interesting thing about setting the threshold to 1, is that a value of 1 is essentially disabled. 0 or -1 work great for that.
Although, I suppose not having thatcould cause a few problems with the design of your page! ??
How is htmlspecialchars messing up your post_title? Which part of the stats page? It’s in there in a couple places.
htmlspecialchars is used to make sure code is valid. If you can define more clearly (with an example) of what is being messed up and where, hopefully we can come up with a good solution. For now it remains unchanged.
Let me know if you encounter any other glitches.
ThanksForum: Plugins
In reply to: Where to place my hacked code?A good way to do this is to simply turn your hack into a plugin, very little actually needs to be done for this to work. It pretty much involves adding the proper commenting to the top of your “hack.”
As a plugin you will also not need to include the ‘wp-blog-header.php” in your code.
Prara, with your modified link code, in order to avoid having the issue of losing it when you upgrade. Just give it a different name such as “prara_links()” and put it in your own custom Plugin file. Then you will always have it.
Take a quick look at the source to some of the existing 1.2 Plugins and you will see just how easy it is to turn your hacks into plugins.
Have Fun! ??Forum: Plugins
In reply to: WP 1.2, StatisticsFixed the stats/ bit, not sure how I managed to do that one. ??
Thresholds are now fixed on the commenter statistics. Thanks for pointing that out, it also affected values other than 1.
The download file is now updated.
Hopefully by the time WP 1.2 is released all the kinks are worked out.
Beel, you might also prefer to simply call the functions yourself, rather than using the generic print out from get_stats().
Thanks for pointing out the bugs!
RyanForum: Fixing WordPress
In reply to: Where can I see the code of php functions?No problem.
All of the template tags are in that folder. In one file or another.
Happy hacking!Forum: Plugins
In reply to: WordPress Blogs StatsJust don’t link it anywhere is the easiest thing.
There isn’t any authentication built into it.Forum: Plugins
In reply to: WP 1.2, StatisticsSolarPunk, without the ModRewrite rules almost everything will work fine being accessed using: index.php?wp_stats=1
However the links back to the comment author stats will not work, they are currently only printing in the form /stats/author/AuthName, this will give you a not found error when you click them.
Hopefully in the next few days (might be longer, finals week), I can just make using mod_rewrite an option. For now though I opted for the cleaner URIs.
Author stats w/o the Rewrites will load using:
index.php?wp_stats=1&author=AuthName
with an optional:
&page=X where X is the page number you want to load.
So yeah, it almost works if your not using the rewrite rules.Forum: Plugins
In reply to: WP 1.2, Statisticspstew221
The Array bit was from a debug line I forgot to delete.
Links, 10 Links is correct. The first Links – is the name of your category. “10 Links” is the number of links.
However, I did stumble across a little bug if you have more than 1 link category where everything would be put on one line (in list mode). That is now fixed, and the debug line is removed.
Changes are availible in the same spot.Forum: Everything else WordPress
In reply to: Is this perma structure still crawler-friendly?The mod rewrites are all handled server side, if you can type the uri into a web browser and have it load up a page, the crawler will pick it up.
However, I would probably recommend not using that structure. It is possible that you could end up with two posts that have the same name. I have over 600 posts, it really wouldn’t surprise me if my creative titling duplicated itself at some point in them. In which case, I’m not sure what WordPress will do.Forum: Installing WordPress
In reply to: Problem with config.php data!Typically yes, but contact your provider to be sure.
1and1 who gave out a great deal of free accounts at the end of last year has a different login & password for MySQL. They also have a different server (not localhost).Forum: Plugins
In reply to: WP 1.2, StatisticsWhoops, thats what I get for copying and pasting code from my web page!
Thanks MtDew.
I’ll go add it to Wiki now.