Club System

This commit is contained in:
2026-06-02 20:54:38 +02:00
parent f4dc336c88
commit 8eb94ff05d
44 changed files with 412 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
{
"from_class": "XF\\Entity\\User",
"to_class": "RomhackPlaza\\Master\\XF\\Entity\\User",
"execute_order": 10,
"active": true
}

View File

@@ -0,0 +1,5 @@
{
"XF-Entity-User_RomhackPlaza-Master-XF-Entity-User.json": {
"hash": "811593d6f012a53b9fa2ced871de96a9"
}
}

View File

@@ -0,0 +1,14 @@
{
"club_request-approval_queue_handler_class.json": {
"hash": "e46546c5b569b04e7ad740a672d217cd"
},
"club_request-entity.json": {
"hash": "547d2af8708a4c569b3b09fdd9308880"
},
"romhackplaza_entry-entity.json": {
"hash": "8686ffd261eb8c1698a3ec6e31118f02"
},
"romhackplaza_entry-report_handler_class.json": {
"hash": "3e3d009b1b4671a506accc2e920307b2"
}
}

View File

@@ -0,0 +1,5 @@
{
"content_type": "club_request",
"field_name": "approval_queue_handler_class",
"field_value": "RomhackPlaza\\Master\\ApprovalQueue\\ClubRequest"
}

View File

@@ -0,0 +1,5 @@
{
"content_type": "club_request",
"field_name": "entity",
"field_value": "RomhackPlaza\\Master\\Entity\\ClubRequest"
}

View File

@@ -0,0 +1,5 @@
{
"content_type": "romhackplaza_entry",
"field_name": "entity",
"field_value": "RomhackPlaza\\Master\\Entity\\Entry"
}

View File

@@ -0,0 +1,5 @@
{
"content_type": "romhackplaza_entry",
"field_name": "report_handler_class",
"field_value": "RomhackPlaza\\Master\\Report\\Entry"
}

View File

@@ -0,0 +1,14 @@
<?php
// ################## THIS IS A GENERATED FILE ##################
// DO NOT EDIT DIRECTLY. EDIT THE CLASS EXTENSIONS IN THE CONTROL PANEL.
/**
* @noinspection PhpIllegalPsrClassPathInspection
* @noinspection PhpMultipleClassesDeclarationsInOneFile
*/
namespace RomhackPlaza\Master\XF\Entity
{
class XFCP_User extends \XF\Entity\User {}
}

View File

@@ -0,0 +1,5 @@
{
"romhackplaza.json": {
"hash": "02d554f377cebf4d2532162b1c223e64"
}
}

View File

@@ -0,0 +1,6 @@
{
"icon": "",
"display_order": 500,
"advanced": false,
"debug_only": false
}

18
_output/option_hint.php Normal file
View File

@@ -0,0 +1,18 @@
<?php
// ################## THIS IS A GENERATED FILE ##################
// DO NOT EDIT DIRECTLY. EDIT THE OPTIONS IN THE CONTROL PANEL.
/**
* @noinspection PhpMultipleClassDeclarationsInspection
* @noinspection PhpIllegalPsrClassPathInspection
*/
namespace XF;
/**
* @property non-negative-int|null $rhpz_club_node_id Club Parent Node ID
*/
class Options
{
}

View File

@@ -0,0 +1,5 @@
{
"rhpz_club_node_id.json": {
"hash": "96114ee498a669ab50a1bc32768d3969"
}
}

View File

@@ -0,0 +1,13 @@
{
"edit_format": "spinbox",
"edit_format_params": "",
"data_type": "unsigned_integer",
"sub_options": [],
"validation_class": "",
"validation_method": "",
"advanced": false,
"default_value": "0",
"relations": {
"romhackplaza": 1
}
}

View File

@@ -0,0 +1,6 @@
{
"permission_type": "flag",
"interface_group_id": "romhackplaza",
"display_order": 4,
"depend_permission_id": ""
}

View File

@@ -0,0 +1,6 @@
{
"permission_type": "flag",
"interface_group_id": "romhackplaza",
"display_order": 5,
"depend_permission_id": ""
}

View File

