The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
problem with custom PM page
I have created a special page that shows the recipient, title and message input fields to send a new PM.
It works great. Now I want the user not to be able to change the title and recipient field. So I added the red code to the forms: Quote:
Quote:
Quote:
How do I get this to work? Why is it not working in the first place? --------------- Added [DATE]1217580997[/DATE] at [TIME]1217580997[/TIME] --------------- Okay. I managed to get this to work by adding two hidden fields and by turning the visible form fields into "fake" ones. I am still interested why this was not working, though. |
#2
|
|||
|
|||
Use hidden variables
Code:
<input type="hidden" name="title" value="PM TITLE" /> |
#3
|
|||
|
|||
Quote:
On topic: I can't personally see why it would stop working, did you try the xHTML syntax for disabled? <input... disabled="disabled" /> |
#4
|
|||
|
|||
^ The newthread forms work the same way in VB, if you disable the subject/message field you cannot sumbit the form even if a value is set.
|
#5
|
|||
|
|||
actually, the XHTML form for an disabled input will also disable its activation... so it's just for display, not in posting...
what you can do then is to have an hidden input after the disabled field, with the same values... like h_jinx have suggested... it will then submit when posting... and xhtml talking is disabled="disabled", like Opserty suggested |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|