• Resolved clockwood

    (@clockwood)


    How do you add wordpress Custom Fields to the quick-post form? I’m talking about accessing existing custom fields, not adding new ones. For example, I have a “Source URL” field that authors use to put the URL of articles they post, etc. It would be great to have this field available on the quick post form.

    Thanks for your work on this plugin. It’s very helpful.

    http://wordpress.org/extend/plugins/quick-post-widget/

Viewing 15 replies - 1 through 15 (of 20 total)
  • Plugin Author inapan

    (@inapan)

    Hi clockwood,
    I will have to look in to it. If I can sort out how it works I can try to put in in a future release.
    Perry

    Fantastic widget, thank you!
    I’m also quite desperate to be able to add one of my custom fields to the widget. If anyone knows how, I’d be most grateful for your help!

    I’ve hardcoded it for now. @inapan if you haven’t found a solution yet, this is what I did:
    in the quick-post-widget.php I put in the following code at line 394:

    <label for="quick_post_customfield" class="quick_post_label" style="<?php echo $label_style; ?>"><?php echo 'type your label to be displayed'; ?></label>
    						<br />
    						<input type="text" name="quick_post_customfield" id="quick_post_tags" style="<?php echo $post_tags_style; ?>" value="" />

    then on line 559 after echo "<meta http-equiv='Refresh' Content='1'; url='".$_SERVER['PHP_SELF']."'>"; I added:
    update_post_meta($post_id, 'build', $_POST['quick_post_customfield']);
    This solution is for a pure text custom field, and worked on my install, but use at own risk.

    oops, in the code for line 559 replace ‘build’ with the name of your custom field. Sorry about that!

    Thanks a Bunch!!
    Above customfield thing in quick post widget works,

    I’m trying to use this fix (I need to show a custom field) but the syntax listed above (specifically the part line 559) isn’t there.

    How do I add a custom field?

    THANKS!

    Plugin Author inapan

    (@inapan)

    @all
    The next version will have custom fields. They are working now but I’m still working on some other issues before I can release this new version.
    inapan

    NOKYARD

    (@nokyard)

    On my site the Excerpt is more important than both the title and description. Is there any chance one of these additional fields will be for the Excerpt?

    Plugin Author inapan

    (@inapan)

    @nokyard

    Please mail me (address in the quick-post-widget.php file) to find out what it is exactly that you need.

    inapan

    Plugin Author inapan

    (@inapan)

    @all
    Just uploaded version 1.8 with the ability to use custom fields.

    @nokyard
    Version 1.8 also has an option to use the excerpt.

    inapan

    Thank you. The Excerpt field input works perfectly with the ability to add a custom label.

    Sadly, i am getting js errors which cause the Visual Editor to break. And, when the plugin is installed the TinyMCE editor in my Simple:Press Forum breaks. You both have the same philosophy regarding the use of WP’s built in js libraries but i can’t seem to get both versions of TinyMCE working at the same time (WP’s TinyMCE editor works fine).

    http://highspeedhalo.net/

    Plugin Author inapan

    (@inapan)

    @nokyard,

    Sorry to hear about the TinyMCE problems. Could you send me an email (address in the quick-post-widget.php file) so we can work this out over mail? We’ll post the solution here. Also, is it possible for you to set up an account for me with the ability to test the widget?
    I just regsistered on your site but I can’t seem to find the widget.

    Thanks!
    inapan

    Plugin Author inapan

    (@inapan)

    @nokyard,

    Update: I managed to get both copies of TinyMCE working by changing in the quick-post-widget.php file the line which says

    wp_enqueue_script('tinymce', get_bloginfo('wpurl') . '/wp-includes/js/tinymce/tiny_mce.js');

    to

    wp_enqueue_script('tinymce', get_bloginfo('wpurl') . '/wp-content/plugins/simple-forum/editors/tinymce/tiny_mce.js');

    The Visual Editor of the Quick Post Widget loads with a different style and the language of the TinyMCE advanced theme doesn’t load, but I think we can make it work by ‘hacking’.

    By the way, Simple:Press, which is a beautiful plugin, uses it’s own copy of TinyMCE (not the one shipped with WordPress).

    To be continued….

    inapan

    Plugin Author inapan

    (@inapan)

    @nokyard

    Another update:
    I tried a, I think dirty, hack and have both plugins work together.
    The only drawback is that you cannot have the Quick Post Widget displayed on the same page as the forum.
    I tried WordPress conditional tags but couldn’t get it working. That’s why I tried some server variables.

    The hack which worked for me: on line 1215 in version 1.8 of the quick-post-widget.php insert

    if ( '/wptest/forum/test-forum' != $_SERVER['REQUEST_URI'] ) {

    and end the block with a } (just above the } else { line.

    Of course you need to replace the url part with your own and perhaps modify it a bit (use a like construcion for instance).

    Again, this only works when the forum is on a page without sidebar or when for instance you use a plugin which conditionally shows widgets on certain pages.

    Anyone who has a more elegant solution: please respond.

    inapan

    Thank you i will give that a try right now.

    I am using a custom page template for the forum based on page.php, and another custom page template for my submission form based on page-with-sidebar.php so there should be no further conflicts. The widget, which i use for user submitted gaming video, will only display on the sidebar of page with the accompanying instructions.

    I must say here that it has been a long and bothersome search for a simple, elegant, and highly customizable plugin to accept user submissions. This is exactly the plugin that i and my staff have been waiting for as it fits our workflow perfectly.

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘[Plugin: Quick Post Widget] Custom fields?’ is closed to new replies.