how change color ?

Discussion forum for MOD Writers regarding MOD Development.
sat-home
Registered User
Posts: 31
Joined: Tue Apr 05, 2011 4:50 am

how change color ?

Post by sat-home » Thu Apr 07, 2011 5:54 am

how change new post color today Yesterday 10 minutes ago
here is still position .
Image

i like this how change color edit and change
Image

sat-home
Registered User
Posts: 31
Joined: Tue Apr 05, 2011 4:50 am

Re: how change color ?

Post by sat-home » Thu Apr 07, 2011 12:38 pm

:roll:

any one plzz reply me

User avatar
AmigoJack
Registered User
Posts: 5638
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: how change color ?

Post by AmigoJack » Thu Apr 07, 2011 1:12 pm

For every language open /language/??/common.php and find (example for the english version):

Code: Select all

        'TODAY'        => 'Today',
        'TOMORROW'    => 'Tomorrow',
        'YESTERDAY'    => 'Yesterday',
        'AGO'        => array(
            0        => 'less than a minute ago',
            1        => '%d minute ago',
            2        => '%d minutes ago',
            60        => '1 hour ago',
        ), 
Apply your HTML of choice here, i.e. change to:

Code: Select all

        'TODAY'        => 'Today',
        'TOMORROW'    => 'Tomorrow',
        'YESTERDAY'    => '<b style="color: #66F;">Yesterday</b>',
        'AGO'        => array(
            0        => '<b style="color: #FA0;">less than a minute ago</b>',
            1        => '<b style="color: #FA0;">%d minute ago</b>',
            2        => '<b style="color: #FA0;">%d minutes ago</b>',
            60        => '1 hour ago',
        ), 
Untested.
The worst thing about censorship is ███████████
Affin wrote:
Tue Nov 20, 2018 9:51 am
The problem is probably not my English but you do not want to understand correctly.
...
We will not come anybody anyway, nevertheless, it's best to shit this.

sat-home
Registered User
Posts: 31
Joined: Tue Apr 05, 2011 4:50 am

Re: how change color ?

Post by sat-home » Thu Apr 07, 2011 3:55 pm

thankss for good reply

sat-home
Registered User
Posts: 31
Joined: Tue Apr 05, 2011 4:50 am

Re: how change color ?

Post by sat-home » Sat Apr 09, 2011 9:04 am

Code: Select all

        'TODAY'        => '<b style="color: #FA0;">%Today</b>',
        'TOMORROW'    => 'Tomorrow',
        'YESTERDAY'    => '<b style="color: #66F;">Yesterday</b>',
        'AGO'        => array(
            0        => '<b style="color: #FA0;">less than a minute ago</b>',
            1        => '<b style="color: #FA0;">%d minute ago</b>',
            2        => '<b style="color: #FA0;">%d minutes ago</b>',
            60        => '1 hour ago',
i insart this code in /language/??/common.php
but post result is bad see here

Image

User avatar
AmigoJack
Registered User
Posts: 5638
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: how change color ?

Post by AmigoJack » Sat Apr 09, 2011 9:55 am

You have to edit the file locally (not online) with an editor which doesn't add a BOM to the file. Use i.e. Notepad++.
The worst thing about censorship is ███████████
Affin wrote:
Tue Nov 20, 2018 9:51 am
The problem is probably not my English but you do not want to understand correctly.
...
We will not come anybody anyway, nevertheless, it's best to shit this.

User avatar
callumacrae
Former Team Member
Posts: 2662
Joined: Tue Feb 12, 2008 12:28 pm
Location: London, UK
Name: Callum Macrae
Contact:

Re: how change color ?

Post by callumacrae » Sat Apr 09, 2011 12:29 pm

<strong> is preferred to <b>

~Callum
macr.ae = my website. you probably won't like it.
Proud user ofProud user of

sat-home
Registered User
Posts: 31
Joined: Tue Apr 05, 2011 4:50 am

Re: how change color ?

Post by sat-home » Sat Apr 09, 2011 1:54 pm

where i add this.
:?

Code: Select all

<strong> is preferred to <b>

sat-home
Registered User
Posts: 31
Joined: Tue Apr 05, 2011 4:50 am

Re: how change color ?

Post by sat-home » Tue Apr 12, 2011 4:28 am

where i add this plzz sol my problim ?

Code: Select all

<strong> is preferred to <b>

Holofire
Registered User
Posts: 24
Joined: Sun Mar 27, 2011 6:21 pm

Re: how change color ?

Post by Holofire » Wed Apr 13, 2011 11:37 pm

u dont need to add it lol, he was just pointing out that the <strong> tags were better than the <b> tags.

sat-home
Registered User
Posts: 31
Joined: Tue Apr 05, 2011 4:50 am

Re: how change color ?

Post by sat-home » Sat Apr 16, 2011 6:40 am

but my problime is not soll still .... :(
so plzz how cahange color ? :?: :?:

User avatar
AmigoJack
Registered User
Posts: 5638
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: how change color ?

Post by AmigoJack » Sun Apr 17, 2011 4:16 pm

AmigoJack wrote:You have to edit the file locally (not online) with an editor which doesn't add a BOM to the file. Use i.e. Notepad++.
The worst thing about censorship is ███████████
Affin wrote:
Tue Nov 20, 2018 9:51 am
The problem is probably not my English but you do not want to understand correctly.
...
We will not come anybody anyway, nevertheless, it's best to shit this.

PKSTARS
Registered User
Posts: 20
Joined: Sat Nov 05, 2011 8:51 am

Re: how change color ?

Post by PKSTARS » Sun Nov 27, 2011 10:06 am

sat-home wrote: Image
Image
i like it, how can i add it mod in my new phpbb forum :?:
and whats its mod name :?:

User avatar
callumacrae
Former Team Member
Posts: 2662
Joined: Tue Feb 12, 2008 12:28 pm
Location: London, UK
Name: Callum Macrae
Contact:

Re: how change color ?

Post by callumacrae » Sun Nov 27, 2011 1:31 pm

PKSTARS wrote:
sat-home wrote: Image
Image
i like it, how can i add it mod in my new phpbb forum :?:
and whats its mod name :?:
http://www.phpbb.com/community/viewtopi ... #p12981003
macr.ae = my website. you probably won't like it.
Proud user ofProud user of

PKSTARS
Registered User
Posts: 20
Joined: Sat Nov 05, 2011 8:51 am

Re: how change color ?

Post by PKSTARS » Mon Jan 02, 2012 6:27 am

Callum95 wrote:
PKSTARS wrote:
sat-home wrote: Image
Image
i like it, how can i add it mod in my new phpbb forum :?:
and whats its mod name :?:
http://www.phpbb.com/community/viewtopi ... #p12981003
I Changes it and success, but now my forum show like this time
Image
and i like this colorful time, like it
Image
how can i change it like this Image
thanks in advance

Locked

Return to “[3.0.x] MOD Writers Discussion”