Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Forum: Plugins
    In reply to: MtDewVirus Archives Update

    Adding $what_to_show = 'days' to arch.php does not work because the $what_to_show setting in wp-blog-header.php overrides it. wp-blog-header.php grabs the value for $what_to_show from the settings entered in the other blog options.
    I got it to work by making a copy of wp-blog-header.php and renaming it wp-blog-archheader.php. To make wp-blog-archheader.php show days instead of grabbing the value set in the options menu, I changed the line $what_to_show = get_settings('what_to_show'); to $what_to_show = 'days' in wp-blog-archheader.php.
    To get arch.php to use the new header, change the line require('wp-blog-header.php') to require('wp-blog-archheader.php') in arch.php.

    Forum: Plugins
    In reply to: get authors

    Cool hack.
    How would you change the code so that it would show the first and last name instead of the nickname? My blog has alot of authors.
    Thanks.

    To expand on my previous post:
    I want to put the login form on the blog index page above the calendar. Non-logged in users see the enter your username and password boxes. Logged in users see “Welcome username”,” post a new entry”, and “logout”.
    I have the hack working, except for the redirects.
    How can you stop the redirect to the admin post a message page when you login? How can you stop the redirect to the log in page when you logout? When the user logs in and out, I want them to stay on the current page (either the index page or archive page.)
    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)