Best way to reset some admin options form to default?

You should (and must for security) use validation function, that is part of Settings API. I don’t seem to see it in your code. There you should be able to simply pass empty value for option under circumstances it should be saved as disabled. Of course you can also just use regular Options API functions … Read more

Problem with implenting Uploadify with WordPress

your uploadify.php is all inside a comment so its not really saving the file. change it with this: <?php if (!empty($_FILES)) { $tempFile = $_FILES[‘Filedata’][‘tmp_name’]; $targetPath = $_SERVER[‘DOCUMENT_ROOT’] . $_REQUEST[‘folder’] . “https://wordpress.stackexchange.com/”; $targetFile = str_replace(‘//’,”https://wordpress.stackexchange.com/”,$targetPath) . $_FILES[‘Filedata’][‘name’]; $fileTypes = str_replace(‘*.’,”,$_REQUEST[‘fileext’]); $fileTypes = str_replace(‘;’,’|’,$fileTypes); $typesArray = split(‘\|’,$fileTypes); $fileParts = pathinfo($_FILES[‘Filedata’][‘name’]); if (in_array($fileParts[‘extension’],$typesArray)) { // Uncomment the … Read more

Extending the user profile [closed]

I second what @Viruthagiri said. You can also use the plugin Theme My Login if you want to hide the real WordPress control panel from your users and only show them their own profile/edit profile page, themed just like your site. Best of luck!

Prevent Registration Where Role is None?

Hmm – if they have no role, it may be that they are coming in through some other way and adding that action will not help. What plugins do you have active ? also are you sharing a wp user database with another system?

Dashboard RSS Widget Overhaul

I edited default-widgets.php – function wp_widget_rss_output () but it’s still not showing any changes. There is NO NEED TO MODIFY CORE FILES!!!! Especially with dashboard widgets where a very extensible API as been provided by WordPress. PS: I’m using WPMUDEV Dashboard Feeds plugin. This plugin changes the widget_options so that I can show my own … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)