Color Group Names in Posts for SMF2.0.2

Started by xDrac, October 13, 2012, 07:31:03 PM

Previous topic - Next topic

xDrac

I need a mod that will color group names in posts.
Much like this one mod here: http://custom.simplemachines.org/mods/index.php?mod=2225

Sadly though it doesnt seem to work on 2.0.2 ):
Lineage 3 Forum
Official Lineage3 Online Forums

All Colours Sam

Hi, welcome to SMF.

If you see the manual edits for that mod, you will notice is only a small change on a template file:

http://custom.simplemachines.org/mods/index.php?action=parse;mod=2225;attach=120077;smf_version=2.0

you can also try to emulate to install it: How can I install a mod that doesn't work in my SMF version?
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

xDrac

Thanks for the welcome! :)
Unfortunately though I really have no idea about codes and stuff like that and really don't want to mess things up :(
Could someone edit the code for it to work properly maybe? Or guide me a bit on what to do?
Lineage 3 Forum
Official Lineage3 Online Forums

All Colours Sam

Sure, attach your ./Themes/default/Display.template.php  or if you are using a custom theme and that theme has its own display.template, attach that file too.
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

xDrac

Lineage 3 Forum
Official Lineage3 Online Forums

xDrac

Lineage 3 Forum
Official Lineage3 Online Forums

EddieC

See how you get on with this, and remember to keep a backup of the original template in case it doesn't work!
Liverpool FC news site & LFC forum with over 150k posts
Football forum for fans of all English clubs
Cheap A4 colour printing

xDrac

Works fine! Thanks a lot!
For instance, if I wanted the group name text to be italic too what would I add there?
Lineage 3 Forum
Official Lineage3 Online Forums

EddieC

Search for:

<li style="color: ',$message['member']['post_group_color'], '; font-weight: bold;">

and replace with:

<li style="color: ',$message['member']['post_group_color'], '; font-weight: bold; font-style: italic;">

This snippet of code appears twice in the template, and you need to change both.
Liverpool FC news site & LFC forum with over 150k posts
Football forum for fans of all English clubs
Cheap A4 colour printing

Advertisement: