notalame
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Navigation menu and Mandigoup?
Forum: Plugins
In reply to: Creating post with PHP: Categorieshere is the solution that I found:
// Create post object $my_post = array(); $my_post['post_title'] = stripslashes($_POST['titre']); $my_post['post_content'] = stripslashes($_POST['description']); $my_post['post_status'] = get_user_post_status (); $my_post['post_author'] = $current_user->ID; $my_post['post_category'] = $_POST['Col1']; // Insert the post into the database wp_insert_post( $my_post );
I hope it will help!
Forum: Plugins
In reply to: Creating post with PHP: Categoriesup?
Forum: Plugins
In reply to: [New Plugin] User MessagesHi vprat!
I just have one question: is there any version of your plugin that will work with wp v2.6.5 because I cannot upgrade to 2.8.4 (since 2.7, wordpress use more than 24M of memory)??
Thanks!
Forum: Fixing WordPress
In reply to: Get a user’s role by user ID@greenshady: Thanks for your solution but it show me this warning everytime:
Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in E:\wamp\www\s\wp-content\themes\TBlackV2\functions.php on line 225
What’s the solution??
Forum: Fixing WordPress
In reply to: Display author comment role on commentsup?
Forum: Plugins
In reply to: [url=] bbcode how to?up?
Forum: Fixing WordPress
In reply to: Get a user’s role by user ID (in comments)up ?
Forum: Plugins
In reply to: BBCode for author descriptionHi!
I want to know how to insert this function in the function file of a wordpress theme so that we can use it…
Thanks!
Forum: Fixing WordPress
In reply to: Get a user’s role by user ID (in comments)Thanks for your answer…
But, can you help me with this “get_userdata ” because I’m not so good on programming on wordpress…Thanks
Forum: Fixing WordPress
In reply to: Get a user’s role by user ID (in comments)I mean I want to show the comment author role behind his username on comments… so every comment will have the username and just after, “this user is author” (for exemple)
Forum: Fixing WordPress
In reply to: Get a user’s role by user IDThanks for this…
Now, I have another problem… I would like to display the author role on comments (like on this wordpress support site); when using this function, it show the same role for all comments ( because it’s in reality the role of the author of the commented post).
What can I do?