[3.3][RC] ACP Styled

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Suggested Hosts
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
User avatar
Sniper_E
Registered User
Posts: 1173
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey

[3.3][RC] ACP Styled

Post by Sniper_E »

ACP Styled
Image Image
Discription: Adds style to your acp pages with 'dark mode' and 'header image' features.
Special thanks to cabot for setting up the random header image codes.
Screenshot
acpstyled.gif
Download: acpstyled_1.1.4.zip

Install:
  • Copy the acpstyled/ folder into server root/ext/sniper/ directory.
  • Navigate to ACP -> Customise -> Disabled Extensions -> ACP Styled and click Enable
Uninstall:
  • Navigate to ACP -> Customise -> Enabled Extensions / ACP Styled and click Disable
  • To permanently uninstall, click Delete Data and then delete the folder /ext/sniper/acpstyled
Enjoy! :D
You do not have the required permissions to view the files attached to this post.
Last edited by Sniper_E on Sat Jun 29, 2024 5:28 pm, edited 48 times in total.
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:
User avatar
danieltj
Jr. Extension Validator
Posts: 370
Joined: Thu May 03, 2018 9:32 pm
Location: United Kingdom
Name: Daniel James

Re: [3.3][DEV] ACP Styled

Post by danieltj »

Cool! Have you included a classic ‘dark mode’. I saw in the gif there’s some darker styles but I didn’t see a true dark mode design.
Verified Profiles PRO is now available. Learn more!
A payment extension is coming soon.

⚙️ phpBBModders.com Team Member
User avatar
Sniper_E
Registered User
Posts: 1173
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey

Re: [3.3][DEV] ACP Styled

Post by Sniper_E »

Why sure buddy. I'm not sure of your definition of a true dark mode design but it has light or dark mode selections.
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:
User avatar
danieltj
Jr. Extension Validator
Posts: 370
Joined: Thu May 03, 2018 9:32 pm
Location: United Kingdom
Name: Daniel James

Re: [3.3][DEV] ACP Styled

Post by danieltj »

Here’s an example on iPhones. Everything turns to muted darks and greys without gradients.
Verified Profiles PRO is now available. Learn more!
A payment extension is coming soon.

⚙️ phpBBModders.com Team Member
User avatar
ssl
Registered User
Posts: 1876
Joined: Sat Feb 08, 2020 2:15 pm
Location: Le Lude, Pays de la Loire - France
Name: Fred Rimbert

Re: [3.3][DEV] ACP Styled

Post by ssl »

This error message after activation

Code: Select all

Fatal error: Uncaught TypeError: sniper\acpstyled\event\listener::__construct(): Argument #1 ($config) must be of type phpbb\config\config, phpbb\request\request given in /home/clients/aad2674d94bf9fbeb384ebc8b7e1c3be/home/ext/sniper/acpstyled/event/listener.php:30 Stack trace: #0 [internal function]: sniper\acpstyled\event\listener->__construct(Object(phpbb\request\request), Object(phpbb\template\twig\twig), Object(phpbb\user), Object(phpbb\config\db)) #1 /home/clients/aad2674d94bf9fbeb384ebc8b7e1c3be/home/vendor/symfony/dependency-injection/ContainerBuilder.php(1176): ReflectionClass->newInstanceArgs(Array) #2 /home/clients/aad2674d94bf9fbeb384ebc8b7e1c3be/home/vendor/symfony/dependency-injection/ContainerBuilder.php(634): Symfony\Component\DependencyInjection\ContainerBuilder->createService(Object(Symfony\Component\DependencyInjection\Definition), Array, false, 'sniper.acpstyle...') #3 /home/clients/aad2674d94bf9fbeb384ebc8b7e1c3be/home/vendor/symfony/dependency-injection/ContainerBuilder.php(1281): Symfony\Component\DependencyInjection\ContainerBuilder->doGet('sniper.acpstyle...', 1, Array, false) #4 /home/clients/aad2674d94bf9fbeb384ebc8b7e1c3be/home/vendor/symfony/dependency-injection/ContainerBuilder.php(1231): Symfony\Component\DependencyInjection\ContainerBuilder->doResolveServices(Object(Symfony\Component\DependencyInjection\Reference)) #5 /home/clients/aad2674d94bf9fbeb384ebc8b7e1c3be/home/vendor/symfony/dependency-injection/ContainerBuilder.php(1243): Symfony\Component\DependencyInjection\ContainerBuilder->resolveServices(Object(Symfony\Component\DependencyInjection\Reference)) #6 /home/clients/aad2674d94bf9fbeb384ebc8b7e1c3be/home/vendor/symfony/event-dispatcher/EventDispatcher.php(231): Symfony\Component\DependencyInjection\ContainerBuilder->Symfony\Component\DependencyInjection\{closure}() #7 /home/clients/aad2674d94bf9fbeb384ebc8b7e1c3be/home/vendor/symfony/event-dispatcher/EventDispatcher.php(61): Symfony\Component\EventDispatcher\EventDispatcher->sortListeners('core.adm_page_h...') #8 /home/clients/aad2674d94bf9fbeb384ebc8b7e1c3be/home/vendor/symfony/event-dispatcher/EventDispatcher.php(43): Symfony\Component\EventDispatcher\EventDispatcher->getListeners('core.adm_page_h...') #9 /home/clients/aad2674d94bf9fbeb384ebc8b7e1c3be/home/phpbb/event/dispatcher.php(62): Symfony\Component\EventDispatcher\EventDispatcher->dispatch('core.adm_page_h...', Object(phpbb\event\data)) #10 /home/clients/aad2674d94bf9fbeb384ebc8b7e1c3be/home/phpbb/event/dispatcher.php(46): phpbb\event\dispatcher->dispatch('core.adm_page_h...', Object(phpbb\event\data)) #11 /home/clients/aad2674d94bf9fbeb384ebc8b7e1c3be/home/includes/functions_acp.php(51): phpbb\event\dispatcher->trigger_event('core.adm_page_h...', Array) #12 /home/clients/aad2674d94bf9fbeb384ebc8b7e1c3be/home/adm/index.php(84): adm_page_header('Styles') #13 {main} thrown in /home/clients/aad2674d94bf9fbeb384ebc8b7e1c3be/home/ext/sniper/acpstyled/event/listener.php on line 30

Are you really agree with this?

Capture d’écran 2024-06-16 à 19.47.13.png
You do not have the required permissions to view the files attached to this post.
Sorry for my English ... I do my best!

phpBB: 3.3.12 | PHP: 8.3.7
[Kill spam on phpBB] - [Some French translation of extensions]
"Mistress, Mistress someone is bothering me in pm"
User avatar
Sniper_E
Registered User
Posts: 1173
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey

Re: [3.3][DEV] ACP Styled

Post by Sniper_E »

Thanks Fred I pulled the download and will straighten that out.

Daniel, I think your mind ran off into some other feature.
This is just a style just like any other style presented here at phpBB.
All the dark styles are using gradient backgrounds so I guess none of them have a true dark mode design.
My answer to your question is No, I have not included a classic ‘dark mode’ and I will not be including that.
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:
User avatar
Sniper_E
Registered User
Posts: 1173
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey

Re: [3.3][DEV] ACP Styled

Post by Sniper_E »

First post updated. I had some mixed files. Please see if I corrected those issues ssl. And thanks for testing...
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:
User avatar
ssl
Registered User
Posts: 1876
Joined: Sat Feb 08, 2020 2:15 pm
Location: Le Lude, Pays de la Loire - France
Name: Fred Rimbert

Re: [3.3][DEV] ACP Styled

Post by ssl »

Sniper_E wrote: Sun Jun 16, 2024 7:22 pm Please see if I corrected
Yes it is
Sorry for my English ... I do my best!

phpBB: 3.3.12 | PHP: 8.3.7
[Kill spam on phpBB] - [Some French translation of extensions]
"Mistress, Mistress someone is bothering me in pm"
User avatar
Sniper_E
Registered User
Posts: 1173
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey

Re: [3.2][3.3][DEV] ACP Styled

Post by Sniper_E »

Cool thank you ssl. Now we're cooking and yes danieltj I did include a 'dark mode' selection. Everything goes dark.
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:
deninho32
Registered User
Posts: 227
Joined: Tue May 21, 2019 8:57 am

