Jump to content

requinix

Administrators
  • Content Count

    10,908
  • Joined

  • Last visited

  • Days Won

    198

requinix last won the day on March 14

requinix had the most liked content!

Community Reputation

746 Excellent

About requinix

  • Rank
    Headless Administrator

Profile Information

  • Gender
    Not Telling
  • Location
    America/Los_Angeles

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. requinix

    your editor is retaining this

    You can't delete posts at all...
  2. 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.
  3. requinix

    Says

    Sounds like you have something somewhere that overwrites the $mysqli variable.
  4. 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.
  5. 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.
  6. Maybe I'm missing it but I don't see anything in there that sets the "time" in the database.
  7. 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.
  8. 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.
  9. requinix

    pass parameter to activate onclick

    Well yeah, you didn't include the onclick with those links. You need that.
  10. 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.
  11. requinix

    pass parameter to activate onclick

    That doesn't answer my question...
  12. 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?
  13. Remember the thing I said about running the query manually?
×

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.