Advertisement:

Author Topic: [TUTORIAL] Item Validation via Email by Administrator (not User)  (Read 4835 times)

volunteer

  • Full Member
  • ***
  • Posts: 241
I have seen some tips and tricks of how to do this in the forum but I will explain here a simpler way of doing this without touching any PHP neither PO files. You will be only editing email templates from the comfort of your Admin panel.  ;D

This can be handy for people who is concerned about the content of the listings published in their websites, for example job listings..

1- In listings setting check boxes:

 "Users have to validate their listings" and "Notify admin when a new listing is added "

2- Go to email templates and edit the following:

"email_item_validation"   and "email_admin_new_item"


Examples for both templates:

email_item_validation:

Code: [Select]
Hi {USER_NAME},

You're receiving this e-mail because your project has been published at {WEB_LINK}.

For safety reasons the content of all projects have to be reviewed by the Admin before approval, this can take 24/48hs.

If you didn't publish this project contact the Admin at {WEB_LINK}

Project details:

Contact name: {USER_NAME}
Contact e-mail: {USER_EMAIL}

{ITEM_DESCRIPTION}

Regards,

{WEB_LINK}

and for email_admin_new_item:

Code: [Select]
Dear {WEB_TITLE} admin, a new listing has been published:

Contact name: {USER_NAME}
Contact email: {USER_EMAIL}

{ITEM_DESCRIPTION}

Url: {ITEM_URL}

VALIDATE this by clicking on the following link:
{VALIDATION_LINK}

EDIT this listing by clicking on the following link:
{EDIT_LINK}

Regards,

{WEB_LINK}

Now the user gets a message saying he/she has to wait for the admin to approve his listing before it becomes public and the admin get the activation link that the user used to get before :)

So, the admin doesn't need to login in the admin panel to moderate new listings, can do it from his email account with direct links..

--------------------------------------------------------------------------------
UPDATE:

forgot this part:
in your theme folder edit user-dashboard.php and user-items.php to stop users from activating their own projects..

find <a href="<?php echo osc_item_activate_url() ; ?>" ><?php _e('Activate', 'repurpose') ; ?></a>

and delete the line..  same thing in both files.. dashboard and items
« Last Edit: May 10, 2014, 08:29:10 pm by volunteer »

Nicolas30

  • Sr. Member
  • ****
  • Posts: 295
Re: [TUTORIAL] Item Validation via Email by Administrator (not User)
« Reply #1 on: March 14, 2014, 08:07:35 pm »
Thank you  ;)

trains58554

  • Osclass contributor
  • Hero Member
  • *****
  • Posts: 3642
  • osCanyon, the class of Osclass
Re: [TUTORIAL] Item Validation via Email by Administrator (not User)
« Reply #2 on: March 14, 2014, 08:12:55 pm »
I like your outside the box solution.  :)

Great tutorial.

Jay

volunteer

  • Full Member
  • ***
  • Posts: 241
Re: [TUTORIAL] Item Validation via Email by Administrator (not User)
« Reply #3 on: May 10, 2014, 08:29:20 pm »
little update added

romantica

  • Premium
  • Hero Member
  • *****
  • Posts: 1092
  • salut tout le monde
Re: [TUTORIAL] Item Validation via Email by Administrator (not User)
« Reply #4 on: May 15, 2014, 12:23:13 pm »
@volunteer

Thank you 8)

repare31

  • Full Member
  • ***
  • Posts: 115
Re: [TUTORIAL] Item Validation via Email by Administrator (not User)
« Reply #5 on: May 17, 2014, 12:12:08 am »
Hi,

Thanks too..

bye

phmig.com

  • Full Member
  • ***
  • Posts: 238
Re: [TUTORIAL] Item Validation via Email by Administrator (not User)
« Reply #6 on: May 24, 2014, 05:12:42 pm »
Thanks. Helpful tutorial.


Charger

  • Jr. Member
  • **
  • Posts: 51
Re: [TUTORIAL] Item Validation via Email by Administrator (not User)
« Reply #7 on: October 22, 2014, 01:37:56 am »
Good. Thanks ;)

Any solution to send another email when ad is online (active) ?

Pirulina

  • Jr. Member
  • **
  • Posts: 78
  • What you give is what you take back in return!
Re: [TUTORIAL] Item Validation via Email by Administrator (not User)
« Reply #8 on: June 15, 2016, 03:48:59 am »
Yes, Any solution to send another email when ad is online (active) ??

It's great to have the option to review a new ad, now, is there a way to automatically send the user of the approved ad an email 'Your ad is now online' ?

:)
Cheers