Results 1 to 6 of 6

Thread: Extra Input Field on Submit 2?

  1. #1
    Donor
    Join Date
    Sep 2010
    Posts
    214
    Thanks
    29
    Thanked 54 Times in 39 Posts

    Default Extra Input Field on Submit 2?

    I've read the documentation about creating an extra field during the submit process.

    However, I'm wondering.. I want to create a box where a user can enter a specific alphanumeric id. Then, the number will be displayed on the bookmarking_post.php page.

    Can I use the same format as adding a field to the user profile? For example:

    Code:
    $post['number'] = $h->cage->post->testAlnum('number');
    And then create a form for it..

    Code:
    <tr><td>Number: </td><td><input type="text" name="number" value="<?php echo $h->post->number; ?>"></td></tr>
    And then add the proper code to bookmarking_post.php to display the number, maybe something like this..
    Code:
    <?php if (!empty($post['number'])) {
    ?>
    <?php echo $h->post->number; ?>
    
    <?php } ?>
    It's dirty, and I know there might be a couple of syntax issues with this, but is it possible to do it this way? Or, do I need to create a plugin with db fields, modeled like the media select plugin?

  2. #2
    Member
    Join Date
    Feb 2011
    Posts
    92
    Thanks
    13
    Thanked 1 Time in 1 Post

    Default

    I see u did your research for nick post a doc but it is a 404 and I inform him. In that same thread, media select was mention to model after. Give him a day or two and maybe he will correct that 404 error with his view. Think it might be model after media select.ec

    Edit: Feb 28 I check the link and it has not been updated. Here is the link that I reported to Nick and u can read when he fixes
    http://hotarudocs.com/Extra_Post_Fields_in_Submit
    Last edited by scrt; 03-01-2011 at 06:15 AM.

  3. #3
    Junior Member
    Join Date
    Jul 2010
    Posts
    25
    Thanks
    7
    Thanked 5 Times in 5 Posts

    Default

    Hey, did you ever get this working? I would also like to add more fields to the submit 2 page but haven't had luck.

  4. #4
    Donor objective's Avatar
    Join Date
    Jul 2010
    Location
    Galway, Ireland
    Posts
    47
    Thanks
    24
    Thanked 35 Times in 24 Posts

    Default

    I did this in the post price plugin.
    Feel free to hack it to your needs.

  5. #5
    Donor
    Join Date
    Sep 2010
    Posts
    214
    Thanks
    29
    Thanked 54 Times in 39 Posts

    Default

    I ended up learning how to make it into a plugin, and also created a "difficulty level" plugin for another Hotaru user.

    http://forums.hotarucms.org/showthre...te-Advanced%29

    There are two versions in that thread - the first one doesn't default to anything, and the second one does - technically making the input field required during submission.

  6. #6
    Junior Member
    Join Date
    Jul 2010
    Posts
    25
    Thanks
    7
    Thanked 5 Times in 5 Posts

    Default

    Sweet! Thanks you guys! I'll take a look and do what I can. Hotaru rocks!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Pull into New Field from Submitted Site - Like Title
    By magnesia4 in forum How-To and Troubleshooting
    Replies: 1
    Last Post: 12-12-2010, 11:22 PM
  2. Extra Profile Field Dropdown List from Submited Tags
    By angolanmade in forum How-To and Troubleshooting
    Replies: 1
    Last Post: 12-02-2010, 01:22 PM
  3. Need help desperately : Unable to submit after Submit page1 - 403 error
    By dreamzsiva in forum How-To and Troubleshooting
    Replies: 14
    Last Post: 05-24-2010, 04:04 PM
  4. Extra Profile Fields Not Saving
    By angolanmade in forum How-To and Troubleshooting
    Replies: 20
    Last Post: 04-14-2010, 03:19 AM
  5. [Docs] Extra ezSQL Functions
    By Nick in forum Developing Plugins
    Replies: 0
    Last Post: 07-13-2009, 05:19 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •