wyk
Forum Replies Created
-
Forum: Plugins
In reply to: MtDewVirus Archives UpdateAdding
$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 linerequire('wp-blog-header.php')torequire('wp-blog-archheader.php')in arch.php.Forum: Plugins
In reply to: get authorsCool 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.Forum: Fixing WordPress
In reply to: logout redirect to index page?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