Download & Extend

Location of form on separate page not working

Project:Guestbook
Version:6.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

I'm running this with D5.9 and have tested Top, Bottom (which work as expected) but when selecting "Separate Page" it just ends up on top.

Comments

#1

Version:5.x-2.x-dev» 6.x-2.x-dev

Same problem also in D6.

#2

Title:Location of entry submission form - Separate Page - Not working» Location of form on separate page not working

@all: Do you mean Panels integration or regular Guestbook pages?

#3

I use regular guestbook.
- "Site guestbook only" is selected.
- Posting settings -> Location of entry submission form: -> Separate page -> not working, it just ends up on top.

I had also some problems when installling module... I had to modify SQL to take default values away from the TEXT fields. It is said in MYSQL reference that BLOB and TEXT columns cannot have DEFAULT values.

I didn't tried newest dev version yet. I am still using version 6.x-2.x-dev (2008-Sep-11).

#4

OT: Thanks, committed attached patch to both 6.x branches to remove default values for text columns.

I need to investigate this issue further. But patches are also welcome. :)

AttachmentSize
guestbook.text-default.patch 2.67 KB

#5

Version:6.x-2.x-dev» 5.x-2.x-dev
Status:active» needs work

This seems to be caused by function theme_guestbook_form_entry_form no longer being called, at least, the comment in the code seems to indicate that:

function theme_guestbook_form_entry_form($form) {
  $output  = '';
  // @todo Since #access is set on the overall form now, this function along
  // with the switch below is no longer executed.

Since that function returns just the link to the guestbook form if 'separate page' is selected instead of the whole form, this is no longer done. Seems to me this should not be a decision that is to be made in a theming function anyway...

I fixed the problem for my site with the attached patch. It is not nice code, but it gets the work done. Maybe sun can massage it into well-behaving code :-)

Sorry for setting the version back to 5.x.2.x, but that is what I am using and that is what this patch is written against.

AttachmentSize
guestbook.separatepage.patch 684 bytes

#6

Status:needs work» needs review

While adding a CAPTCHA to my guestbooks in order to fight spam I discovered that my fix in #5 does not work nicely together with the captcha module. I tweaked the code a little and now it works ok.

AttachmentSize
guestbook.separatepage.patch 650 bytes

#7

Hi,

I have been searching the issues but could not find any other thread that deals with this issue. I am actually using the Panels integration (latest 2.x dev Guestbook)and would like to outsource the input form to a separate page. Has there been any progress for the D6 version?

Thx a lot in advance

#8

#6 doesn't work against the d6 version - or, it does add a link "add guestbook entry", but clicking that link (which goes to /guestbook/0/form) doesn't do anything.

#9

Any news about this issue ? I encounter the same problem on the latest 6-2.x dev version

#10

Version:5.x-2.x-dev» 6.x-2.x-dev

The same problem still exists on the latest 6.x-2.x-dev version.

#11

dito

#12

This still hasn't been fixed. Please FIX!

#13

Status:needs review» fixed

Committed a fix for this to HEAD.

#14

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.