DragonPrime - LoGD Resource Community
Welcome Guest
  • Good evening, Guest.
    Please log in, or register.
  • July 18, 2018, 09:00:11 PM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1] 2 3   Go Down
  Print  
Author Topic: Require Admin Approval For Unmute??  (Read 2559 times)
0 Members and 1 Guest are viewing this topic.
TGTarheel
Codemeister
****
Offline Offline

Posts: 452


View Profile
« on: January 03, 2018, 12:25:52 AM »

Is there a module...or could someone help me create a module...that puts all new players on mute until Admin approved?

I have a stalker on my site who is abusing me simply because I am transgender.

I just don't feel I should have to put up with that on a site where I pay for the bandwidth, yaknow?

What I have done in the interim, is changed my settings to require email verification for account creation.  And then I have also added email addresses to the blocker module.

Additionally, I have added IP addresses to the setting in the Brendan Blocker Module.
« Last Edit: January 03, 2018, 12:29:14 AM by TGTarheel » Logged
TGTarheel
Codemeister
****
Offline Offline

Posts: 452


View Profile
« Reply #1 on: January 03, 2018, 02:37:35 AM »

Wondering if this could help...

I found a module called newbie Mute that requires them to read the FAQ before unmuting.

here is a code snip

Code:
case "faq-posttoc":
   //comment out in order to require an admin to manually unmute player??
if (!$seen) set_module_pref("seenfaq",true);
break;
Now see my comment in there.
If I commented out the line below...would that cause them to never have the pref in their account set to that they had seen the FAQ?
Then I could MANUALLY alter the pref.  And add a note that they should send a YOM to me to be unmuted?

This is a severe situation ongoing on my site right now...looking for a way to shut this guy down.

The other thing I would like to do is...when commenting that out...have it add in a system email sent to the player informing them to YOM the Admin to be unmuted.

It seems to me like this ought to be able to be done.  Am I on the right track here?
« Last Edit: January 03, 2018, 02:47:57 AM by TGTarheel » Logged
TGTarheel
Codemeister
****
Offline Offline

Posts: 452


View Profile
« Reply #2 on: January 03, 2018, 03:13:05 AM »

One other thought....is there a way to detect Proxy IP's and deny account creation to Proxy IP's?
Logged
Aeolus
Mod God
*****
Offline Offline

Posts: 1880


You're welcome.


View Profile WWW
« Reply #3 on: January 03, 2018, 03:30:58 AM »

Concerning your first two posts, you can use the updated Muting and First YoM modules.

Tweak the Muting mod to automatically perm-mute players upon account creation. Use the First YoM module to send an automatic message to the player, again upon account creation (already implemented), telling them to message you about an unmute.
Logged

TGTarheel
Codemeister
****
Offline Offline

Posts: 452


View Profile
« Reply #4 on: January 03, 2018, 03:47:22 AM »

Concerning your first two posts, you can use the updated Muting and First YoM modules.

Tweak the Muting mod to automatically perm-mute players upon account creation. Use the First YoM module to send an automatic message to the player, again upon account creation (already implemented), telling them to message you about an unmute.

Thanks very much Aeolus!
It has been a nightmare tonight, I had a person create seven phony accounts and spout all manner of hateful crud about transgender people, and me specifically.

Now, normally, I have a pretty thick skin...you can't be an out trans for twenty years and NOT have a thick skin.

But, seeing as i am paying for the bandwidth, i am not about to allow someone to abuse me or transgender people...or, for that matter any other minority group on my badwidth.

Appreciate the assistance very much.

I also found and have implemented the Proxy Blocker Module.

UPDATE:  The Proxy Blocker caused my site to not work, I had to take it off.
« Last Edit: January 03, 2018, 03:52:43 AM by TGTarheel » Logged
TGTarheel
Codemeister
****
Offline Offline

Posts: 452


View Profile
« Reply #5 on: January 03, 2018, 04:10:48 AM »

Concerning your first two posts, you can use the updated Muting and First YoM modules.

Tweak the Muting mod to automatically perm-mute players upon account creation. Use the First YoM module to send an automatic message to the player, again upon account creation (already implemented), telling them to message you about an unmute.

OK, please tell me how to tweak the muting module, because i just tried it on a test account and it isn't working.

I am sorry, but I am very very upset here, this is a serious situation, and I just need a fast fix here...before this guy creates fifty accounts...please help!

I am sincerely begging here.
Logged
Aeolus
Mod God
*****
Offline Offline

Posts: 1880


You're welcome.


View Profile WWW
« Reply #6 on: January 03, 2018, 05:07:38 AM »

OK, please tell me how to tweak the muting module, because i just tried it on a test account and it isn't working.

I am sorry, but I am very very upset here, this is a serious situation, and I just need a fast fix here...before this guy creates fifty accounts...please help!

I am sincerely begging here.

Of course it didn't work, it's not tweaked yet. You need to hook into the character creation hook, and set the pref to perm-muted straight away.

I understand your issues, but begging won't do anything. If anything, this will punish valid players for the actions of one - who's to say they won't message you asking for an unmute first as they pretend to be someone new, then continue on their path?
Logged

TGTarheel
Codemeister
****
Offline Offline

Posts: 452


View Profile
« Reply #7 on: January 03, 2018, 05:23:08 AM »

OK, please tell me how to tweak the muting module, because i just tried it on a test account and it isn't working.

I am sorry, but I am very very upset here, this is a serious situation, and I just need a fast fix here...before this guy creates fifty accounts...please help!

I am sincerely begging here.

Of course it didn't work, it's not tweaked yet. You need to hook into the character creation hook, and set the pref to perm-muted straight away.

I understand your issues, but begging won't do anything. If anything, this will punish valid players for the actions of one - who's to say they won't message you asking for an unmute first as they pretend to be someone new, then continue on their path?

Ok so where is this character creation hook?  because I do not see one.
I also do not see a pref that could be set.

And it would not mater if they did that, because I would be on and right there and thus able to immediately deal with them.

Sorry, but this module is more complicated than what I normally work with...I am not terribly adept with this.

Could you tell me why my original suggestion here would not accomplish what I am trying to do...because at least that I pretty much understand.  This module, I am afraid I can't follow.

Is there some reason why...modifying the Newbie Mute module as follows

Code:
case "faq-posttoc":

if (!$seen) set_module_pref("seenfaq",true);
break;

to this

Code:
case "faq-posttoc":
    //comment out in order to require an admin to manually unmute player??
//if (!$seen) set_module_pref("seenfaq",true);
///here do a system YOM to email the player to request an unmute

//thus, they are not unnmuted, even after reading the FAQ, and Admin has to manually unmute them.
break;

Some reason why this idea does not work?

Because I think I sorta better understand this less-complicated module.

Truthfully, I just want it active long enough to make the guy just give the heck up and get a life.
Logged
Aeolus
Mod God
*****
Offline Offline

Posts: 1880


You're welcome.


View Profile WWW
« Reply #8 on: January 03, 2018, 05:41:07 AM »

Ok so where is this character creation hook?  because I do not see one.
I also do not see a pref that could be set.

You need to add it. That's what I meant. Look up other modules that hook into character creation - like the First YoM!

And really? I do a CTRL+F in the Muting mod, and come up with 14 separate set_module_pref's... that would indicate a pref that can be set.

Could you tell me why my original suggestion here would not accomplish what I am trying to do...because at least that I pretty much understand.  This module, I am afraid I can't follow.

Because Newbie Mute was made over a decade ago, and is severely out of date.

Is there some reason why...modifying the Newbie Mute module as follows

Some reason why this idea does not work?

Because I think I sorta better understand this less-complicated module.

Because there are already modules that do what you want. One messages the player as soon as they create an account. This is misleading - they believe they'll be unmuted if they read the FAQ, but they won't, and they have to send a message themselves, whereas they can just reply to the automated message.

Truthfully, I just want it active long enough to make the guy just give the heck up and get a life.

Just ignore him. I've had my deal of trolls, they give up soon enough. Acknowledging him is exactly what he wants.
Logged

TGTarheel
Codemeister
****
Offline Offline

Posts: 452


View Profile
« Reply #9 on: January 03, 2018, 05:51:54 AM »

Is this what I want for the character creation hook?

   module_addhook("process-create");
   return true;

As to prefs, I see two prefs in the muting module...

         "mail" => "End of mail mute,text|0000-00-00 00:00:00",
         "comm" => "End of commentary mute,text|0000-00-00 00:00:00",

Now it seems to me I want the "comm" pref, yes??

What I do not understand now...is what to set that module pref to in a case "process-create"

I think I am sorta understanding what to do but really need a nudge in the right direction here, because this is more complicated stuff than I am used to.


Looking further in, I see a $comm_muted_b ==2 means they are perma muted  $comm_muted_b ==1 is temp mute for x number of days and $comm_muted_b == 0 meaning not muted.

But those are not prefs, they are variables.

How would I get to a point where they are perma muted...and then, in the Grotto, I can flip a switch and make them un-muted?

That is where I fall down...and fail to understand how I get there.
« Last Edit: January 03, 2018, 06:02:18 AM by TGTarheel » Logged
Aeolus
Mod God
*****
Offline Offline

Posts: 1880


You're welcome.


View Profile WWW
« Reply #10 on: January 03, 2018, 06:14:39 AM »

Yes, you're on the right track! Great job!

Yes, $comm_muted_b equals 2 means they are perm-muted, and when is $comm_muted set to 2? When the pref is set to "9999-99-99 99:99:99". Hence, the sequence of 9's is the value of the pref for a perm-mute.

And yes, you can either unmute from the Grotto or a player's bio.
Logged

TGTarheel
Codemeister
****
Offline Offline

Posts: 452


View Profile
« Reply #11 on: January 03, 2018, 09:47:28 AM »

Yes, you're on the right track! Great job!

Yes, $comm_muted_b equals 2 means they are perm-muted, and when is $comm_muted set to 2? When the pref is set to "9999-99-99 99:99:99". Hence, the sequence of 9's is the value of the pref for a perm-mute.

And yes, you can either unmute from the Grotto or a player's bio.

But that is where I fall down.

Do I jut unmute them from the player bio and it works??

Because you can't do it thru a pref in the muting module itself.


so does this work, adding to your muting module


Code:
module_addhook("process-create");


and then

Code:
case "process-create":
$comm_muted_b == 2;
break;

Does that do it??

If I have read you right this should.
And if so, thanks for your help...i just seem to need getting talked thru this stuff a bit.

UPDATE:  I added this stuff into the module.  Re-installed the module.  It did not work.  i also tried changing $comm_muted_b == 2; to $comm_muted_b = 2;
It still did not work.
« Last Edit: January 03, 2018, 04:37:41 PM by TGTarheel » Logged
Aeolus
Mod God
*****
Offline Offline

Posts: 1880


You're welcome.


View Profile WWW
« Reply #12 on: January 03, 2018, 06:37:34 PM »

Do I jut unmute them from the player bio and it works??

Because you can't do it thru a pref in the muting module itself.

Set, you can unmute them from their bio. You can do it through a pref - if it's through a pref, setting it to "0000-00-00 00:00:00" unmutes the player.


UPDATE:  I added this stuff into the module.  Re-installed the module.  It did not work.  i also tried changing $comm_muted_b == 2; to $comm_muted_b = 2;
It still did not work.

The hook is right! But if you think about it, all you're doing here is setting a variable that won't do anything. You need to actually set the pref in the muting module. So, in the process-create hook, you need to add set_module_pref("PREF NAME?", "VALUE?", "USER?", "MODULE?"), filling out those values.
Logged

TGTarheel
Codemeister
****
Offline Offline

Posts: 452


View Profile
« Reply #13 on: January 03, 2018, 07:30:09 PM »

Do I jut unmute them from the player bio and it works??

Because you can't do it thru a pref in the muting module itself.

Set, you can unmute them from their bio. You can do it through a pref - if it's through a pref, setting it to "0000-00-00 00:00:00" unmutes the player.


UPDATE:  I added this stuff into the module.  Re-installed the module.  It did not work.  i also tried changing $comm_muted_b == 2; to $comm_muted_b = 2;
It still did not work.

The hook is right! But if you think about it, all you're doing here is setting a variable that won't do anything. You need to actually set the pref in the muting module. So, in the process-create hook, you need to add set_module_pref("PREF NAME?", "VALUE?", "USER?", "MODULE?"), filling out those values.

OK...let's see if I can puzzle that out...
As much as I find it frustrating to not get a straight answer I think I know what you are doing here...

UPDATE:

Damn, this did not work either...

$comm_muted_b = (get_module_pref("comm",FALSE,$id) != "0000-00-00 00:00:00")? ((get_module_pref("comm",FALSE,$id) == "9999-99-99 99:99:99")? 2 : 1) : 0;
         $idret = "&id=".$id."&ret=".$ret."";

I do NOT know what to do here and it is getting REAL frustrating creating and deleting new characters to test this...please just help me...

I do NOT understand how to do this...should the first FLASE be changed to TRUE??

Noooope...that did not work either!!

i am totally flummoxed here...i just can't follow what is being done here....

Oh crap...i am stupid...i am GETTING...not SETTING....the damn pref, OMG..

Nuts, this did not do it...
set_module_pref("comm","9999-99-99 99:99:99",FALSE,$id);

Maybe THAT is where I need TRUE...
or where I need all zeroes...
« Last Edit: January 03, 2018, 07:44:11 PM by TGTarheel » Logged
Aeolus
Mod God
*****
Offline Offline

Posts: 1880


You're welcome.


View Profile WWW
« Reply #14 on: January 03, 2018, 07:45:39 PM »

OK...let's see if I can puzzle that out...
As much as I find it frustrating to not get a straight answer I think I know what you are doing here...

I'm glad you do, and I really hope you're seeing the benefit of it. Learning how to do something is and will be far more beneficial to you than just copy-pasting the solution without knowing how it actually works.

Let us know how you go. You're definitely getting there.
Logged

Pages: [1] 2 3   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Welcome to DragonPrime - The LoGD Resource Community!

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
30 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search