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)

Boofo 08-03-2002 04:50 AM

Where's the send.php? It's not in the zip. :)

Erwin 08-03-2002 04:50 AM

The ZIP file has been updated to version 1.2.

If you have installed version 1.0 (original hack) and it works, there is NO need to update. The update is only for sites which seem to have a problem with the ?action variable.

Boofo 08-03-2002 04:55 AM

We have a winner! :)

My site is hosted on a Linux server, could that have something to do with it? :)

And how could I set this up for my email address as a user? Can it de done?

Erwin 08-03-2002 04:57 AM

HAH!!! It works!!!

I thought it was the ?action variables. Your forum setup is weird if it has a problem with that.

As long as it works. :)

Boofo 08-03-2002 05:00 AM

Linux must handle some things a little differently than UNIX. :)

Quote:

Originally posted by Erwin
HAH!!! It works!!!

I thought it was the ?action variables. Your forum setup is weird if it has a problem with that.

As long as it works. :)


Erwin 08-03-2002 05:00 AM

Quote:

Originally posted by Boofo
We have a winner! :)

My site is hosted on a Linux server, could that have something to do with it? :)

So is mine. :) That's not the problem.

Quote:


And how could I set this up for my email address as a user? Can it de done?

In send.php, find:

PHP Code:

        $to "$webmasteremail"

Change $webmasteremail to your own email address eg. boofo@yoursite.com

like this:

PHP Code:

        $to "boofo@yoursite.com"

That will work. :)

Boofo 08-03-2002 05:23 AM

Erwin,

Good thing I didn't reply to your test message on my site, huh? Who knows where that would have ended up at? fakeemail.com? :)

What I meant was, is there a way to have it show the contact form instead of my email address in my profile field. It does show the contact.php fine, but it also opens up the users message program (in my case, Outlook 2002) instead of going to the contact.php file when you click on the link where it tells the user my email address.

Erwin 08-03-2002 05:27 AM

Why don't you just set in the vB admin options to not allow members to see each other's email, but to use the vB email forms instead.

Boofo 08-03-2002 05:30 AM

No, I just wanted to be able to do it for mine. That way, the other users can have their choice for it to show their email or not.

Can it be done?

Quote:

Originally posted by Erwin
Why don't you just set in the vB admin options to not allow members to see each other's email, but to use the vB email forms instead.

Erwin 08-03-2002 05:36 AM

Yes, it can be done, but it will need hacking of member.php - I'm going to stick to supporting this hack for the moment.

Boofo 08-03-2002 05:41 AM

You're still not understanding what I mean. I want to be able to use this hack as my profile and personal email address on the site. :)

Erwin 08-03-2002 10:08 PM

That would require a hack of the members.php file, like I said. :) You can't just pop the URL into your email profile.

Unknown553 08-04-2002 03:57 AM

Wow, thanks Erwin. That bug that goes straight to the error page had me stumped too, glad you were able to squash it! Thanks!

MalaK_3araby 08-04-2002 10:44 AM

Nice ... Thanks

Erwin 08-06-2002 03:30 AM

Updated = Version 2.0
-------------------------------

Added the option for users to choose from a list of subjects. Also fixed a minor title bug. If the option "Other" is chosen, but no title filled out in the optional text box, a blank field error message will be shown.

To upgrade from Version 1.2 - just copy the new "contact.php" and "send.php" over the old files, and replace the "contact" template with the new one.

Feel free to add more email subject titles by modifying the "contact" template.

Screenshot in Post#3 of this thread. :)

Dean C 08-06-2002 06:17 AM

this is awesome....EXACTLY what i needed now.. :D

Erwin 08-06-2002 10:11 AM

Version 2.1
-------------------

Added - IP address of sender in the email sent to you, with a link to search the database for members with the same IP address in the email (in case of people sending you abusive emails using the form)!

- to upgrade from version 1.2 - upload the new contact.php and send.php files, and replace the "contact" template with the new one.

- to upgrade from version 2.0 - upload the new send.php

Boofo 08-06-2002 10:20 AM

Here's a copy of the email it sent me. :) (I took the IP address out of this message), How do I change it to read my forums?

Quote:

Your message here...

Testing ...

- Boofo

Search for members using this ip

Erwin 08-06-2002 10:22 AM

Ooops... bug... also, please edit your post to take my forums URL out please. :)

Erwin 08-06-2002 10:26 AM

Fixed.

The latest hack file is contact_ip21.zip

Just upload the new PHP files - it will automatically show your forum name and URL. :)

Boofo - please edit your post and remove my forum URL - thanks!

Boofo 08-06-2002 10:29 AM

Thanks for the fix and the post has been edited. ;)

Quote:

Originally posted by Erwin
Fixed.

The latest hack file is contact_ip21.zip

Just upload the new PHP files - it will automatically show your forum name and URL. :)

Boofo - please edit your post and remove my forum URL - thanks!


Erwin 08-06-2002 10:29 AM

It works... :) Enjoy!

Boofo 08-06-2002 10:33 AM

Now, is there any way to have the IP address resolved to a host name if there is one? Might be good to know to get ahold of their ISP if there is abuse or spamming going on. :)

Erwin 08-06-2002 10:34 AM

Okay... I'll do that now...

Boofo 08-06-2002 10:37 AM

