forked from rDrama/rDrama
1
0
Fork 0
rDrama/files/templates/admin
HeyMoon 7c040367fa Bring back orgies (watchparties), now controllable by admins, and generally better in all ways (#165)
This PR adds orgies back into rdrama. Long ago, snakes made the original orgy code, and it was super fun. But he had to rush it out, and ended up making it a bit unsustainable, and had a couple questionable coding decisions, which meant that it had to be removed. Hey, the man literally did it in a few hours before the DB trial continued, lmao.

Anyways, I took my own approach to it. I do not use iframes, i just just repurpose code from /chat window. Because I had that freedom, I also moved things around to make the user experience a bit better. I also added a title to give users some context about what's happening. Check it out

![image](/attachments/6719146c-4922-4d75-967d-8d424a09b198)

Most importantly, this is all configurable from the site. Admins with the permission "ORGIES" will see this in their control panel

![image](/attachments/423d6046-a11d-4e84-bd2c-a2a641afd552)

Nigga, idk where to put it, so I made my own category.

If there is no orgy in progress, admins will see this:

![image](/attachments/7c64b9fa-cdf4-4986-a0c4-f2324878062e)

Click the button, and, viola, the orgy begins.

If there is an orgy in progress, the page will look like this:

![image](/attachments/b65be4b3-5db1-43cb-8857-7d3a8ea24ca7)

Click the button, and the orgy stops.

If an orgy is in progress, navigating to /chat will take the user to the orgy seemlessly. But what if they don't want to participate, liek some kind of spoilsport? Just navigate to /old_chat.

That's just about it, it's really that simple. I have lots of ideas for the future, but I'll let that wait til later :).

A few notes about implementation:
 - I moved some functionality out of /templates/chat.html and into /templates/util/macros.html. This is just so I could reference the code directly from my new template, /templates/orgy.html.
 - The orgy is stored as a single row in the new table "orgies". Okay, I know this is a little silly, but you know what they say: "if it's stupid and it works, it's not stupid". (tbf the oceangate ceo also said that)

Co-authored-by: Chuck Sneed <sneed@formerlychucks.net>
Reviewed-on: rDrama/rDrama#165
Co-authored-by: HeyMoon <heymoon@noreply.fsdfsd.net>
Co-committed-by: HeyMoon <heymoon@noreply.fsdfsd.net>
2023-07-02 23:55:37 +00:00
..
admin_home.html Bring back orgies (watchparties), now controllable by admins, and generally better in all ways (#165) 2023-07-02 23:55:37 +00:00
alt_votes.html move disabling buttons to bottom.js 2023-03-07 02:21:08 +02:00
alts.html rename variable 2023-06-29 23:10:31 +03:00
app.html rename submissions to posts 2023-06-08 02:26:32 +03:00
apps.html remove unnecessary for attribute 2023-03-03 09:23:05 +02:00
badge_admin.html cachebust badges 2023-03-15 06:05:59 +02:00
banned_domains.html move 2 js files to /admin folder 2023-03-17 16:22:29 +02:00
delete_media.html add /admin/delete_media 2023-02-19 21:31:26 +02:00
dm_media.html complement 519fbef9a7 2023-05-12 18:42:21 +03:00
edit_rules.html move disabling buttons to bottom.js 2023-03-07 02:21:08 +02:00
image_posts.html rename submissions to posts 2023-06-08 02:26:32 +03:00
loggedin.html [DO NOT MERGE] titlesssssssssss (#468) 2022-11-21 02:52:22 -06:00
loggedout.html [DO NOT MERGE] titlesssssssssss (#468) 2022-11-21 02:52:22 -06:00
lottery.html [DO NOT MERGE] titlesssssssssss (#468) 2022-11-21 02:52:22 -06:00
orgy_control.html Bring back orgies (watchparties), now controllable by admins, and generally better in all ways (#165) 2023-07-02 23:55:37 +00:00
patrons.html restore transparency for namelock badge 2023-05-16 03:25:31 +03:00
removed_comments.html get rid of useless tabs and spaces 2023-01-01 13:36:20 +02:00
removed_posts.html rename submissions to posts 2023-06-08 02:26:32 +03:00
reported_comments.html get rid of useless tabs and spaces 2023-01-01 13:36:20 +02:00
reported_posts.html rename submissions to posts 2023-06-08 02:26:32 +03:00
shadowbanned.html user listings: ban reasons are safe 2022-12-15 20:29:28 +00:00
shadowbanned_tooltip.html minor bugfix 2022-12-13 20:50:38 +02:00
update_assets.html remove typo'd class 2023-03-21 19:12:38 +02:00