3.3.x Extensions Database 3.2 / 3.3Custom index page

<span class="qte-attr qte_32_33-qte">3.2.x & 3.3.x</span>
User avatar

Fast_Eddie
Users
Users
Posts: 279
Joined: 15 Aug 2015, 20:25
    Windows 10 Chrome

Re: Custom index page

Post by Fast_Eddie »

Just add this?

Code: Select all

$lang = array_merge($lang, [
:beers: Retirement 2024!

User avatar

clight77
Donator
Donator
Posts: 502
Joined: 24 Sep 2015, 16:23
    Windows 10 Chrome

Re: Custom index page

Post by clight77 »

No that should already be in there,.

User avatar

Fast_Eddie
Users
Users
Posts: 279
Joined: 15 Aug 2015, 20:25
    Windows 10 Chrome

Re: Custom index page

Post by Fast_Eddie »

This is what I have:

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.',  

User avatar

clight77
Donator
Donator
Posts: 502
Joined: 24 Sep 2015, 16:23
    Windows 10 Chrome

Re: Custom index page

Post by clight77 »

I guess you have already tried editing the ext ?

I had to do a lot of eding to get what I wanted...
I can zip my settingssome of course you can't use but most of them you can, give you some I deas at least..
Likely a css issue I would think.

User avatar

clight77
Donator
Donator
Posts: 502
Joined: 24 Sep 2015, 16:23
    Windows 10 Chrome

Re: Custom index page

Post by clight77 »

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 ---------------------------------/////////////////////////////
]);

User avatar

Dead Man
Users
Users
Posts: 19
Joined: 07 Jul 2024, 17:08
    Windows 10 Chrome

Re: Custom index page

Post by Dead Man »

Anyone know how to get quick Login to work in index page. It logs user in but doesn't redirect to main forum.

It redirects to this instead. One needs to retype site name again and it will load you logged in.

Code: Select all

/app.php/index?&sid=c26c4b8ec2636c49214c45f098

User avatar

PeterC
Users
Users
Posts: 4
Joined: 26 Dec 2024, 18:57
    Windows 10 Chrome

Re: Custom index page

Post by PeterC »

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

User avatar

PeterC
Users
Users
Posts: 4
Joined: 26 Dec 2024, 18:57
    Windows 10 Chrome

Re: Custom index page

Post by PeterC »

PeterC 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
Fixed. It was an old plesk index.html that caused the error :rolling:

User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6464
Joined: 13 Jan 2014, 21:45
    Windows 10 Chrome

Re: Custom index page

Post by dmzx »

PeterC wrote: 27 Dec 2024, 12:19
PeterC 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
Fixed. It was an old plesk index.html that caused the error :rolling:
Good to see that you found it :thumbup:

User avatar

PeterC
Users
Users
Posts: 4
Joined: 26 Dec 2024, 18:57
    Windows 10 Chrome

Re: Custom index page

Post by PeterC »

dmzx wrote: 27 Dec 2024, 12:24
PeterC wrote: 27 Dec 2024, 12:19
PeterC 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
Fixed. It was an old plesk index.html that caused the error :rolling:
Good to see that you found it :thumbup:
Thank you :thumbup:
Does it also keep the bots out? and from google searc?

User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6464
Joined: 13 Jan 2014, 21:45
    Android Chrome

Re: Custom index page

Post by dmzx »

Yes it's hides your forum for Google indeed.
Best extension to hide information!

User avatar

PeterC
Users
Users
Posts: 4
Joined: 26 Dec 2024, 18:57
    Windows 10 Chrome

Re: Custom index page

Post by PeterC »

dmzx wrote: 28 Dec 2024, 21:16 yes it's hides your forum for Google indeed.
Best extension to hide information!
Great! :thumbup:

Post Reply Previous topicNext topic