Updating an Unsupported 3.1.3 Style to 3.3.10

For support and discussion related to templates, themes, and imagesets in phpBB 3.2.
Aevik
Registered User
Posts: 261
Joined: Wed Jul 05, 2023 2:34 pm

Updating an Unsupported 3.1.3 Style to 3.3.10

Post by Aevik »

After updating our board to 3.3.10 --- we now urgently need to update an unsupported style (a decade old) from 3.1.3 to 3.3.10
The creator of the style is somewhere in the mists of Estonia, and can no longer be contacted through phpbb.com

We have been using style Black v. 3.1.3 since 2015 - it is the only style which is truly 'Black', and not simply called black.
So it has become our permanent style for all boards we create - and the only style we will use. (changing style is not an option).

The latest version of Black is 3.3.2 - this version bears no resemblance to the original, (very far from black),
and uses Sass as stylesheet.

https://www.phpbb.com/customise/db/style/black/

We tried installing this updated style for comparison, and after activating the style - we were literally locked out of our own board,
getting a persistent HTML 500 ERROR with every attempt to login to the board or ACP.

This catastrophy was only remedied by manually deleting the style directory in FTP. Then the board and ACP became accessible again.

The obvious problem with running a 3.3.10 board with a 3.1.3 style - is the avalanche or errors which wreak havoc, and mayhem on our board.
Loads of extensions either do not function at all, or cause HTML 500 ERROR board lockouts.

So now (as in today) we need to do whatever is necessary to update this style.

In this topic : viewtopic.php?t=2534601 we find lists (and more lists) of code
with no reference points - no hint of which directory, filename, or line(s) to edit in the (black) style directory.

We need some practical help with this task, from persons who actually know how to update phpBB styles.

If someone can please post an annotation for each line of code - clarifying the location of the target file (and line) to be edited,
this will save us needing neuro-therapy for PTSD.

Cheers!

prosilver changes phpBB 3.3.9 to 3.3.10

prosilver_changes_3.3.9_to_3.3.10-html.diff

diff --git a/phpBB/styles/prosilver/template/ucp_groups_manage.html b/phpBB/styles/prosilver/template/ucp_groups_manage.html
index ea75c8b1b1..63b9560a7a 100644
--- a/phpBB/styles/prosilver/template/ucp_groups_manage.html
+++ b/phpBB/styles/prosilver/template/ucp_groups_manage.html
@@ -1,6 +1,6 @@
<!-- INCLUDE ucp_header.html -->

-<h2<!-- IF GROUP_COLOR --> style="color:#{GROUP_COLOR};"<!-- ENDIF -->>{L_USERGROUPS}<!-- IF GROUP_NAME --> :: {GROUP_NAME}<!-- ENDIF --></h2>
+<h2<!-- IF GROUP_COLOUR --> style="color:#{GROUP_COLOUR};"<!-- ENDIF -->>{L_USERGROUPS}<!-- IF GROUP_NAME --> :: {GROUP_NAME}<!-- ENDIF --></h2>

<form id="ucp" method="post" action="{S_UCP_ACTION}"{S_FORM_ENCTYPE}>



prosilver_changes_3.3.9_to_3.3.10-js.diff

diff --git a/phpBB/styles/prosilver/template/ajax.js b/phpBB/styles/prosilver/template/ajax.js
index db2a5732f7..79187470d8 100644
--- a/phpBB/styles/prosilver/template/ajax.js
+++ b/phpBB/styles/prosilver/template/ajax.js
@@ -101,6 +101,7 @@ phpbb.addAjaxCallback('mark_topics_read', function(res, updateTopicLinks) {
phpbb.addAjaxCallback('notification.mark_all_read', function(res) {
if (typeof res.success !== 'undefined') {
phpbb.markNotifications($('#notification_list li.bg2'), 0);
+ phpbb.toggleDropdown.call($('#notification_list_button'));
phpbb.closeDarkenWrapper(3000);
}
});
Last edited by Mick on Mon Jul 24, 2023 8:09 am, edited 2 times in total.
Reason: Solved.
User avatar
cabot
Registered User
Posts: 791
Joined: Sat Jan 07, 2012 4:16 pm

Re: Updating an Unsupported 3.1.3 Style to 3.3.10

Post by cabot »

Hello,

You may find Code Changes easier to use? :)
Aevik
Registered User
Posts: 261
Joined: Wed Jul 05, 2023 2:34 pm

Re: Updating an Unsupported 3.1.3 Style to 3.3.10

Post by Aevik »

cabot wrote: Thu Jul 20, 2023 12:45 pm Hello,

You may find Code Changes easier to use? :)
Thanks!

