Jump to content

maxxd

Gurus
  • Content count

    776
  • Joined

  • Last visited

  • Days Won

    20

maxxd last won the day on August 5

maxxd had the most liked content!

Community Reputation

54 Excellent

About maxxd

  • Rank
    Prolific Member

Contact Methods

  • Website URL
    https://maxxwv.com

Profile Information

  • Gender
    Not Telling
  • Location
    North Carolina

Recent Profile Visitors

11,909 profile views
  1. maxxd

    Header problems

    What framework are you using?
  2. What hook are you using to call the function that uses get_option()? Are you using AJAX to get the value? If so, are you using it correctly? Post your code - that'll help.
  3. You're going top have to describe the problem better. Are you saying you want the user to fill out the form then immediately be redirected to the new page? If so, there are a couple other things to consider, but ginerjm is correct in his statement about gathering the values and using a header redirect. Are you saying you've got the form saving the information properly to the database and need to know how to get the data from the database? If so, it's going to depend on how and where you saved the data. Either way, it's probably going to involve using an action hook at some point, so where is this code happening? Are you creating a custom theme, a child theme, or a plugin? Basically, what does mean exactly?
  4. The code you've posted doesn't have anything to do with a database. You're making a curl call to update-availability.php. If that file is supposed to update a database value, we'd need to see the code in that file.
  5. maxxd

    absolute position

    Applying opacity to a div affects everything within the div, including type and nested divs. Use background opacity via rgba() to do what you're wanting: body{ background: url("https://image.ibb.co/h93Ndo/abstract.jpg") top right no-repeat; background-attachment: fixed; } .body-container{ display: flex; flex-direction: column; justify-content: stretch; align-items: stretch; background: red; color: white; min-height: 100vh; } .header{ flex-grow: 0; background: rgba(58, 152, 253, 1); } .two-cols{ flex-grow: 1; display: flex; flex-direction: row; justify-content: stretch; } .left-container{ display: flex; flex-direction: column; justify-content: flex-start; flex-grow: 1; flex-basis: 20%; background: rgba(59, 74, 83, 1); } .content{ display: flex; flex-direction: column; justify-content: flex-end; flex-grow: 1; flex-basis: 80%; background: rgba(255, 255, 255, .7); } Also, is there any reason why you needed to add the !important to the display rule on the .body-container div? @gizmola - apparently I'm going to need to read that article as well as I've not found float collapse to be an issue using flexbox. Or at least I've not recognized that that's what it is... Anyway - thanks for the link!
  6. maxxd

    absolute position

    You've applied the top margin to the body element, so of course it's pushing the body down. Apply top padding to body-container? Sorry - not quite sure what you're asking on this one. As for the background, that really shouldn't be a problem with the structure as it is. gizmola's correct about float collapse, but (I could be wrong here) I'm not sure it applies in this case. If you need to add z-index (again, not sure why at this point) add position: relative; to the divs. That should allow the z-index to work as expected.
  7. maxxd

    absolute position

    For this simple situation, I'd use flex. With a decent transpiler it'll work well in ie11 (10 mostly works once transpiled). .body-container{ display: flex; flex-direction: column; justify-content: stretch; align-items: stretch; background: red; color: white; min-height: 100vh; } .header{ flex-grow: 0; background: gold; } .two-cols{ flex-grow: 1; display: flex; flex-direction: row; justify-content: stretch; } .left-container{ display: flex; flex-direction: column; justify-content: flex-start; flex-grow: 1; flex-basis: 20%; background: green; } .content{ display: flex; flex-direction: column; justify-content: flex-end; flex-grow: 1; flex-basis: 80%; background: blue; } <div class="body-container"> <div class="header">Here's the header</div> <div class="two-cols"> <div class="left-container">menu</div> <div class="content">hello world</div> </div> </div> Give that a shot. Once you get that working, you could always start the move toward semantic markup with header, main, article, and sidebar elements.
  8. Note that requinex's snippet checks for the existence of all the variables, so it's the equivalent of using '&&', not '||'.
  9. maxxd

    Form not sending email??

    Also, you might want to look into PHPMailer - it's safer and more reliable than PHP's native mail() function, and it has debugging options for situations just like this.
  10. maxxd

    buttons not aligning at the center

    You're checking to make sure $_POST['submit'] is set, but not checking $_POST['timer'] before you attempt to assign its value to $result. As to the stop() function issue, that's weird - there's a jQuery stop() function but you're not using jQuery. I'm not aware of a stop() function in JavaScript itself, but that doesn't mean it doesn't exist. Either way, naming the function stopTimer() is more descriptive and probably a better idea anyway.
  11. maxxd

    buttons not aligning at the center

    This is not the code that cyberRobot was talking about. I have to assume there's a startTimer() and stop() function somewhere? If not, then figuring out why this isn't working just got a lot easier... Also, you've got an empty h1 element and you don't have the '>' at the end of your </form> tag.
  12. There's an intrinsic difference between divs and spans. Divs don't display inline unless specifically told to do so, while spans do. So in a case such as this, you'd use a span element instead of div. In this specific case, you'd listen to requinix and use a strong tag as it's semantically and structurally correct.
  13. maxxd

    Extract database values

    It shouldn't be showing anything at all. You're not using the dollar sign on either dept_id, then you're not using dept_id and you're making up $actid out of apparently nowhere. In addition to that, you're overwriting the value of $result on each iteration through the foreach loop, meaning that even if everything worked correctly and there were no typos in the code, you'd only expect to get the last result and the code is doing exactly what you're asking it to do.
  14. maxxd

    Search for any word in SQL Search

    You could also look into the full text search - https://dev.mysql.com/doc/refman/8.0/en/fulltext-search.html I know the link is to version 8.0 documentation, but full text has been available since at least 5.5.
  15. maxxd

    how to space out my review texts

    Barand's right by pointing out not to constrain the height. Your height is the same as your line height, which is why you're getting overlapping text. Kill that and (if necessary) add a display: block; to the .review rule set and that should do it.
×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.