Campaign Member Specific CSS

edited June 2020 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


  • 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!


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

                                           My Campaign CSS

                              Unlocking The Portal: A Guide to OP CSS                                    



  • RigilKent
    Posts: 10

    Neat! Looking forward to messing with this...

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


  • Kallak
    Posts: 1,052

    @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
    Posts: 413

    @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

  • ragnarhawk
    Posts: 86

    Unless I am mistaken, this could also be used for subordinate GMs in a shared campaign...  Anything that is GM-only could be restricted to a single user, and player secrets could be used to manage secrets for the other GMs.

    Am I correct?

  • thaen
    Posts: 413

    Yeah, this could work for that.  Note though that hiding things with CSS is not "secure".  The Co-GMs could still see things that were hidden with CSS if they have a little bit of technical knowledge.

    Obsidian Portal Developer

  • ragnarhawk
    Posts: 86

    Right, I was more thinking that it prevents accidental discoveries

  • thaen
    Posts: 413

    Yes, it would work excellently for that.

    Obsidian Portal Developer

Sign In or Register to comment.

The first Campaign of the Month for 2021 is Gaxim Plague!

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!