Re: [3.2][3.3][DEV] ACP Styled

Post by deninho32 »

White screen here on my testboard.

Code: Select all

[Mon Jun 17 19:26:14.715103 2024] [lsapi:error] [pid 12717:tid 140604541634304] [client 77.164.146.216:62146] [host testforum.negentiendertien.nl] Backend fatal error: PHP Parse error:  syntax error, unexpected ')', expecting variable (T_VARIABLE) in /home/negentien13/domains/testforum.negentiendertien.nl/public_html/ext/sniper/acpstyled/event/listener.php on line 35\n, referer: https://testforum.negentiendertien.nl/
Edit: switching to php 8.0 fixed it.
phpBB 3.3.7 | PHP Version 7.4.33 | Milk Theme
User avatar
Sniper_E
Registered User
Posts: 1173
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey

Re: [3.2][3.3][DEV] ACP Styled

Post by Sniper_E »

First post updated - Version 1.0.1 - Removed random header image feature, updated lang files and adjusted css.
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:
User avatar
ssl
Registered User
Posts: 1876
Joined: Sat Feb 08, 2020 2:15 pm
Location: Le Lude, Pays de la Loire - France
Name: Fred Rimbert

Re: [3.2][3.3][DEV] ACP Styled

Post by ssl »

Too bad to have removed the random header images.
Sorry for my English ... I do my best!

phpBB: 3.3.12 | PHP: 8.3.7
[Kill spam on phpBB] - [Some French translation of extensions]
"Mistress, Mistress someone is bothering me in pm"
User avatar
Sniper_E
Registered User
Posts: 1173
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey

Re: [3.3][DEV] ACP Styled

Post by Sniper_E »

Yea I felt like I was pushing too much into it. I stepped back and just wanted to style the acp.
But I can push it back in on the next version. It's always good to have choices.

Update:
There wasn't but 2 downloads so I just replaced the 1.0.1 version last night. No need to go to 1.0.2 for this.
Random header images replaced. Download 1.0.1 again if you are one of those two people.

I'd like to find a random image script that would work better than the on I'm using.
The images are not random with reloads, only with ctrl-F5 - Looking for a better way to make that work.
Or better yet, each acp tab selected can have it's unique background image, like phpBB has in their header. Yea... that's the ticket.
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:
User avatar
Sniper_E
Registered User
Posts: 1173
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey

Re: [3.3][DEV] ACP Styled

Post by Sniper_E »

Sorry guys I had to go to version 1.0.2 after all. The version check was not setup properly. First post updated.
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:
User avatar
cabot
Registered User
Posts: 733
Joined: Sat Jan 07, 2012 4:16 pm

Re: [3.3][DEV] ACP Styled

Post by cabot »

Hello,
Sniper_E wrote: Mon Jun 17, 2024 9:51 pm I'd like to find a random image script that would work better than the on I'm using.
The images are not random with reloads, only with ctrl-F5 - Looking for a better way to make that work.
By keeping your current file structure:

admin_light_image.css

Code: Select all

#page-header {
	background-image: var(--random-header, url("../images/header_bg_light.jpg"));
	background-repeat: no-repeat;
	background-size: 100% 150%;
	background-position: 50% 25%;
}
admin_dark_image.css

Code: Select all

#page-header {
	background-image: var(--random-header, url("../images/header_bg_dark.jpg"));
	background-repeat: no-repeat;
	background-size: 100% 150%;
	background-position: 50% 25%;
}
acp_overall_header_head_append.html

Code: Select all

{% set theme = 'light' %}
{% if ACP_DARK_STYLE %}{% set theme = 'dark' %}{% endif %}
{% INCLUDECSS 'admin_' ~ theme ~ '.css' %}
{% if ACP_HEADER_IMAGE %}
	{% set random = random(1, 9) %}
	{% INCLUDECSS 'admin_' ~ theme ~ '_image.css' %}
	<style>#page-header{--random-header: url(/ext/sniper/acpstyled/adm/images/header_bg_{{ theme }}.jpg/header_bg{{ random }}.jpg);}</style>
{% endif %}

Return to “Extensions in Development”