Replace phpBB website links with shortener redirected on language files

General discussion of development ideas and the approaches taken in the 3.x branch of phpBB. The next feature release of phpBB 3 will be 3.2/Rhea followed by 3.3.
Forum rules
Please do not post support questions regarding installing, updating, or upgrading phpBB 3.1. If you need support for phpBB 3.1 please visit the 3.1.x Support Forum on phpbb.com.

If you have questions regarding writing extensions please post in Extension Writers Discussion to receive proper guidance from our staff and community.
Post Reply
User avatar
Vinny
Style Customisations
Style Customisations
Posts: 126
Joined: Thu May 20, 2010 4:01 am
Location: Brazil
Contact:

Replace phpBB website links with shortener redirected on language files

Post by Vinny » Sat Jul 11, 2015 8:11 am

Since when PR#3620 was merged, I was thinking about it, and today I was reviewing my language pack, on install.php file and decided to share this idea with you.


https://github.com/phpbb/phpbb/blob/3.1 ... l.php#L277

Code: Select all

'MYSQL_SCHEMA_UPDATE_REQUIRED'	=> 'Your MySQL database schema for phpBB is outdated. phpBB detected a schema for MySQL 3.x/4.x, but the server runs on MySQL %2$s.<br /><strong>Before you proceed the update, you need to upgrade the schema.</strong><br /><br />Please refer to the <a href="https://www.phpbb.com/kb/article/doesnt-have-a-default-value-errors/">Knowledge Base article about upgrading the MySQL schema</a>. If you encounter problems, please use <a href="https://www.phpbb.com/community/viewforum.php?f=466">our support forums</a>.',
https://www.phpbb.com/kb/article/doesnt-have-a-default-value-errors/ now redirect to https://www.phpbb.com/support/docs/en/3.0/kb/article/doesnt-have-a-default-value-errors/.
Probably a ticket and PR must be opened to change the line

My main idea would be to use shorteners links to define the links that go to site of phpBB. Like:
https://www.phpbb.com/go/article-some-name/


Another example in the same line:

Code: Select all

<a href="https://www.phpbb.com/community/viewforum.php?f=466">our support forums</a>
Probably when launching the 3.2, this line should be changed to the new 3.2 support forums.

Anothers examples:
https://github.com/phpbb/phpbb/blob/3.1 ... ll.php#L83
https://github.com/phpbb/phpbb/blob/3.1 ... l.php#L195
https://github.com/phpbb/phpbb/blob/3.1 ... l.php#L348


Here is an example already implemented:
https://github.com/phpbb/phpbb/blob/3.1 ... d.php#L306

Post Reply