@@ -0,0 +1,6 @@
{
"permission_type": "flag",
"interface_group_id": "romhackplaza",
"display_order": 6,
"depend_permission_id": ""
}

View File

@@ -0,0 +1,6 @@
{
"permission_type": "flag",
"interface_group_id": "romhackplaza",
"display_order": 9,
"depend_permission_id": ""
}

View File

@@ -0,0 +1,6 @@
{
"permission_type": "flag",
"interface_group_id": "romhackplaza",
"display_order": 10,
"depend_permission_id": ""
}

View File

@@ -0,0 +1,6 @@
{
"permission_type": "flag",
"interface_group_id": "romhackplaza",
"display_order": 7,
"depend_permission_id": ""
}

View File

@@ -0,0 +1,6 @@
{
"permission_type": "flag",
"interface_group_id": "romhackplaza",
"display_order": 8,
"depend_permission_id": ""
}

View File

@@ -0,0 +1,6 @@
{
"permission_type": "flag",
"interface_group_id": "romhackplaza",
"display_order": 11,
"depend_permission_id": ""
}

View File

@@ -0,0 +1 @@
Club Parent Node ID

View File

@@ -0,0 +1 @@
RomhackPlaza Options

View File

@@ -0,0 +1 @@
Can Edit My Entries

View File

@@ -0,0 +1 @@
Can Edit Others Entries

View File

@@ -0,0 +1 @@
Can Moderate Entries

View File

@@ -0,0 +1 @@
Can See Hidden Entries

View File

@@ -0,0 +1 @@
Can See Locked Entries

View File

@@ -0,0 +1 @@
Can See Others Drafts

View File

@@ -0,0 +1 @@
Can See Rejected Entries

View File

@@ -0,0 +1 @@
Can Submit Entry in Published

View File

@@ -0,0 +1,11 @@
{
"api_romhackplaza_entry_.json": {
"hash": "5f1609f559980b44af09fd85c3b34a30"
},
"public_clubs_.json": {
"hash": "a10d34d7ce33cb577dc85906353d1bb2"
},
"public_romhackplaza_entry_.json": {
"hash": "2c40d7266fcc22a5727830a69af2360c"
}
}

View File

@@ -0,0 +1,11 @@
{
"route_type": "api",
"route_prefix": "romhackplaza_entry",
"sub_name": "",
"format": "",
"build_class": "",
"build_method": "",
"controller": "RomhackPlaza\\Master:Entry",
"context": "",
"action_prefix": ""
}

View File

@@ -0,0 +1,11 @@
{
"route_type": "public",
"route_prefix": "clubs",
"sub_name": "",
"format": "",
"build_class": "",
"build_method": "",
"controller": "RomhackPlaza\\Master:Club",
"context": "",
"action_prefix": ""
}

View File

@@ -0,0 +1,11 @@
{
"route_type": "public",
"route_prefix": "romhackplaza_entry",
"sub_name": "",
"format": ":int<id>",
"build_class": "",
"build_method": "",
"controller": "RomhackPlaza\\Master:Entry",
"context": "",
"action_prefix": ""
}

View File

@@ -0,0 +1,11 @@
<xf:macro id="approval_queue_macros::item_message_type"
arg-content="{$content}"
arg-user="{$content.User}"
arg-messageHtml="{$content.description}"
arg-contentDate="{$content.request_date}"
arg-typePhraseHtml="Club Request"
arg-headerPhrase="{$content.title}"
arg-spamDetails="{$spamDetails}"
arg-unapprovedItem="{$unapprovedItem}"
arg-handler="{$handler}"
/>

View File

@@ -0,0 +1,11 @@
<xf:title>Submit Club Request</xf:title>
<xf:form action="{{ link('clubs/save') }}" ajax="true" class="block">
<div class="block-container">
<div class="block-body">
<xf:textboxrow name="title" label="Title" required="required" />
<xf:textarearow name="description" label="Description" rows="4" required="required" />
</div>
<xf:submitrow submit="Submit" icon="save" />
</div>
</xf:form>

View File

@@ -0,0 +1,4 @@
<div class="block-row block-row--separated">
{{ phrase('content:') }}
{$report.content_info.description}
</div>