thejoker101
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Earliest Actions Plugin Hook Within The Loopis_single will return false when trying to detect pages, so I have to use is_page().
And when I try to get the ID via your method, it doesn’t return anything.
Forum: Fixing WordPress
In reply to: Earliest Actions Plugin Hook Within The LoopThe more I think about this, the more I don’t think it’s quite possible in this form. The crux of the problem is this:
It seems I have to wait a small amount of time into the creation of the page to be able to determine the post ID. However, in doing that, I won’t be able to redirect if the person isn’t logged in.
The only alternitive I can think of is to just write a filter plugin that just gobble’s up all the content and writes the login form there perhaps.
Thoughts…?
Forum: Fixing WordPress
In reply to: Earliest Actions Plugin Hook Within The LoopThat won’t allow me to get the post ID your way. I’m not really sure the best way to achieve this. Useful comments are in my code.
Here is the code I’m putting together:
function check_for_logged_in_user() {
global $user_ID;
get_currentuserinfo();
// is user already logged in?
if (” == $user_ID) {
// is he on a page only?
if(is_page()) {
global $id, $wpdb;
$isrestricted = $wpdb->get_var(“select restricted from $wpdb->posts where ID=$id”);
// is this a restricted page?
if ($isrestricted == 1) {
// auth_redirect(); // better way of redirecting?
} // else { echo “not a restricted page”; }
} // else { echo “not a single post”; }
} // else { echo “user id present”; }
}
add_action(‘plugins_loaded’, ‘check_for_logged_in_user’);Forum: Fixing WordPress
In reply to: Earliest Actions Plugin Hook Within The LoopI am still using this in a plugin format, so I still need an earlier hook. I can’t use ‘init’ because that is too early. Also, I’m only looking at pages, not posts.
Forum: Everything else WordPress
In reply to: Problems with IMAP Authentication PluginWell I got that fun stuff taken care of, but now it still doesn’t work.
It keeps saying I have an incorrect password.
I can telnet like this just fine:
telnet your.imap.host.com 143
* OK [CAPABILITY IMAP4REV1…]
1 LOGIN “your_username” “your_password”
1 OK [CAPABILITY…] … User your_username authenticatedI have {my.imap.host.com:143}INBOX as my mailbox and no user suffix, yet it doesn’t work.
Any ideas?
Forum: Fixing WordPress
In reply to: HTML Optimization OffAnd by “it”, I mean this board.
Forum: Fixing WordPress
In reply to: HTML Optimization OffApparently it yanked out my < p > tag i wrote.
Forum: Fixing WordPress
In reply to: HTML Optimization OffOk, thanks for the Admin > Options > Writing part, I was actually on that page, but I guess I was looking for something a little bit more pronounced.
However, that didn’t exactly do what I wanted. WordPress will still insert tags at every new line, I don’t want it to do that. Will that TextControl plugin do that?
Forum: Plugins
In reply to: Plugin on specific page onlyI’m writing the plugins. Most don’t exist yet.
Forum: Plugins
In reply to: Plugin on specific page onlyLet’s say I have a page here: /page1, I want the plugin to only work for this page and no others.
I’m on WP 1.5.1 and I’m currently using the default Kubrick theme, but I’ll be writing my own once I get core functionality done.
Forum: Everything else WordPress
In reply to: .htaccess perhaps?Turns out I can just rename the /wp-stattraq/ directory to /statistics/. I figured there was some relevance to the directory being named what it was, but all the links are just =”index.php?…” so it didn’t matter what directory it was in. I appreciate your help.
Forum: Everything else WordPress
In reply to: .htaccess perhaps?I added that in, but then links on the page don’t work. I’m not familiar enough with .htaccess to know how to make it all work.
Forum: Plugins
In reply to: Making a plugin work sometimesThanks buddy.
??
Forum: Installing WordPress
In reply to: Simple Upgrade Removed Styles?I think it has to do with the TEMPLATEPATH variable, which is set via the get_template_directory() function.
now where is that…
[ I’m talking this out to myself a bit ?? ]
Forum: Installing WordPress
In reply to: Simple Upgrade Removed Styles?It isn’t finding header.php because it is looking in the wrong place.
It is looking at the root level, as in:
17thdegree.com/wp-content/themes/default/style.cssHowever, it should be looking here:
17thdegree.com/wordpress15/wp-content/themes/default/style.cssThis should be covered with the ABSPATH variable, but somehow it’s not listening to it.