s0what
Forum Replies Created
-
Forum: Plugins
In reply to: Accessing function from another pluginI updated from WP 3.0 beta to WP 3.0 Final and it started working
Forum: Plugins
In reply to: Accessing function from another pluginthis function looks like this:
# ------------------------------------------------------------------ # sfc_get_profile_data(userid) # # Grabs all of the profile data for specified user and # returns in an array # ------------------------------------------------------------------ function sfc_get_profile_data($userid) { global $wpdb; if ($userid == 0 || $userid == '') return; $profile=array(); # from USERS $profile = $wpdb->get_row("SELECT ID, user_login, user_email, user_url, user_registered FROM ".SFUSERS." WHERE ID=".$userid, ARRAY_A); if(empty($profile)) return; # from USERMETA $m = $wpdb->get_results("SELECT meta_key, meta_value FROM ".SFUSERMETA." WHERE user_id=".$userid, ARRAY_A); if (empty($m)) return; foreach ($m as $item) { $profile[$item['meta_key']]=$item['meta_value']; } # from SFMEMBERS $m = $wpdb->get_row("SELECT * FROM ".SFMEMBERS." WHERE user_id=".$userid, ARRAY_A); if (!empty($m)) { $profile = array_merge($profile, $m); } if (isset($profile['avatar'])) $profile['avatar'] = unserialize($profile['avatar']); if (isset($profile['photos'])) $profile['photos'] = unserialize($profile['photos']); if (isset($profile['user_options'])) $profile['user_options'] = unserialize($profile['user_options']); return $profile; }
Forum: Fixing WordPress
In reply to: Coments are closed by defaultthanks for replay, esmi
I use WP 3.0 beta 1
I have tried all this, except increasing memory. But I have wp_debug activated, so I would see if my 64mb wouldn’t be enough.Any more ideas?
Forum: Alpha/Beta/RC
In reply to: Get latest post titles from one categoryI found that it doesn’t work, because category 3 doesn’t exist anymore.
Thanks!Forum: Fixing WordPress
In reply to: How to set Image Linked to File by default?and I was afraid that I am the only one with this problem. I will try to update to 3.0b1, maybe this will fix the problem.
Edit: upgrading to WP 3.0 beta1 fixed this problem.
Forum: Fixing WordPress
In reply to: How to set Image Linked to File by default?thanks for good replay, esmi, but that doesn’t work for me anymore.
2.9.2 sets “attachment” by default no matter what has been set previous time ??Forum: Fixing WordPress
In reply to: How to set Image Linked to File by default?thanks for replay.
My blog contains lots of users and they are writing posts with images. 99% of images are clickable and open with Highslide.
Every time user is inserting image, he has to click to “File URL”, because default option is “Post URL”.
And what I want is to make default “File URL”, so user doesn’t has to click there anymore.Forum: Fixing WordPress
In reply to: How to set Image Linked to File by default?this is one very easy question. please answer ??
Forum: Plugins
In reply to: How to modify function edit_comment_link?I found a solution – I made similar function and put it in theme functions.php file ??
Forum: Plugins
In reply to: [Plugin: Capability Manager] Doesn’t work on WP 2.9.2sorry, these errors came from Role Manager ??
Forum: Plugins
In reply to: current_user_can() in the __construct?same problem for me. Maybe becouse of new WP version?
Forum: Plugins
In reply to: Where is Role Manager plugin gone?thanks, but it doesn’t work. All plugin configuration pages are blank ??
Forum: Plugins
In reply to: [Plugin: Capability Manager] Editor can’t manage commentssame problem with Contributor role
Forum: Themes and Templates
In reply to: wp_logout(); doesn’t work on latest WPohh, I understood what this function does. ?? Thanks!
Forum: Themes and Templates
In reply to: wp_logout(); doesn’t work on latest WPWhen I removed
wp_logout();
, confirmation also disappeared.