![]() |
Make 'Contact Us' Name & E-mail fields uneditable for log'd in members
Hello.
For those of you who have public forums with members who may become future-banned members, because they have too much time on their hands, this is one area of the forum's E-mail system they won't be able to play with. What I mean is, currently, the 'Contact Us' form's member's 'username' and 'E-mail' fields can be overwritten such that the admin can receive E-mail with the incorrect 'reply to' info if someone monkey's with the username and/or put's someone else's E-mail address in the field. This can cause some unknowing person to receive unwanted E-mail from the admin. This 'playfulness' is expected from random 'guests'. Therefore, in order to restrict this behavior to 'guests' only, here is the code to make these fields 'uneditable' for logged-in members, since their profile values are automatically filled-in by the system. At least, they won't be able to 'play' here... Locate the 'name' section of code. Modify with this: PHP Code:
PHP Code:
Hope this helps. EDIT: Make change to 'contactus' template EDIT (11/15/05): CHANGED from 'readonly' to readonly="readonly" to make compliant although the original version works. The text file download was also updated. |
good idea :)
|
Text file, please? ;)
|
Boofo,
Not sure if this is the answer you're looking for, but I had edited my initial post to show the change is to the 'contactus' template. |
boofo wants you to add a text file attachment containing the template mods instructions.
its helpful for many of us so we can store it in our hack/modification folders for future use :) |
If it's a template mod shoudn't it be on template modifications?
Great idea though, I wonder why Jelsoft left it editable... |
Quote:
|
Very nice idea, should be standard in vB imho.
|
ooh...I see...
is there a particular format for the text file or should I just copy what's above in my initial post? As far as where to put it, I wasn't sure since I've seen a template mod(s) in this category in the past. Earlier in the week I had mod with a change to 'modifyprofile' template (re: how to hide the member's URL) in code mods and it was moved to tutorial. I thought maybe if it was to be moved, it would have gone into 'template mods' forum. Still feeling my way around to know where to put things. For the future, I'll put template mods in that category. |
Quote:
|
All times are GMT. The time now is 06:54 AM. |
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:
|