ericlee
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Press This, pass url as custom fieldOk, manage to get it right after several try.
Here it goes…Add a input tag at this section.
So that the url will be shown. Else, you can customise the url if you want.<div class="editor-container"> <textarea name="content" id="content" style="width:100%;" class="mceEditor" rows="15"> <?php if ($selection) echo wp_richedit_pre(htmlspecialchars_decode($selection)); ?> <?php // if ($url) { echo '<p>'; if($selection) _e('via '); echo "<a href='$url'>$title</a>."; echo '</p>'; } ?> </textarea> <input name="elink" type="text" id="elink" class="mceEditor" style="width:100%;" value="<?php echo $url; ?>"/> </div>
Now go to the top section and insert the $elink stuff.
$quick['post_title'] = $_REQUEST['title']; $quick['post_content'] = ''; $elink = $_REQUEST['elink'];
and follow by this, adding the post meta
$quick['ID'] = $post_ID; wp_update_post($quick); add_post_meta($post_ID, 'elink', $elink, false);
Doesn’t look clean, but it serve my purpose all right.
Cheers
Forum: Plugins
In reply to: Hacking the wordpress bookmarklet to add custom fieldHi, I am also having the same problem.
Have you managed to solve it?Cheers
Forum: Fixing WordPress
In reply to: Linking The Title off siteHi, have you found the solution for it?
Cheers
Forum: Fixing WordPress
In reply to: Press This, pass url as custom fieldI guess the URL is referring to the URL Address that was been blog. If I am not wrong, it is listed as $url in the press_it.php.
I am looking at possible solution as well.
Tried various method but does not work.
Insert the post meta in the press_it function
// insert the post with nothing in it, to get an ID $post_ID = wp_insert_post($quick, true); add_post_meta($post_ID, 'elink', $url);
and also try to insert a custom field form at the bottom of the page. It show the form all right but it is not able to update/insert the custom field.
<?php $metadata = has_meta($post->ID); list_meta($metadata); meta_form(); ?>
I am not a programmer, but I am willing to try. However, I am stuck for a few days. Hope some kind soul would shed some light…
Thanks in advance…