Jump to content

Tell A Friend


Guest

Recommended Posts

Hi,

I've tried a few searches but never read anything about it.

This is the default code for the text box for the message on the Tell A Friend page...

<tr>

	 <td align="right" valign="top"><strong>{TXT_MESSAGE}</strong></td>

	 <td><textarea name="message" cols="30" rows="5" class="textbox">{VAL_MESSAGE}</textarea></td>

</tr>

What I want to achieve is something where that is hidden so the user can't change the message and only I can set the message (through lang.inc.php) that gets sent.

Any ideas?

Thanks in advance.

Link to comment
Share on other sites

This is one workaround:

<td><textarea name="message" cols="30" rows="5" class="textbox" style="display:none;">{VAL_MESSAGE}</textarea>{VAL_MESSAGE}</td>

Set the form box to not display, and add the message placeholder to outside the forum textarea. Having the text area still there means that the information is sent, also having it outside means it gets displayed as normal page content, uneditable.

Link to comment
Share on other sites

Thanks Robsta. I shall try that and see what happens :errm:

Edit - seems to do the job */*

Although if anyone knows a solution that would make the message 'invisible/hidden' without changing the font colour to white I'd be pleased to hear :huh:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...