Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Diferente colors for name groups in WWF 10.12
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Diferente colors for name groups in WWF 10.12

 Post Reply Post Reply Page  12>
Author
lordtec View Drop Down
Senior Member
Senior Member
Avatar

Joined: 16 July 2007
Location: Brazil
Status: Offline
Points: 213
Post Options Post Options   Thanks (0) Thanks(0)   Quote lordtec Quote  Post ReplyReply Direct Link To This Post Topic: Diferente colors for name groups in WWF 10.12
    Posted: 26 October 2012 at 4:16pm
How to put diferente colors for name groups: Admin Group, Guest, Moderator Group, Newbie, Groupie, Senior Member?

example:

Admin Group -> Red (Admin Group)
Guest -> Orange (Guest)
Moderator Group -> Blue (Moderator Group)
Newbie -> Black (Newbie)
Groupie -> Purple (Groupie)
Senior Member -> Green (Senior Member)
Back to Top
Shaun View Drop Down
Groupie
Groupie


Joined: 24 February 2006
Status: Offline
Points: 78
Post Options Post Options   Thanks (0) Thanks(0)   Quote Shaun Quote  Post ReplyReply Direct Link To This Post Posted: 26 October 2012 at 10:09pm
There was an old WWF mod done by "stardust" from a few years back, that allowed you to change username colours for Admin (I had them in red) but I asked if they could do it for multiple user groups and nothing ever happened sadly :(

I would love this mod for my forums and user groups.
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post Posted: 27 October 2012 at 11:02pm
It shouldn't be that hard for me to knock something up, if you are comfortable and willing to edit some CSS.

However having an extra box in the Admin area would take a little longer.
S2H.co.uk - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
Back to Top
IanSmithISA View Drop Down
Groupie
Groupie


Joined: 21 October 2010
Location: Worcester
Status: Offline
Points: 127
Post Options Post Options   Thanks (0) Thanks(0)   Quote IanSmithISA Quote  Post ReplyReply Direct Link To This Post Posted: 28 October 2012 at 9:50am

Good morning

When I saw this, I thought the same.

 Then I realised that if you changed the colour on just the page that displayed the posts in details it would look odd that the colours aren't different on the other pages where the user name is displayed.

Such as

<your forum>.forums.html

<your forum>.<forums topic forum number>.html

<your forum>.<forums topic post name>.html

A few tweaks would be needed in /Includes/Global_Variables and possibly some other places, as well as the admin form.

This seemed to be a bit too much work to have to redo for every new release of the forum.

Is there a process where Webwiz agrees that this is something that they would like to add to the next release if someone else does it?

Bye

Ian

 

Why does anyone need more than an 80x25 character only VDU?
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post Posted: 29 October 2012 at 11:54am
I have created the first version of this which is controlled completely with CSS.

You can download it from my website on the Group Name Colours page. The download includes an example file in the "css" folder.
S2H.co.uk - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
Back to Top
lordtec View Drop Down
Senior Member
Senior Member
Avatar

Joined: 16 July 2007
Location: Brazil
Status: Offline
Points: 213
Post Options Post Options   Thanks (0) Thanks(0)   Quote lordtec Quote  Post ReplyReply Direct Link To This Post Posted: 30 October 2012 at 5:08pm
Scotty really good work, but would like to put different colors Guest, Newbie, Groupie and Senior Member?

Here Guest, Newbie, Groupie and Senior Member were equal to Admin Group with red color.
Back to Top
IanSmithISA View Drop Down
Groupie
Groupie


Joined: 21 October 2010
Location: Worcester
Status: Offline
Points: 127
Post Options Post Options   Thanks (0) Thanks(0)   Quote IanSmithISA Quote  Post ReplyReply Direct Link To This Post Posted: 31 October 2012 at 7:28am

Good morning

I had a quick look at the mod and I am a bit confused.

<span class="s2hGroup<%=intGroupID%>"><% = strGroupName %></span>

Where you derive the last character of the stylesheet name from intGroupID, this makes perfect sense as a concept.

However intGroupID does not appear to be a variable that is specific to each post, if you look at the list of variables populated (line 1219 onwards in forum_posts.asp) for each post, intGroupID is not one of them.

If you were to modify the query to select tblAuthor.GroupID and use this then it would all make sense to me. It would also explain why lordtec is only seeing one style being used.

Of course I could be a complete idiot Smile.

Bye

Ian

Why does anyone need more than an 80x25 character only VDU?
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post Posted: 31 October 2012 at 10:52am
Sorry, this was a very quick hack, I assumed intGroupID was for the post author, since strGroupName is.

I will try and fix this up tonight.

Ian, you are correct that was my intention, as well as the fix.
S2H.co.uk - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.