Delete -forum from forum name

This commit is contained in:
Akif9748 2023-05-26 19:55:45 +03:00
parent fed6ea0668
commit 4811c7a0e3
16 changed files with 23 additions and 25 deletions

View file

@ -57,7 +57,6 @@ permissions: ["see_deleted_message"]
``` ```
#### Fixes: #### Fixes:
- delete -forum from forum name
- Admin deleting other admins. - Admin deleting other admins.
- send public to common/public - send public to common/public
@ -76,8 +75,8 @@ permissions: ["see_deleted_message"]
- add ban button to user profile - add ban button to user profile
#### Fixes: #### Fixes:
- BETTER SETUP PAGE - BETTER SETUP PAGE: use setup everytime
- better user.ejs - better user.ejs: https://github.com/mdbootstrap/bootstrap-profiles
- add threads, messages etc. to extra folder - add threads, messages etc. to extra folder
- add category to threads - add category to threads
- working reset button - working reset button

View file

@ -3,8 +3,8 @@
"codename": "bootstrap_black", "codename": "bootstrap_black",
"language": "en" "language": "en"
}, },
"forum_name": "akf", "forum_name": "akf-forum",
"description": "Akf-forum!", "description": "Akf-forum offical site!",
"limits": { "limits": {
"title": 128, "title": 128,
"message": 1024, "message": 1024,

View file

@ -43,7 +43,7 @@ app.post("/", RL(24 * 60 * 60_000, 5), async (req, res) => {
to: email, to: email,
subject: name + ", please verify your email", subject: name + ", please verify your email",
html: ` html: `
<h1>Verify your email in ${forum_name}-forum</h1> <h1>Verify your email in ${forum_name}</h1>
<a href="${host}/auth/email?code=${user.email_code}">Click here to verify your email</a> <a href="${host}/auth/email?code=${user.email_code}">Click here to verify your email</a>
` `
}, (err) => { }, (err) => {

View file

@ -1,7 +1,7 @@
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title><%= title || dataset.forum_name +"-forum" %></title> <title><%= title || dataset.forum_name %></title>
<meta name="description" content="<%= dataset.description %>"> <meta name="description" content="<%= dataset.description %>">
<link rel="icon" type="image/x-icon" href="/favicon.ico"> <link rel="icon" type="image/x-icon" href="/favicon.ico">
<link href="/themes/bootstrap_black/bootstrap-night.min.css" rel="stylesheet"> <link href="/themes/bootstrap_black/bootstrap-night.min.css" rel="stylesheet">

View file

@ -11,7 +11,7 @@
<span class="navbar-toggler-icon"></span> <span class="navbar-toggler-icon"></span>
</button> </button>
<a class="navbar-brand" href="/"><%= dataset.forum_name.toUpperCase() %><span>-FORUM</span></a> <a class="navbar-brand" href="/"><%= dataset.forum_name.toUpperCase() %></a>
<div class="collapse navbar-collapse" id="navbarText"> <div class="collapse navbar-collapse" id="navbarText">
<ul class="navbar-nav me-auto mb-2 mb-lg-0"> <ul class="navbar-nav me-auto mb-2 mb-lg-0">

View file

@ -1,7 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<%- include("extra/meta", {title: "Welcome to the "+dataset.forum_name+"-forum!" }) %> <%- include("extra/meta", {title: "Welcome to the " + dataset.forum_name }) %>
<body> <body>

View file

@ -5,7 +5,7 @@
<% } %> <% } %>
<div class="header"> <div class="header">
<a class="logo" href="/"><%= dataset.forum_name.toUpperCase() %> <span>FORUM</span></a> <a class="logo" href="/"><%= dataset.forum_name.toUpperCase() %></a>
<div class="buttons"> <div class="buttons">
<% if (user){ %> <% if (user){ %>

View file

@ -1,7 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<%- include(dataset.getFile(dataset.theme.codename +"/views/extra/meta"), {title: "Welcome to the "+dataset.forum_name+"-forum!" }) %> <%- include(dataset.getFile(dataset.theme.codename +"/views/extra/meta"), {title: "Welcome to the "+dataset.forum_name }) %>
<body> <body>

View file

@ -11,15 +11,14 @@
<h1 style="color: var(--main);">Setup</h1> <h1 style="color: var(--main);">Setup</h1>
<h2 style="color: var(--second);">There is default settings for akf-forum, you not need to edit them, but you can! And, the first registered user will be admin.</h2> <h2 style="color: var(--second);">There is default settings for akf-forum, you not need to edit them, but you can! And, the first registered user will be admin.</h2>
<form class="search" method="POST"> <form class="search" method="POST">
Forum name: Forum name:
<input class="input" type="text" name="forum_name" value="akf" required> <input class="input" type="text" name="forum_name" value="akf-forum" required>
Forum description: Forum description:
<input class="input" type="text" name="description" value="Akf-forum!" required> <input class="input" type="text" name="description" value="Akf-forum!" required>
Default state for new threads, change with "APPROVAL" for approval system: Default state for new threads, change with "APPROVAL" for approval system:
<input class="input" type="text" name="default_thread_state" value="OPEN" required> <input class="input" type="text" name="default_thread_state" value="OPEN" required>
Default state for new users, change with "APPROVAL" for approval system: Default state for new users, change with "APPROVAL" for approval system:
<input class="input" type="text" name="default_thread_state" value="ACTIVE" required> <input class="input" type="text" name="default_user_state" value="ACTIVE" required>
Domain of the forum, defaulty setted: Domain of the forum, defaulty setted:
<input class="input" type="text" name="host" id="domain" value="Akf-forum!" required> <input class="input" type="text" name="host" id="domain" value="Akf-forum!" required>

View file

@ -1,7 +1,7 @@
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title><%= title || dataset.forum_name +"-forum" %></title> <title><%= title || dataset.forum_name %></title>
<meta name="description" content="<%= dataset.description %>"> <meta name="description" content="<%= dataset.description %>">
<link rel="icon" type="image/x-icon" href="/favicon.ico"> <link rel="icon" type="image/x-icon" href="/favicon.ico">
<link rel="stylesheet" href="/themes/default_black/main.css" /> <link rel="stylesheet" href="/themes/default_black/main.css" />

View file

@ -1,7 +1,7 @@
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title><%= title || dataset.forum_name +"-forum" %></title> <title><%= title || dataset.forum_name %></title>
<meta name="description" content="<%= dataset.description %>"> <meta name="description" content="<%= dataset.description %>">
<link rel="icon" type="image/x-icon" href="/favicon.ico"> <link rel="icon" type="image/x-icon" href="/favicon.ico">
<link rel="stylesheet" href="/themes/default_white/main.css" /> <link rel="stylesheet" href="/themes/default_white/main.css" />

View file

@ -1,6 +1,6 @@
<!DOCTYPE html> <!DOCTYPE html>
<html id="XF" lang="tr-TR" dir="LTR" data-app="public" data-template="forum_list" data-container-key data-content-key data-logged-in="true" data-cookie-prefix="xf_" data-csrf="1685091272,f052c88e4c4aa12fbe73a08e269625fa" class="has-no-js v_2_0 template-forum_list"> <html id="XF" lang="tr-TR" dir="LTR" data-app="public" data-template="forum_list" data-container-key data-content-key data-logged-in="true" data-cookie-prefix="xf_" data-csrf="1685091272,f052c88e4c4aa12fbe73a08e269625fa" class="has-no-js v_2_0 template-forum_list">
<%- include("extra/meta", {title: "Welcome to the "+dataset.forum_name+"-forum!" }) %> <%- include("extra/meta", {title: "Error" }) %>
<body data-template="forum_list"> <body data-template="forum_list">
<div class="p-pageWrapper" id="top"> <div class="p-pageWrapper" id="top">

View file

@ -2,14 +2,14 @@
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge" /> <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover"> <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<title><%= title || dataset.forum_name +"-forum" %></title> <title><%= title || dataset.forum_name %></title>
<meta name="theme-color" content="#1e1e1e" /> <meta name="theme-color" content="#1e1e1e" />
<meta name="apple-mobile-web-app-title" content="Silicone"> <meta name="apple-mobile-web-app-title" content="Silicone">
<link rel="alternate" type="application/rss+xml" title="RSS feed for <%= title || dataset.forum_name +"-forum" %>" href="/bolum/-/index.rss" /> <link rel="alternate" type="application/rss+xml" title="RSS feed for <%= title || dataset.forum_name %>" href="/bolum/-/index.rss" />
<meta property="og:site_name" content="<%= title || dataset.forum_name +"-forum" %>" /> <meta property="og:site_name" content="<%= title || dataset.forum_name %>" />
<meta property="og:type" content="website" /> <meta property="og:type" content="website" />
<meta property="og:title" content="<%= title || dataset.forum_name +"-forum" %>" /> <meta property="og:title" content="<%= title || dataset.forum_name %>" />
<meta property="twitter:title" content="<%= title || dataset.forum_name +"-forum" %>" /> <meta property="twitter:title" content="<%= title || dataset.forum_name %>" />
<meta name="description" content="<%= dataset.description %>"> <meta name="description" content="<%= dataset.description %>">
<link rel="icon" type="image/x-icon" href="/favicon.ico"> <link rel="icon" type="image/x-icon" href="/favicon.ico">
<meta property="og:description" content="<%= dataset.description %>" /> <meta property="og:description" content="<%= dataset.description %>" />

View file

@ -1,7 +1,7 @@
<header class="p-header" id="header"> <header class="p-header" id="header">
<div class="p-header-inner"> <div class="p-header-inner">
<div class="p-header-content"> <div class="p-header-content">
<a style="font-size: 40px;" href="/"><%= dataset.forum_name.toUpperCase() %><span>-FORUM</span></a> <a style="font-size: 40px;" href="/"><%= dataset.forum_name.toUpperCase() %></a>
</div> </div>
</div> </div>
</header> </header>

View file

@ -12,7 +12,7 @@
<div class="p-body-inner"> <div class="p-body-inner">
<div class="p-body-header"> <div class="p-body-header">
<div class="p-title "> <div class="p-title ">
<h1 class="p-title-value"><%=dataset.forum_name%>-forum</h1> <h1 class="p-title-value"><%=dataset.forum_name%></h1>
<div class="p-title-pageAction"> <div class="p-title-pageAction">
<a href="/threads/create" class="button--cta button button--icon button--icon--write" data-xf-click="overlay" rel="nofollow"><span class="button-text"> <a href="/threads/create" class="button--cta button button--icon button--icon--write" data-xf-click="overlay" rel="nofollow"><span class="button-text">
Create Thread Create Thread

View file

@ -1,6 +1,6 @@
<!DOCTYPE html> <!DOCTYPE html>
<html id="XF" lang="tr-TR" dir="LTR" data-app="public" data-template="forum_list" data-container-key data-content-key data-logged-in="true" data-cookie-prefix="xf_" data-csrf="1685091272,f052c88e4c4aa12fbe73a08e269625fa" class="has-no-js v_2_0 template-forum_list"> <html id="XF" lang="tr-TR" dir="LTR" data-app="public" data-template="forum_list" data-container-key data-content-key data-logged-in="true" data-cookie-prefix="xf_" data-csrf="1685091272,f052c88e4c4aa12fbe73a08e269625fa" class="has-no-js v_2_0 template-forum_list">
<%- include("extra/meta", {title: "Welcome to the "+dataset.forum_name+"-forum!" }) %> <%- include("extra/meta", {title: "Welcome to the " + dataset.forum_name }) %>
<body data-template="forum_list"> <body data-template="forum_list">
<div class="p-pageWrapper" id="top"> <div class="p-pageWrapper" id="top">