Results 1 to 4 of 4

Thread: Change 'Ad package' dropdown to radio buttons

  1. #1
    Thread Starter
    Junior Member dave_aj's Avatar
    Join Date
    Jul 2012
    Location
    United Kingdom
    Posts
    40
    Thanks
    3
    Thanked 2 Times in 1 Post

    Change 'Ad package' dropdown to radio buttons

    Hi all,

    Does anyone know how to change the ad package dropdown menu to become a radio buttons style menu?

    The relevant code (or at least some it, i think!) is in includes/forms/step-functions.php on lines 253-281

    Code:
    <li>
                    <div class="labelwrapper">
                        <label><?php _e('Ad Package','appthemes'); ?>:</label>
                    </div>
    
                        <?php
                        // go get all the active ad packs and create a drop-down of options
                        $results = $wpdb->get_results( $wpdb->prepare( "SELECT pack_id, pack_name FROM $wpdb->cp_ad_packs WHERE pack_status = 'active' ORDER BY pack_id asc" ) );
    
                        if ( $results ) {
                        ?>
    
                        <select name="ad_pack_id" class="dropdownlist required">
    
                        <?php foreach ( $results as $result ) { ?>
                                <option value="<?php echo esc_attr($result->pack_id); ?>"><?php echo esc_attr(stripslashes($result->pack_name)); ?></option>
                        <?php } ?>
    
                        </select>
    
                        <?php 
                        } else { ?>
    
                            <?php _e('Error: no ad pack has been defined. Please contact the site administrator.', 'appthemes') ?>
    
                  <?php } ?>
                    
                    <div class="clr"></div>
                </li>
    Thanks in advance

    Dave

  2. #2
    Amateur vitorcherulli's Avatar
    Join Date
    Nov 2012
    Location
    Brazil
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    Expired Customer bclassipresstheme's Avatar
    Join Date
    Oct 2013
    Location
    Philippines
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    salfarzin's Avatar
    Join Date
    Feb 2014
    Location
    United States
    Posts
    23
    Thanks
    0
    Thanked 1 Time in 1 Post
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Radio Buttons
    By procyon in forum ClassiPress General Discussion
    Replies: 8
    Last Post: June 1st, 2013, 12:23 PM
  2. Category selection is using radio buttons as selection type!
    By carlos takemura in forum Vantage General Discussion (Legacy)
    Replies: 33
    Last Post: August 30th, 2012, 11:05 PM
  3. Radio buttons in job packs
    By securityjobs in forum JobRoller General Discussion
    Replies: 3
    Last Post: October 21st, 2011, 11:18 AM
  4. [SOLVED] Seth, a little problem with Radio buttons
    By vienna in forum Report ClassiPress Bugs
    Replies: 5
    Last Post: March 20th, 2011, 03:12 AM
  5. [SOLVED] Required fields being bypassed when using Checkboxes/Radio buttons
    By Fanatic in forum Report ClassiPress Bugs
    Replies: 15
    Last Post: January 7th, 2011, 07:19 PM