diff --git a/_sakura/templates/misaki/main/profile.tpl b/_sakura/templates/misaki/main/profile.tpl
index c39ca2f..0af7de6 100644
--- a/_sakura/templates/misaki/main/profile.tpl
+++ b/_sakura/templates/misaki/main/profile.tpl
@@ -1,138 +1,150 @@
{% include 'global/header.tpl' %}
-{% if profile.notset or profile.user.id == 0 or profile.user.password_algo == 'nologin' %}
-user not found, don't forget to make this sexy
-{% else %}
-
-
-
-
-
-
-
- {{ profile.user.username }}
-
-
- {{ profile.ranktitle }}
-
-
-
-
-
Joined {{ profile.user.regdate|date("l Y-m-d H:i T") }}
-
{% if profile.user.lastdate == 0 %}User hasn't logged in yet.{% else %}Last Active {{ profile.user.lastdate|date("l Y-m-d H:i T") }}{% endif %}
-
-
+ {% if profile.checkPermission('SITE', 'DEACTIVATED') or profile.data.password_algo == 'nologin' or (profile.checkPermission('SITE', 'RESTRICTED') and (user.data.id != profile.data.id and not user.checkPermission('MANAGE', 'USE_MANAGE'))) %}
+
-{% if profile.user.userData.profileBackground %}
-
-{% endif %}
-{% endif %}
+ {% endif %}
{% include 'global/footer.tpl' %}
diff --git a/_sakura/templates/misaki/main/settings.tpl b/_sakura/templates/misaki/main/settings.tpl
new file mode 100644
index 0000000..ed2aa95
--- /dev/null
+++ b/_sakura/templates/misaki/main/settings.tpl
@@ -0,0 +1,19 @@
+{% include 'global/header.tpl' %}
+
+
+ {% include 'elements/settingsNavigation.tpl' %}
+
+
+
+ {{ page.title }}
+
+
+ {% for descline in page.description %}
+
{{ include(template_from_string(descline)) }}
+ {% endfor %}
+
+ {% include 'settings/' ~ current ~ '.tpl' %}
+
+
+
+{% include 'global/footer.tpl' %}
diff --git a/_sakura/templates/misaki/settings/general.home.tpl b/_sakura/templates/misaki/settings/general.home.tpl
new file mode 100644
index 0000000..27fb5a4
--- /dev/null
+++ b/_sakura/templates/misaki/settings/general.home.tpl
@@ -0,0 +1,2 @@
+
READ THIS BEFORE PUKING
+These template files were quickly thrown into place to allow switching between the development style and the stable one. You can switch in the Site Options section.
diff --git a/_sakura/templates/misaki/settings/general.options.tpl b/_sakura/templates/misaki/settings/general.options.tpl
new file mode 100644
index 0000000..69b96ab
--- /dev/null
+++ b/_sakura/templates/misaki/settings/general.options.tpl
@@ -0,0 +1,26 @@
+{% if options.fields %}
+
+{% else %}
+
- History
- {% if ((user.data.userData.userPage is defined and user.checkPermission('SITE', 'CHANGE_USERPAGE')) or user.checkPermission('SITE', 'CREATE_USERPAGE')) or user.checkPermission('SITE', 'CHANGE_AVATAR') or ((user.data.userData.userPage is defined and user.checkPermission('SITE', 'CHANGE_USERPAGE')) or user.checkPermission('SITE', 'CREATE_USERPAGE')) %}
-
Aesthetics
- {% if user.checkPermission('SITE', 'CHANGE_AVATAR') %}
- Avatar
- {% endif %}
- {% if (user.data.userData.profileBackground is defined and user.checkPermission('SITE', 'CHANGE_BACKGROUND')) or user.checkPermission('SITE', 'CREATE_BACKGROUND') %}
- Background
- {% endif %}
- {% if (user.data.userData.userPage is defined and user.checkPermission('SITE', 'CHANGE_USERPAGE')) or user.checkPermission('SITE', 'CREATE_USERPAGE') %}
- Userpage
- {% endif %}
- {% endif %}
-
+ {% for mname,mode in category.modes %}
+ {% if mode.access %}
+ {{ mode.title }}
+ {% endif %}
+ {% endfor %}
+ {% endfor %}
diff --git a/_sakura/templates/yuuno/global/header.tpl b/_sakura/templates/yuuno/global/header.tpl
index 529cadf..18bbd06 100644
--- a/_sakura/templates/yuuno/global/header.tpl
+++ b/_sakura/templates/yuuno/global/header.tpl
@@ -9,7 +9,7 @@
-
+
{% if page.redirect %}
{% endif %}
@@ -147,7 +147,7 @@
}
{% endif %}
- {% if php.self == '/profile.php' ? profile.data.userData.profileBackground : (user.checkPermission('SITE', 'CREATE_BACKGROUND') and user.data.userData.userOptions.profileBackgroundSiteWide == 'true' and user.data.userData.profileBackground) %}
+ {% if php.self == '/profile.php' ? profile.data.userData.profileBackground : (user.checkPermission('SITE', 'CREATE_BACKGROUND') and user.data.userData.userOptions.profileBackgroundSiteWide and user.data.userData.profileBackground) %}
initialiseParallax('userBackground');
{% endif %}
@@ -165,7 +165,9 @@
HomeNewsChat
- Forums
+ {% if user.checkPermission('FORUM', 'USE_FORUM') %}
+ Forums
+ {% endif %}
Search
{% if session.checkLogin %}
Members
@@ -179,7 +181,7 @@
MessagesManageSettings
- Logout
+ Logout
{% else %}
{% if sakura.lockAuth %}
Authentication is locked
@@ -196,7 +198,7 @@
- {% if php.self == '/profile.php' ? profile.data.userData.profileBackground : (user.checkPermission('SITE', 'CREATE_BACKGROUND') and user.data.userData.userOptions.profileBackgroundSiteWide == 'true' and user.data.userData.profileBackground) %}
+ {% if php.self == '/profile.php' ? profile.data.userData.profileBackground : (user.checkPermission('SITE', 'CREATE_BACKGROUND') and user.data.userData.userOptions.profileBackgroundSiteWide and user.data.userData.profileBackground) %}
{% endif %}
{% if not session.checkLogin and php.self != '/authenticate.php' %}
@@ -225,11 +227,11 @@
{% if user.checkPermission('SITE', 'RESTRICTED') %}
Your account is current in restricted mode!
-
A staff member has set your account to restricted mode most likely due to violation of the rules. You will temporarily not be able to use public features of the site. If you think this is a mistake please get in touch with one of our staff members.
+
A staff member has set your account to restricted mode most likely due to violation of the rules. While restricted you won't be able to use most public features of the site. If you think this is a mistake please get in touch with one of our staff members.