Jump to the post that solved this thread.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 8 Years, 10 Months, 2 Weeks ago Colored user title? [SOLVED!]
#11
Solved: 8 Years, 10 Months, 2 Weeks ago
@Phantom D regarding my suggestion:

you will need to wrap that {$post['usertitle']} variable like

<span class="title_gid_{$usergroup['gid']}">{$post['usertitle']}</span>

and in global.css add

.title_gid_x {
color:blue;
}

where x is the number of your usergroup (if it's admin then x is 4).

This is on my default theme:

.title_gid_4 {
color:blue;
}

Here's a preview http://i.imgur.com/WwVpNuM.png
#12
Solved: 8 Years, 10 Months, 2 Weeks ago
(2014-07-09, 06:24 PM)Johnny S Wrote: @Phantom D regarding my suggestion:

you will need to wrap that {$post['usertitle']} variable like

<span class="title_gid_{$usergroup['gid']}">{$post['usertitle']}</span>

and in global.css add

.title_gid_x {
color:blue;
}

where x is the number of your usergroup (if it's admin then x is 4).

This is on my default theme:

.title_gid_4 {
color:blue;
}

Here's a preview http://i.imgur.com/WwVpNuM.png
Oh okay, now I understand. Toungue

Thanks Smile

Solved, thank you Johnny S!
#13
Solved: 8 Years, 10 Months, 2 Weeks ago
hmmm... strange... same code that you have used is working on my test board... check below link.

http://mytestboards.tk/mybb/user-1.html
We can't help everyone, but everyone can help someone - Ronald Reagan
Did you know? Your question has already been answered. But you haven't searched it yet.
Don’t  Forget to “Mark as Solved” after the fix
#14
Solved: 8 Years, 10 Months, 2 Weeks ago
(2014-07-09, 06:33 PM)mmadhankumar Wrote: hmmm... strange... same code that you have used is working on my test board... check below link.

http://mytestboards.tk/mybb/user-1.html
That's weird, but oh well. I got it solved now, thanks for all the support guys Smile
#15
Solved: 8 Years, 10 Months, 2 Weeks ago
(2014-07-09, 06:38 PM)PhantomD Wrote: That's weird, but oh well. I got it solved now, thanks for all the support guys Smile

yes I am glad its fixed.. bad luck that the user title codes didn't work and you are using a extended way to fix it rather than using a simple and inbuilt feature..
We can't help everyone, but everyone can help someone - Ronald Reagan
Did you know? Your question has already been answered. But you haven't searched it yet.
Don’t  Forget to “Mark as Solved” after the fix
#16
Solved: 8 Years, 10 Months, 2 Weeks ago
(2014-07-09, 06:19 PM)mmadhankumar Wrote: just to double check, you are adding that code in ACP >> Users & Groups >> Your Group >> "Default user title" right...

I have given this code to few members and it works perfectly. it works on my test board as well..
If you have a team logo/icon, using HTML in the Default User Title in the ACP will do what PhantomD showed in the post above:
(2014-07-09, 06:09 PM)PhantomD Wrote: It just appear like this:

[Image: 6bBlgU3.png]

and yes, im alone in that group. Undecided
I've reported it as a bug in 1.6 which I first spotted in 1.8 and tested it in 1.6 to make sure it wasn't just 1.8. (See here: http://community.mybb.com/thread-154457.html)
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)