11,557 Posted Topics
Re: Hello and welcome to DaniWeb!! What you are describing is a Javascript technique called infinite scrolling. Here at DaniWeb, we use this technique on pages such as https://www.daniweb.com/programming/web-development/6 and the Javascript library that we use can be found at https://infinite-scroll.com/ Depending on how the infinite scroll is generated, you may … | |
Re: If the webpage keeps disappearing and then reappearing in Google’s index when you manually resubmit it, it is most likely because Google doesn’t consider the quality of that page as valuable. You also have no control over what portion of a webpage Google chooses to show in the search results. … | |
Re: I tried to format your code properly, but it's unreadable because it has no curly braces and none of it is indented. We use the Markdown posting syntax here at DaniWeb, which means that each line of code needs to be indented by at least 4 spaces, with a blank … | |
You may have encountered a weird error message trying to log into DaniWeb today. We were victim to a signup attack yesterday where 1000+ bots figured out a way around our CAPTCHA and signed up. I've tightened up the signup + login forms today to prevent this from happening again … | |
Re: > Here's task - Add a CSS rule for all span elements that are children of h2 elements that sets the text color to #FA9F42 and its font size to 0.75em. This applies to all `<span>` tags that are anywhere inside `<h2>`. In other words, the span can appear as … | |
Re: Click the little code button (third from the left in the editor toolbar) to insert code. | |
Re: You can also post code as a text file attachment, but it won’t be highlighted or get line numbers. | |
I'm back!! After a month-long break, filled with family visits, getting married, and going on our honeymoon, I'm finally back! Family is still in town for another couple of weeks, but I'm going to start returning to my desk most afternoons. | |
Re: Welcome to DaniWeb. Thanks for joining! | |
Sometimes we have a need to take a simple PHP array and represent it as an encoded string. One use case that we have for this at DaniWeb is when a new user signs up, and we ask them to click on a link that was sent to them via … | |
![]() | Re: If php is just spitting out a blank page, that means there’s some fatal error. Check the error logs or change php error reporting to echo the error message. (Sorry, I’m on my phone so it’s difficult for me to type out the code, but something along the lines of … |
Re: Hi there! It seems like you've got all the complicated stuff working. Graphics! Interactive players! Flying tokens! It sounds to me like a little timer to end the level is simple stuff. So now as far as posting the code for the timer so that we can take a look … | |
Re: I would store them as plain text, but I suppose it does matter what purpose you are storing the data for. Does it need to be searchable? | |
Re: This isn't the type of question we answer anymore here at DaniWeb because, in the past, it just turned into a gigantic spam-fest. However, I would recommend finding lots of links to such resources at www.blackhatworld.com However, I don't believe backlinks from forum posts will be very useful to you … | |
Sometimes we want to know if the webpage was fetched over an SSL connection (e.g. the URL begins with https:// instead of http://). This way, if an end-user is accessing an insecure version of our site, we can redirect them to the secure version. The following PHP function called `no_ssl()` … | |
Re: It really depends on what type of company you have and what the goals of your website are. | |
Mine is READY. When I’m not playing in hard mode, my second is PIOUS. | |
For some reason, PHP class constants don't play nicely with inheritance. For example, suppose you have the following code: class Foo { const VAR = 'foo'; public function __construct() { echo self::VAR; } } class Bar extends Foo { const VAR = 'bar'; } // This will actually print out … | |
Re: Putting what pritaeas is suggesting to code, it would look something like this: $path = $SERVER['SCRIPT_NAME']; echo "\nThe path is: $path"; $pieces = explode('/', $path); echo "\nThe pieces are:"; var_dump($pieces); $last = end($pieces); echo "\nThe last piece is: $last"; | |
Re: When I was building my API, I lived in Postman. | |
Re: $("#subtot").val() is javascript but you are attempting to pass it into a php function. Php doesn’t know what to do with it. | |
Re: Sorry, I don’t have any experience developing for it. Are you stuck on a bug? | |
Re: Oh shoot! Well that’s a bug. In the meantime, feel free to give yourself a pat on the back. | |
I’ve made some UI changes to our forums page after my husband told me it looked too old school and like a 1990s webpage. Let me know your thoughts: https://www.daniweb.com/forums As you may have noticed, I also made some changes to the sorting and filter buttons on forum listing pages. … | |
How can I tell how much bot traffic I'm getting in Google Analytics? I've been doing a lot of work on improving my crawl budget and I want to see if Google Analytics reports similar data to the Search Console Crawl Stats charts. | |
Re: > As an author of embedded software which has no UI, "Any project" is overreaching Firstly, this is the UI/UX Design forum, so I would say it applies to any project within the context that this post was made in. That being said, UI and UX are very different things. … | |
Re: May I ask what functionality you are looking for? A simple date picker is already a native feature of all modern web browsers. (Albeit they each implement it slightly differently, so the look and feel isn’t uniform across web browsers and platforms.) Simply use `<input type="date">` | |
Re: Hi and welcome! Do you have a question about error handling with php? Are you getting just a blank page? | |
Re: According to a Google search, [Syncfusion](https://www.syncfusion.com/document-processing/pdf-framework/net) seems to be a solution but unfortunately it isn't free. Personally, I use [wkhtmltopdf](https://wkhtmltopdf.org/downloads.html), which is open source, but I am in a Linux environment and use it with PHP. I don't know if there's a way to use it with C#. | |
Re: It is by design that if you receive a popup stating that you have a new message, the conversation does not automatically reappear in your conversation list, if you have previously archived the conversation. However, once you click into view the conversation, it should unarchive itself. | |
Re: I don't understand your question. Which deployment forms? I don't know what you mean by that. | |
Re: We changed the location of avatars and attachments two days ago. I think you might have been looking at a cached page. | |
Re: Back when I was in high school and college, I was really into C++ and I wanted to eventually be a low level software engineer. My college friend [Dan](https://www.daniweb.com/members/12/samaru) was really into web development and was encouraging me to get into web development as well. Specifically, he was really into … | |
Re: We used to have something like this, where you could double click on code and it would put it into a textarea. I’ll figure something out but it might have to wait until after the weekend. | |
Re: The query cache, that rproffitt linked to, used to cache MySQL result sets for situations where an identical query is made and there have been no table writes to any of the tables involved in the query. However, it has since been deprecated. I recommend using something like Memcached to … | |
Re: Hi and welcome to DaniWeb! I’m pretty active in the SEO and digital marketing industry so feel free to start up some discussions. :) | |
Re: Robots meta tags and robots.txt do two completely different things. Which you use depends upon the specific use case for each of your pages. The robots.txt file is used to disallow certain bots (e.g. Googlebot) from accessing parts of your site. You can specify which files or folders should be … | |
Re: Set it on a <div> container inside the body tag. | |
Re: I could have sworn I just answered a very similar question recently, but I now can't find it in my latest posts, so maybe I was dreaming. That being said, I will echo the previous sentiments that it depends on what you need and what you're looking for. They each … | |
By default, PHP's clone keyword just creates a shallow copy of an object, and doesn't work as desired if the object contains properties that are also objects, because it doesn't create real copies of those objects but rather just pointers to the initial version of them. This function creates a … | |
Re: I know I already said hi to you via private message, but hello again and a very warm welcome! | |
Re: Hi and welcome to DaniWeb! I snipped the link to your Telegram group because we don't allow solicitations in our forums. That being said, people are free to reply to you here. However, it does seem a little concerning that the app would make health diagnoses without the patient being … | |
Re: Hi there and welcome to DaniWeb! I noticed when you initially posted your topic got accidentally flagged by our spam bot. Sorry about that. | |
What do you consider "ethical SEO"? What types of general techniques do you use? (No need to be specific or anything here.) The only reason I ask is because everyone has their own definitions of black hat, white hat, ethical, not-so-ethical, etc. :) | |
The End.