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)
-   -   Contact Us Email Feedback Form (with IP address & status of sender) (https://vborg.vbsupport.ru/showthread.php?t=41791)

OmaniMan 05-06-2003 08:50 PM

Hello Erwin,,,

I have a Question ...But before that I want to say short words ...

While I was testing the wonderful hack ... I just press send to webmastermail ...

I recieved it but not in (( INBOX )) .... I recieved in (( Junk Mail )) !!

why ?

Erwin 05-07-2003 02:20 AM

Sorry, I don't understand what on earth you mean.

It's probably your mail reader filtering your own website domain to the junk mail for some reason.

Erwin 05-07-2003 02:21 AM

Quote:

Today at 07:14 AM IceMalee said this in Post #120
great job erwin, such a wonderful useful hack and yet so easy to install!!


suggested upgrades:

when they click in the txt box the "type your msg here" disappears

also after sending it gives a thank you msgs then redirects you to the last page you were on, instead of just providing a link to the forums

Not bad ideas. :) When I have time... the redirecting one is a bit hard, since you are 3 pages in front of your previous page, if you know what I mean.

wolfe 05-07-2003 09:24 PM

right i figured out why i got blank page lol stupid me had contact_send instad of contact_sent but now it working but theres a problem i am not receiving the email any ideas :(

Erwin 05-08-2003 09:44 AM

Check your that your email set in the Admin CP is the right one. I am using the $webmasteremail variable in this hack.

Remi 05-15-2003 07:56 AM

Hi Erwin

Is it posible to send defferent subjcet to another email.

For example, I wan to send the "Bug Report" to my personal email and the rest to the webmasteremail.

Thanks in advance

Alien 05-17-2003 08:17 PM

/me clicks install.

Great job on this!

-Jason

Erwin 05-18-2003 02:21 AM

Quote:

05-15-03 at 06:56 PM Remi said this in Post #126
Hi Erwin

Is it posible to send defferent subjcet to another email.

For example, I wan to send the "Bug Report" to my personal email and the rest to the webmasteremail.

Thanks in advance


Yes, it's very possible, and easy to do.

Just change this bit:

Find:

PHP Code:

        $to "$webmasteremail";
                if (
$title == "") {
                
$title $otitle;
                } 

Underneath ADD:

PHP Code:

                if ($title == "Whatever") {
        
$to "anotheremail@yourdomain.com";
                } 

Just add as many of those underneath as you like. :)

Remi 05-18-2003 12:12 PM

Thank you very much Erwin, you are SUPER, it works perficly.

I was just woundering if there is a way to prevent people from sending the same message more than once or twice, ( by setting some cookies counter may be).

Some people might abuse the system and flood your inbox with emals :)

Erwin 05-18-2003 12:45 PM

Well, this is why this hack logs the user's IP address. :)

We can always use the email spam check time limit for the normal email form, but this means adding another query. It can be done.

In contact.php,

Find:

PHP Code:

        eval("dooutput(\"".gettemplate('contact_sent')."\");"); 

ABOVE THIS, add:

PHP Code:

  $DB_site->query("UPDATE user SET lastemail=$ourtimenow WHERE userid='$bbuserinfo[userid]'"); 

Then, find:

PHP Code:

if ($action == "send") { 

BELOW, add:

PHP Code:

      if ($emailspamcheck) {
      if (
time()-$bbuserinfo[lastemail]<=$spamtimelimit) {
        eval(
"standarderror(\"".gettemplate("error_spamcheck")."\");");
        exit;
      }
    } 

So if you have email spam check enabled, and you have set the time limit in your Admin CP vB Options, then the email flood spam check time limit will apply to the Contact Form as well. :)

Not tested, but should work.


All times are GMT. The time now is 07:18 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.01209 seconds
  • Memory Usage 1,749KB
  • 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
  • (6)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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