![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
This is a later edit:
I uploaded a fresh functions.php file and all is well now. I can logon again. So the emergency is gone, but my question is the same as below. This has happened several times. When you add some code, and it doesn't work, and then you delete it...why do the errors continue? Why is there a need to reinstall a file? Thanks, H I added a single "log on widget" to the functions.php file. I tried it out and it wasn't logging out properly, nor was the meta widget logging out properly. (It used to.) So I deleted the widget code i had added from functions.php. I've pasted the code I added below. But even though I deleted this from the functions file and updated, now I can't log on. Wordpress takes me to the log on page, I enter my information and then the screen goes blank though the url is still http://www.wordtown.com/wp-login.php. Nothing happens. do i need to change something from the ftp end? What happened? thanks. Code added and deleted: <!-- log in widget add on begin --> <?php register_sidebar_widget(__('Login Box'), 'lbox_widget'); ?> <?php function lbox_widget() { if (!is_user_logged_in()) : ?> <form id="loginform" action="<?php echo get_option('home'); ?>/wp-login.php" method="post"> <fieldset><legend>Login</legend> <div> <label for="log">Username <input type="text" name="log" id="log" size="20" /></label> </div> <div> <label for="pwd">Password <input type="password" name="pwd" id="pwd" size="20" /></label> </div> <div> <label><input name="rememberme" type="checkbox" id="rememberme" value="forever" /> Remember Me</label> </div> <div> <input type="submit" name="wp-submit" id="wp-submit" value="Log In" /> <input type="hidden" name="redirect_to" value="<?php echo urlencode(get_permalink()); ?>" /> </div> </fieldset> </form> <?php else : ?> <ul> <li><a href="<?php echo get_option('home'); ?>/wp-admin/">Member Login</a></li> <li><a href="<?php echo wp_logout_url(get_permalink()); ?>">Logout</a></li> </ul> <?php endif; } ?> <!-- log in widget add on end --> Last edited by hcmccarthy; 03-26-2010 at 03:47 PM. Reason: Situation has changed |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Emergency Help | DanFromOhio | General Discussion | 3 | 01-29-2010 04:36 PM |
| through emergency add feature | bioeed | General Discussion | 2 | 01-19-2010 05:08 PM |
| where to get emergency support for "ON DEMAND" theme? | webdevelopment | General Discussion | 3 | 06-24-2009 03:36 PM |
| Emergency aid programmer code! Please ¡¡¡ | JCarlosMC | General Discussion | 4 | 01-23-2009 08:24 AM |
© Copyright 2012 Copyblogger Media LLC · StudioPress™ is a trademark of Copyblogger Media LLC
Privacy Policy | Refund Policy | Terms of Service | Affiliate Program | Contact Us