Code: Select all
$lang = array_merge($lang, [
Code: Select all
$lang = array_merge($lang, [
/////////////////////////////------------------------------------------ Edit only below this line ---------------------------------/////////////////////////////
'CUSTOMINDEXPAGE_WELCOME' => 'Welcome to',
'CUSTOMINDEXPAGE_ACCOUNT' => 'Don’t have an account yet?',
'CUSTOMINDEXPAGE_COPYRIGHT' => 'Copyright',
'CUSTOMINDEXPAGE_RIGHTS' => 'All rights reserved.',
'CONTACT_HELP' => 'Need help?<br>',
'CONTACT_US' => 'Contact Us.',
Code: Select all
<!DOCTYPE html>
<html lang="en">
<head>
<link href="{{ DMZX_CUSTOMINDEXPAGE_INDEX_CSS }}" rel="stylesheet">
<meta charset="UTF-8">
<title>{{ SITENAME }}</title>
<meta name="description" content="Login - Register Template">
<meta name="author" content="{{ SITENAME }}">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="main.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
</head>
<body>
<div style="height:100px;"><br></div>
<div id="container-login"{% if not S_REGISTER_ENABLED %} class="container-noregister"{% endif %}>
<div id="title">
<span>{{ lang('CUSTOMINDEXPAGE_WELCOME') }}<br>{{ SITENAME }}</span>
</div>
<div class="register">
<form style="display: inline" action="{{ DMZX_U_LOGIN_LOGOUT }}"><button id="register-link">{{ lang('LOGIN_LOGOUT') }}</button></form>
</div>
<div class="privacy">
<a href="{{ U_TERMS_USE }}">{{ lang('TERMS_USE') }}</a> | <a href="{{ U_PRIVACY }}">{{ lang('PRIVACY') }}</a>
</div>
{% if S_REGISTER_ENABLED %}
<div class="register">
{{ lang('CUSTOMINDEXPAGE_ACCOUNT') }}
<form style="display: inline" action="{{ U_REGISTER }}"><br><button id="register-link2">{{ lang('REGISTER') }}</button>
<br><br>
</form>
<div class="register">
<span>{{ lang('CONTACT_HELP') }}</span><br>
<form style="display: inline" action="{{ U_CONTACTADMIN }}"><button id="register-link3">{{ lang('CONTACT_US') }}</button></form>
</div>
<div>
{{ lang('SUPPORT_US') }}
</div>
<div class="cp-text">
© {{ lang('CUSTOMINDEXPAGE_COPYRIGHT') }} {{ DMZX_CUSTOMINDEXPAGE_BOARD_CURRENT_YEAR}} {{ SITENAME }} • {{ lang('CUSTOMINDEXPAGE_RIGHTS') }}
</div>
{% endif %}
</div>
</div>
</body>
</html>
Code: Select all
@import url('https://fonts.googleapis.com/css?family=Lobster');
body {
margin: 0;
padding: 0;
font-family: 'Lobster', sans-serif;
color: #F2F2F2;
background-image: url(/images/cssmagic_images/black_stripe4_nzb.png);
height: 100%;
background-repeat: no-repeat;
background-size: cover;
}
#container-login {
position: relative;
top: 10%;
margin: auto;
width: 460px;
height: 395px;
border-radius: 1em;
border: 1px solid #eac712;
text-align: center;
}
#container-register {
background-color: #1D1F20;
position: relative;
top: 20%;
margin: auto;
width: 460px;
height: 395px;
border-radius: 0.35em;
box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.2);
text-align: center;
}
#title {
position: relative;
margin: 10px 0px;
color:#eecc33;
width: 100%;
font-size: 30px;
}
.lock {
position: relative;
top: 2px;
}
.input {
margin: auto;
width: 240px;
border-radius: 4px;
background-color: #373b3d;
padding: 8px 0px;
margin-top: 15px;
}
.input-addon {
float: left;
background-color: #373b3d;
border: 1px solid #373b3d;
padding: 4px 8px;
border-right: 1px solid rgba(255, 255, 255, 0.05);
}
input[type=checkbox] {
cursor: pointer;
}
input[type=text] {
color: #949494;
margin: 0;
background-color: #373b3d;
border: 1px solid #373b3d;
padding: 6px 0px;
border-radius: 3px;
}
input[type=text]:focus {
border: 1px solid #373b3d;
}
input[type=password] {
color: #949494;
margin: 0;
background-color: #373b3d;
border: 1px solid #373b3d;
padding: 6px 0px;
border-radius: 3px;
}
input[type=password]:focus {
border: 1px solid #373b3d;
}
input[type=email] {
color: #949494;
margin: 0;
background-color: #373b3d;
border: 1px solid #373b3d;
padding: 6px 0px;
border-radius: 3px;
}
input[type=email]:focus {
border: 1px solid #373b3d;
}
.forgot-password {
position: relative;
bottom: 0%;
}
.forgot-password a:link {
color: #C1C3C6;
text-decoration: none;
}
.forgot-password a:visited {
color: #C1C3C6;
text-decoration: none;
}
.forgot-password a:hover {
color: #FFF;
transition: color 1s;
}
.privacy {
margin-bottom: 10px;
position: relative;
font-size: 16px;
bottom: 0%;
}
.privacy a:link {
color: #F2F2F2;
text-decoration: none;
}
.privacy a:visited {
color: #949494;
text-decoration: none;
}
.privacy a:hover {
color: #C1C3C6;
transition: color 1s;
}
*:focus {
outline: none;
}
.remember-me {
margin: 10px 0;
}
input[type=submit] {
padding: 6px 15px;
background: #373E4A;
color: #C1C3C6;
border: 0 none;
cursor: pointer;
border-radius: 3px;
}
.register, .contact {
margin: auto;
padding: 2px 0 10px;
text-align: center;
width: 90%;
border-top: 1px solid #C1C3C6;
}
.cp-text {
margin: 5px -10px;
color: #F2F2F2;
text-shadow: 0 1px rgba(255, 255, 255, 0.1);
font-size: 16px;
}
.clearfix {
clear: both;
}
#register-link {
margin-top: 10px;
padding: 6px 25px;
background: #eac712;
color: #000000;
font-weight: bold;
cursor: pointer;
border-radius: 3px;
border: 1px solid #f2f2f2;
}
#register-link:hover {
border-color: #FF007F;
-webkit-box-shadow: 0px 0px 8px 3px rgb(40 140 251 / 20%) inset;
box-shadow: 0px 0px 8px 3px rgb(40 140 251 / 20%) inset;
}
#register-link2:hover {
border-color: #FF007F;
-webkit-box-shadow: 0px 0px 8px 3px rgb(40 140 251 / 20%) inset;
box-shadow: 0px 0px 8px 3px rgb(40 140 251 / 20%) inset;
}
#register-link3:hover {
border-color: #FF007F;
-webkit-box-shadow: 0px 0px 8px 3px rgb(40 140 251 / 20%) inset;
box-shadow: 0px 0px 8px 3px rgb(40 140 251 / 20%) inset;
}
#register-link2 {
margin-top: 10px;
padding: 6px 25px;
background: #eac712;
color: #000000;
font-weight: bold;
cursor: pointer;
border-radius: 3px;
border: 1px solid #f2f2f2;
}
#register-link3 {
margin-top: 10px;
padding: 6px 25px;
background: #eac712;
color: #000000;
font-weight: bold;
cursor: pointer;
border-radius: 3px;
border: 1px solid #f2f2f2;
}
Code: Select all
<?php
/**
*
* @package phpBB Extension - Custom index page
* @copyright (c) 2021 dmzx - https://www.dmzx-web.net
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
*
*/
if (!defined('IN_PHPBB'))
{
exit;
}
if (empty($lang) || !is_array($lang))
{
$lang = [];
}
// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
//
// Some characters for use
// ’ » “ ” …
$lang = array_merge($lang, [
/////////////////////////////------------------------------------------ Edit only below this line ---------------------------------/////////////////////////////
'CUSTOMINDEXPAGE_WELCOME' => 'Welcome to',
'CSSMAGICS' => 'The home of cssmagic',
'CUSTOMINDEXPAGE_ACCOUNT' => 'Don’t have an account yet?',
'CONTACT_HELP' => 'Need help?',
'CONTACT_US' => 'Contact clight77',
'SUPPORT_US' => 'Please consider a donation to support us.',
'CUSTOMINDEXPAGE_COPYRIGHT' => 'Copyright',
'CUSTOMINDEXPAGE_RIGHTS' => 'All rights reserved.',
/////////////////////////////------------------------------------------ Edit only above this line ---------------------------------/////////////////////////////
]);
Code: Select all
/app.php/index?&sid=c26c4b8ec2636c49214c45f098
Fixed. It was an old plesk index.html that caused the errorPeterC wrote: 27 Dec 2024, 10:47 How do I enable it correct on subdomains?
I does not work on test . mydomain . com or test . mydomain . com/custom_page
But it does work on test . mydomain . com/index.php
Good to see that you found it
Thank you
Great!dmzx wrote: 28 Dec 2024, 21:16 yes it's hides your forum for Google indeed.
Best extension to hide information!