Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-12-2007, 05:47 AM
Shaune Shaune is offline
 
Join Date: Dec 2006
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default User verification link

Hi,

I am currently moderating new users (need to log in and manually click around the admin cp to accept or deny a user access). What I would like to do is:

When a new user registers, I want to send a text email to a email-enabled PDA. The text email will contain two links:

1. A link to accept user
2. A link to deny user

In other words, I want the moderator to be able to accept/deny users by just clicking on a link in a plain text email. My question is:

1. What is the SQL statement to accept or deny a user from posting in the forum.
2. How can I manually trigger the email that gets sent off to the user once I accept/deny the user access to post in the forum.

Can this be done? Any help would be greatly appreciated.

Shaune
Reply With Quote
  #2  
Old 02-12-2007, 04:30 PM
gopherhockey's Avatar
gopherhockey gopherhockey is offline
 
Join Date: Jul 2002
Posts: 202
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would very much like something like this as well.

Due to increased spam from both manual and automated spammers, we have had to set our forums to manual authentication. I have to comb through the users and approve them. Often I do this based on a few fields I created.. such as Full Name, or their favorite mountain bike trail (we are a mountain bike club). If the user doesn't fill these in 99% of the time or more they are spammers so I deny them. If a user takes the effort to fill this out, I approve them.

It would be nice to have an email sent that has the necessary info about the user so that I could just click one thing and approve them. The way it is now, it takes too long to follow the "default" link to get into the approval area. Looking at the moderator page from a windows mobile device (phone) is not easy.
Reply With Quote
  #3  
Old 02-13-2007, 04:19 AM
Shaune Shaune is offline
 
Join Date: Dec 2006
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

I managed to get this working some time ago - and it turned out to be quite easy. This is how I did it:

1. In vBulletin options -> vBulletin Options, select 'User registration options', then set 'Moderate new members to 'Yes'. On the same page, set 'Email Address to Notify About New Members' to the email address of your PDA.

2. In the phrase manager (Languages and phrases -> phrase manager), locate the phrase titled 'newuser'. This is the wording for the email that the administrator receives when a new user registers. I changed the wording to something like this:

"Dear administrator,

A new user has registered on $vboptions[bbtitle]

User name : $username
Email Address : $email
Birthday : $birthday
Referrer: $referrer
IP Address: $ipaddress

$customfields

To accept: http://www.thesiteinquestion.com/code/admin/acceptuser.php?userid=$userid

To deny: http://www.thesiteinquestion.com/code/admin/denyuser.php?userid=$userid

To view their profile, go here:

$vboptions[bburl]/member.php?u=$userid"


3. You will notice - from the code above - that the administrator receives two links, one to accept the new user and one to deny the new user access. Each link contains the user ID of the user being moderated - in other words, the userid is passed to each of these pages.

ACCEPT:

To accept the new user (acceptuser.php), use the following SQL:
"UPDATE user SET usergroupid = 2 WHERE userid = $userid";
..Now send him an email saying that he has been accepted.

DENY:
To deny a new user (denyuser.php), send him an email saying that he has been denied access, then delete the user record from the user table.

I hope this helps. My client is receiving user registrations via plain text email on his internet-enabled PDA. Simply clicking on a link allows him to moderate new users from anywhere in the world.

I hope that this information was useful.

Shaune
Reply With Quote
  #4  
Old 03-02-2007, 04:47 PM
daddygrim daddygrim is offline
 
Join Date: Mar 2006
Location: Northern Va
Posts: 353
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i'll have to keep this in mind
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:06 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04761 seconds
  • Memory Usage 2,189KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete