Attention:

Support Rules and Guidelines
Before you post your support topic, please remember to:
  • Read the support forum rules.
  • Check the wiki and use search to see if your problem can be answered there first.
  • Link your board please, and make sure that the problem on your board is visible to guests or provide a test account.
  • Do not post Board Wrappers and CSS unless requested. With a board link, this is not necessary.
  • Be as descriptive as you can and use as many details as possible when describing your problem.
  • Please briefly mark any links to forums that may not be work-safe.
This will help ensure your support issue will be attended to in a quick and efficient manner.

  ClosedNew TopicNew Poll

 Self delete and hide tag [SOLVED]
#
Hello,

I'm very new here and to this whole forum creating thing and also english isn't my native language, so I apologize if I do something wrong or misunderstood what you say.

My first question is - how to I enable self delete option for our members, so they can delete both their replies and topics? Just their own, not anyone's else. I'm creating RP forum so that's why. Also if it's possible for me to see when someone delete their reply/topic somewhere. I know there is option, at least I saw post from 2011 where it was enabled, I just can't find where it is.

My second question is about hide tag. Better said, if there's something that enable ONLY CERTAIN USERS (for example those who you tag) to see your replies, not everyone who reply. It's because my future RP partners want "private games" so no one else than tagged users can see. Is this somehow possible?

Thank you for your help.

This post has been edited by angelicbab: Jun 11 2018, 04:45 AM
PM
#

For Question #1: yes. go into the acp > users & groups and for each user press the edit button. If you scroll a bit, there's a option that says "delete own replies" and then another "delete own topics".

You could probably see if they have been deleted in the MODCP in the moderation logs!

