Advertisement:

Author Topic: Inactive & spam users [solved]  (Read 7775 times)

Liath

  • issues
  • Hero Member
  • *
  • Posts: 1346
  • </html> the end is always near
Re: Inactive users
« Reply #15 on: May 05, 2017, 02:35:00 am »
take a look in your database if this accounts registered from same ip or ip-range... if it is, you could forbid registering a new account from the same ip if there is already another one


i think about it, but i could add this check to my spam protection

theinvisible

  • Sr. Member
  • ****
  • Posts: 311
Re: Inactive users
« Reply #16 on: May 05, 2017, 07:46:11 am »
u guys take a look. my url is https://goo.gl/FhkzMn


theinvisible

  • Sr. Member
  • ****
  • Posts: 311
Re: Inactive users
« Reply #17 on: May 05, 2017, 07:53:44 am »
take a look in your database if this accounts registered from same ip or ip-range... if it is, you could forbid registering a new account from the same ip if there is already another one


i think about it, but i could add this check to my spam protection

most of them have different ips'..

theinvisible

  • Sr. Member
  • ****
  • Posts: 311
Re: Inactive users
« Reply #18 on: May 05, 2017, 07:59:11 am »
A second case would be some mean people registering on purpose fake users.


There is a chance for that. As you said people are trying to make fake user accounts on purpose. And i want to end it.
Is there any way for doing that?

Liath

  • issues
  • Hero Member
  • *
  • Posts: 1346
  • </html> the end is always near
Re: Inactive users
« Reply #19 on: May 05, 2017, 08:04:35 am »
the only what you could do is to use some protection which disallow registering from particular email hoster... but you couldn't ban big hoster like gmail, it is used to often, also by regular user


if they are using different ip's there isn't any chance to use this, but i can disallow registering for selected email hoster in my plugin

theinvisible

  • Sr. Member
  • ****
  • Posts: 311
Re: Inactive users
« Reply #20 on: May 05, 2017, 10:52:40 am »
the only what you could do is to use some protection which disallow registering from particular email hoster... but you couldn't ban big hoster like gmail, it is used to often, also by regular user


if they are using different ip's there isn't any chance to use this, but i can disallow registering for selected email hoster in my plugin

Is there a way to block all emails other than from gmail.com, yahoo.com, outlook.com and live.com ?


marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1652
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Re: Inactive users
« Reply #22 on: May 05, 2017, 06:14:07 pm »
Instead of bloking email host, you could delete unactivated user accounts with inactive period of 2 days for example, with a cron job, daily for example.
Don't ask me about the script, it's just an ideea.
« Last Edit: May 05, 2017, 06:17:54 pm by marius-ciclistu »

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1652
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Re: Inactive users
« Reply #23 on: May 07, 2017, 11:57:00 am »
A second case would be some mean people registering on purpose fake users.


There is a chance for that. As you said people are trying to make fake user accounts on purpose. And i want to end it.
Is there any way for doing that?

It just occured to me.
For example,  I've set the site to let only signed-in users to contact via message a seller.
Isn't this your case also? This would explain the activated registered users without adds, however not the unactivated ones.

theinvisible

  • Sr. Member
  • ****
  • Posts: 311
Re: Inactive users
« Reply #24 on: May 09, 2017, 03:28:46 pm »
https://forums.osclass.org/general-help/a-way-to-restrict-users-by-their-email-provider/msg104649/#msg104649

I think this could partially solve my problem.
But there are people uses gmail accounts and not activated the accounts.

Anyway thanks Aficionado

Aficionado

  • Guest
Re: Inactive users
« Reply #25 on: May 09, 2017, 03:30:42 pm »
https://forums.osclass.org/general-help/a-way-to-restrict-users-by-their-email-provider/msg104649/#msg104649

I think this could partially solve my problem.
But there are people uses gmail accounts and not activated the accounts.

Anyway thanks Aficionado

NON Activated accounts can be deleted daily (or whetever you set it for) automatically using BUTLER free plugin.

theinvisible

  • Sr. Member
  • ****
  • Posts: 311
Re: Inactive users
« Reply #26 on: May 09, 2017, 03:34:52 pm »
ok.

How can i edit the message displayed to the users telling them to activate the account by email?
where can i change the display message?


marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1652
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Re: Inactive users
« Reply #27 on: May 09, 2017, 08:52:57 pm »
ok.

How can i edit the message displayed to the users telling them to activate the account by email?
where can i change the display message?

In my case the file messages.po from oc-content/languages/en_US folder contains:

Code: [Select]
#: oc-includes/osclass/controller/register.php:68
msgid "The user has been created. An activation email has been sent"
msgstr ""

I think that if you put

Code: [Select]
#: oc-includes/osclass/controller/register.php:68
msgid "The user has been created. An activation email has been sent"
msgstr "Your text here"

and generate the .mo file with poedit, it should work.

theinvisible

  • Sr. Member
  • ****
  • Posts: 311
Re: Inactive users
« Reply #28 on: May 10, 2017, 02:35:54 pm »


In my case the file messages.po from oc-content/languages/en_US folder contains:

Code: [Select]
#: oc-includes/osclass/controller/register.php:68
msgid "The user has been created. An activation email has been sent"
msgstr ""

I think that if you put

Code: [Select]
#: oc-includes/osclass/controller/register.php:68
msgid "The user has been created. An activation email has been sent"
msgstr "Your text here"

and generate the .mo file with poedit, it should work.

I tried it, but nothing happened. Can you tell me the exact steps to do it? I tried to edit it with notepad++ and then compiled it with poedit.

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1652
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Re: Inactive users
« Reply #29 on: May 10, 2017, 11:23:10 pm »
I use my site in other than english language, and if I edit my language messages.po file (EDIT with notepad or other text editor, code editor from cpanel) and then download it to my computer and open it with poedit (in ubuntu), then  save it, the messages.mo file is generated in the same folder as the messages.po file is on my computer. Then I upload to my server the .mo file, overwriting the existing one. In 3.7.1 it works just fine.


Now, the msgid value from below, is an ID that gets replaced with the msgstr value if the language is not english. I don't know a reason why it shouldn't work with english also, on the same principle.

Code: [Select]
#: oc-includes/osclass/controller/register.php:68
msgid "The user has been created. An activation email has been sent"
msgstr ""

The msgid value is found in:
oc-includes/osclass/controller/register.php

Code: [Select]
osc_add_flash_ok_message( _m('The user has been created. An activation email has been sent'));
NOTE! If you change the msgid in register.php, and you use your site in other than english language also, you should modify the msgid in all the messages.po and .mo files of the other languages.
« Last Edit: May 10, 2017, 11:43:45 pm by marius-ciclistu »