Register Members List Search Today's Posts Mark Forums Read

Reply
 
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
Mod Version: 1.01, by timetunnel (Member) timetunnel is offline
Developer Last Online: Mar 2007 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.5.0 Rating: (1 vote - 5.00 average) Installs: 20
Released: 28 Oct 2005 Last Update: 16 Nov 2005 Downloads: 18
Not Supported Template Edits  

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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Next, locate the 'email' section of code. Modify with this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
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 22:20

Comments
  #2  
Old 28 Oct 2005, 23:08
Moparx Moparx is offline
 
Join Date: Jul 2004
good idea

Last edited by Moparx; 28 Oct 2005 at 23:12.
Reply With Quote
  #3  
Old 28 Oct 2005, 23:54
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Text file, please?
Reply With Quote
  #4  
Old 29 Oct 2005, 01:47
timetunnel timetunnel is offline
 
Join Date: Sep 2005
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.
Reply With Quote
  #5  
Old 29 Oct 2005, 03:50
Moparx Moparx is offline
 
Join Date: Jul 2004
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
Reply With Quote
  #6  
Old 29 Oct 2005, 04:37
Lea Verou Lea Verou is offline
 
Join Date: Jul 2005
Real name: Lea Verou
If it's a template mod shoudn't it be on template modifications?

Great idea though, I wonder why Jelsoft left it editable...
Reply With Quote
  #7  
Old 29 Oct 2005, 05:21
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Originally Posted by Moparx
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
Exactly!
Reply With Quote
  #8  
Old 29 Oct 2005, 13:22
Yorixz Yorixz is offline
 
Join Date: Jun 2005
Very nice idea, should be standard in vB imho.
Reply With Quote
  #9  
Old 29 Oct 2005, 19:01
timetunnel timetunnel is offline
 
Join Date: Sep 2005
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.
Reply With Quote
  #10  
Old 30 Oct 2005, 01:32
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Originally Posted by timetunnel
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.
Just a text file with the instructions and code in it is all.
Reply With Quote
  #11  
Old 30 Oct 2005, 01:45
moonclamp's Avatar
moonclamp moonclamp is offline
 
Join Date: May 2004
Real name: Paul
"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?)
Reply With Quote
  #12  
Old 30 Oct 2005, 01:55
moonclamp's Avatar
moonclamp moonclamp is offline
 
Join Date: May 2004
Real name: Paul
Originally Posted by moonclamp
"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 worries, I worked it out

Here is a text file for anyone else having trouble
Attached Files
File Type: txt uneditable_contact_details.txt (919 Bytes, 17 views)
Reply With Quote
  #13  
Old 30 Oct 2005, 04:07
timetunnel timetunnel is offline
 
Join Date: Sep 2005
Thumbs up

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:
Reply With Quote
  #14  
Old 30 Oct 2005, 08:19
Oblivion Knight's Avatar
Oblivion Knight Oblivion Knight is offline
 
Join Date: May 2002
Real name: Andy
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..
Reply With Quote
  #15  
Old 30 Oct 2005, 11:36
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Originally Posted by Oblivion Knight
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..
So, exactly how would you change it then?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 00:28.

Layout Options | Width: Wide Color: