From 3d25ad7de4fdbb3eba2cde2a62422e6be5d79a0a Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Tue, 25 Aug 2026 22:57:22 +0000
Subject: [PATCH] =It's been a minute. I went through the Routes and associated Managers and ensured they played together well. Reworked the Cache.php, and I think I caught all the references. Moving away from JVBase() root class, to individuall classes that are Instanced. Double checked for the ABSPATH check in every file, and added index.php to every directory that didn't already have it. Also still working on the MenuBlock to work with WooCommerce for now for Northeh
---
base/users.php | 45 ++++++++++++++++++++++++---------------------
1 files changed, 24 insertions(+), 21 deletions(-)
diff --git a/base/users.php b/base/users.php
index 483882f..2b06309 100644
--- a/base/users.php
+++ b/base/users.php
@@ -1,4 +1,7 @@
<?php
+if (!defined('ABSPATH')) {
+ exit;
+}
/**
* JVB_USER -> defines user roles. Mainly for Dashboard/Directory sites
* Structure: slug => $options
@@ -13,8 +16,8 @@
* ]
* - manage_others = (array) of post types this role can manage other users items
* - can_register = (bool) if true, this user can self register
- * - profile = (string) associated post type to treat as archive page, as registered in JVB_CONTENT
- * - register_fields = (array) of field names available in registration, as defined in settings OR associated profile JVB_CONTENT
+ * - profile = (string) associated post type to treat as archive page, as registered in Registrar
+ * - register_fields = (array) of field names available in registration, as defined in settings OR associated profile post Registrar
* - approve_new = (bool) if true, user content is hidden until verified by admin/other verified users
* - keep_stats = (bool) if true, creates a statistics table that tracks how much content is created per user per day
* - settings = (array) of fields users can modify
@@ -25,25 +28,25 @@
*/
$defaults = [];
-if (array_key_exists('enthusiast', JVB_SITE) && JVB_SITE['enthusiast'] === true) {
- $defaults['enthusiast'] = [
- 'label' => 'Enthusiast',
- 'has_dashboard' => true,
- 'can_create' => [],
- 'can_register' => true,
- 'can_favourite' => true,
- 'keep_stats' => true,
- 'join_text' => 'Save your favourites. Get Notified.',
- 'join_title' => 'Welcome to the Scene.',
- 'join_description' => [
- 'Save your favourites for easy access',
- 'Get notified when your favourite artists add new content',
- 'Stay in the loop with local flash days and events',
- 'Discover styles and artists that match your vision'
- ],
- 'join_bonus' => '<strong>BONUS: </strong>Everything\'s free. And always will be. We work with partners vetted by the community to keep the lights on.',
- ];
-}
+//if (array_key_exists('enthusiast', JVB_SITE) && JVB_SITE['enthusiast'] === true) {
+// $defaults['enthusiast'] = [
+// 'label' => 'Enthusiast',
+// 'has_dashboard' => true,
+// 'can_create' => [],
+// 'can_register' => true,
+// 'can_favourite' => true,
+// 'keep_stats' => true,
+// 'join_text' => 'Save your favourites. Get Notified.',
+// 'join_title' => 'Welcome to the Scene.',
+// 'join_description' => [
+// 'Save your favourites for easy access',
+// 'Get notified when your favourite artists add new content',
+// 'Stay in the loop with local flash days and events',
+// 'Discover styles and artists that match your vision'
+// ],
+// 'join_bonus' => '<strong>BONUS: </strong>Everything\'s free. And always will be. We work with partners vetted by the community to keep the lights on.',
+// ];
+//}
$users = array_merge($defaults, apply_filters('jvb_user', []));
define('JVB_USER', $users);
--
Gitblit v1.10.0