Jump to content

requinix

Administrators
  • Content Count

    10,917
  • Joined

  • Last visited

  • Days Won

    199

Everything posted by requinix

  1. requinix

    using forms and post data like a router

    No, it's not a burden. It's how 95% of the web works now.
  2. requinix

    utf-8 encoding breaks with template files

    No problem. Free SEO content 👍
  3. requinix

    utf-8 encoding breaks with template files

    If you View Source the page, do the characters appear properly?
  4. requinix

    pass parameter to activate onclick

    When using someone else's libraries, make sure you know what they do. .w3-modal{z-index:3;display:none;padding-top:100px;position:fixed;left:0;top:0;width:100%;height:100%;overflow:auto;background-color:rgb(0,0,0);background-color:rgba(0,0,0,0.4)} .w3-modal is hidden by default. That means this rule div.w3-modal:not(:target) { display: none; } which also makes it hidden isn't going to help, and thus has to be inverted to div.w3-modal:target { display: block; }
  5. requinix

    Duplicated namespace short-names

    Alias it. use NotionCommotion\Domain\Entity\Account\Account as EntityAccount; use NotionCommotion\Domain\Repository\Account\Account as RepositoryAccount; Having an "Account" class inside an "Account" namespace is a separate issue, and I would probably promote it to the Entity/Repository namespace. One of the whole points of namespaces is that you don't have to worry about what classes in other namespaces are called, so don't rename the two Accounts merely because they share an otherwise appropriate name.
  6. requinix

    pass parameter to activate onclick

    Works over here. Does it work from within Events.php?
  7. requinix

    Extra characters in a image link string

    %3C represents a < character.
  8. requinix

    Duplicated namespace short-names

    For the record, unqualified names (no namespace) like "Account" are always class names, so namespace NotionCommotion\Api\Account; use NotionCommotion\Domain\Entity\Account\Account; class AccountService { public function read():Account { // } } is fine. This also works namespace NotionCommotion\Api\Account; use NotionCommotion\Domain\Entity\Account; class AccountService { public function read():Account\Account { // } } (even if it's starting to look weird) because qualified names like "Account\Account" will never overlap with the current namespace, even if they have the same labels, and it uses the normal resolution rules: since "Account" was use-d, Account\Account resolves to NotionCommotion\Domain\Entity\Account\Account, while if it wasn't use-d then it would be NotionCommotion\Api\Account\Account\Account.
  9. requinix

    Says

    Sounds like you have something somewhere that overwrites the $mysqli variable.
  10. requinix

    pass parameter to activate onclick

    It should be div.w3-modal (I was looking at other stuff and got confused), and it should be display:none not display:all.
  11. requinix

    pass parameter to activate onclick

    ...oh wait, this code is not located on the page that renders Events.php? Okay, this all makes quite a bit more sense now. You can do this showing/hiding stuff with pure CSS, which will also make it work automatically with Events.php#Event1 links. Remove all the Javascript that deals with showing and hiding, including the various onclicks, and add a <style> a.w3-modal:not(:target) { display: none; } </style> to Events.php. The :target selector is true when you hit anchors like #Event1, so that CSS will hide the w3-modals that are not the current anchor. Which also means going to just Events.php (no anchor) will hide all of them by default.
  12. Maybe I'm missing it but I don't see anything in there that sets the "time" in the database.
  13. If it's not being set automatically, and if $insert_buy = $db->insert('u_paid_videos', [ 'id_user' => $user_id, 'id_video' => $video_id, 'session_key' => $_SESSION['session_key'], 'video_play_price' => (string)$video_cost, // the cost at the time of purchase // this is the default video cost not the $video_cost_new 'video_title' => $video->title, // storing the title 'user_id_uploaded' => $video->user_id, // the user who uploaded the video 'earned_amount' => $uploader_amount, ]); you're not setting it either, then of course it'll end up as zero.
  14. You've got no data, Lieutenant Dan. Look in the table for data you expected to see accounted for, then look at its "time" and "user_id_uploaded" values to understand why it wasn't being returned by your query. If you see some data but still don't understand why, screenshot it.
  15. requinix

    pass parameter to activate onclick

    Well yeah, you didn't include the onclick with those links. You need that.
  16. requinix

    pass parameter to activate onclick

    What I'm looking for is what your HTML markup looks like after you do I'm assuming that when you say that, you mean you're setting the href and keeping the onclick. But I don't know what else. So I'd like you to do what you say you would normally do, then post what you end up with that doesn't work.
  17. requinix

    pass parameter to activate onclick

    That doesn't answer my question...
  18. requinix

    pass parameter to activate onclick

    Linking to an anchor will not stop an onclick from firing. What does your markup look like when you add the href?
  19. Remember the thing I said about running the query manually?
  20. echo "SELECT SUM(earned_amount) AS sum FROM ".T_U_PAID_VIDEOS." c WHERE `time` >= ".$day_start." AND `time` <= ".$day_end." AND user_id_uploaded = ".$pt->user->id;
  21. The ones that are being used in the query. By using whatever tool you like to interact with your database. I'm guessing phpMyAdmin.
  22. Then apparently the queries didn't return anything. What if you try running them yourself manually? Are you sure the variables have the values you think they do?
  23. requinix

    Unknown encryption

    If it's literally encrypted then who knows. Probably a file-based database system like SQLite, but you'd have to decrypt it. If not encrypted then the file extension might be your best bet. Or you can look at the program to see what kinds of libraries it uses and hope it didn't try to roll its own solution.
×

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.