Suggestion: If it can't be resolved, it can just say "The host name for this IP address could not be determined." or something to that effect. Also, how can I reformat the email message I get to my own format? :)

Erwin 08-06-2002 10:42 AM

I've updated the send.php file in the ZIP. The host name will show up in the email as well, IF it is available - otherwise, it won't show up.

Like this:

Quote:


Hi,

Test message here...

- Erwin

IP address of sender: 123.123.12.12
Host name: test.hostname.com
Click below to search for members with same IP:
http://www.yourforums.com/forums/adm...=123.123.12.12


Boofo 08-06-2002 10:44 AM

That's even better than my suggestion. :) How about the formatting? :)

Quote:

Originally posted by Erwin
I've updated the send.php file in the ZIP. The host name will show up in the email as well, IF it is available - otherwise, it won't show up.

Like this:



Boofo 08-06-2002 10:49 AM

The host name resolve didn't work for me. It shows:

Host name:

with nothing after it.

Erwin 08-06-2002 11:02 AM

Oops... forgot 2 essential lines in send.php in the ZIP.

It's fixed, and definitely works 100%. :)

The latest ZIP file is contact_ip_21.zip (in the 1st post). Just upload the latest send.php if you find the hostname is not working.

Boofo 08-06-2002 11:11 AM

We have a weiner! (or is that winner?) :)

Chris M 08-06-2002 12:34 PM

Winner:)

Satan

Erwin 08-06-2002 01:16 PM

New Version 2.2:

If the member who emails you is Unregistered or Not Logged In, the email will tell you that the Sender is Unregistered or Not Logged In.

If the member who emails you is Registered, then the username and email address of the member on file will be sent to you as well - this way, even if a registered member tries to pretend to be another member or put in a fake address, you will know who the member is.

Example of an email from a Registered Member:
----------------------------------------------------------

Quote:


******* Delete this section before replying ********

IP address of sender: 123.123.12.12
Host name: test.hostname.com
Click below to search for members with same IP:
http://www.yourforums.com/forums/adm...=123.123.12.12

Registered Member - Username: Erwin
Email on file: admin@myforums.com

******* Delete this section before replying ********

Hi,

Test message here...

- Erwin



Email from a Unregistered User or Member who is Not Logged In:
----------------------------------------------------------------------

Quote:


******* Delete this section before replying ********

IP address of sender: 123.123.12.12
Host name: test.hostname.com
Click below to search for members with same IP:
http://www.yourforums.com/forums/adm...=123.123.12.12

Not Logged In or Unregistered User


******* Delete this section before replying ********

Hi,

Test message here...

- Erwin



Upgrading
-------------------

- to upgrade from version 1.2 - upload the new contact.php and send.php files, and replace the "contact" template with the new one.

- to upgrade from version 2.0 - upload the new send.php

- to upgrade from version 2.1 - upload the new send.php

freeshares1 08-06-2002 02:52 PM

erwin,

Great hack, that keeps getting betting. ! thing how about a pull down box with the subjects.

Erwin 08-06-2002 11:08 PM

I was debating between radio buttons or a pull-down menu - it's easy to set up either way - in the end I decided on radio buttons, because if they chose other "Other" it was clear that they had to fill out the text box to the right. You can't really make it as clear with a pull-down menu.

But if you want a pull down menu, just use the < select > < /select > tags.

MalaK_3araby 08-08-2002 11:37 AM

Erwin ...
Thanks for a sweet sweet hack.
am off to update it.

Dark_Wizard 08-08-2002 12:00 PM

Nice hack! Thx!

nhlrat 08-11-2002 11:37 AM

If a user is unregisterd should it let them use the form anyway? Currently if a new user comes along and is having trouble registering, so they click the footer asking to contact us for help, they are not given access to the contact.php page becasue they aren't registered??? Thanks.

Jim

Erwin 08-11-2002 11:39 AM

Unregistered users can still use the form - that is the point of this hack - you get different information in the email if the person is unregistered.

nhlrat 08-13-2002 05:11 PM

Thanks for your response and the great hack, but I guess what I was trying to say is that the results I am getting is that if I come along as an unregistered/not logged in user and try to access the contact page to send an email becasue maybe I'm having problems registering, I am told I can't access the contact.php page because I'm not logged in. Is there a way to fix this?

Erwin 08-13-2002 08:20 PM

Quote:

Originally posted by nhlrat
Thanks for your response and the great hack, but I guess what I was trying to say is that the results I am getting is that if I come along as an unregistered/not logged in user and try to access the contact page to send an email becasue maybe I'm having problems registering, I am told I can't access the contact.php page because I'm not logged in. Is there a way to fix this?
I had a look at my php files again.

Neither the contact.php or the send.php files check for user status. Unless you added anything new to the files, or you check status for every page of your forum via global.php, it's not my hack that is causing the problem.

Make sure you don't add the additional code elsewhere in this thread to restrict the page to registered members only. Download the current ZIP and upload the 2 PHP files to your forum directory again. I repeat - my files in the ZIP do NOT check user status. So I don't know why unregistered users cannot access your feedback form. It is designed to work for ALL users.


All times are GMT. The time now is 11:39 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.03075 seconds
  • Memory Usage 1,825KB
  • 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
  • (2)bbcode_php_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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