j3ddesign
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Theme only showing up to specific pointResolved – Thanks for the help! 🙂
Forum: Fixing WordPress
In reply to: Theme only showing up to specific pointSOLVED
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.
Forum: Fixing WordPress
In reply to: Theme only showing up to specific pointok, 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 wonderfulForum: Fixing WordPress
In reply to: Theme only showing up to specific pointaccount 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; ?>Forum: Fixing WordPress
In reply to: Adding data to custom databasetopic is resolved, thanks for assisting
Forum: Fixing WordPress
In reply to: Adding data to custom databaseYou 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. 🙂
Forum: Fixing WordPress
In reply to: Adding data to custom databasewe 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!
Forum: Fixing WordPress
In reply to: Adding data to custom databaseit 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 🙂
Forum: Fixing WordPress
In reply to: Adding data to custom databaseI 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> </p> <p> </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']; ?>Forum: Fixing WordPress
In reply to: Adding data to custom databasethe 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!
Forum: Fixing WordPress
In reply to: Adding data to custom databaseThanks for the reply.
Adapted code to what you suggested, however now it just refreshes the page and does not submit.Forum: Everything else WordPress
In reply to: Employee hourly/weekly scheduleany news on this? would be a great implementation for the client im working with currently
Forum: Fixing WordPress
In reply to: Live Site not displaying posts within loop (works locally)forgot to mention, heres the link http://drobestudio.j3d-design.com/photos/
Forum: Themes and Templates
In reply to: Changing colours in table cellsYour 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!