Can ranks have Color/Bold??

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Scam Warning
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Enxorix
Registered User
Posts: 55
Joined: Wed Mar 04, 2009 8:47 pm

Can ranks have Color/Bold??

Post by Enxorix » Sat Apr 25, 2009 5:16 pm

Hello.. i'm wondering if it's any possibility that Ranks can have Color or Bold? :?:

User avatar
COD3M4ST3R-X
Registered User
Posts: 2269
Joined: Sat Aug 02, 2008 5:47 am
Location: Lahore,Pakistan

Re: Can ranks have Color/Bold??

Post by COD3M4ST3R-X » Sat Apr 25, 2009 5:17 pm

Yes you can get the colour of your usergroup on the Rank is that what you want?
“Need and struggle are what excite and inspire us.”

Enxorix
Registered User
Posts: 55
Joined: Wed Mar 04, 2009 8:47 pm

Re: Can ranks have Color/Bold??

Post by Enxorix » Sat Apr 25, 2009 5:22 pm

Make ranks having colour or bold..
or even blinking,,

i simply want Effects to the ranks...

Is it possible with a addon to the system? because i tried to add

Code: Select all

[b][color=#BF0000][/color][/b]
into the rank.. but it didn't work...

User avatar
COD3M4ST3R-X
Registered User
Posts: 2269
Joined: Sat Aug 02, 2008 5:47 am
Location: Lahore,Pakistan

Re: Can ranks have Color/Bold??

Post by COD3M4ST3R-X » Sat Apr 25, 2009 5:24 pm

That won,t work,
What style are you using
“Need and struggle are what excite and inspire us.”

Enxorix
Registered User
Posts: 55
Joined: Wed Mar 04, 2009 8:47 pm

Re: Can ranks have Color/Bold??

Post by Enxorix » Sat Apr 25, 2009 5:25 pm

ProDark.

The_Descendant
Registered User
Posts: 233
Joined: Thu Sep 13, 2007 5:48 pm

Re: Can ranks have Color/Bold??

Post by The_Descendant » Sat Apr 25, 2009 5:27 pm

It would require you to have a MOD to be able to do this. You want to be able to have separate colours/boldness for different ranks, right? If so, it would require a MOD.

User avatar
COD3M4ST3R-X
Registered User
Posts: 2269
Joined: Sat Aug 02, 2008 5:47 am
Location: Lahore,Pakistan

Re: Can ranks have Color/Bold??

Post by COD3M4ST3R-X » Sat Apr 25, 2009 5:32 pm

Open styles/proDark/template/viewtopic_body.html

Code: Select all

<!-- IF postrow.RANK_TITLE or postrow.RANK_IMG --><dd>{postrow.RANK_TITLE}<!-- IF postrow.RANK_TITLE and postrow.RANK_IMG --><br /><!-- ENDIF -->{postrow.RANK_IMG}</dd><!-- ENDIF --> 
In-line Find:

Code: Select all

{postrow.RANK_TITLE} 
Replace with:

Code: Select all

<b class="postauthor"<!-- IF postrow.POST_AUTHOR_COLOUR --> style="font-size:12px; color: {postrow.POST_AUTHOR_COLOUR}" <!-- ENDIF -->>{postrow.RANK_TITLE}</b> 
This will get the Usergroup colour on the Rank also Bold it.
Credits to Stoker :)
“Need and struggle are what excite and inspire us.”

Enxorix
Registered User
Posts: 55
Joined: Wed Mar 04, 2009 8:47 pm

Re: Can ranks have Color/Bold??

Post by Enxorix » Sat Apr 25, 2009 5:39 pm

dude.. this file is hughe.. xD

User avatar
COD3M4ST3R-X
Registered User
Posts: 2269
Joined: Sat Aug 02, 2008 5:47 am
Location: Lahore,Pakistan

Re: Can ranks have Color/Bold??

Post by COD3M4ST3R-X » Sat Apr 25, 2009 5:42 pm

