jalenack
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Guiding SearchBotsThe
!
operator meansfalse
… So when you sayif (!$p)
, the code will be followed if$p == false
Anyways, for WordPress 1.5.2, you can use the following code:
<meta name="robots" content="<?php if (is_home()) echo "no"; ?>index,follow" />
For more info about the is_* functions like
is_home()
, check out Conditional TagsForum: Fixing WordPress
In reply to: CVS Not Updated. WP1.5 only?https://svn.automattic.com/wordpress/branches/1.5/
That’s the svn branch for the current stable (now at 1.5.2) The /trunk/ is serving up the latest commits, and its at WP 2.0 RC1 right now
Forum: Plugins
In reply to: [NEW PLUGIN] Democracy AJAX PollDemocracy would only do that if it couldn’t find its database table. Due to API limitations (fixed in 2.0), democracy checks for to make sure the database is present after any plugin is activated. But it’s completely non-destructive.
Forum: Installing WordPress
In reply to: $_server (script uri, query string, etc) – unable to retieveRemember, the $_SERVER global must be in ALL CAPS. And so do it’s children like REMOTE_ADDR. Saying $_SERVER[‘remote_addr’] will turn up nothing
Aye, that
print_r()
is a handy one. There’s alsovar_dump()
, but I usually find that you can get the info needed from print_r.Also, when I’m debugging, I’ve got this little function called echo_r(). It does the same thing as print_r() except it wraps it in
<pre>
tags.function echo_r($array) {
echo "<pre>";
print_r($array);
echo "</pre>";
}That allows me to see the array nice and formatted.
Cheers
Forum: Installing WordPress
In reply to: $_server (script uri, query string, etc) – unable to retieveThis may have something to do with WordPress’s deregistering globals. Are you trying to access them like $REMOTE_ADDR? That would do it. Try using the normal way of $_SERVER[‘REMOTE_ADDR’] …
Also, you could try adding print_r($_SERVER) and seeing if there’s any data there.
Cheers
Forum: Plugins
In reply to: [NEW PLUGIN] Democracy AJAX PollHmm, I think you might have the files in the wrong place, although it’s hard to say.
it should be something like this:
example.com/wp-content/plugins/democracy/democracy.php
Could I have a link to your blog so I can see if you’ve got it right?
Forum: Themes and Templates
In reply to: Blix: Using radio buttonsHey
Yeah, I’ve had troubles with i18n. I haven’t been able to find an OS X client that allows me to create .pot files for the plugin. So I’ve been stuck with other peoples’ translations.
You can grab a spanish version of democracy, all translated already, at https://blog.jalenack.com/?dl=democracySpanish.zip
Forum: Themes and Templates
In reply to: Blix: Using radio buttonsHey,
I don’t know much about WP-Polls, but I’ve got another solution. I’ve written my own plugin, Democracy AJAX poll.
It has fixes for the blix css. It is actually blix’s fault, because Blix’s
<input>
css is so overbearing. But I’ve provided fixes in the css file included with Democracy. I think you’ll find it much nicer to work with and a much better overall plugin.Forum: Fixing WordPress
In reply to: advanced poll 2.03 how do I use it?Please stop bumping your threads. They won’t get answered any faster, you’ll just get people angry at you.
Anyhoo, you upload the whole democracy folder to your /wp-content/plugins/ folder. Have you read the readme.txt for installation instructions?
Forum: Fixing WordPress
In reply to: advanced poll 2.03 how do I use it?I’ve never used it before, so I wouldn’t know. Sorry. The only thing I can suggest is using my Democracy Poll Plugin. You’ll probably have more luck with that.
Forum: Plugins
In reply to: [NEW PLUGIN] Democracy AJAX Pollintricate artist, yes you can. You may use any HTML you like. Sorry for the super delayed response
Forum: Plugins
In reply to: Advanced Poll 2.03Hey. I’m the author of an alternate WordPress polling option that you’ll find easier to install. https://blog.jalenack.com/archives/democracy/
I humbly suggest you try Democracy and forget about Advanced Poll.
Forum: Plugins
In reply to: Wp-ShoutboxHey StevenP,
I’ve finally figured it out. It turns out your installation of PHP didn’t have the mysql_real_escape_string() function.
Replacing all instances of that function with addslashes() will do the trick. I’ve emailed you as well.
Forum: Everything else WordPress
In reply to: WTF! They even spam shoutboxes!!My plugin was originally javascript only, now it works without js. This makes it easier for spammers to get to Wordspew.
You could take out the action=”….” in the <form> element of wordspew.php, and replace it with a bogus url. That should deter your spammers
Forum: Installing WordPress
In reply to: GoDaddy Windows installationI’m surprised that you got that far. I don’t think PHP will even run with that setup. “Deluxe Hosting with ASP” means the server-side language you have is ASP, not PHP. WordPress is a PHP application, and definitely won’t work without PHP.
I’d suggest switching your account to Linux with PHP support.