Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
Disable the action button
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / Theme code and CSS hacks/mods

2020-05-21 08:57:48
Disable the action button of the seedbonus or other if you do not have enough points to exchange.

Add to your css of your theme.


/* Cacher Bouton non actif sur Seedbonus */
   input[type="button"]:disabled,
   input[type="submit"]:disabled,
   input[type="reset"]:disabled,
button.bouton {
   cursor: default;
   pointer-events: none;
}


Add input :
class="bouton"

2020-05-21 09:49:15
pointer-events disable only UI events, like click, hover, cursor sets, tool tips, etc, there are 2 statements that actually do this, yours is more cross-compatible and IE-reverted. When your working with a form input, unless specified otherwise - the browse engine will automatically fall back to system cursor. pointer-events is only really useful for links and situations when your working with JS framework and CSS mix, and overriding the plugins style decision without resorting to the less preffered !important declarations.

Remember, hidden input is never needed for any call except name & value. CSS will have no effect on inputs rendered or declared hidden. They are really intended for passing over INT or STR values over POST to pass over ID/value to the script interpreter to continue parsing. Otherwise, your relying on session data and thats a bit out of the scope here.

Declared -  visibility:hidden, display: none
Rendered - type="hidden"

HTML spec states that <button> and <input> buttons can be declared disabled by appending disabled before close. This hasn't changed across HTML 4 or 5. So a PHP condition is logical.

Also.. anyone can go into the browser and disable CSS (a click away for me on Safari), and reveal that button and start attacking the POST with requests, something I'm technically prone to using mysql_query(), but my traffic is heavily monitored and I pay for this. Use PHP conditions and while CSS will work, the PHP solution posted is server-side and is a bit more direct without potential for scripting shenanigans, and reliable as its reading $CURUSER. Just a note.
2020-05-22 01:29:39
"STorrents2020, post: 68621, member: 20382":

pointer-events disable only UI events, like click, hover, cursor sets, tool tips, etc, there are 2 statements that actually do this, yours is more cross-compatible and IE-reverted. When your working with a form input, unless specified otherwise - the browse engine will automatically fall back to system cursor. pointer-events is only really useful for links and situations when your working with JS framework and CSS mix, and overriding the plugins style decision without resorting to the less preffered !important declarations.

Remember, hidden input is never needed for any call except name & value. CSS will have no effect on inputs rendered or declared hidden. They are really intended for passing over INT or STR values over POST to pass over ID/value to the script interpreter to continue parsing. Otherwise, your relying on session data and thats a bit out of the scope here.

Declared -  visibility:hidden, display: none
Rendered - type="hidden"

HTML spec states that <button> and <input> buttons can be declared disabled by appending disabled before close. This hasn't changed across HTML 4 or 5. So a PHP condition is logical.

Also.. anyone can go into the browser and disable CSS (a click away for me on Safari), and reveal that button and start attacking the POST with requests, something I'm technically prone to using mysql_query(), but my traffic is heavily monitored and I pay for this. Use PHP conditions and while CSS will work, the PHP solution posted is server-side and is a bit more direct without potential for scripting shenanigans, and reliable as its reading $CURUSER. Just a note.

too heavy! LOL if I had put an info: I would have put what you just said, thank you for the others who would like to know about it so much ?
2020-05-22 01:45:51
Way too much caffeine lol sorry!! Lmao
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 2
  • Members: 0
  • Guests online: 2
  • Comments: 3
  • Messages: 1,728