Page 1 of 4

[3.2][RC] Topic Title Color

Posted: Sat Mar 04, 2017 8:56 am
by DavidIQ
Extension Name: Topic Title Color
Author: DavidIQ

Extension Description: Allows user to select a color for the topic title
Extension Version: 1.0.0-rc1
Screenshots:
topictitlecolor1.PNG
topictitlecolor2.PNG
Extension Download: https://github.com/DavidIQ/topictitlecolor/

Re: [3.1][3.2][ALPHA] Topic Title Color

Posted: Sat Mar 04, 2017 8:57 am
by DavidIQ
TODO:
  • Add permissions.

Re: [3.1][3.2][ALPHA] Topic Title Color

Posted: Sat Mar 04, 2017 12:09 pm
by pikachuturkey
Turkish translation of Topic Title Color version 1.0.0-a1 tr
Why first row is British English ==> "colour" and second row is American English ==>"color" :)
'TITLE_COLOUR',
'NO_TITLE_COLOR'

Code: Select all

<?php
/**
 *
 * titlecolor [Turkish]
 *
 * @package language
 * @copyright (c) 2017 DavidIQ.com
 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
 *
 */
/**
 * DO NOT CHANGE
 */
if (!defined('IN_PHPBB'))
{
	exit;
}
if (empty($lang) || !is_array($lang))
{
	$lang = array();
}
// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
//
$lang = array_merge($lang, array(
	'TITLE_COLOUR'		=> 'Başlık rengi',
	'NO_TITLE_COLOR'		=> 'Hiçbiri',
));

Re: [3.1][3.2][ALPHA] Topic Title Color

Posted: Sat Mar 04, 2017 2:39 pm
by supanet
Nice subscribed :D

Re: [3.1][3.2][ALPHA] Topic Title Color

Posted: Sat Mar 04, 2017 9:57 pm
by kim902
This will make phpbb look very tacky.

Re: [3.1][3.2][ALPHA] Topic Title Color

Posted: Sat Mar 04, 2017 10:11 pm
by DavidIQ
kim902 wrote:
Sat Mar 04, 2017 9:57 pm
This will make phpbb look very tacky.
Then don't install this extension? Not sure why you felt the need to comment here. Do me and everyone else a favor and please don't... :roll:

Re: [3.1][3.2][ALPHA] Topic Title Color

Posted: Sat Mar 04, 2017 10:16 pm
by DavidIQ
pikachuturkey wrote:
Sat Mar 04, 2017 12:09 pm
Turkish translation of Topic Title Color version 1.0.0-a1 tr
Why first row is British English ==> "colour" and second row is American English ==>"color" :)
'TITLE_COLOUR',
'NO_TITLE_COLOR'
It's on purpose. ;)

Thanks for the translation. I'll include it in the next release. There will probably be a translation file for the permission that will soon come.

@other translators: would very much prefer a pull request on github if at all possible. :geek:

Re: [3.1][3.2][ALPHA] Topic Title Color

Posted: Sat Mar 25, 2017 2:45 am
by 3Di
David, in you event/listener I'd change this lines

Code: Select all

// Make sure it's only letters and numbers and max length of 6
preg_match('#^[A-Z0-9]{6}#i', $title_color, $color_matches);
with this (not tested)

Code: Select all

// Make sure it's only HEX and max length of 6, case insensitive.
preg_match('#^[A-F0-9]{6}#i', $title_color, $color_matches);
I haven't checked if you wrote a check also for the min. lenght.

Re: [3.1][3.2][ALPHA] Topic Title Color

Posted: Sun Mar 26, 2017 8:32 pm
by SalazarAG
Hi

Great extension, congratulations!

Would it be possible to add these features?

> Choose the forums where you can colorize the titles?
> Connect with Recent Topics extension?

Re: [3.1][3.2][ALPHA] Topic Title Color

Posted: Sun Mar 26, 2017 8:36 pm
by DavidIQ
SalazarAG wrote:
Sun Mar 26, 2017 8:32 pm
> Choose the forums where you can colorize the titles?
Was planning on doing this through permissions.
SalazarAG wrote:
Sun Mar 26, 2017 8:32 pm
> Connect with Recent Topics extension?
Which one exactly?

Re: [3.1][3.2][ALPHA] Topic Title Color

Posted: Sun Mar 26, 2017 9:31 pm
by SalazarAG
DavidIQ wrote:
Sun Mar 26, 2017 8:36 pm
SalazarAG wrote:
Sun Mar 26, 2017 8:32 pm
> Choose the forums where you can colorize the titles?
Was planning on doing this through permissions.
SalazarAG wrote:
Sun Mar 26, 2017 8:32 pm
> Connect with Recent Topics extension?
Which one exactly?
Hi!

This extension: https://www.phpbb.com/customise/db/exte ... _topics_2/

Re: [3.1][3.2][ALPHA] Topic Title Color

Posted: Mon Mar 27, 2017 1:48 pm
by alhitary
Fantastic Extension
Thanks DavidIQ
Arabic Translation will be added V. Soon.

Re: [3.1][3.2][ALPHA] Topic Title Color

Posted: Mon Mar 27, 2017 2:16 pm
by alhitary
https://github.com/DavidIQ/topictitlecolor/pull/1
Arabic PR

It will be updated once you add the permission :D

Re: [3.1][3.2][ALPHA] Topic Title Color

Posted: Tue Apr 11, 2017 5:17 pm
by uruguayito
when a user wants leave a message with a colour, there is a conflict with this ext..... :roll:

Re: [3.1][3.2][ALPHA] Topic Title Color

Posted: Tue Apr 11, 2017 6:40 pm
by DavidIQ
uruguayito wrote:
Tue Apr 11, 2017 5:17 pm
when a user wants leave a message with a colour, there is a conflict with this ext..... :roll:
What conflict? :roll: