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.

Remi 05-18-2003 12:54 PM

Wow :)

thank you Erwin for the quick reply, I will certainly use that :)

Crazy Pete 05-18-2003 06:03 PM

Very nice, Erwin! Installed.

xs1 05-27-2003 10:39 AM

after submitting i get a blank page ! :(

magicfox 07-25-2003 03:45 PM

Great hack! Easy to install und works without any problems.

cklaszlo 09-12-2003 01:55 PM

We just installed: vBulletin Version 3.0.0 Beta 6

And the contact form doesn't seem to work anymore. Are you working on an update?

http://community.singlereel.com/contact.php

StevenTN 09-12-2003 02:27 PM

I just upgraded one of the sites I admin to vBulletin 3.0, rendering this hack useless without some changes.

I got it working after about 15 minutes worth of fixing code, but it looks a little bit crummy at the moment. If any of you want to know how I fixed it for vB3, let me know. I might be a little late in responding, but I will respond (since I have to go out of town for this weekend).

Paul 09-12-2003 03:59 PM

This hack is now a standard feature in vB3.

StevenTN 09-12-2003 04:56 PM

Then how come I don't see such an option for using the form? I know there's an option for enabling a contact form for e-mailing a registered member, but not one for someone like webmaster@ or info@.

Paul 09-12-2003 05:09 PM

<a href="http://www.vbulletin.com/forum/sendmessage.php" target="_blank">http://www.vbulletin.com/forum/sendmessage.php</a>

StevenTN 09-12-2003 05:28 PM

Thanks

Erwin 09-13-2003 06:01 AM

Yeah, this hack is now superfluous as it's now part of vB3. :)

midnightz 10-08-2003 03:00 PM

Hi -

I am very fond of this hack and trying to make it work with this current form, I love the style of it and it wont send the information, I have looked through the hack and I'm trying to fiquire out how to make it work and send mt the desired information

http://www.digikitten.com/forums/emailform.php

thanks

I can attach the php file and the three templates if somebody can help. I'm kind of lost on what to do, I have tried many things. but none work at all :(

midnightz 10-08-2003 08:38 PM

Never mind - got it to work and its great :) with the mods


All times are GMT. The time now is 05:05 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.01513 seconds
  • Memory Usage 1,775KB
  • 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
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (23)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