vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Request an Email Address from VB host 1.0 (https://vborg.vbsupport.ru/showthread.php?t=51012)

Grunt 03-30-2003 10:00 PM

Request an Email Address from VB host 1.0
 
Request an Email Address from VB host 1.0 by Grunt

This hack has code based on the "Contact Us Email Feedback Form (with IP address) Version 2.2 " hack by Erwin (used with permission). https://vborg.vbsupport.ru/showthrea...threadid=50783

This hack has been tested on vBulletin 2.3.0. I would imagine it would work on 2.2.x, (and probably with all version 2.0.x)


What it does:

This hack allows members to send the Webmaster of the site a request for an email address. Let's say your website is www.yoursite.com and you want to offer your users yourname@yoursite.com email addresses. This form will automate this process.

Registered users will be brought to a form (must be logged in to use) that allows them to enter the requested name. All other information is automated.

If the user does not enter information in the field, they will be shown an error page.

Once submitted, the user will be brought to a screen letting them know that the request has been sent.

The Webmaster will then recieve an email listing the requesters VB Username, Email Address that he/she is registered with, and his/her requested @yoursite.com email address.


Installation:

Create the 3 templates based on the txt files - name the templates after the file names, and copy the content of the txt files into the templates.

emailrequest
emailrequest_error
emailrequest_sent

Then upload the following files into your forums directory.

emailrequest.php
sendmailrequest.php

Last thing you need to do is to place this link anywhere on your site.

<a href="http://www.yourforums.com/yourforums/emailrequest.php">Email Request</a>

And you're done!

Enjoy

Grunt


**4/8/03 - updated zip with correct templates**

Grunt 03-31-2003 12:34 AM

screenshots:

Floris 03-31-2003 01:00 AM

Nice idea, simple, yet effective :) I know some sites that wanted me to apply such a thing, now it is a step closer :)

Koutaru 03-31-2003 02:55 AM

Neat :) If I find the use for it, I'll definately use it. And I just might need it with all the ideas I have for the site. XD

Intex 03-31-2003 07:48 AM

Funnily enough just in time after I'd installed a mail server :). Nice work Gruntie.

Dean C 03-31-2003 10:53 AM

Nice idea but unpractical as anyone who has the time to hack a board can simply increase the server load dramatically by repeatedly sending an email :(

Grunt 03-31-2003 03:05 PM

if some punk wants to crash a server, im sure theres a hundred other ways that it can be done also.

If its a concern, perhaps someone else (more knowledgable than I) could implement a 'only able to send xx emails per xx seconds' hack to this.

g-force2k2 03-31-2003 03:17 PM

Grutie if you're interested in stopping such actions just add a little more code the the hack...

i haven't looked at the actual coding but you can add this query:
Code:

ALTER TABLE user ADD requestemail smallint(6) unsigned NOT NULL DEFAULT '0'
and then to your code you can add:
PHP Code:

$chk $DB_site->query_first"SELECT requestemail FROM user WHERE userid=$bbuserinfo[userid]);
if( 
$chk[requestemail] )
{
  eval( 
"standarderror( \"".gettemplate'emailrequest_alreadysent' )."\" );" );
  exit;


also in the php you have to add an update query after the email has been proccessed:

PHP Code:

$DB_site->query"UPDATE user SET requestemail=1 WHERE userid=$bbuserinfo[userid]); 

this way they can only send one email request...

then add a template "emailrequest_alreadysent" and add the error information to that...

hope that helps...

regards,
g-force2k2

Serge 03-31-2003 05:55 PM

Yeah then you have to also remeber you might want to add a thing like If you are getting them problem in error or have waited x amount of days email webmaster thing just incase something happens to the email

kushtiUK 03-31-2003 07:41 PM

I like this - could you also add a text box for the user to choose a password of their liking.

Also my forum title is different to the .com name so it showns the wrong email! extention - can you advise how to over come this.


All times are GMT. The time now is 07:12 AM.

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.01258 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete