The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
2 posters

    Spoiler Problem

    jomarcabasag
    jomarcabasag
    Forumember


    Posts : 82
    Reputation : 1
    Language : English

    Solved Spoiler Problem

    Post by jomarcabasag 06.09.17 9:41

    Forum Version Phpbb3

    How I can manage the Spoiler? Crying or Very sad For High Rank only like moderator? Razz
    Thanks in Advance. Rolling Eyes .

    2nd question.

    Why my forum is Limit with 50 page? can I increase it to unlimited?

    Sorry For my English I'm not expert in English I'm expert in Filipino language sorry Wink But I Read the Rules English only That I'm saying is English now hehehe affraid


    Last edited by jomarcabasag on 06.09.17 16:27; edited 2 times in total
    Draxion
    Draxion
    Helper
    Helper


    Male Posts : 2518
    Reputation : 321
    Language : English
    Location : USA

    Solved Re: Spoiler Problem

    Post by Draxion 06.09.17 14:42

    Hi there.

    For your spoiler question, can you explain just a little more cause I'm not sure what you are asking? Do you want to be able to style it with a code? Or have it styled specifically for moderators?

    Second question. If you are referring to the 50 posts per page, I'm sorry but that isn't able to be modified over 50.
    jomarcabasag
    jomarcabasag
    Forumember


    Posts : 82
    Reputation : 1
    Language : English

    Solved Re: Spoiler Problem

    Post by jomarcabasag 06.09.17 14:55

    Draxion wrote:Hi there.

    For your spoiler question, can you explain just a little more cause I'm not sure what you are asking? Do you want to be able to style it with a code? Or have it styled specifically for moderators?

    Second question. If you are referring to the 50 posts per page, I'm sorry but that isn't able to be modified over 50.
    Ah ok.
    I want to my first question is.. I want to staff member only can see Spoiler. Crying or Very sad

    edited: Like this Spoiler Problem Asdadda

    https://2img.net/h/s26.postimg.cc/f40ctfeu1/asdadda.png
    Draxion
    Draxion
    Helper
    Helper


    Male Posts : 2518
    Reputation : 321
    Language : English
    Location : USA

    Solved Re: Spoiler Problem

    Post by Draxion 06.09.17 15:04

    All spoilers or only certain ones?
    jomarcabasag
    jomarcabasag
    Forumember


    Posts : 82
    Reputation : 1
    Language : English

    Solved Re: Spoiler Problem

    Post by jomarcabasag 06.09.17 15:17

    Draxion wrote:All spoilers or only certain ones?
    Yes All Spoiler.
    This is Posible ?
    I think this is a hard code.
    Draxion
    Draxion
    Helper
    Helper


    Male Posts : 2518
    Reputation : 321
    Language : English
    Location : USA

    Solved Re: Spoiler Problem

    Post by Draxion 06.09.17 15:20

    Yes, it's very much possible. Smile

    Add this to your JavaScripts.

    Title: Whatever you please
    Placement: In the topics
    Code:
    $(function() {
      var access = _userdata["user_level"],
        spoiler_box = "Spoiler content only visible to <strong>Staff</strong>";
      $("head").append(
        "<style>.spoiler_access{border:2px solid #000;padding:10px;}</style>"
      );
      if (access !== 0) {
        $(".codebox.spoiler").replaceWith(
          '<div class="spoiler_access">' + spoiler_box + "</div>"
        );
      }
    });
    jomarcabasag
    jomarcabasag
    Forumember


    Posts : 82
    Reputation : 1
    Language : English

    Solved Re: Spoiler Problem

    Post by jomarcabasag 06.09.17 15:44

    Draxion wrote:Yes, it's very much possible. Smile

    Add this to your JavaScripts.

    Title: Whatever you please
    Placement: In the topics
    Code:
    $(function() {
     Â var access = _userdata["user_level"],
     Â   spoiler_box = "Spoiler content only visible to <strong>Staff</strong>";
     Â $("head").append(
     Â   "<style>.spoiler_access{border:2px solid #000;padding:10px;}</style>"
     Â );
     Â if (access !== 0) {
     Â   $(".codebox.spoiler").replaceWith(
     Â     '<div class="spoiler_access">' + spoiler_box + "</div>"
     Â   );
     Â }
    });
    Aw Sorry... Not Working. Sad
    Draxion
    Draxion
    Helper
    Helper


    Male Posts : 2518
    Reputation : 321
    Language : English
    Location : USA

    Solved Re: Spoiler Problem

    Post by Draxion 06.09.17 15:46

    Replace that code with this.
    Code:
    $(function() {
      var access = _userdata.user_level,
        spoiler_box = "Spoiler content only visible to <strong>Staff</strong>";
      $("head").append(
        "<style>.spoiler_access{border:2px solid #000;padding:10px;}</style>"
      );
      if (access == 0) {
        $(".codebox.spoiler").replaceWith(
          '<div class="spoiler_access">' + spoiler_box + "</div>"
        );
      }
    });

    Be sure you have JavaScripts enabled too.
    jomarcabasag
    jomarcabasag
    Forumember


    Posts : 82
    Reputation : 1
    Language : English

    Solved Re: Spoiler Problem

    Post by jomarcabasag 06.09.17 16:04

    Draxion wrote:Replace that code with this.
    Code:
    $(function() {
     Â var access = _userdata.user_level,
     Â   spoiler_box = "Spoiler content only visible to <strong>Staff</strong>";
     Â $("head").append(
     Â   "<style>.spoiler_access{border:2px solid #000;padding:10px;}</style>"
     Â );
     Â if (access == 0) {
     Â   $(".codebox.spoiler").replaceWith(
     Â     '<div class="spoiler_access">' + spoiler_box + "</div>"
     Â   );
     Â }
    });

    Be sure you have JavaScripts enabled too.
    Wow it Work thanks @Draxion . Your a master in coder hehehe...
    Can you Visible for Speacial rank only..
    Thanks in advanced..
    Draxion
    Draxion
    Helper
    Helper


    Male Posts : 2518
    Reputation : 321
    Language : English
    Location : USA

    Solved Re: Spoiler Problem

    Post by Draxion 06.09.17 16:06

    You're very welcome. What do you mean "visible for special rank'?
    jomarcabasag
    jomarcabasag
    Forumember


    Posts : 82
    Reputation : 1
    Language : English

    Solved Re: Spoiler Problem

    Post by jomarcabasag 06.09.17 16:12

    Draxion wrote:You're very welcome. What do you mean "visible for special rank'?
    Yes that's I mean. Razz
    Draxion
    Draxion
    Helper
    Helper


    Male Posts : 2518
    Reputation : 321
    Language : English
    Location : USA

    Solved Re: Spoiler Problem

    Post by Draxion 06.09.17 16:14

    What special ranks?
    jomarcabasag
    jomarcabasag
    Forumember


    Posts : 82
    Reputation : 1
    Language : English

    Solved Re: Spoiler Problem

    Post by jomarcabasag 06.09.17 16:17

    Draxion wrote:What special ranks?
    hahahaha thanks for Quiek replay..
    Like :
    Administrator
    Moderator
    Staff member
    Draxion
    Draxion
    Helper
    Helper


    Male Posts : 2518
    Reputation : 321
    Language : English
    Location : USA

    Solved Re: Spoiler Problem

    Post by Draxion 06.09.17 16:18

    I can allow access to the spoilers to either moderators or admins. The code allows access to both.
    jomarcabasag
    jomarcabasag
    Forumember


    Posts : 82
    Reputation : 1
    Language : English

    Solved Re: Spoiler Problem

    Post by jomarcabasag 06.09.17 16:25

    Draxion wrote:I can allow access to the spoilers to either moderators or admins. The code allows access to both.
    Wow thanks.
    Your so kind thanks a lot for helping me...
    My Problem is solved.
    That's second question is Closed...
    Problem solved by @draxion
    Draxion
    Draxion
    Helper
    Helper


    Male Posts : 2518
    Reputation : 321
    Language : English
    Location : USA

    Solved Re: Spoiler Problem

    Post by Draxion 06.09.17 16:42

    You are welcome!
    Problem solved & topic archived.
    Please read our forum rules: ESF General Rules

      Current date/time is 13.11.24 18:56