-
Posts
15,275 -
Joined
-
Last visited
-
Days Won
432
Everything posted by requinix
-
So apparently there are technical reasons why it can't delve into quotes like that: because they're embedded into posts according to the state of the source post at the time it was quoted. I've edited my posts to remove the username, but the truth is that once the content (with usernames attached) gets onto the internet, it's already been scraped and cached and archived. We can remove accounts and erase IP addresses and other identifying information from our database, but even if we could remove every instance of the username from the site (which can't include people manually writing out the name in their replies anyway) it's a trivial process to head over to Google or archive.org and see what they stored before that happened. At the very least, with the username removed from this thread, there's no way for anyone - myself included* - to find out what posts were associated with the author of this thread. * at least not once I've forgotten the username, which I mostly have already
-
At least it should... There might be some caches in play that still need to refresh? If it doesn't get fixed in a few minutes then I'll deal with it myself.
-
It will say "Guest".
-
Alright, then I'll do it in about 10 minutes.
-
No, I'm saying the account will get deleted but the threads and posts will not. They will get anonymized so they aren't associated with (what used to be) your account, but they will still exist.
-
Not you personally, no. To be clear, I'm only talking about not deleting content - as in posts. We can delete the account itself.
-
We don't delete content but we can anonymize it. I'll start the process in about 30 minutes in case you want to reply to that.
-
It's not possible unless you're running the web server on the same local network as the client. If that's the case then IIRC enable Kerberos authentication on the server.
-
Need more details. Or try from another angle. What kind of code do you want to write in order to get the data you need?
-
The select field should identify the row in the table - not the values in it. So if your "wholesale" row has ID #123 with price 100 and quantity 3, your select would say <option value="123">. You then take that ID and look it up in your database table to get the price and quantity. Why? Because a smart user can change the data in the select to be anything they want, which means I could choose quantity 10000 and price 0.01 if I wanted. "Can't you also change the ID 123 too?" Yes. And you can protect yourself against that far more easily than you can protect against a bad quantity or price.
-
Help with determining if file outputs subcategory
requinix replied to Chrisj's topic in PHP Coding Help
And what's the question? Best I can tell, you're asking for help trying to find out what code does. -
Favor traits with interfaces over inheritance
requinix replied to NotionCommotion's topic in PHP Coding Help
Unless I missed it, I didn't hear about any data that's different between the various users. Which means it's easier to go with a flattened approach: one single table holds all the users, and you can store the user type in a field. In code you can have multiple user classes with different methods for the different functionalities (and without any additional data). All three inherit from the base class and otherwise aren't related to each other. I don't see how traits or even interfaces fit into this. -
You try to echo the articles on a different page and... what? What happens? And given that you're doing this on a different page, is the code for category.php or loopnew.php even relevant?
-
Insert what number into where? What exactly is it you need to do? What's wrong with the HTML/PHP you have now?
-
Can you create cartons from individual pieces? If so then the system only needs to recognize that a "carton" is 15 pieces. Sure you'll display it different for the user, but ultimately it doesn't really matter because the person is getting 15. If not then you need two inventory items, cartons and pieces, a mechanism that can "break down" a carton into the individual pieces, and a system that will understand that it can do the breakdown (based on arithmetic) and deduct from either/both inventory counts as necessary.
-
ajaxleadsreport is an action (not a controller) which means it gets invoked by the controller (which is the class) when it handles the route. If the indexreport view needs to render the ajaxleadsreport view then the listsreport action (method) should pass the necessary information into the indexreport view which will eventually pass the necessary information into the ajaxleadsreport view. So the ajaxleadsreport action (method) is not going to be used. Action renders view which renders another view.
-
Have you tried simply calling the ajaxleadsreport method?
-
"Best" is extremely subjective. What ideas have you come up with so far?
-
If it has the undesired behavior with inline-block and the desired behavior without inline-block then it sounds like you've found the source of your problem. By editing the CSS? If it's there now then that probably means something needs to use it. If so then you need to do something special for your span, but without knowing more about... well, everything, it would be really hard to give any sort of specific advice. Perhaps you shouldn't be using a span at all?
-
The path. They provided concrete paths instead of using the SSH_AUTH_SOCK variable, suggesting either the variable was wrong or there are multiple socks and only one works.
-
Get values from array to feed to wp query terms array
requinix replied to rhand's topic in PHP Coding Help
It's been only two hours, and it's Thursday night in the US. Be patient. It sounds like you know what you need the tax_query to be, but it also sounds like you don't quite know how $event_cat_name is formed. What is the exact value of $event_cat_name? As in if you print_r it. -
How should I know? It's your website, not mine. You have to perform some forensic work to find out exactly what happened and when, then track that down to the flaw in your application/webserver/whatever, then address the flaw. Here, I think the most likely problem is an unvalidated upload of PHP code. So look for files that don't belong on the server.
-
You on a Mac? Is the $SSH_AUTH_SOCK path correct? I can find a number of comments talking about how mounting $SSH_AUTH_SOCK doesn't work.
-
Some problem lead to the malevolent software being added to your site. You have to find and fix that.
-
Method call working in one place but not the other
requinix replied to TechnoDiver's topic in PHP Coding Help
Are you sure that display() has executed by the time you try to call count()? What's the rest of the code involving the $comment object?