![]() |
|
|
Mod Options |
Make 'Contact Us' Name & E-mail fields uneditable for log'd in members Details »»
|
|||||||||||||||||||
|
Make 'Contact Us' Name & E-mail fields uneditable for log'd in members
Developer Last Online: Mar 2007
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:
Next, locate the 'email' section of code. Modify with this:
NOTE: the difference in the 2 '<input...> statements is the 'readonly' attribute and a field message that lets members know those 2 fields are 'uneditable'. 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. Download Now Only licensed members can download files, Click Here for more information. Show Your Support
No members have liked this post.
|
|||||||||||||||||||
Similar Mod
|
||||
| Mod | Developer | Type | Replies | Last Post |
| Make 'Referrer' field in registration UNeditable if from 'referrerid' in URL | timetunnel | vBulletin 3.5 Template Modifications | 4 | 18 Nov 2005 21:20 |
| Comments |
|
#2
|
|||
|
|||
|
good idea
![]() No members have liked this post.
Last edited by Moparx : 28 Oct 2005 at 22:12. |
|
#3
|
||||
|
||||
|
Text file, please?
![]() No members have liked this post.
|
|
#4
|
|||
|
|||
|
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. No members have liked this post.
|
|
#5
|
|||
|
|||
|
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 ![]() No members have liked this post.
|
|
#6
|
||||
|
||||
|
If it's a template mod shoudn't it be on template modifications?
Great idea though, I wonder why Jelsoft left it editable... No members have liked this post.
|
|
#7
|
||||
|
||||
|
Originally Posted by Moparx
Exactly!
![]() No members have liked this post.
|
|
#8
|
|||
|
|||
|
Very nice idea, should be standard in vB imho.
No members have liked this post.
|
|
#9
|
|||
|
|||
|
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. No members have liked this post.
|
|
#10
|
||||
|
||||
|
Originally Posted by timetunnel
Just a text file with the instructions and code in it is all.
No members have liked this post.
|
|
#11
|
||||
|
||||
|
"locate the 'name' section of the code modify with this" ????
Are there some simple find/replace instructions as the word name is repeated all over the template (Surely this is just a template mod anyway?) No members have liked this post.
|
|
#12
|
||||
|
||||
|
Originally Posted by moonclamp
No worries, I worked it out
Here is a text file for anyone else having trouble No members have liked this post.
|
|
#13
|
|||
|
|||
|
Moonclamp,
Nice job with the instructions. If you don't mind, I revised it by putting credit to you in it and put it with the initial post now that I know how to do it. No other changes. Hope this is okay. Thanks to all of you who have 'shown me the way...' :squareeyed: No members have liked this post.
|
|
#14
|
||||
|
||||
|
Nice template mod, although I'd rather use disabled="disabled" than readonly. Using this method, the visual feedback is already there without having to note that it's uneditable..
![]() No members have liked this post.
|
|
#15
|
||||
|
||||
|
Originally Posted by Oblivion Knight
So, exactly how would you change it then?
![]() No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
| Mod Options | |
|
|
| New To Site? | Need Help? |
All times are GMT. The time now is 16:29.






