Hax
Forum Replies Created
-
modifing your files on your server should not affect your database at all your just changing the application not the data. but you can always login into your phpMyAdmin and do an export of your database to be sure but just be sure not to modify your content folder unless you need to update any plug in that is not compatible with your new installation of wordpress
you can always download wp and update your installation trough an FTP connection just make sure you don’t overwrite your wp-content folder. if not you need to probably open a ticket with godaddy
Forum: Fixing WordPress
In reply to: 404 or a failed search breaks custom loopsTry pass your arguments to the new WP_Query object like this
WP_Query(array('posts_per_page' => 300 ))don’t call your variable $query use something like $current_posts because your probably overwriting the global $query; also I don;t think you need to destroy the old querywp_reset_query();because your using a new object not the default you destroy the query when your using ‘query_posts(‘showposts=5′)’ because this overwrites the original query so basically your killing the original queryHope this helps
Forum: Plugins
In reply to: Trying to fix hover with IE – csshover.htc or ie8.jsis a javascript issue on your theme. you can accomplish this just trough css remove this pice of code on your theme
<script language="javascript"> sfHover = function() { var sfEls = document.getElementById("nav").getElementsByTagName("LI"); for (var i=0; i<sfEls.length; i++) { sfEls[i].onmouseover=function() { this.className+=" sfhover"; } sfEls[i].onmouseout=function() { this.className=this.className.replace(new RegExp(" sfhover\b"), ""); } } } if (window.attachEvent) window.attachEvent("onload", sfHover); </script>pure css should work just fine. if you don’t know css here is a link that can help you
Forum: Fixing WordPress
In reply to: Meta boxes not showinghere is the code
add_action ('admin_menu', 'my_unique_meta_box'); function my_unique_meta_box () { add_meta_box('box_id', __('box title'), 'function_name', 'post', 'side', 'low'); // for posts add_meta_box('box_id', __('box title'), 'function_name', 'post', 'side', 'low'); // for pages } function function_name () { // add here what you want the box to show / manage }Forum: Plugins
In reply to: Adding Admin Panel Menuyou can add it to your theme’s function.php file or you can create your on plugin here is the documentation page http://codex.wordpress.org/Adding_Administration_Menus
Forum: Plugins
In reply to: Creating new pluginif you already read the plugin api section here are a fiew hooks that you can try
add_filters('sidebars_widgets', "your_function_name_here"); add_action( 'widgets_init', "your_function_name_here" );and all the functions and filters related to widgets are in “wp-includes/widgets.php”
Forum: Plugins
In reply to: Seeking Course Management Pluginmmmmm it looks like you need a custom build plugin. so you may have to hire a developer and for what you describe is very complex so it may take a while to be completed and expensive. I don’t know of any out there.
Forum: Plugins
In reply to: remove ?ver= from headeryou can always hard code this url into your theme but you may have issues updating your plugin
Forum: Plugins
In reply to: [Plugin: Get A Post] no longer working in WP3.0I have not test it but one thing jumps out.
instead of using “$tableposts” on your query use $wpdb->posts like so
"SELECT * FROM $wpdb->posts WHERE (post_status = 'publish' OR post_status = 'static') AND post_date <= '$now' AND $name_or_id = '$id'"Forum: Plugins
In reply to: Option “0” in pluginwhat option are you trying to save and if you using the
add_option()function “0” returns a false so it thinks that there is no data. you can’t try to add or change the value to “none” or something like that or sent the value in anadd_option(array('0'));this will serialize your data.Forum: Plugins
In reply to: [Plugin: Wibstats] Permissions for Editor & Authoresyou can install a roles plug in and you should be able to change the access for the role or user.
this is the one that I like simple and clean. http://www.im-web-gefunden.de/wordpress-plugins/role-manager/. Not sure if it works with wp 3.0
Forum: Plugins
In reply to: remove ?ver= from headerThis should work.
Add this code to your function.php in your theme’s folder
## remove version from css and js for proper caching function _remove_script_version( $src ){ $parts = explode( '?', $src ); return $parts[0]; } add_filter( 'script_loader_src', '_remove_script_version', 15, 1 );Forum: Plugins
In reply to: [Plugin: spam-stopper] Doesn’t appear to work with the new 3.0 releasebest way to stop spam if you are on a apache/linux server is to add this code into your .htaccess file
# only accept comments from people comming from the site RewriteEngine On RewriteCond %{REQUEST_METHOD} POST RewriteCond %{REQUEST_URI} .wp-comments-post\.php* RewriteCond %{HTTP_REFERER} !.*pbth.net.* [OR] RewriteCond %{HTTP_USER_AGENT} ^$ RewriteRule (.*) ^http://%{REMOTE_ADDR}/$ [R=301,L]basically is telling your server not to process your comments ( wp-comments-post.php file ) if the request didn’t came from your domain.
Forum: Plugins
In reply to: Adding Admin Panel Menuhere is the code to add admin menus
<?php add_action('admin_menu', 'my_plugin_menu'); function my_plugin_menu() { add_options_page('My Plugin Options', 'My Plugin', 'manage_options', 'my-unique-identifier', 'my_plugin_options'); } function my_plugin_options() { if (!current_user_can('manage_options')) { wp_die( __('You do not have sufficient permissions to access this page.') ); } echo '<div class="wrap">'; echo '<p>Here is where the form would go if I actually had options.</p>'; echo '</div>'; } ?>is the documentation page http://codex.wordpress.org/Adding_Administration_Menus
another option that you have is installing a roles plugin add new roles and change the permission base on what you want them to do.
is the one that I like http://www.im-web-gefunden.de/wordpress-plugins/role-manager/