Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Request an Email Address from VB host 1.0 Details »»
Request an Email Address from VB host 1.0
Version: 1.00, by Grunt Grunt is offline
Developer Last Online: Jan 2010 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 03-30-2003 Last Update: Never Installs: 3
 
No support by the author.

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**

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 03-31-2003, 12:34 AM
Grunt Grunt is offline
 
Join Date: Aug 2002
Location: TN
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

screenshots:
Reply With Quote
  #3  
Old 03-31-2003, 01:00 AM
Floris Floris is offline
 
Join Date: Jan 2002
Posts: 1,898
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice idea, simple, yet effective I know some sites that wanted me to apply such a thing, now it is a step closer
Reply With Quote
  #4  
Old 03-31-2003, 02:55 AM
Koutaru's Avatar
Koutaru Koutaru is offline
 
Join Date: Feb 2003
Location: IL
Posts: 589
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #5  
Old 03-31-2003, 07:48 AM
Intex Intex is offline
 
Join Date: Apr 2002
Posts: 576
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Funnily enough just in time after I'd installed a mail server . Nice work Gruntie.
Reply With Quote
  #6  
Old 03-31-2003, 10:53 AM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #7  
Old 03-31-2003, 03:05 PM
Grunt Grunt is offline
 
Join Date: Aug 2002
Location: TN
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 03-31-2003, 03:17 PM
g-force2k2 g-force2k2 is offline
 
Join Date: Mar 2002
Location: Everywhere you wanna be..
Posts: 1,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #9  
Old 03-31-2003, 05:55 PM
Serge's Avatar
Serge Serge is offline
 
Join Date: Jan 2002
Location: The Matrix
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #10  
Old 03-31-2003, 07:41 PM
kushtiUK kushtiUK is offline
 
Join Date: Nov 2001
Location: UK
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply

Thread Tools

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:26 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04468 seconds
  • Memory Usage 2,290KB
  • Queries Executed 23 (?)
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)bbcode_code
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete