katesgasis
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Extended Author ProfilesYou don’t actually need another table for that. Use the usermeta. Here’s the one I used.
function mailinginfo_update() {
global $user_ID;
get_currentuserinfo();
if(isset($_POST['street1'])) {
update_usermeta($user_ID,'street1',$_POST['street1']);
}
if(isset($_POST['street2'])) {
update_usermeta($user_ID,'street2',$_POST['street2']);
}
if(isset($_POST['city'])){
update_usermeta($user_ID,'city',$_POST['city']);
}
if(isset($_POST['country'])){
update_usermeta($user_ID,'country',$_POST['country']);
}
if(isset($_POST['country'])){
update_usermeta($user_ID,'zipcode',$_POST['zipcode']);
}
}
add_action('personal_options_update','mailinginfo_update');
Use it in your plugin. Don’t touch the core files or you’ll regret it when upgrading time comes.Forum: Requests and Feedback
In reply to: wordpress 2.0.1 version downloadThank you very much.
Hye, isn’t it a good idea to put a link in the download page to the old versions?
Forum: Fixing WordPress
In reply to: Making a sidebar detect login show different menuTry this
‘
global $user_ID
if(” == $user_ID) { echo “you are logged out” } else { echo “you are logged in”}
‘Forum: Fixing WordPress
In reply to: Cannot configure or Arrange widgets.In the latest version of Widgets plugin, I was able to make it work by just uploading the whole folder in the plugins dir. Didn’t moved the js to the wp-include/js folder.
Forum: Fixing WordPress
In reply to: Comments appear on wrong/different postsCan you post the url of you blog?
Forum: Fixing WordPress
In reply to: non-http linksRight and if they do, let them try using the “hyperlink” button.
Forum: Installing WordPress
In reply to: Database error; table does not exist?And the database you created for wordpress is named sarah_wordpress? If you use cpanel to create your database, it usually prepend something. Like mine, I named my wp db as kates but when cpanel created it, the name that came out is kg_kates, kg being my username. Just check the actual database name created by you.
Forum: Fixing WordPress
In reply to: what database tables do i reomove forYes those are the tables used by UTW.
Forum: Installing WordPress
In reply to: Database error; table does not exist?What did you put for your DB_NAME?
Forum: Plugins
In reply to: Excluding categories from a random post plugintry using this sql
$cat_to_exclude = <category id you want excluded>;SELECT p.ID, p.post_title, p.post_content FROM $wpdb->posts p, $wpdb->post2cat pc WHERE post_status = 'publish' AND $wpdb->post2cat.post_id=ID AND $wpdb->post2cat.category_id <> $cat_to_exclude
Forum: Themes and Templates
In reply to: Partially non-changing frontpage?You need the is_home or else it will appear in all your pages.
Forum: Themes and Templates
In reply to: Partially non-changing frontpage?YOu can put this snippet in your index.php before the wp loop:
<?php if(is_home()): ?>
<div class="descr">
Some description here.
</div><?php endif; ?>
Forum: Fixing WordPress
In reply to: Sorry, but you are looking for something that isn’t herecan you check in your options if your wordpress address and your blog address points to http://www.comicvia.net/wordpress
Forum: Fixing WordPress
In reply to: Creating a list of navigation links to other areas of my Web siteMaybe this page can help you. http://codex.wordpress.org/Template_Tags/wp_get_links.
Forum: Fixing WordPress
In reply to: Sorry, but you are looking for something that isn’t hereGo to your Options->Permalinks. Be sure to have your .htaccess file in your webserver chmod to 0777 before you update your permalinks structure. .htaccess is usually located in your public_html or www dir.