Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #2208

    Hi,

    I want to do the following 4 things to the SUBMIT NEWS form.

    1. Change the Title from SUBMIT NEWS to SUBMIT BUSINESS LISTING

    2. Add a new field to the Submit News form for PHONE NUMBER

    3. Allow user to upload an image with this form by creating an UPLOAD IMAGE field.

    4. Change the ‘Your Name’ field to ‘Business Name’.

    How to accomplish this?

    Thanks.

    #37127

    Hey!

    This post might help. You want to edit the file template_contact.php.

    http://www.kriesi.at/support/topic/submit-news#post-6936

    Best regards,

    Noah

    #37128

    Just a side note – adding an “upload image field” isn’t possible (or only with some major modifications).

    #37129

    I was able to add the necessary fields to the form.

    But, I still don’t know how to change the Link in the header from SUBMIT NEWS to SUBMIT BUSINESS LISTING?

    Here is the code in the header.php file, but I don’t see where I can change this

    // submit news button
    if($k_option['contact']['membernews'] != 2) {
    if(($k_option['contact']['membernews_who'] != 2 && current_user_can('level_0')) || $k_option['contact']['membernews_who'] == 2)
    {
    ?>
    <a id='submit_news' rel="prettyPhoto" class='ie6fix' href="<?php echo get_bloginfo('template_url'); ?>/submit_news.php?iframe=true&width=420&height=680"><?php _e($k_option['contact']['submit_news_text'],'newscast'); ?></a>
    <?php

    Please help.

    #37130

    You can change the link text under Newscast Options > Contact & Submit Member News.

    #37131

    Hi,

    I’ve got the form working perfectly the way it should in Firefox, but it is having issues in IE and Chrome.

    In Chrome you can’t see the SEND Button, and in IE it cuts the form short and doesn’t show the SEND button either.

    Please help.

    Here is a link to the site: http://best-temecula-guide.com

    You can see the SUBMIT YOUR LOCAL BUSINESS LISTING link.

    Thanks.

    #37132

    Hey,

    It looks like there are a couple of validation errors (http://validator.w3.org/check?uri=http%3A%2F%2Fbest-temecula-guide.com%2Fcontact%2F&charset=%28detect+automatically%29&doctype=Inline&group=0) most likely caused by a plugin.

    Please try disabling all your plugins and testing the page in IE, I note that aside from the sidebar being pushed down by the Google Ads, Chrome seems to work fine for me (on Mac).

    James

    #37133

    Hi,

    I think there has been a misunderstanding. The CONTACT page is working fine within the tool.

    The SUBMIT NEWS form, which is activated by clicking on the SUBMIT NEWS link is having the issues. The form was modified by me by changing the submit_news.php file. Basically I just needed to rename a few fields and add a few. It works fine when activated in Firefox, but in Chrome the SEND button is missing, and in IE the last field and the SEND button is missing. Please help!!!!

    Here is the code for that page:

    <div id ="newswrapper">
    <form action="" method="post" class="news_form">
    <fieldset><?php if (!isset($errorC) || $errorC == true){ ?><h3><span>Submit A Temecula Business Listing</span></h3>

    <p class="<?php if (isset($the_nameclass)) echo $the_nameclass; ?>" ><label for="name">Business Name*</label><input name="yourname" class="text_input is_empty" type="text" id="name" size="20" value='<?php if (isset($the_name)) echo $the_name?>'/>
    </p>
    <p class="<?php if (isset($the_emailclass)) echo $the_emailclass; ?>" ><label for="email">Business E-Mail*</label><input name="email" class="text_input is_email" type="text" id="email" size="20" value='<?php if (isset($the_email)) echo $the_email ?>' /></p>
    <p><label for="website">Business Website URL*</label><input name="website" class="text_input is_empty" type="text" id="website" size="20" value="<?php if (isset($the_website)) echo $the_website?>"/></p>
    <p><label for="businessPhone">Business Phone</label><input name="businessPhone" class="text_input" type="text" id="businessPhone" size="20" value="<?php if (isset($url)) echo $url?>"/></p>
    <label for="businessAddress" class="blocklabel">Business Address</label>
    <p class="<?php if (isset($the_messageclass)) echo $the_messageclass; ?>"><textarea name="businessAddress" class="text_area is_empty" cols="40" rows="7" id="businessAddress" ><?php if (isset($the_message)) echo $the_message ?></textarea></p>

    <p><label for="imageURL">Link to Image URL</label><input name="imageURL" class="text_input" type="text" id="imageURL" size="20" value="<?php if (isset($url)) echo $url?>"/></p>

    <label for="message" class="blocklabel">Business Description</label>
    <p class="<?php if (isset($the_messageclass)) echo $the_messageclass; ?>"><textarea name="message" class="text_area is_empty" cols="40" rows="10" id="message" ><?php if (isset($the_message)) echo $the_message ?></textarea></p>

    <p>
    <input type="hidden" id="myemail" name="myemail" value="<?php echo $email_adress_reciever; ?>" />
    <input type="hidden" id="myblogname" name="myblogname" value="<?php echo $name_of_your_site; ?>" />

    <input name="Send" type="submit" value="Send" class="button" id="send" size="16"/></p>
    <?php } else { ?>
    <p><h3>Your Business Listing has been sent!</h3> Thank you!</p>

    <?php } ?>
    </fieldset>

    </form>

    <?php

    #37134

    Hi,

    Any ideas on this? Still not working.

    Thanks!

Viewing 9 posts - 1 through 9 (of 9 total)

The topic ‘Add/Modify Fields in 'Submit News' Form’ is closed to new replies.