Hidden admin color option in subSilver?

All style (template, theme and imageset) related questions for the new release; advice, feedback here please.
User avatar
Highway of Life
Registered User
Posts: 1399
Joined: Tue Feb 08, 2005 10:18 pm
Location: I'd love to change the World, but they won't give me the Source Code
Contact:

Re: Hidden admin color option in subSilver?

Post by Highway of Life »

There are four variables to use in the templates anywhere a username is used...
'USERNAME_FULL'
'USERNAME'
'USER_COLOR'
'U_VIEW_PROFILE'

Most of the time, {USERNAME_FULL} is used, since it contains the color, bolded, link to the profile, and username all in the one string, which saves a lot of space in the templates.
However, if you don't want to use the username colour, you would use something like this:
FIND:

Code: Select all

{USERNAME_FULL}
REPLACE, WITH:

Code: Select all

<a href="{U_VIEW_PROFILE}"<!-- IF USER_COLOR --> style="color:#{USER_COLOR};"<!-- ENDIF -->>{USERNAME}</a>
Image

PaulC2K
Registered User
Posts: 9
Joined: Sun Mar 05, 2006 3:59 am

Re: Hidden admin color option in subSilver?

Post by PaulC2K »

Highway:

I had a look at this earlier but just as i went to upload the first file the server decided to start playing Hide-n-Seek and its a damn sight better at Hiding than i am at Seeking it :(

I told DW to go find all cases of ' {USERNAME_FULL} ' and it retuned nothing, but i have got a few cases of:

{memberrow.USERNAME_FULL}
{admin.USERNAME_FULL}
{mod.USERNAME_FULL}

I've replaced those with the line you mentioned but see no changes.

The documents containing 'USERNAME_FULL' in the code are:
mcp_warn_front.html (twice - 'highest.USERNAME_FULL' and 'latest.USERNAME_FULL')
mcp_warn_list.html
memberlist_body.html
memberlist_leaders.html (twice - 'admin.USERNAME_FULL' & 'mod.USERNAME_FULL')
ucp_header.html (twice - 'friends_online.USERNAME_FULL' & 'friends_offline.USERNAME_FULL')

Admittedly I've only modified the memberlist_* files because i felt i'd see the change straight away there, however even then i dont see how this could fix them appearing bold on the thread index pages. Its the name against the latest post in that thread and similar cases which i dont like, these just appear to possibly modify the memberlist and control panel pages.

Is there something I could be missing? And why isnt this modifiable in a simple manner, css or by group management? Maybe some people dont see it as an eyesore, but for a small 'clan' :roll: forum like ours where 75% of the activity is by people in a locked usergroup we dont wish to stand out like a small group of Moderators and an Admin might wish to make themselves fairly visable. I just need to be able to modify the privilages of the members in that group as a whole rather than singularly.

If this cant be fixed then the only option i can think of is to make sure my members stay as a 'registered user' as their primary group so they're not stalked by the bold coloured usernames, i'd imagine they'd still have special usergroup rights though which is the only saving grace really, specially coloured usernames is fine, bold just feel rather vulgar to me (IMO).
Attachments
last_post.png
last_post.png (8.5 KiB) Viewed 976 times

User avatar
Handyman
Registered User
Posts: 522
Joined: Thu Feb 03, 2005 5:09 am
Location: Where no man has gone before!
Contact:

Re: Hidden admin color option in subSilver?

Post by Handyman »

That one that you posted the screenshot of is located in viewforum_body.html and is called

Code: Select all

{topicrow.LAST_POST_AUTHOR_FULL}
My phpBB3 Mods || My Mod Queue
Search Engine Friendly (SEO) URLs || Profile link on Avatar and/or Username || AJAX Chat
Display Posts Anywhere || CashMod || AJAX Quick Edit || AJAX Quick Reply

Image

User avatar
Highway of Life
Registered User
Posts: 1399
Joined: Tue Feb 08, 2005 10:18 pm
Location: I'd love to change the World, but they won't give me the Source Code
Contact:

Re: Hidden admin color option in subSilver?

Post by Highway of Life »

Yes, {USERNAME_FULL} is not used EXACTLY like that, though you could in some places, normally its used in loops, which will always be {loop_name.USERNAME_FULL} etc...
I strongly recommend reading over the phpBB3 coding guidelines which might shed some light on that aspect of phpBB3 if you are interested.

Keeping the default usergroup set to registered members will achieve what you are after, the other thing you can do is DELETE the group color in manage groups for the groups which you don't want to "stick out like sore thumbs".
What causes the "bold" is the colour... if there is no colour, it will just be plain link colour.
At that point, it really would not make a difference if you kept the default usergroup to any other than Registered Users, so still keeping default usergroups to Reg Users is still the best option for you IMO.
Image

nascarjake777
Registered User
Posts: 1
Joined: Wed Feb 14, 2007 9:57 pm

Re: Hidden admin color option in subSilver?

Post by nascarjake777 »

Ok my turn to hijack, I want to assign a group call "BoredFree V.I.P." the color blue or light green. how do i do this? i have the new version but dont see an option

User avatar
Handyman
Registered User
Posts: 522
Joined: Thu Feb 03, 2005 5:09 am
Location: Where no man has gone before!
Contact:

Re: Hidden admin color option in subSilver?

Post by Handyman »

nascarjake777 wrote: Ok my turn to hijack, I want to assign a group call "BoredFree V.I.P." the color blue or light green. how do i do this? i have the new version but dont see an option

Go into the manage groups in the ACP and create the group there and you can also select a default color for that group.
My phpBB3 Mods || My Mod Queue
Search Engine Friendly (SEO) URLs || Profile link on Avatar and/or Username || AJAX Chat
Display Posts Anywhere || CashMod || AJAX Quick Edit || AJAX Quick Reply

Image

User avatar
Highway of Life
Registered User
Posts: 1399
Joined: Tue Feb 08, 2005 10:18 pm
Location: I'd love to change the World, but they won't give me the Source Code
Contact:

Re: Hidden admin color option in subSilver?

Post by Highway of Life »

Then, if you want the users of that group to have that colour, after you assign all the members to that group, you can click the link that says "Make group default for all members"... they will now inherit that group colour.
Image

Post Reply