Advertisement:

Author Topic: Only one ad for each user  (Read 2375 times)

c4

  • Newbie
  • *
  • Posts: 25
Only one ad for each user
« on: December 14, 2017, 11:48:59 am »
Hello

1) In my project based on osclass, I need such functionality - only one ad per user. - how to do something like that?

2) Announcements are moderated by admin. Is it possible to set up accounts also approved by the administrator?

Sorry for my English and greet everyone cordially :)

teseo

  • Hero Member
  • *****
  • Posts: 6169
« Last Edit: December 14, 2017, 03:08:12 pm by teseo »

c4

  • Newbie
  • *
  • Posts: 25
Re: Only one ad for each user
« Reply #2 on: December 14, 2017, 04:15:54 pm »
number 1 solved - thanks to teseo, you are great :)

c4

  • Newbie
  • *
  • Posts: 25
Re: Only one ad for each user
« Reply #3 on: December 15, 2017, 04:24:28 pm »
To question number 2:
After setting up an account an automatic message is sent to the user email_user_validation "Please, confirm your registration by clicking the link below ..." Is it possible to send this message to the administrator and after confirmation by the administrator user received - email_user_registration?

Aficionado

  • Guest
Re: Only one ad for each user
« Reply #4 on: December 15, 2017, 04:36:33 pm »
To question number 2:
After setting up an account an automatic message is sent to the user email_user_validation "Please, confirm your registration by clicking the link below ..." Is it possible to send this message to the administrator and after confirmation by the administrator user received - email_user_registration?

Not possible. There is a plugin for moderation of new signups. Check it out if somehow can be used to do the (more-or-less) the job.

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1652
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Re: Only one ad for each user
« Reply #5 on: December 15, 2017, 04:48:39 pm »
Anything is possible with core changes :)
Look in emails.php for that email template and replace the "to" from user email to admin email.

Aficionado

  • Guest
Re: Only one ad for each user
« Reply #6 on: December 15, 2017, 04:52:24 pm »
Anything is possible with core changes :)
Look in emails.php for that email template and replace the "to" from user email to admin email.

And then how the user will get his email ?

Of cource everything is possible and the SKY is the LIMIT, but i don't believe in massive CORE modifications. For many reasons.

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1652
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Re: Only one ad for each user
« Reply #7 on: December 15, 2017, 04:56:00 pm »

Well
email_user_validation goes to admin
email_user_registration goes to user after the admin validates the user.


marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1652
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Re: Only one ad for each user
« Reply #8 on: December 15, 2017, 04:58:28 pm »
Regarding core mods, osclass uses only hooks for plugins? Or it uses something similar with vqmod?

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1652
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Re: Only one ad for each user
« Reply #9 on: December 15, 2017, 05:02:01 pm »
But, the admin can receive email each time a new user registers.
To keep the emails.php unchanged, maybe another mod could be used to set user as blocked after he validates his account. This will mean that the user confirms his email and he can use his account only after the admin unblocks him.

Aficionado

  • Guest
Re: Only one ad for each user
« Reply #10 on: December 15, 2017, 05:05:15 pm »
But, the admin can receive email each time a new user registers.
To keep the emails.php unchanged, maybe another mod could be used to set user as blocked after he validates his account. This will mean that the user confirms his email and he can use his account only after the admin unblocks him.

Maybe MOREDIT plugin can help the guy.

Admin already gets an email for each new user signup.


marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1652
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Re: Only one ad for each user
« Reply #11 on: December 15, 2017, 05:10:02 pm »
Our discussion is ment to help him. Now he has some ideas to follow:)
Thanks Aficionado.

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1652
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Re: Only one ad for each user
« Reply #12 on: December 15, 2017, 05:19:01 pm »
Or even better. Edit the validation email to not contain the validation link, but just info about the validation process.
No plugin or core mod needed in this case.
« Last Edit: December 15, 2017, 05:34:20 pm by marius-ciclistu »

Aficionado

  • Guest
Re: Only one ad for each user
« Reply #13 on: December 15, 2017, 05:25:55 pm »
Our discussion is ment to help him. Now he has some ideas to follow:)
Thanks Aficionado.

Sure, that is what we all try to do. I also try to keep things simple for new people. That way they are able to start using Osclass, realize the LIMITS, and spend their time to PROMOTE their site. Instead of making hard-to-update core changes.

 ::)

c4

  • Newbie
  • *
  • Posts: 25
Re: Only one ad for each user
« Reply #14 on: December 20, 2017, 01:58:36 pm »
Aficionado "...There is a plugin for moderation of new signups" - plugin? which? Please enter the name

for the moment of the present, the best option is the one given by the marius-ciclistu
"email_user_validation goes to admin
email_user_registration goes to user after the admin validates the user."

I tested this option"
"... Or even better. Edit the validation email to not contain the validation link, but just info about the validation process. No plugin or core mod needed in this case."
and it works in half :)

The validation link is not in the message to the user, the admin gets a message that a new user has registered - he activates it manually. Email email_user_registration is not sent to the user. the User does not get information that he is active

At the moment, the option given by the marius-ciclist remains to be tested and possibly implemented:

"Anything is possible with core changes :)
Look in emails.php for that email template and replace the "to" from user email to admin email."

How would anyone have a more precise instruction how and what to change in emails.php to get the following status:

email_user_validation goes to admin
email_user_registration goes to user after the admin validates the user.

I would be grateful