![]() |
Where's the send.php? It's not in the zip. :)
|
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. |
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? |
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. :) |
Linux must handle some things a little differently than UNIX. :)
Quote:
|
Quote:
Quote:
PHP Code:
like this: PHP Code:
|
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. |
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.
|
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:
|
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.
|
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. :)
|
That would require a hack of the members.php file, like I said. :) You can't just pop the URL into your email profile.
|
Wow, thanks Erwin. That bug that goes straight to the error page had me stumped too, glad you were able to squash it! Thanks!
|
Nice ... Thanks
|
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. :) |
this is awesome....EXACTLY what i needed now.. :D
|
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 |
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:
|
Ooops... bug... also, please edit your post to take my forums URL out please. :)
|
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! |
Thanks for the fix and the post has been edited. ;)
Quote:
|
It works... :) Enjoy!
|
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. :)
|
Okay... I'll do that now...
|
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? :)
|
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:
|
That's even better than my suggestion. :) How about the formatting? :)
Quote:
|
The host name resolve didn't work for me. It shows:
Host name: with nothing after it. |
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. |
We have a weiner! (or is that winner?) :)
|
Winner:)
Satan |
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:
Email from a Unregistered User or Member who is Not Logged In: ---------------------------------------------------------------------- Quote:
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 |
erwin,
Great hack, that keeps getting betting. ! thing how about a pull down box with the subjects. |
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. |
Erwin ...
Thanks for a sweet sweet hack. am off to update it. |
Nice hack! Thx!
|
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 |
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.
|
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?
|
Quote:
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|