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.

Spoiler Problem

2 posters

Go down

Solved Spoiler Problem

Post by jomarcabasag September 6th 2017, 10:41 am

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 September 6th 2017, 5:27 pm; edited 2 times in total
jomarcabasag
jomarcabasag
Forumember

Posts : 82
Reputation : 1
Language : English

Back to top Go down

Solved Re: Spoiler Problem

Post by Draxion September 6th 2017, 3:42 pm

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.
Draxion
Draxion
Helper
Helper

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

https://www.talesoftellene.com/

Back to top Go down

Solved Re: Spoiler Problem

Post by jomarcabasag September 6th 2017, 3:55 pm

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
jomarcabasag
jomarcabasag
Forumember

Posts : 82
Reputation : 1
Language : English

Back to top Go down

Solved Re: Spoiler Problem

Post by Draxion September 6th 2017, 4:04 pm

All spoilers or only certain ones?
Draxion
Draxion
Helper
Helper

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

https://www.talesoftellene.com/

Back to top Go down

Solved Re: Spoiler Problem

Post by jomarcabasag September 6th 2017, 4:17 pm

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

Posts : 82
Reputation : 1
Language : English

Back to top Go down

Solved Re: Spoiler Problem

Post by Draxion September 6th 2017, 4:20 pm

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>"
    );
  }
});
Draxion
Draxion
Helper
Helper

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

https://www.talesoftellene.com/

Back to top Go down

Solved Re: Spoiler Problem

Post by jomarcabasag September 6th 2017, 4:44 pm

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
jomarcabasag
jomarcabasag
Forumember

Posts : 82
Reputation : 1
Language : English

Back to top Go down

Solved Re: Spoiler Problem

Post by Draxion September 6th 2017, 4:46 pm

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.
Draxion
Draxion
Helper
Helper

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

https://www.talesoftellene.com/

Back to top Go down

Solved Re: Spoiler Problem

Post by jomarcabasag September 6th 2017, 5:04 pm

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..
jomarcabasag
jomarcabasag
Forumember

Posts : 82
Reputation : 1
Language : English

Back to top Go down

Solved Re: Spoiler Problem

Post by Draxion September 6th 2017, 5:06 pm

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

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

https://www.talesoftellene.com/

Back to top Go down

Solved Re: Spoiler Problem

Post by jomarcabasag September 6th 2017, 5:12 pm

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

Posts : 82
Reputation : 1
Language : English

Back to top Go down

Solved Re: Spoiler Problem

Post by Draxion September 6th 2017, 5:14 pm

What special ranks?
Draxion
Draxion
Helper
Helper

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

https://www.talesoftellene.com/

Back to top Go down

Solved Re: Spoiler Problem

Post by jomarcabasag September 6th 2017, 5:17 pm

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

Posts : 82
Reputation : 1
Language : English

Back to top Go down

Solved Re: Spoiler Problem

Post by Draxion September 6th 2017, 5:18 pm

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

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

https://www.talesoftellene.com/

Back to top Go down

Solved Re: Spoiler Problem

Post by jomarcabasag September 6th 2017, 5:25 pm

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
jomarcabasag
jomarcabasag
Forumember

Posts : 82
Reputation : 1
Language : English

Back to top Go down

Solved Re: Spoiler Problem

Post by Draxion September 6th 2017, 5:42 pm

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

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

https://www.talesoftellene.com/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum