Campaign Member Specific CSS

thaen
thaen
edited June 23 in Campaign Portal Building

We just pushed a very small update to the system.  For Ascendant Campaigns, the body tag of the Campaign pages has a new class that is specific to each member of the Campaign.  The format is "campaign-member-[login]", so when I'm looking at a page the class is "campaign-member-thaen", and when Kallak is looking, the class is "campaign-member-kallak".  (The "login" part of the class is always all lower case.)

This means that if a GM wants to add some styling for just one specific Player, that can now be done.  For example, maybe the GM wants to highlight or bold a specific part of a wiki page so it stands out for a specific Player, or the GM wants to have some text show inline in the wiki page only for that Player.  (Note, this is only CSS, so if your other Players are savvy enough to check the Page Source, they could still see that text...but they'd have to know to look for it.) 

I'm sure our CSS junkies will think of some much more creative ways to use this new feature.  Feel free to post them if any come to mind!

Post edited by thaen on

Obsidian Portal Developer

Comments

  • cgregory
    cgregory
    Posts: 772

    This is great.  I will definitely be using this.

    I can definitely see using this in a upcoming campaign where some characters lose sanity. Changing posts so that characters who are not viewing the world the same as other characters could be interesting.

    I'm guessing that this applies to the adventure logs as well as the wiki pages?  I can see using it for some posts where some characters have a specific sense that other characters do not have, such as darkvision, enhanced smells, ancestoral memories, or telepathy.

    They are among us!

    image

    Current Campaign: XCom: Defiance - Campaign of the Month November 2016

                                           My Campaign CSS

                              Unlocking The Portal: A Guide to OP CSS                                    

     

     

  • RigilKent
    RigilKent
    Posts: 10

    Neat! Looking forward to messing with this...

    Current Campaign - Traveller: The Verge - Campaign of the Month July 2020.

     

  • Kallak
    Kallak
    Posts: 1,032

    @cgregory, pairing this with a sanity mechanic would be AMAZING! Awesome idea.

    All the best,
    - Kallak

    Inner Council Member
    CotM Selection Committee
    Writer/Editor - Words In The Dark
    Obsidian Portal Community and Content Manager
    GameMaster - Crucible of the Blacksoul (CotM for Jan. 2013)

  • thaen
    thaen
    Posts: 322

    @cgregory, yep, wiki pages, adventure logs, any part of the campaign actually.  Anything that you can affect with your Campaign's Custom CSS will have these classes so you can affect just a specific Player or Players.

    Obsidian Portal Developer

Sign In or Register to comment.

Get your heroism on with Freedomverse! October's Campaign of the Month!

Read the feature post on the blog!
Or return to Obsidian Portal!

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Discussions