Forum Replies Created

Viewing 15 replies - 1 through 15 (of 34 total)
  • Thread Starter j3ddesign

    (@j3ddesign)

    Resolved – Thanks for the help! πŸ™‚

    Thread Starter j3ddesign

    (@j3ddesign)

    SOLVED
    all along it was something completely simple.

    I guess I forgot the entire call for tooltip requires the user have a “first name” entered…

    I feel so stupid.

    Thread Starter j3ddesign

    (@j3ddesign)

    ok, i found a few markup errors however the main problem is still there πŸ™
    The markup actually tells me “end of file found” which tells me its not actually moving on to load index.php and for that i have no clue :/

    EDIT:
    After doing some more searching I have come across a few others who have had this problem in the past and have tried:
    disabling plugins
    reinstalling wordpress
    re-uploading theme.
    all to no success πŸ™
    any suggestions would be wonderful

    Thread Starter j3ddesign

    (@j3ddesign)

    account deleted, I figured it was just the only way to show the more broken part.

    Jumping in on this a little bit late.
    I had the exact same problem however managed to sort it out using the details here and also a bit of googling.

    For future browsers, the code I came up with is:

    <?php
    $curryear = substr(tribe_get_displayed_month(), -4);
    $currmonth = substr(tribe_get_displayed_month(), -0, -4);
    
    echo $curryear;
    echo $currmonth;
    ?>

    Thread Starter j3ddesign

    (@j3ddesign)

    topic is resolved, thanks for assisting

    Thread Starter j3ddesign

    (@j3ddesign)

    You sir, are a life-saver. i can now go to bed knowing that atleast this section is done.

    Thank you so much, its working now πŸ™‚

    the only thing that isnt is the link back after completion but im sure ill find out when i look into why.

    Again, thank you. πŸ™‚

    Thread Starter j3ddesign

    (@j3ddesign)

    we are so close! it inserted a value… but that value was “$coursename” “0” “$coursecategory”

    i so need to go to bed (UK) but i want this done so i can show my boss. priorities!

    Thread Starter j3ddesign

    (@j3ddesign)

    it says “successfully posted” but after checking phpmyadmin, its not been added :/
    just a thought really, i have nothing in the “validation” section… im assuming thats what im missing, but this is more beyond me than i thought it was already πŸ˜›

    basically, the coursename is a simple string, points value is a 2-3 digit int and course category again is a string. not sure how to validate that.

    I am ever so greatful for your help by the way. So many times ive posted here and they get ignored πŸ™‚

    Thread Starter j3ddesign

    (@j3ddesign)

    I had the names as arrays in the form as i had been looking around the web to try and solve this before i posted and that seemed to be what others had. I have however removed this and below is what i have in my add new course page now. echo $_POST['Submit'] Seemed to do nothing what so ever

    <form action="" method="post" id="addcourse">
    
    <label id="coursename">Course Name:<input type="text" name="coursename" size="30" /></label>
    <label id="coursevalue">Points Value:<input type="text" name="coursevalue" size="10"  /></label>
    <label id="coursecategory">Course Category:<select name="coursecategory" size="1">
            <option selected>Product Knowledge</option>
            <option>Demonstrate Effectively</option>
            <option>Perfect Your Pitch</option>
            <option>Business Integration and Technical Training</option>
        </select></label>
    
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    </div>
    <input type="submit" name="Submit" id="addcoursesubmit" value="Submit" />
    </form>
    <a href="" onClick="return false;" id="addform">Add Another Course.</a>
    <?php
    
    If($_POST['Submit']) {
    // run validation if you're not doing it in js
    
    global $wpdb;
    
    $coursename=$_POST['coursename'];
    $coursevalue=$_POST['coursevalue'];
    $coursecategory=$_POST['coursecategory'];
    
    $wpdb->insert(
    		'allcourses',
    		array(
    				'coursename' => '$coursename',
    				'coursevalue' => '$coursevalue',
    				'coursecategory' => '$coursecategory'
    			),
    			array(
    			 '$s',
    			 '$d',
    			 '$s'
    			 )
    );
    
    }
    echo $_POST['Submit'];
    ?>
    Thread Starter j3ddesign

    (@j3ddesign)

    the form call is correct, did double check! πŸ™‚

    after doing a print_r i get:
    Array ( [0] => Magic Trackpad ) [coursevalue] => Array ( [0] => 300 ) [coursecategory] => Array ( [0] => Product Knowledge ) [Submit] => Submit )

    thanks for sticking with me on this. been a long day and its the one bit that will make all the work ive done sit together nicely πŸ˜› (just so happens to be the bit i cant get right!

    Thread Starter j3ddesign

    (@j3ddesign)

    Thanks for the reply.
    Adapted code to what you suggested, however now it just refreshes the page and does not submit.

    any news on this? would be a great implementation for the client im working with currently

    Thread Starter j3ddesign

    (@j3ddesign)

    forgot to mention, heres the link http://drobestudio.j3d-design.com/photos/

    Your welcome.
    Yeah development would be a hell of a lot slower without “inspect element” in Chrome (effectively the same thing as Firebug, i just prefer the layout & Chrome :D)

    Glad you got it sorted, best of luck to you!

Viewing 15 replies - 1 through 15 (of 34 total)