Jump to content

requinix

Administrators
  • Posts

    15,286
  • Joined

  • Last visited

  • Days Won

    435

Everything posted by requinix

  1. Obvious question: why isn't the first query returning what you want, instead of you faking the data yourself? Second question: How did you, as a human being, decide what to do with $array2 to get that merged version? Because I can't see how [ID=1,NumberOfTickets=21] [ID=2,NumberOfTickets=12] translates into [name=NumOfTickets,table=DatabaseModelTable].
  2. So with this, <a href="<?php print wp_kses_post($item['linkedin']); ?>"><i class="fab fa-linkedin-in"></i></a> the link is wp_kses_post(...) and you don't want to show the <a> if the link is empty. Get the value of the link into a variable, use it with the if statement, then only show the <a> if not empty. <?php $linkedinlink = wp_kses_post($item['linkedin']); if ($linkedinlink) { printf('<a href="%s"><i class="fab fa-linkedin-in"></i></a>', htmlspecialchars($linkedinlink)); } ?> Remember to use htmlspecialchars when you do not know if a value is 100% safe for HTML.
  3. Try adding back the @s that you had before.
  4. Don't know what an "elementor" is... You have decided that you need an if/else to solve a problem. What is the problem itself? What field, and why do you need to know if it's empty?
  5. java.com is Oracle. The open-source community made their own - at least two, even, but OpenJDK is the frontrunner.
  6. Homebrew invented their own terminology for things that everyone else had communally decided on. So that doesn't help. Plus, Java isn't just "Java" since Oracle took over, so there is no simple "java" to install anymore either. Assuming you want the JDK (for development) and not just the JRE (which isn't a thing either, technically, but it's the minimum needed to run Java programs), the "formula" you want is openjdk. https://formulae.brew.sh/formula/openjdk Java 8, aka 1.8, is the oldest anyone cares about, by the way.
  7. Short answer is there's probably no reasonable way. Upload the text file to a temporary location and then move it where you want. That way there's no partial file.
  8. They're the same thing. "master" and "HEAD" are both git terms, and the full explanation is too long, so suffice it to say that they'll both refer you to the most recent version of install.sh.
  9. No, no, I mean what's the problem with allowing text like ŝ̬ô̬m̬̂ê̬t̬̂ê̬x̬̂t̬̂? The forum's own software is doing it right now.
  10. Why is it a problem? If that's what the user entered then you should be showing it back to them...
  11. Forms only submit the data in their fields. Your form has no data in it at all. If you don't need anything else but the SID then forget the form entirely and go with AJAX instead.
  12. Any particular reason you aren't doing a normal form? Like <form method="post"> <label>SID: <input type="text" name="sid"></label> <button type="submit">Submit</button> </form> Because what you're doing is... I don't know? You've got bits and pieces of multiple paradigms going on in here, and none of them are going to work like that.
  13. More like PhpSpreadsheet doesn't support something that's... well, it's weird, to put form elements into a spreadsheet. That's not what spreadsheets are for. If you want better automation, have you considered VBA? Subscribing is half of it. Are your notification settings set up to send you emails? Check your spam folder, just in case?
  14. It sure looks like that function used to exist, but I can't find it anywhere in WP's history... It's probably a dumb function anyway: try replacing the line with $result = $theme_default_options[$name];
  15. It'll be fine if you do this in a way that isn't perfect. Namely, by not using jQuery and instead using inline Javascript events. First, take your link, make it open the content page in the frame if it doesn't already, and then add an onclick that calls a Javascript function. It should look something like this: <a target="content" href="doc1.htm" onclick="andAlsoDoc2();"> Inside the menu page (not doc1 or doc2) add the Javascript for that function. Its code goes like <script> function andAlsoDoc2() { window.parent.frames["menu2"].location.assign("doc2.htm"); } </script> That looks in the parent window (which is the one with the frames), finds the frame named "menu2", and makes it navigate to doc2.htm. Notice that the function does not "return false": doing so would prevent the original action (ie. browsing to doc1) from happening, and you do want it to happen.
  16. Normally you solve this problem by not using frames. Is that an option? How much work are you willing to put into this? The alternative is Javascript: make your link open one of the pages (I suggest the content page) normally, then use Javascript to "open" the discography page in the other frame as well.
  17. They all have some sort of HTML you can copy into a page that will display what you want.
  18. Frames? There's a few approaches here. What's the nature of doc1 and doc2, and why do you need to load both of them at once?
  19. I'm not sure why you're getting HTML warnings when trying to load an Excel file. And it's just a warning. Is there a problem?
  20. I mention Homebrew because it's the easiest way (so I hear) to install packages on a Mac. You know, so you don't have to deal with any of this stuff.
  21. The purpose of downloading is to get the files onto your computer. Any of those options shown above are capable of doing that, so feel free to choose the one that works easiest for you.
  22. You aren't using Homebrew?
  23. CommonMark is not compatible with PHP 8 yet. https://github.com/krakjoe/cmark/issues/21 Uninstall, then try downloading this version and phpize ./configure make install
  24. You've restated the problem like you first did last week. What progress have you made with the example code that has been given to you? What code do you have now? What is happening with it, and what were you expecting to happen?
×
×
  • Create New...

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.