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

Sniper_E
VIP
VIP
Status: Offline
User theme: Dark
Posts: 1160
Joined: Oct 14th, '14, 17:01
    Windows 10 Chrome

Re: Custom index page

Post by Sniper_E »

This is a Google translation... EN to FR
customindexpage_fr.zip
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™

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

Alpha
Users
Users
Status: Offline
User theme: Dark
Posts: 21
Joined: Feb 14th, '23, 14:13
    Windows 10 Chrome

Re: Custom index page

Post by Alpha »

Sniper_E wrote: Apr 10th, '23, 04:22 This is a Google translation... EN to FR
customindexpage_fr.zip
Hi, super nickel, thank you friend. Solved for me.

Image

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

ssl
Users
Users
Status: Offline
User theme: Dark
Posts: 139
Joined: Aug 19th, '20, 10:54
    Mac OS X Opera

Re: Custom index page

Post by ssl »

In customindexpage.php replace this

Code: Select all

	'CUSTOMINDEXPAGE_ACCOUNT'			=> 'Vous n`avez pas encore de compte?',
by this

Code: Select all

	'CUSTOMINDEXPAGE_ACCOUNT'			=> 'Vous n`avez pas encore de compte ?',

In French there is always a space before the question mark, contrary to English
phpBB: 3.3.15 | PHP: 8.4
[Some French translation of extensions]

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

Alpha
Users
Users
Status: Offline
User theme: Dark
Posts: 21
Joined: Feb 14th, '23, 14:13
    Windows 10 Chrome

Re: Custom index page

Post by Alpha »

ssl wrote: Apr 10th, '23, 21:25 in customindexpage.php replace this

Code: Select all

	'CUSTOMINDEXPAGE_ACCOUNT'			=> 'Vous n`avez pas encore de compte?',
by this

Code: Select all

	'CUSTOMINDEXPAGE_ACCOUNT'			=> 'Vous n`avez pas encore de compte ?',

In French there is always a space before the question mark, contrary to English
Hi ssl it was fixed thanks to Sniper_E thank you

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

Sniper_E
VIP
VIP
Status: Offline
User theme: Dark
Posts: 1160
Joined: Oct 14th, '14, 17:01
    Windows 10 Chrome

Re: Custom index page

Post by Sniper_E »

ssl wrote: Apr 10th, '23, 21:25 In French there is always a space before the question mark, contrary to English
Duly noted. Google translate had that space before the ? and I ignorantly removed it. I understand that now.
A question...
I use French Vanilla creamer in my coffee. Do you Frenchman just call that Vanilla creamer over there?

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

Alpha
Users
Users
Status: Offline
User theme: Dark
Posts: 21
Joined: Feb 14th, '23, 14:13
    Windows 10 Chrome

Re: Custom index page

Post by Alpha »

Hi and again me, I managed to create this (image) but I can't do it for the line and create a button on "Contact us" and go down a little more please help me lol thank you

Sorry for my English, I'm French


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: 6485
Joined: Jan 13th, '14, 20:45
    Windows 10 Chrome

Re: Custom index page

Post by dmzx »

Alpha wrote: May 10th, '23, 18:01 Hi and again me, I managed to create this (image) but I can't do it for the line and create a button on "Contact us" and go down a little more please help me lol thank you

Sorry for my English, I'm French


Image
Post the url of your forum to check

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

Alpha
Users
Users
Status: Offline
User theme: Dark
Posts: 21
Joined: Feb 14th, '23, 14:13
    Windows 10 Chrome

Re: Custom index page

Post by Alpha »

dmzx

Hi, sorry i forgot, i managed to fix it, but now i'm stuck inserting my admin contact link, i manage to put it in the code, but when you click on it, it doesn't don't open

I installed Contact Admin, but nothing, I click of course. Contact us, but the contactadmin link does not open, I am lost, please help me

[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: 507
Joined: Sep 24th, '15, 14:23
    Windows 10 Chrome

Re: Custom index page

Post by clight77 »

This is how I added the button. In ACP/Extentions/Custom Index Page/Settings
Will add a few images also..


HTML:::: add this

Code: Select all

		<div class="contact">
			{{ lang('CONTACT_HELP') }}
				<a href="mailto:clight77@shaw.ca?subject=General board assistance"><button class="button button1">{{ lang('CONTACT_US') }}</button></a>
				<br><br><br>
Use your own email address.....



CSS:::: add this at the bottom.

Code: Select all

.button {
  margin-top: 10px;
    padding: 6px 25px;
    background: #373E4A;
    color: #C1C3C6;
    font-weight: bold;
   
    cursor: pointer;
    border-radius: 3px;
    border: 1px solid #494e61;

}

.button:hover {
   border: 1px solid #288cfb;

}
language..... Add this at the bottom.

Code: Select all

    'CONTACT_HELP'			            => 'Need help?<br>',
    'CONTACT_US'			            => 'Contact Us.',  
    
Image
Image
Image
Image

I am sure DM or Martin have other ways of doing this :)

[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: 5123
Joined: Apr 6th, '14, 14:12
    Linux Chrome

Re: Custom index page

Post by martin »

Like this ? :rolling:
Screenshot from 2023-05-12 22-34-28.png
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.
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: 507
Joined: Sep 24th, '15, 14:23
    Windows 10 Chrome

Re: Custom index page

Post by clight77 »

That must be something you put together.. LOL

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

Alpha
Users
Users
Status: Offline
User theme: Dark
Posts: 21
Joined: Feb 14th, '23, 14:13
    Windows 10 Chrome

Re: Custom index page

Post by Alpha »

martin wrote: May 12th, '23, 21:35 Like this ? :rolling:

Screenshot from 2023-05-12 22-34-28.png
Hi it's cool, but I don't have this option in the mdr 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: 507
Joined: Sep 24th, '15, 14:23
    Windows 10 Chrome

Re: Custom index page

Post by clight77 »

What is mdr extention?
Forget what Martin has posted it does not apply.

[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: 5123
Joined: Apr 6th, '14, 14:12
    Linux Chrome

Re: Custom index page

Post by martin »

Alpha wrote: May 13th, '23, 04:57
martin wrote: May 12th, '23, 21:35 Like this ? :rolling:

Screenshot from 2023-05-12 22-34-28.png
Hi it's cool, but I don't have this option in the mdr extension
No one has these options i coded it in. Will post it later to be checked out.

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

Alpha
Users
Users
Status: Offline
User theme: Dark
Posts: 21
Joined: Feb 14th, '23, 14:13
    Windows 10 Chrome

Re: Custom index page

Post by Alpha »

martin wrote: May 13th, '23, 11:01
Alpha wrote: May 13th, '23, 04:57
martin wrote: May 12th, '23, 21:35 Like this ? :rolling:

Screenshot from 2023-05-12 22-34-28.png
Hi it's cool, but I don't have this option in the mdr extension
No one has these options i coded it in. Will post it later to be checked out.

Friend, this would be a good addition to the extension, easier