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: https://fsdfsd.net/rDrama/rDrama/pulls/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
|
|
|
{% extends "default.html" %}
|
|
|
|
|
|
|
|
{% block pagetitle %}Orgy Control Panel{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2023-10-29 12:51:00 +00:00
|
|
|
<div class="row my-5">
|
|
|
|
<div class="col">
|
|
|
|
<div class="settings mx-3">
|
|
|
|
<div id="description">
|
|
|
|
<h2>Orgy Control Panel</h2>
|
2023-11-04 21:36:05 +00:00
|
|
|
<span class="text-lg">Guide <a rel="noopener" href="https://rdrama.net/@HeyMoonster/wall/comment/5163373#context">here</a></span>
|
2023-10-29 12:51:00 +00:00
|
|
|
</div>
|
|
|
|
<div class="body d-lg-flex">
|
|
|
|
<div class="w-lg-100">
|
|
|
|
<form id="orgy" action="/admin/schedule_orgy" method="post" data-nonce="{{g.nonce}}" data-onsubmit="sendFormXHRReload(this)">
|
|
|
|
<div class="d-lg-flex border-bottom mt-5">
|
|
|
|
<div class="title w-lg-25">
|
|
|
|
<label for="title">Title</label>
|
|
|
|
</div>
|
|
|
|
<div class="body w-lg-100">
|
|
|
|
<input id="title" autocomplete="off" type="text" name="title" class="form-control" placeholder="Required">
|
|
|
|
</div>
|
2023-10-12 21:09:38 +00:00
|
|
|
</div>
|
2023-10-29 12:51:00 +00:00
|
|
|
<div class="d-lg-flex border-bottom mt-3">
|
|
|
|
<div class="title w-lg-25">
|
|
|
|
<label for="link">Link (youtube, twitch, rumble, mp4 file)</label>
|
|
|
|
</div>
|
|
|
|
<div class="body w-lg-100">
|
|
|
|
<input id="link" autocomplete="off" type="text" name="link" class="form-control" placeholder="Required">
|
|
|
|
</div>
|
2023-10-13 14:53:41 +00:00
|
|
|
</div>
|
2023-10-29 12:51:00 +00:00
|
|
|
<div class="d-lg-flex border-bottom mt-3">
|
|
|
|
<div class="title w-lg-25">
|
2023-11-04 21:36:05 +00:00
|
|
|
<label for="start_utc">Start time (as an <a rel="noopener" href="https://epochconverter.com">epoch timestamp</a>)</label>
|
2023-10-29 12:51:00 +00:00
|
|
|
</div>
|
|
|
|
<div class="body w-lg-100">
|
|
|
|
<input id="start_utc" autocomplete="off" type="number" step="any" name="start_utc" max="2147483647" class="form-control" placeholder="Optional. Leave blank to start orgy now.">
|
|
|
|
</div>
|
2023-08-01 07:38:30 +00:00
|
|
|
</div>
|
2024-03-01 17:03:21 +00:00
|
|
|
<input hidden name="formkey" value="{{v|formkey}}" class="notranslate" translate="no">
|
2023-10-29 12:51:00 +00:00
|
|
|
<div class="d-flex mt-3">
|
|
|
|
<input id="start-orgy" autocomplete="off" class="btn btn-primary ml-auto" type="submit" value="Schedule Orgy">
|
2023-08-01 07:38:30 +00:00
|
|
|
</div>
|
2023-10-29 12:51:00 +00:00
|
|
|
</form>
|
|
|
|
</div>
|
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: https://fsdfsd.net/rDrama/rDrama/pulls/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
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-10-13 15:56:12 +00:00
|
|
|
|
2023-10-29 12:51:00 +00:00
|
|
|
<div class="overflow-x-auto mt-3">
|
2024-02-12 14:18:13 +00:00
|
|
|
<table>
|
|
|
|
<thead>
|
2023-10-29 12:51:00 +00:00
|
|
|
<tr>
|
|
|
|
<th>Type</th>
|
|
|
|
<th>Title</th>
|
|
|
|
<th>Link</th>
|
|
|
|
<th>Starts on</th>
|
|
|
|
<th>Ends on</th>
|
|
|
|
<th class="disable-sort-click"></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
2023-10-13 15:56:12 +00:00
|
|
|
|
2023-10-29 12:51:00 +00:00
|
|
|
{% for orgy in orgies %}
|
|
|
|
<tr>
|
|
|
|
<td>{{orgy.type}}</td>
|
|
|
|
<td>{{orgy.title}}</td>
|
|
|
|
<td>{{orgy.data}}</td>
|
|
|
|
{% if orgy.started %}
|
|
|
|
<td>Started</td>
|
|
|
|
{% else %}
|
|
|
|
<td data-time="{{orgy.start_utc}}"></td>
|
|
|
|
{% endif %}
|
|
|
|
<td {% if orgy.end_utc %}data-time="{{orgy.end_utc}}"{% endif %}></td>
|
|
|
|
<td>
|
|
|
|
<button type="button" class="btn btn-danger btn-block" data-nonce="{{g.nonce}}" data-areyousure="remove_orgy(this, {{orgy.created_utc}})" data-onclick="areyousure(this)">Remove</button>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
</div>
|
2023-10-13 15:56:12 +00:00
|
|
|
|
2023-10-29 12:51:00 +00:00
|
|
|
<script defer src="{{'js/admin/orgies.js' | asset}}"></script>
|
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: https://fsdfsd.net/rDrama/rDrama/pulls/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
|
|
|
{% endblock %}
|