#2 though, I have no idea about that. Maybe someone else knows?
PM
#
Thank you very much for your help, works perfeclty! Can I see who deleted their topics/replies though? Just in case the private games thingy won't get solved, so no one stalks someone else's game (so they won't add reply to see what they play and then delete it so one can punish them for it).
PM
#
for #2, I have one idea: setting it into a new bbcode with 2 params, param 1 for the username and param 2 for the content.
so it's like

<div class="member-name">(PARAM1)</div><div class="rp-content" style="display: none">(PARAM2)</div>

its idea is similar like a spoiler (hence the display:none on the rp-content class).

and then I'll code a javascript code like this

CODE
var membername = $("#logged-in-as").html();
var postmemname = $(".member-name");
if(membername == postmemname) { $(".rp-content").css("display", "block"); }
PM
#
This sounds really cool, MrsLucky! I'm really sorry for being annoying, I'm just still very new to this so I'm kind of confused. How should I use what you wrote, please?

Oh, small problem - just noticed that if I delete post through non-admin (just member) account, it still stays there. Clicked on delete three times and it won't delete itself. EDIT: Nevermind, just found out how to fix this problem with deleting replies!

This post has been edited by angelicbab: Jun 11 2018, 07:45 AM
PM
#
well, duh! I forgot to list the instructions http://files.b1.jcink.com/html/emoticons/sad.gif sorry, my bad. no, that's not right, you're not annoying at all.
ok, so navigate to acp > custom bbcodes > add new bbcode. fill the name (like 'hiderp' for example, you can choose another name of course!), on the "bbcode param type" choose "2 param", and on the html conversion part paste the html code I've provided earlier. display on form is up to you, but you might want to set it as "yes".

then navigate to skins & templates > board wrappers. choose a board wrapper, and ctrl+f <% COPYRIGHT %>. below the <% COPYRIGHT %>, paste this:
CODE
<script>
$(".member-name").each(function(i, obj) {
var membername = $("#logged-in-as").html();
var postmemname = $(obj).html();
if(postmemname.toLowerCase() == membername.toLowerCase()) {
$(obj).next().css("display", "block");
$(obj).html("You're tagged; welcome in!");
} else {
$(obj).html("I'm sorry but you're not allowed to see this content!");
}
});
</script>


if you have any questions just let me know http://files.b1.jcink.com/html/emoticons/smile.gif

This post has been edited by mrslucky: Jun 12 2018, 02:05 AM
PM
#
Hello and thank you for this! I did it as you said. The new BB code shows up when I'm writing new post. When I click HIDERP, it looks like this: [HIDERP=x][/HIDERP]

Does the x stand for someone's username and the post should be written between [HIDERP=x] ... [/HIDERP]?

When I wrote it between, it ended up like this: http://thesinners.jcink.net/index.php?act=...34&st=0#entry67

If you'd need to, I can give you my admin username and password.
PM
#
yes, indeed. x for the username and the post is written between the tags
uh, no need for an admin account, a test account is enough. http://files.b1.jcink.com/html/emoticons/smile.gif do you have any test account registered on your board? thank you
PM
#
Yes, I have an account through which I try new functions! Just a sec
And one simple question - is it possible to write there more than one username? For example if I play in private with three people, can I use it like: [HIDERP=first player, second player] ... [/HIDERP]?
PM
#
ok, so go to acp >> custom bbcodes >> manage bbcode. edit your [hiderp] bbcode, replace the code in the html conversion with this:
CODE
<div class="member-name">(PARAM1)</div><div class="rp-content" style="display: none">(PARAM2)</div>


sure you can, replace the code between the <script> and </script> tags in your board wrappers with
CODE
$(".member-name").each(function(i, obj) {
var uname = $("#logged-in-as").html();
var uname2 = $(obj).html();
if(uname2.toLowerCase() == uname.toLowerCase() || uname2.indexOf(uname) > -1) {
$(obj).next().css("display", "block");
$(obj).html("You're tagged; welcome in!");
}else{
$(obj).html("I'm sorry but you're not allowed to see this content!");
}
});

haven't tested it yet so please let me know if it doesn't work http://files.b1.jcink.com/html/emoticons/biggrin.gif

This post has been edited by mrslucky: Jun 12 2018, 10:15 PM
PM
#
Okay so I've tried it! This is how it looks like inside my board wrappers:

http://nd02.jxs.cz/416/324/1ce7549e4e_105015934_o2.jpg

Part which I highlighted is your code. When I pasted both codes (one in wrappers, one inside bb codes), this is how it looks like when I use HIDERP in forum:

http://nd02.jxs.cz/368/523/f8d77791b4_105015932_o2.jpg

Reina Ann is my character which I used for test.

Inside the post it looks like this:

http://nd02.jxs.cz/827/662/f6e3d0f782_105015933_o2.jpg

I tried multiple variations for tagging just to be sure which one might be wrong. As you can see, it shows name of the person I tagged in post, but not the part between [HIDERP]...[/HIDERP].

Hope it helps!
PM
#
oh my, I'm sorry, replace the code in the board wrappers with this:
CODE
<script>$(".member-name").each(function(i, obj) {
var uname = $("#logged-in-as").html();
var uname2 = $(obj).html();
if(uname2.toLowerCase() == uname.toLowerCase() || uname2.indexOf(uname) > -1) {
$(obj).next().css("display", "block");
$(obj).html("You're tagged; welcome in!");
}else{
$(obj).html("I'm sorry but you're not allowed to see this content!");
}
});</script>
PM
#
It works!! Thank you so so much, you're great! If anything crashes, I will let you know. One last question, if somebody wanted to play with more people in private, should I just copy this part:

EDIT: Nothing, made it work! Thank you very much again from me and our players. http://files.b1.jcink.com/html/emoticons/smile.gif

This post has been edited by angelicbab: Jun 13 2018, 10:47 AM
PM
#
you're very welcome, glad that it works! http://files.b1.jcink.com/html/emoticons/smile.gif indeed, don't hesitate to let me know if there are any errors! http://files.b1.jcink.com/html/emoticons/biggrin.gif
PM
#
This topic has been solved. If you need anymore help please post a new thread. Thanks for choosing Jcink services.

signature
email: admin@jcink.com :: blog: John C.
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
Share this topic:
« Next Oldest | General Support | Next Newest »

Options ClosedNew TopicNew Poll