Enxorix wrote:dude.. this file is hughe.. xD
Don,t worry go on.
One more thing which tool will you be using to edit the file,s?
“Need and struggle are what excite and inspire us.”

Enxorix
Registered User
Posts: 55
Joined: Wed Mar 04, 2009 8:47 pm

Re: Can ranks have Color/Bold??

Post by Enxorix » Sat Apr 25, 2009 5:47 pm

the ordenary text..
i cna't remember the Program name in english but the files it's using is

hello.txt

User avatar
COD3M4ST3R-X
Registered User
Posts: 2269
Joined: Sat Aug 02, 2008 5:47 am
Location: Lahore,Pakistan

Re: Can ranks have Color/Bold??

Post by COD3M4ST3R-X » Sat Apr 25, 2009 5:50 pm

Just use a simple editor like Notepad++
“Need and struggle are what excite and inspire us.”

Enxorix
Registered User
Posts: 55
Joined: Wed Mar 04, 2009 8:47 pm

Re: Can ranks have Color/Bold??

Post by Enxorix » Sat Apr 25, 2009 5:52 pm

it's not working..
the current line i got is.

Code: Select all

<!-- IF postrow.RANK_TITLE or postrow.RANK_IMG --><dd><b class="postauthor"<!-- IF postrow.POST_AUTHOR_COLOUR --> style="font-size:12px; color: {postrow.POST_AUTHOR_COLOUR}" <!-- ENDIF -->>{postrow.RANK_TITLE}</b> <!-- IF postrow.RANK_TITLE and postrow.RANK_IMG --><br /><!-- ENDIF -->{postrow.RANK_IMG}</dd><!-- ENDIF -->

User avatar
COD3M4ST3R-X
Registered User
Posts: 2269
Joined: Sat Aug 02, 2008 5:47 am
Location: Lahore,Pakistan

Re: Can ranks have Color/Bold??

Post by COD3M4ST3R-X » Sat Apr 25, 2009 5:57 pm

You need to refresh the style's templates first login to your ACP and then select the styles tab
Image
Then select the Templates link from under the Style components header on the left hand menu.
Image
Find the template [in your case proDark]you want and then select Refresh from the Actions column
Image
“Need and struggle are what excite and inspire us.”

Enxorix
Registered User
Posts: 55
Joined: Wed Mar 04, 2009 8:47 pm

Re: Can ranks have Color/Bold??

Post by Enxorix » Sat Apr 25, 2009 5:59 pm

okay.. its' working..
but it's a bit too boldy..
can you change that? inside the code?

Code: Select all

<!-- IF postrow.RANK_TITLE or postrow.RANK_IMG --><dd><b class="postauthor"<!-- IF postrow.POST_AUTHOR_COLOUR --> style="font-size:12px; color: {postrow.POST_AUTHOR_COLOUR}" <!-- ENDIF -->>{postrow.RANK_TITLE}</b> <!-- IF postrow.RANK_TITLE and postrow.RANK_IMG --><br /><!-- ENDIF -->{postrow.RANK_IMG}</dd><!-- ENDIF -->

User avatar
COD3M4ST3R-X
Registered User
Posts: 2269
Joined: Sat Aug 02, 2008 5:47 am
Location: Lahore,Pakistan

Re: Can ranks have Color/Bold??

Post by COD3M4ST3R-X » Sat Apr 25, 2009 6:08 pm

Is this much ok

Code: Select all

<!-- IF postrow.RANK_TITLE or postrow.RANK_IMG --><dd><b class="postauthor"<!-- IF postrow.POST_AUTHOR_COLOUR --> style="font-size:10px; color: {postrow.POST_AUTHOR_COLOUR}" <!-- ENDIF -->>{postrow.RANK_TITLE}</b> <!-- IF postrow.RANK_TITLE and postrow.RANK_IMG --><br /><!-- ENDIF -->{postrow.RANK_IMG}</dd><!-- ENDIF --> 
All you need to change is
font-size:12px
12px to whatever you want.
“Need and struggle are what excite and inspire us.”

Locked

Return to “[3.0.x] Support Forum”