![]() |
Ok thanks, I will try it again.
|
Yep I have the correct version with no extra code at all. I guess it's in that global file then but I never added anything to there either :cry:
Thanks for your help. |
Does anyone else have the same problem? I can use mine easily - I logged out, and tried it many times. I get emails from unregistered users, with all the IP information, a few times a day, so I know it works for me.
|
Here's what I did to get it working. I gave unregistered/not logged in users permission to view the board and now it's working. :banana:
|
Quote:
|
Is there any way to set it up so you don't have to turn on permissions, though? I have it set up that way, so it works for me, but there are a lot of sites that don't have it turned on. :)
|
The permissions are set up in global.php which the contact.php file includes at the very beginning.
To set it up to work would mean hacking global.php OR copying global.php and renaming it another name and then removing the permission bits, and then include that file in contact.php instead of global.php OR commenting out the global.php include line in contact.php and then hardcoding in the header, footer, name of forum and other variables in the template (not a good option the last one). There are ways around it. :) |
Quote:
|
great hack
:D |
Works great at my forum.
Dark Shogun |
hi,
how do i get this, only a certain user group can use it, and others get a custom error message ( using a template ) ? there group i want to only access this is: usergroupid=2 could anyone help me please ? thanks for your time - great hack. |
Quote:
Open contact.php. Find: PHP Code:
PHP Code:
The make a new template called: error_nocontact Add this as contents: Code:
You have no permission to access the contact form. Done. :) |
Quote:
also is it possible to place the group in an array. Am a newbie at php, bit am trying different methods to get the same result at the moment. i have : PHP Code:
now i dont get any errors when running this, but the contact template is always displayed, even when am using a group id of 6 - so this dont work for some reason :( i can get it to work, using this : PHP Code:
|
That question belongs in the PHP forum. :) I have no idea why it wouldn't work.
|
it's mean again.
How do you get 'User Profile Fields' to be displayed. this is what i have : PHP Code:
PHP Code:
<tr> <td bgcolor="{firstaltcolor}" align="left" valign="top" nowrap><normalfont>Your m/ship N<font face="Times New Roman">?</font>:</normalfont></td> <td bgcolor="{firstaltcolor}" align="left" width="50%"> <input type="text" name="mem" size="4" class="bginput" tabindex="1" value="$defaultmembership"></td> <td bgcolor="{firstaltcolor}" align="left"><b><font color="#FF0000"> *</font></b></td> </tr> <tr> <td bgcolor="{secondaltcolor}" align="left" valign="top" nowrap><normalfont>Your expiry date:</normalfont></td> <td bgcolor="{secondaltcolor}" align="left" width="50%"> <input type="text" name="expiry" size="8" class="bginput" tabindex="1" value="$defaultexpiry"> example: 08/12/02</td> <td bgcolor="{secondaltcolor}" align="left"><b> <font color="#FF0000">*</font></b></td> </tr> but it dont work ? what else do i need to do ? |
You are obviously using vBPortal there. :)
Well, the $post variables only work in the showthread section since it pulls information from the functions.php - you would need to do a db query to pull the custom user profile fields in contact.php first for this to work. Like I said before, this has nothing to do with my contact form hack. Please ask this in the PHP forum, or in the vBPortal forums. :) I cannot support my hack to make it work with VBPortal - only with vB. |
Great hack - one question:
would it be possible to have the form check that the email address entered is at least in the right format? ie user@domain.com at present you can type in anything as the email address. I know it's not going to matter to those who actually want a reply, but it may put some of the idiots of sending crap :cheeky: cheers Graham |
Quote:
1) People who want to hide their emails will put in a fake one no matter what. 2) I rather they put in an obviously wrong one, so I don't waste time replying. 3) If they keep spamming you, you have their IP address and DNS server sent to you in their email with this hack, and you can still ban them. |
Great hack, about time I install this hack
|
Erwin & Unknown553
Thanx its working fine on vB 2.2.4 :) |
Nice hack guys...working great.
|
Hi,
I installed this hack today and it works fine, however it will not let me log out of my board now. It says I logged out and all cookies have been cleared, but I'm still actually logged in. Any ideas on how to fix this? |
donna, that has nothing to do with this hack. You have a corrupted cookie. Manually clear all cookies in your browser, log in again and you will be fine.
|
Thank you,
I did finally figure out what is was - sorry for the stupid question!! |
It's okay. :)
|
Well done Doc! Works great. Thank you!
|
Erwin, nice job on this hack! Just installed it this morning and its working great!
I have one question though. When you press the "Send Email" button on the contact page it sends the email but displays a blank screen. I then have to select the back button to return to the contact page. Should'nt it automatically display a message like "Your email has been sent - Press enter to return to previous page" message or automatically return back to the contact page? Am I the only one that gets a blank screen display after email has been sent and if so, what should be displayed? Thanks again for making available such useful hack! |
This is a nice hack, easy to install to (my kind of hack :p)
Not sure if I will install though, I am not sure I would have a use for it., |
Minor Update Version 2.3
Fixed up the blank page bug. :) Removed the need for 2 files - took away send.php Tidied up the code. To upgrade - upload the new contact.php, delete send.php (not needed), replace "contact" template with contact.txt |
d00d still getting blank screen on send
|
That's weird. Anyone else?
|
interesting ..... i havent had a problem with the original script .... lol i havent had a blank screen just the " your email has been sent to......." message
should I update?? |
No need to update if everything is working. I did remove the need for the send.php - if you just want to have 1 file, then update. Note - there is a small change to the contact template too.
Also, if you're getting a blank page, make sure you created all the templates - there are 3 of them. |
You forgot to update the install.txt ;)
|
Great hack!
|
WoooooooooW ... !!!
What a WONDERFUL Hack :classic: Great Man ... Wish You The Best |
Quote:
LOL! I've fixed it... |
Nice hack =D
|
Erwin, if we are using the older version with 2 files and it is working fine, do we really need to upgrade? Is there any real advantages to doing that? Just curious. ;)
|
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 |
All times are GMT. The time now is 07:52 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:
|