This is far more helpful than the other topic. (still..) we need to update 'black' which is only based on prosilver.

Could be a starting point though.
User avatar
Mannix_
Registered User
Posts: 2017
Joined: Sun Oct 25, 2015 2:56 pm
Name: Matt

Re: Updating an Unsupported 3.1.3 Style to 3.3.10

Post by Mannix_ »

your style is based on prosilver. so you need to update it just like it would be prosilver. If a file that you need to change doesn't exist in your style you can omit it :)

EDIT: Don't rely solely on line that Code Changes indicate the style author could move or modify that particular block of code so you might need to do partial search inside the file to find the code you need to update.
Did I helped You? Consider a donation.
New version of phpBB has been released? My styles aren't validated for it yet? Check my page for the latest downloads!
Aevik
Registered User
Posts: 261
Joined: Wed Jul 05, 2023 2:34 pm

Re: Updating an Unsupported 3.1.3 Style to 3.3.10

Post by Aevik »

STEP 1

Have updated and uploaded style.cfg to directory ../phpBB3/styles/black/

STEP 2

Have copied ucp_groups_manage.html into /black/template/ (this file did not exist in 3.1.3)

moving on to other files...
User avatar
cabot
Registered User
Posts: 791
Joined: Sat Jan 07, 2012 4:16 pm

Re: Updating an Unsupported 3.1.3 Style to 3.3.10

Post by cabot »

Aevik wrote: Thu Jul 20, 2023 12:35 pm The latest version of Black is 3.3.2 - and this version bears no resemblance to the original, (very far from black)
Version 3.3 uses exactly the same colors as version 3.1 ;)


For the 3.3.2 > 3.3.10 upgrade, stay focus on the template/ folder (and the style.cfg file, of course), that should be enough. I've just updated locally and all the changes are easy to find.
https://area51.phpbb.com/code-changes/3 ... r-template
Aevik
Registered User
Posts: 261
Joined: Wed Jul 05, 2023 2:34 pm

Re: Updating an Unsupported 3.1.3 Style to 3.3.10

Post by Aevik »

cabot wrote: Thu Jul 20, 2023 1:48 pm
Aevik wrote: Thu Jul 20, 2023 12:35 pm The latest version of Black is 3.3.2 - and this version bears no resemblance to the original, (very far from black)
Version 3.3 uses exactly the same colors as version 3.1 ;)


For the 3.3.2 > 3.3.10 upgrade, stay focus on the template/ folder (and the style.cfg file, of course), that should be enough. I've just updated locally and all the changes are easy to find.
https://area51.phpbb.com/code-changes/3 ... r-template
Not the same colours as the original black, not that we can see. (screenshot?)

STEP 3

updated and uploaded ajax.js

STEP 4 (final step)

cron.php is quite different codewise - this will take some time to fix.
User avatar
cabot
Registered User
Posts: 791
Joined: Sat Jan 07, 2012 4:16 pm

Re: Updating an Unsupported 3.1.3 Style to 3.3.10

Post by cabot »

I compared the colors of versions 3.1 and 3.3.

3.1.x
Image

3.3.x
Image
Aevik
Registered User
Posts: 261
Joined: Wed Jul 05, 2023 2:34 pm

Re: Updating an Unsupported 3.1.3 Style to 3.3.10

Post by Aevik »

cabot wrote: Thu Jul 20, 2023 2:12 pm I compared the colors of versions 3.1 and 3.3.

3.1.x
Image

3.3.x
Image
and here is the original black which we use (anonymised for this forum) :

as you can see - there is no resemblance what-so-ever. Our style is BLACK, and those are grey with wonky colours. (underwhelming)
You do not have the required permissions to view the files attached to this post.
User avatar
Lumpy Burgertushie
Registered User
Posts: 69228
Joined: Mon May 02, 2005 3:11 am

Re: Updating an Unsupported 3.1.3 Style to 3.3.10

Post by Lumpy Burgertushie »

obviously you are not using the same style at all.
please paste a copy of your style.cfg file here.

robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
Aevik
Registered User
Posts: 261
Joined: Wed Jul 05, 2023 2:34 pm

Re: Updating an Unsupported 3.1.3 Style to 3.3.10

Post by Aevik »

Lumpy Burgertushie wrote: Thu Jul 20, 2023 5:47 pm obviously you are not using the same style at all.
please paste a copy of your style.cfg file here.

robert
As I said at the start... this is the Original 'Black' by Arty, not 'Grey' naff black + horrid colour.
The original Black from 2015 has vanished from the internet, and there is nothing even close available now.

And now - I have the only updated version of true B L A C K
the 'Vanta Black' of phpBB Styles https://www.surreynanosystems.com/about/vantablack

the board will not allow this file type as an attachment, but here is the code :
#
# phpBB Style Configuration File
#
# This file is part of the phpBB Forum Software package.
#
# @copyright (c) phpBB Limited <https://www.phpbb.com>
# @license GNU General Public License, version 2 (GPL-2.0)
#
# For full copyright and license information, please see
# the docs/CREDITS.txt file.
#
# At the left is the name, please do not change this
# At the right the value is entered
#
# Values get trimmed, if you want to add a space in front or at the end of
# the value, then enclose the value with single or double quotes.
# Single and double quotes do not need to be escaped.
#
#

# General Information about this style
name = Black
copyright = © 2007 Created by Arty (Vjacheslav Trushkin), http://www.artodia.com/
style_version = 3.3.10
phpbb_version = 3.3.10

# Defining a different template bitfield
# template_bitfield = //g=

# Parent style
# Set value to empty or to this style's name if this style does not have a parent style
parent = prosilver
Aevik
Registered User
Posts: 261
Joined: Wed Jul 05, 2023 2:34 pm

Re: Updating an Unsupported 3.1.3 Style to 3.3.10

Post by Aevik »

Here is the original style.cfg file code (before the update) :
#
# phpBB Style Configuration File
#
# This file is part of the phpBB Forum Software package.
#
# @copyright (c) phpBB Limited <https://www.phpbb.com>
# @license GNU General Public License, version 2 (GPL-2.0)
#
# For full copyright and license information, please see
# the docs/CREDITS.txt file.
#
# At the left is the name, please do not change this
# At the right the value is entered
#
# Values get trimmed, if you want to add a space in front or at the end of
# the value, then enclose the value with single or double quotes.
# Single and double quotes do not need to be escaped.
#
#

# General Information about this style
name = Black
copyright = Created by Arty (Vjacheslav Trushkin), http://www.artodia.com/
style_version = 1.0.1
phpbb_version = 3.1.3

# Defining a different template bitfield
# template_bitfield = lNg=

# Parent style
# Set value to empty or to this style's name if this style does not have a parent style
parent = prosilver
User avatar
Lumpy Burgertushie
Registered User
Posts: 69228
Joined: Mon May 02, 2005 3:11 am

Re: Updating an Unsupported 3.1.3 Style to 3.3.10

Post by Lumpy Burgertushie »

if you can zip up your black style folder and send me a copy of it I will see if I can get it updated for you.

[email protected]


robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
Aevik
Registered User
Posts: 261
Joined: Wed Jul 05, 2023 2:34 pm

Re: Updating an Unsupported 3.1.3 Style to 3.3.10

Post by Aevik »

Lumpy Burgertushie wrote: Thu Jul 20, 2023 7:52 pm if you can zip up your black style folder and send me a copy of it I will see if I can get it updated for you.

[email protected]


robert

Thanks Robert

The update is actually completed now

3 files :

style.cfg
ucp_groups_manage.html
ajax.js

cron.php was not included in the original black installation packet
it belongs to the phpBB 3.3.10 installation as part of prosilver, so it did not need to be updated,

I assume I need to purge the cache in ACP after uploading to the server.
User avatar
Lumpy Burgertushie
Registered User
Posts: 69228
Joined: Mon May 02, 2005 3:11 am

Re: Updating an Unsupported 3.1.3 Style to 3.3.10

Post by Lumpy Burgertushie »

I doubt that only those three files were changed from 3.1 to 3.3.x
or are they the only files that your black style did not have?

if that is the case you still need to update/edit all of the other files in your black style.

robert


EDIT: I found a version of the black style that says it is for phpBB 3.1.1 b ut it is the sme black and blue one that you say is not the same style you are using.
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.

Return to “[3.2.x] Styles Support & Discussion”