Restrict non-GM editing of my wiki

Garfieldwithissuez
Garfieldwithissuez
edited October 2014 in Campaign Portal Building
So I noticed when I logged into my wife's OP account to make sure the pages I want my players to be able to see are visible (and the others are not) I noticed that she has the ability to edit the non-GM-only part of EVERY page. I get that wiki's are designed so that many people can edit them in a live environment, but most that I have used have the ability to restrict editing of certain pages or by certain people/IPs. My question is can I do this with my campaign wiki? I'm all for letting players do some of the work, but at the same time I do't want them to be able to accidentally or intentionally delete or change something that I've worked days weeks or months to build. Any help would be appreciated.

Comments

  • NikMak
    NikMak
    Posts: 379
    I dont think you can; Ive never thought about it before, but i dont recall any way to lock a page other than keeping it a GM secret... any one else know better?
  • Thorvaldr
    Thorvaldr
    Posts: 141
    I don't believe there is any way to restrict editing. However, if you have an ascendant (paid) account, you can go back to previous version of the page if someone accidentally messes something up. The button to do this is near the "Last Update" area to the right of the wiki.

    -Thorvaldr
    DM of "Tyellador:":https://tyellador.obsidianportal.com/ "CotM April '14":http://blog.obsidianportal.com/tyellador-april-cotm-14/
  • Bondoid
    Bondoid
    Posts: 35 edited October 2014
    If your ascendent you can use this in your stylesheet.

    .header-icon {
    display:none;
    }

    .campaign-game-master .header-icon {
    display:inline;
    }

    This will make it impossible for anyone else to see the edit button. They could still edit it by writing in the url to get to the edit page...but that would require a lot of initiative. lol

    Bondoid
    "Legacy of Fire":https://our-legacy-of-fire.obsidianportal.com/
    Post edited by Bondoid on
  • Garfieldwithissuez
    Garfieldwithissuez
    Posts: 4
    Fantastic! I'm implementing the code right now. Thanks for the help! I just double checked with my wife's account, and she can still see everything but can no longer edit the wiki!
  • Bondoid
    Bondoid
    Posts: 35
    Hey Garfield,

    I was thinking about this during lunch, and using the code above they won't be able to edit anything! Including characters and adventure logs, etc.

    If you want to limit it to just the wiki page.

    .wiki-page-show .header-icon {
    display:none;
    }

    .campaign-game-master .wiki-page-show .header-icon {
    display:inline;
    }

    Bondoid
    "Legacy of Fire":https://our-legacy-of-fire.obsidianportal.com/dashboard
  • Thorvaldr
    Thorvaldr
    Posts: 141
    Bondoid- I did _not_ know about the .campaign-game-master tag/class/whatever we'll call it. That is _awesome!_ I'm not quite sure _how_ I want to use it as of yet, but I know I certainly want to use it.

    -Thorvaldr
    DM of "Tyellador:":https://tyellador.obsidianportal.com/ "CotM April '14":http://blog.obsidianportal.com/tyellador-april-cotm-14/
  • Bondoid
    Bondoid
    Posts: 35
    Ya, when I saw Garfield's question, I figured there was some body class being used to make the gm-only sections show or not. So I went searching for it, lol.

    Bondoid
    "Legacy of Fire":https://our-legacy-of-fire.obsidianportal.com/
  • Garfieldwithissuez
    Garfieldwithissuez
    Posts: 4
    This is truly fantastic, thank you again for the help. I'm sure I'll have more questions but now I won't stress over weather I'll get an answer.
  • GamingMegaverse
    GamingMegaverse
    Posts: 3,001
    Nice solution Bondoid- well done!

    Just trying to help out.

  • drew_campbell
    drew_campbell
    Posts: 3
    Hmmm...

    I've added

    .wiki-page-show .header-icon {
    display:none;
    }

    .campaign-game-master .wiki-page-show .header-icon {
    display:inline;
    }

    to my CSS, but the edit button is gone for me as well...
  • Bondoid
    Bondoid
    Posts: 35
    Hmm, ya your right somethings not working. I'm no CSS wiz, must be something I was missing. I dont have a dummy account i can use to test this as a member, not a GM. But try this. Definitely can see the edit button as GM.

    .wiki-page-show .header-icon {
    display:none;
    }


    .campaign-game-master .header-icon {
    display:inline;
    }
  • drew_campbell
    drew_campbell
    Posts: 3
    I can definitely see the Edit button now, thank you. I'll ask my players if they can.
  • ChrisFougere
    Posts: 1
    Is there a way to do this so it shows for co-gms as well? If so that solves the only real issue I'm having :)
  • Bondoid
    Bondoid
    Posts: 35 edited January 2015
    I would imagine so.

    You will need to find the body class for being signed in as a co-gm, as I am not a co-gm anywhere to look myself.


    This is what you need to do. Go to a wiki page, on the site where you are co-gm. Right click, inspect element. Scroll to the top. Near the top of the html is a body class tag with a bunch of classes in there. Find the one for co-gm, should be pretty obvious.

    Then as above, your css is.



    .wiki-page-show .header-icon { display:none; }

    .campaign-game-master .header-icon {
    display:inline;
    }

    .?????????????? .header-icon {
    display:inline;
    }


    replace the ???????????? with the class title for the co gm. Sorry I can't look this up for you, if someone wants to invite me to a campaign as co-gm I can get you what you need if your confused.

    Bondoid
    "Legacy of Fire":https://our-legacy-of-fire.obsidianportal.com/
    Post edited by Bondoid on
  • Belrathius
    Belrathius
    Posts: 206 edited January 2015
    Hey Bondoid, I just sent you an invite to my test campaign (where I test questionable CSS prior to getting it sorted out). Once you accept, I'll go ahead and promote you to co-GM.

    Tom a.k.a. Belrathius
    "Experiments In Space":https://gurpsspace.obsidianportal.com/
    Post edited by Belrathius on
  • Bondoid
    Bondoid
    Posts: 35
    Hey Belrathius,

    I accepted, so whenever your good for the promotion.
  • Belrathius
    Belrathius
    Posts: 206
    Promotion done. Hope it helps.

    Tom a.k.a. Belrathius
    "Experiments In Space":https://gurpsspace.obsidianportal.com/
  • Bondoid
    Bondoid
    Posts: 35
    So I spent some time looking at this, and it doesn't look like its possible. At least not using the method from above. There is no separate body class to differentiate someone logged in as a campaign member from the co-gm.

    Maybe someone a little more versed on how Obsidian Portal is structured behind the curtains could help you more.

    Sorry Guys


    Bondoid
    "Legacy of Fire":https://our-legacy-of-fire.obsidianportal.com/
  • GamingMegaverse
    GamingMegaverse
    Posts: 3,001
    Do not know any way to do this other than having your players/co-gm communicate with you- that is what we do.
    killervp
    "A God...Rebuilt":https://a-god-rebuilt.obsidianportal.com
    "OP's COTM April 2012":http://blog.obsidianportal.com/a-god-rebuilt-aprils-cotm/
    Over 300 Fans, and Looking for More!

    Just trying to help out.

  • david_kristof
    david_kristof
    Posts: 6
    Anyone ever figure this out? Clearly it is possible to allow players to view pages without being able to edit them... just look at characters for proof. I created all the characters in the campaign I'm a player in, and once another player joined I reassigned his character to him. I no longer have the ability to edit it, but I can see it!
  • Kallak
    Kallak
    Posts: 68
    I would say take a shot and create a feature request. If it's not crazy involved time wise, the devs might be able to bang it out in between other tasks. Having said that, I know they've got a lot on their plates right now, with everything else that is in the works, so as long as you don't go into it with the notion to be super disappointed if it's not something they can get to anytime soon, you might luck out.
Sign In or Register to comment.

April 2024
Season of Strife

Read the feature post on the blog
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