Jump to content

cyberRobot

Moderators
  • Posts

    3,092
  • Joined

  • Last visited

  • Days Won

    34

cyberRobot last won the day on September 19 2022

cyberRobot had the most liked content!

3 Followers

About cyberRobot

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

89,876 profile views

cyberRobot's Achievements

Prolific Member

Prolific Member (5/5)

137

Reputation

27

Community Answers

  1. It was less about the "packing" and more about the irrelevant keywords. So you're good. 😊
  2. Here's a quick example: <?php $meta = array( '<meta name="viewport" content="width=device-width, initial-scale=1">', '<meta name="resource-type" content="document">', '<meta http-equiv="Content-Type" content="text/html; charset=utf-8">' ); echo implode($meta); ?>
  3. As for the code, how is $meta populated? Are you able to get it so $meta only contains the meta tags for the page being viewed? If so, you could skip the loop and do something like this instead echo implode($meta);
  4. For what it's worth, Google also isn't the only search engine that ignores the keywords meta tag when it comes to ranking. Unfortunately, there's too many people willing to pack those meta tags with irrelevant content in order to boost their rankings. Do you consider the description meta tag as part of the "usual list"? The meta tag can be useful for pages that don't have a description paragraph for search engines to display in their results listing.
  5. The solution will of course depend on what you are trying to accomplish. If the bulk of the code in the function is the same for both jobs, you might be able to keep that code in a single function. Then build another function(s) to handle the unique parts of each job type. If you need further assistance, we'll likely need to see the function code for each job.
  6. The JavaScript code is likely running before the DOM is loaded. The following page provides more information (and examples) for detecting when the DOM is loaded: https://developer.mozilla.org/en-US/docs/Web/API/Window/load_event As requinix mentioned, the browser's developer console is a good place to see if there are errors. Note that you'll need to temporarily remove (or comment out) the following line from your code to use the console: document.addEventListener('contextmenu', event => event.preventDefault());
  7. In case you're interested, and you're using HTML5, the <details> tag works like an accordion box...and doesn't require JavaScript. More information (including examples and browser support info) can be found here: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details
  8. The following w3school page talks about collapsing a website navigation for smaller/mobile screens: https://www.w3schools.com/howto/howto_js_mobile_navbar.asp
  9. Note that rule #5 also mentions that advertising isn't allowed. I'm guessing Barand was hinting at posts like this crossing that line. Of course, limited leeway is given in certain aspects of the forum.
  10. Welcome DigitalDev and good luck with your new career path!
  11. The classes seem to work when I paste them into the w3schools.com demo here: https://www.w3schools.com/w3css/tryit.asp?filename=tryw3css_cards_photo Are you familiar with using your browser's console to analyze the CSS rules being applied to an element on a page? If so, have you tried right-clicking the element that you expect to be centered and seeing what styles are applied to that element? That might provide a clue as to why it's not centered.
  12. Have you tried outputting $holiday_remain_time, to make sure it contains the expected values for "total_year_holiday_hours_complete" and "total_year_holiday_hours"? If not, try adding the following after the variable is defined: print '<pre>' . print_r($holiday_remain_time, true) . '</pre>';
  13. Like ginerjm, I'm not sure I understand the issue / question. However, looking through the code and screenshots, I see that the href attribute in your anchor tag is missing a quote. Perhaps changing this echo ' <a href="kitab= ' . $a["id"] . '>'; to this echo ' <a href="kitab= ' . $a["id"] . '">'; will fix the issue. Note the double quote (") before the greater than symbol (>) at the end.
  14. It sounds like you are trying to access your scripts from different levels of your website hierarchy. For example, you want to access the nav.php script from your main root folder, as well as for the pages under the "models" and "john" folders. Is that correct? If that's the case, I would modify those include statements so that they are root relative. <?php include "{$_SERVER['DOCUMENT_ROOT']}/include/nav.php" ?>
  15. In other words, do you want the gray box to grow/shrink based on the amount of text available? If so, remove "height" from both blocks. Then to prevent the gray box from being smaller than the image boxes, you could use "min-height" instead.
×
×
  • 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.