tehjrow
Forum Replies Created
-
Forum: Plugins
In reply to: How does WP set cookies?Still can’t figure out what the value of the cookie is…
Forum: Plugins
In reply to: How does WP set cookies?Ok, playing around so far i’ve found that the cookie name is a md5() of the site url.
EG: md5(‘https://www.example.com’);
Forum: Plugins
In reply to: How does WP set cookies?I found this, but what does double hash mean??
When you log into WordPress from https://example.com/wp-login.php, WordPress stores the following two cookies:
Your user name
A double-hashed copy of your passwordForum: Plugins
In reply to: how to hash passwordNevermind, I included /var/www/wordpress/wp-includes/class-phpass.php and just used PasswordHash(). Code below for those interested.
require('/var/www/wordpress/wp-includes/functions.php'); require('/var/www/wordpress/wp-includes/pluggable.php'); require('/var/www/wordpress/wp-includes/class-phpass.php'); $wp_hasher = new PasswordHash(8, TRUE); $password = $wp_hasher->HashPassword($_POST[pass2]);
Forum: Hacks
In reply to: javascript inside an admin menu?Haha i’m an idiot….
<script language=’text/javascript’>
should be
<script type=’text/javascript’>Forum: Hacks
In reply to: Help me with inserting info into DatabseSpecifically the part labeled “Access new tables in the WP DB”
Forum: Hacks
In reply to: Help me with inserting info into DatabseThis page helped me. Even though the table is in the wordpress database it’s not a part of wordpress so you have to make a new instance of $wpdb.
Forum: Hacks
In reply to: Breaking shortcode?Cool, it works, thanks!
Forum: Fixing WordPress
In reply to: wp_insert_post doesn’t insert data for added columnsNever mind, i figured it out
Forum: Hacks
In reply to: wp_insert_post with custom columns?So i’m just going to use add_post_meta, it works.
Forum: Fixing WordPress
In reply to: wp_insert_post doesn’t insert data for added columnsI have the same problem, how does post meta work?
Forum: Hacks
In reply to: wp_insert_post with custom columns?Ok yeah, i’ve been messing with it and I can’t figure it out. Is there any way I can echo out the SQL that is being ran?
Forum: Hacks
In reply to: wp_insert_post with custom columns?Ok it’s not working.
I made a new column in wp_posts called post_location.
$my_post = array( 'post_title' => $_POST['Title'], 'post_content' => $_POST['Message'], 'post_status' => $my_post_type, 'post_author' => $user_id, 'post_category' => $category, 'comment_status' => (($enableComments && !$use_anonComment) ? 'open' : 'closed'), 'ping_status' => 'closed', 'post_location' => 'isitposting' );
When i use this array with wp_insert_post it inserts everything in the array except post_location. Why?
Forum: Hacks
In reply to: wp_insert_post with custom columns?Never mind, found this.
The user can provide more elements than are listed here by simply defining new keys in the database. The keys should match the names of the columns in the wp_posts table in the database.
Forum: Themes and Templates
In reply to: Anonymous posting with verify?sorry i posted this in the wrong forum and am not sure how to delete it