Forum Replies Created

Viewing 15 replies - 1 through 15 (of 69 total)
  • Thread Starter nieuws

    (@nieuws)

    Alright, finally found the function. Always happens when you just posted the question.

    <?php foreach((get_the_category()) as $cat)
    {
    echo $cat->cat_ID;
    }
    ?>

    Forum: Plugins
    In reply to: Custom page per user
    Thread Starter nieuws

    (@nieuws)

    Anyone has an idea?

    Thread Starter nieuws

    (@nieuws)

    Thank you Geoffe that appears to work. However iam running a CMS next to WordPress. If iam using the subdomain forward it has some trouble finding all the correct folders again. I can change that ofcoarse but perhaps it would be easier to just use another password system. Do you perhaps have any suggestion for a quality but easy password protection system? Such as htaccess but then ofcoarse something else.

    Thread Starter nieuws

    (@nieuws)

    Anyone?

    According my serveradmin the httaccess in the root (generated by wordpress) is also automatically read in subfolders. Without the wordpress file it works like a charm, but with (and i need it for the names) i get 404 errors..

    Thread Starter nieuws

    (@nieuws)

    This is the exact htaccess file generated by WordPress. I haven’t altered anything. This is the current file in the root as described in my previous post.

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    What i want to work is that
    url/restrictedarea/ can use a htaccess password file. It can’t now because then i get a 404 not found error.

    This is what the htaccess in /restricedarea/ looks like:

    #BEGIN RestrictedArea
    AuthName “Content Editor Protected Area”
    AuthType Basic
    AuthUserFile /path/restrictedarea/.htpasswd
    Require valid-user
    #END RestrictedArea

    Path is ofcoarse the correct serverpath to the htpasswd file that is located within the same folder.

    Thread Starter nieuws

    (@nieuws)

    The folder is just in the root of the website.

    For example:
    [ wp-content ]
    [ wp-includes ]
    [ wp-admin ]
    [ protected ] .htacces & content
    index.php
    .htaccess

    Thread Starter nieuws

    (@nieuws)

    Thank you! I’ll contact the serveradmin to see what he can do about it.

    Do you perhaps know where i can change the filetypes that are allowed. I’d like to be able to upload *.ai *.psd etc files every now and then when FTP is not available.

    Forum: Fixing WordPress
    In reply to: Userextra download
    Thread Starter nieuws

    (@nieuws)

    Thank you for that information. But if anyone has it, it would be very welcome. Iam not the only one waiting for the site to get up to download the plugin.

    Forum: Plugins
    In reply to: Multiple single.php

    Found the solution together with ic3y. For everyone else with the same question here is how we did it.

    Duplicate your single.php, call it single1.php. Edit the original single.php to something simular as this:

    <?php
    $post = $wp_query->post;
    if ( in_category(’11’) ) {
    include(TEMPLATEPATH . ‘/single2.php’);
    } else {
    include(TEMPLATEPATH . ‘/single1.php’);
    }
    ?>

    In this example, if a certain post is created in category 11 it will load single2.php (you can create anything you want for that page). If it’s not 11 the script will go to single1.php you’re original file.

    Forum: Plugins
    In reply to: Sport results plugin
    Thread Starter nieuws

    (@nieuws)

    You mean creating a page and php include that into the frontpage?

    That works but i need a ladder and like to design it a little as well. The problem is that most of the authors don’t know html or css and have a hard time updating it. With some kind of plugin all they need to do is fill out some fields.

    Forum: Fixing WordPress
    In reply to: Spam? Read this.

    But anyone, why is captcha not working?

    Thread Starter nieuws

    (@nieuws)

    Anyone?

    Forum: Fixing WordPress
    In reply to: Spam? Read this.

    Shrikee, with the no follow you also prevent important bots to follow your links. For example Google and Yahoo. Since i receive about 20.000 uniques monthly from Google alone, this wouldn’t be an option for me.

    Forum: Fixing WordPress
    In reply to: Spam? Read this.

    According this thread Captcha is not working. Why is that? It seems to be working on a lot of other weblogs (no WP).

    The filters in WP work but i think they take up one hell of a chunk to load everytime. Or am i wrong?

    Forum: Fixing WordPress
    In reply to: WP 2.0 serverloads
    Thread Starter nieuws

    (@nieuws)

    I cleaned up some code and installed the WP Cache 2.0 plugin. However i have no clue if it’s working or not.

    The front page loads up 7 excerpts, 30 headlines, 37 comment counts and a lot more. If those queries are cached it would be an enormous power saver. Instead of loading all the queries constantly i want to load it from the cache and refresh it every 30 minutes. However, when i post a new article, it’s inmidiatelly on the front page, the same counts for comments in posts. Of coarse iam glad it is there instantly, that’s the purpose of a news site, being fast, but it leaves me thinking the index isn’t cached after all. Or is it?

Viewing 15 replies - 1 through 15 (of 69 total)