Scheduled Maintenance: 10-11-2025 Electricity company maintenance between 09:00 and 15:00.

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>
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Topic Author
dmzx
Founder
Founder
Status: Offline
User theme: Dark
Posts: 6469
Joined: Jan 13th, '14, 20:45
    Windows 10 Chrome

Custom index page

Post by dmzx »

Extension Name: Custom index page
Author: dmzx

Special thanks to: martin

Extension Description:
With Custom index page you can create a index page before showing your forum, all forum items are hided with this extension
Basic knowledge of HTML, CSS and coding is needed to adjust and make a beautiful index page.

../..

Screenshots:
Image

Image

Image

Extension Download:
Download-link
Custom index page v1.0.0
Installation:
  1. Download the latest release.
  2. Unzip the downloaded release, and change the name of the folder to `customindexpage`.
  3. In the `ext` directory of your phpBB board, create a new directory named `dmzx` (if it does not already exist).
  4. Copy the `customindexpage` folder to `/ext/dmzx/` if done correctly, you'll have the main extension class at
    (your forum root)/ext/dmzx/customindexpage/composer.json
  5. Navigate in the ACP to `Customise -> Manage extensions`
  6. Look for `Custom index page` under the Disabled Extensions list, and click its `Enable` link.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Topic Author
dmzx
Founder
Founder
Status: Offline
User theme: Dark
Posts: 6469
Joined: Jan 13th, '14, 20:45
    Windows 10 Chrome

Re: Custom index page

Post by dmzx »

Taken for explain.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

clight77
Donator
Donator
Status: Offline
User theme: Dark
Posts: 502
Joined: Sep 24th, '15, 14:23
    Windows 10 Chrome

Re: Custom index page

Post by clight77 »

Hi
Don't quite understand how or where to change yourdomain.com {{SITENAME}} to my name ?

Thanks

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Topic Author
dmzx
Founder
Founder
Status: Offline
User theme: Dark
Posts: 6469
Joined: Jan 13th, '14, 20:45
    Android Chrome

Re: Custom index page

Post by dmzx »

clight77 wrote: Apr 11th, '21, 14:29 Hi
Don't quite understand how or where to change yourdomain.com {{SITENAME}} to my name ?

Thanks
no {{ SITENAME }} is default in phpbb for your boardname.

out of the box it will take all, just install it and logout to check it.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

clight77
Donator
Donator
Status: Offline
User theme: Dark
Posts: 502
Joined: Sep 24th, '15, 14:23
    Windows 10 Chrome

Re: Custom index page

Post by clight77 »

Hmmm thought that, but on my test site it just says yourdomain.com.
Must be issue with default phpbb file.
I will leave it till Martin can have a look. :)

THKS

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Topic Author
dmzx
Founder
Founder
Status: Offline
User theme: Dark
Posts: 6469
Joined: Jan 13th, '14, 20:45
    Android Chrome

Re: Custom index page

Post by dmzx »

Yes sitename is default (clean installation) yourdomain.

If ACP on your main has your domain name it will take the correct name in the extension.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

clight77
Donator
Donator
Status: Offline
User theme: Dark
Posts: 502
Joined: Sep 24th, '15, 14:23
    Windows 10 Chrome

Re: Custom index page

Post by clight77 »

Found it in ACP/General/Board Settings, I never use that setting. DUH...

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Topic Author
dmzx
Founder
Founder
Status: Offline
User theme: Dark
Posts: 6469
Joined: Jan 13th, '14, 20:45
    Android Chrome

Re: Custom index page

Post by dmzx »

clight77 wrote: Apr 11th, '21, 14:45 Found it in ACP/General/Board Settings, I never use that setting. DUH...
It must be working out of the box, but if you want to wait np :wink:
your site give me the idea but you already know it :thumbup:

Like it here and will leave it installed.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

clight77
Donator
Donator
Status: Offline
User theme: Dark
Posts: 502
Joined: Sep 24th, '15, 14:23
    Windows 10 Chrome

Re: Custom index page

Post by clight77 »

Yep works good after putting my site name in ACP, I never use that.
Just now looking at changing main background color to my site image :)

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Topic Author
dmzx
Founder
Founder
Status: Offline
User theme: Dark
Posts: 6469
Joined: Jan 13th, '14, 20:45
    Android Chrome

Re: Custom index page

Post by dmzx »

clight77 wrote: Apr 11th, '21, 15:01 Yep works good after putting my site name in ACP, I never use that.
Just now looking at changing main background color to my site image :)
look into the css part in acp of the extension.

look for body part and change it to:

Code: Select all

     body {
  background: #2D3142;
  font-family: 'Raleway', sans-serif;
  background-image: url(/to_image);
  height: 100%;
  background-repeat: no-repeat;
  background-size: cover;
}   

change /to_image above to your url of the image.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

clight77
Donator
Donator
Status: Offline
User theme: Dark
Posts: 502
Joined: Sep 24th, '15, 14:23
    Windows 10 Chrome

Re: Custom index page

Post by clight77 »

Will do, need a coffee and walk the muttonhead :)

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

clight77
Donator
Donator
Status: Offline
User theme: Dark
Posts: 502
Joined: Sep 24th, '15, 14:23
    Windows 10 Chrome

Re: Custom index page

Post by clight77 »

This worked good.
Just have to add it to magic so it works for both light and dark :)

Thanks

Code: Select all

     body {
  color: #F2F2F2;	 
  font-family: 'Raleway', sans-serif;
  background-image: url(/images/cssmagic_images/black_stripe4.png);
  height: 100%;
  background-repeat: no-repeat;
  background-size: cover;
}  

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

clight77
Donator
Donator
Status: Offline
User theme: Dark
Posts: 502
Joined: Sep 24th, '15, 14:23
    Windows 10 Chrome

Re: Custom index page

Post by clight77 »

The result :)

Image

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

martin
Admin
Admin
Status: Offline
User theme: Dark
Posts: 5107
Joined: Apr 6th, '14, 14:12
    Linux Chrome

Re: Custom index page

Post by martin »

Back it up as i just fixed a small bug/style issue :rolling:
Image

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Anders
Users
Users
Status: Offline
User theme: Dark
Posts: 80
Joined: Sep 15th, '15, 06:15
    Windows 10 Chrome

Re: Custom index page

Post by Anders »

Goodmorning got my site up again some work lol and did see your custom index and did test it and i get this

Forbidden
You don't have permission to access /adm/index.php on this server.

Have inactivate all other extensions and still no good

And have version 3.3.4

SOLVED
it was darn mod security