Welcome to Geeklog, Anonymous Monday, November 25 2024 @ 04:25 am EST

Geeklog Forums

Feedback form


Status: offline

fruor

Forum User
Newbie
Registered: 11/03/04
Posts: 10
Hey there,

I am trying to add a Feedback Block to my site, meaning that any User may post some comment about the site without having to open an article or forum topic.

Here's how I started very naively (normal block):

<table><tr><td>
Please drop us a few lines ...yaddeldaddel</td></tr>
<form action="http://www.bankingrisks.com/comment.php" method="post">
<input type="hidden" name="sid" value="2004083013210284">
<input type="hidden" name="type" value="article">
<tr>
<td align="left" valign="top"><textarea name="comment" wrap="physical" rows="8" cols="20"></textarea></td>
</tr><tr>
<td><input type="submit" name="mode" value="Submit Comment">
</td></tr>
</form>
</table>

I'm not sure if I'm getting there that way.
I would still need a pid which must be automatically increased (to be sure, with every time the site is being hit - gee, I hope geeklog has no problems with pid=9235135135223528 +E11 LOL )

Or do I have to make a new function?
 Quote

Status: offline

fruor

Forum User
Newbie
Registered: 11/03/04
Posts: 10
I don't find the where the $pid is defined. Is there a function in lib_common I can use as a sample?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by fruor: I am trying to add a Feedback Block to my site, meaning that any User may post some comment about the site without having to open an article or forum topic.

What exactly are you trying to do here? It looks like you're trying to create a comment submission form. Is that what you really want? I would expect a feedback form to send the feedback as an email ...

If you really want a comment submission form, then you'll have to copy some of the code from comment.php. The pid can be 0 if you want to attach the comment to the actual story.

bye, Dirk
 Quote

Status: offline

fruor

Forum User
Newbie
Registered: 11/03/04
Posts: 10
I would expect a feedback form to send the feedback as an email ...


this would raise two questions:

As I need 2 functions, originally function display_form and function send_messages, how can I arrange both of them in one block?

PHP Blocks only allow one function to call.
And Static Pages or HTML Blocks do not allow PHP.

secondly, can I simply use the 'commentspeedlimit' for mail functions, too?

 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by fruor: As I need 2 functions, originally function display_form and function send_messages, how can I arrange both of them in one block?

You could copy the HTML form for the "email user" form (profiles/contactuserform.thtml) into your block and let Geeklog send the email.

Quote by fruor: And Static Pages or HTML Blocks do not allow PHP.

Huh?

Quote by fruor: secondly, can I simply use the 'commentspeedlimit' for mail functions, too?

Simply use your own speed limit: COM_checkSpeedlimit('myspeedlimit') etc.

bye, Dirk
 Quote

Status: offline

fruor

Forum User
Newbie
Registered: 11/03/04
Posts: 10

Leaves me speechless

thanks!
 Quote

All times are EST. The time is now 04:25 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