Results 1 to 3 of 3

Thread: Is it possible to populate a tab instance with the post an ad form steps?

  1. #1
    Thread Starter
    Veteran bleem's Avatar
    Join Date
    Feb 2012
    Posts
    1,571
    Thanks
    103
    Thanked 205 Times in 180 Posts

    Is it possible to populate a tab instance with the post an ad form steps?

    Hi,

    I have a custom user dashboard template. tpl-dashboard.php

    This looks like the image below:
    Attachment 7383

    I would like to add the post an ad steps to the tabbed instance shown in the above image but am getting an error.

    This is my code in the tab block:

    Code:
    <div id="block5">
    
                            <div class="clr"></div>
    
                            <div class="undertab"><span class="big"><?php _e( 'Post an Ad', APP_TD ); ?> </span></strong></span></div>
                            <div class="shadowblock">
    
    <?php global $current_user, $app_abbr;?>
    
    <?php
                            // check and make sure the form was submitted from step1 and the session value exists
                            if( isset($_POST['step1']) ) {
    
                                include_once( get_template_directory() . '/includes/forms/step2.php' );
    
                            } elseif( isset($_POST['step2']) ) {
    
                                include_once( get_template_directory() . '/includes/forms/step3.php' );
    
                            } else {
    
                                // create a unique ID for this new ad order
                                // uniqid requires a param for php 4.3 or earlier. added for 3.0.1
                                $order_id  = uniqid(rand(10,1000), false);
                                include_once( get_template_directory() . '/includes/forms/step1.php' );
    
                            }
                        ?>
    
    </div><!-- /shadowblock -->
            
    
                
                        </div><!-- /block5 -->
    Could someone please advise or help me nail this?

  2. #2
    meloniq's Avatar
    Join Date
    May 2011
    Location
    Poland
    Posts
    1,076
    Thanks
    17
    Thanked 178 Times in 159 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Have Clipper website?! --> You need coupons importer!!!
    See available integrations with affiliate networks: Commission Factory, CJ Affiliate, Daisycon, Rakuten LinkShare, ShareASale, Tradedoubler, TradeTracker

    Payment gateways: Bitpay, Dotpay, PayU PL, Przelewy24, Skrill

    me @ AT || meloniq.net

  3. #3
    Thread Starter
    Veteran bleem's Avatar
    Join Date
    Feb 2012
    Posts
    1,571
    Thanks
    103
    Thanked 205 Times in 180 Posts
    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. [TUTORIAL] Auto-Fill Data into Contact Form [3 Steps]
    By matt in forum ClassiPress General Discussion
    Replies: 9
    Last Post: July 11th, 2014, 04:18 PM
  2. Populate Dropdown Values based on previous selection - form logic
    By deevey in forum ClassiPress General Discussion
    Replies: 1
    Last Post: April 13th, 2012, 09:07 AM
  3. Apply for job steps as there are steps for submit a job
    By facultyoc in forum JobRoller General Discussion
    Replies: 1
    Last Post: November 29th, 2011, 07:43 AM
  4. costumize look and feel of steps for post an ad
    By stephanbarker in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: August 2nd, 2011, 01:43 AM