Welcome to Geeklog, Anonymous Wednesday, November 27 2024 @ 11:36 am EST

Geeklog Forums

contactuserform in static pages


Status: offline

Uffe

Forum User
Junior
Registered: 02/01/04
Posts: 30
I will like to put the form from contactuserform.thtml into a static pages.
This will give my customer the possibility to ad and change his phone number etc. to the contact form.

<form action="{site_url}/profiles.php" method="POST" name="contact">
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td colspan="2">{lang_description}</td>
</tr>
<tr>
<td align="right">{lang_username} </td>
<td><input type="text" name="author" size="32" value="{username}" maxlength="32"></td>
</tr>
<tr>
<td align="right">{lang_useremail} </td>
<td><input type="text" name="authoremail" size="32" value="{useremail}" maxlength="96"></td>
</tr>
<tr>
<td align="right">{lang_subject} </td>
<td><input type="text" name="subject" size="32" maxlength="96" value="{subject}"></td>
</tr>
<tr>
<td valign="top" align="right">{lang_message} </td>
<td><textarea name="message" wrap="physical" rows="10" cols="50">{message}
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Well, that won't work (as you've probably noticed). Geeklog's variables (the words in {curly} braces) are not replaced (you would need some PHP code to do that).

Instead, I'd suggest writing a plugin that extends the user's profile.

bye, Dirk
 Quote

All times are EST. The time is now 11:36 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content