Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » [archived] sdr_guestbook

#76 2005-07-26 16:17:56

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [archived] sdr_guestbook

danbanG,

- problem nr. 1: there are no page links because there is still only one page. When you add more comments, or set pagelimit to 1 or 2, you should see the page links.<br /><br />
- problem nr. 2: “Kommentar” is probably coming from a <code><txp:comments_invite /></code> tag in your form. Just remove that, or create a new form without the tag.

Last edited by doggiez (2005-07-26 16:21:44)

Offline

#77 2005-07-26 16:20:45

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [archived] sdr_guestbook

TextDude,

The tag should not go in the article body, but in your page template for section “guestbook”. The article body can remain empty, or contain an intro text for your guestbook.

Offline

#78 2005-07-28 13:22:47

TextDude
New Member
Registered: 2005-07-26
Posts: 3

Re: [archived] sdr_guestbook

Thanks doggiez.

Still having a few problems.

I created a new template, copied the article template and included the tags.
The entry form shows up and I can preview the message, though the date
formatting does look odd. Next, when I want to submit the entry, nothing
gets added to the guestbook. I am using a language pack (German).

Can you help again?

Thanks a lot!
U

Offline

#79 2005-07-28 16:43:36

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [archived] sdr_guestbook

I submitted a test message to your guestbook, please remove it when and if you find it :)

Somewhere in site preferences you can set ‘moderate comments’ to yes or no. Look if it’s ‘yes’, that means that you will have to approve first before it goes live. Setting it to ‘no’ will show new entries immediately.
The comments should be in Content > comments.

To solve the date formatting look at this post.

Last edited by doggiez (2005-07-28 16:48:53)

Offline

#80 2005-07-29 17:55:10

TextDude
New Member
Registered: 2005-07-26
Posts: 3

Re: [archived] sdr_guestbook

doggiez – Works now! Thank you very much!

Offline

#81 2005-08-14 21:17:27

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [archived] sdr_guestbook

I just upgraded to 4.0 (but the problem could have existed for longer, I’m not sure), and found out that the plugin didn’t correctly process the ‘never_display_email’ setting anymore. Changing this line:

if ($email && !$web && !$txpac[‘never_display_email’])

into

if ($email && !$web && !$never_display_email)

solved that.

Offline

#82 2005-08-14 21:23:52

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: [archived] sdr_guestbook

Nice catch Els. :) I hadn’t spotted it myself so I have no idea when it happened either.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#83 2005-08-18 22:57:31

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

Re: [archived] sdr_guestbook

thank you! :)


textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation

Offline

#84 2005-09-19 14:27:00

zebreus
New Member
From: Sweden
Registered: 2005-09-16
Posts: 9

Re: [archived] sdr_guestbook

Could anyboy contribute with an updated version of this great plugin, with all the fixes.

Then I don’t really get how you get rid of the dotlist < ul >, I’m not good at reading php-code

Then about the navigation I would like to have it in the bottom of the page, before the input form and as follows:

1 x x x x x x x | Previous | Next

Last edited by zebreus (2005-09-19 14:27:58)

Offline

#85 2005-09-19 16:08:35

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [archived] sdr_guestbook

If anyone wants it, take my modified plugin code here (EDIT: gone). It’s just the code, so you have to copy and paste it (or the part that you want) into the edit plugins area. The paging code is in between // comments paging... and // end comments paging. I replaced the ul for the paging with spaces.
The code outputs valid XHTML 1.0 Transitional.

My guestbook page is here (EDIT: not using this plugin anymore). You can style the comments output through the comments form and in your CSS (#commentsul).

Last edited by els (2008-01-20 23:00:07)

Offline

#86 2005-09-19 16:42:48

sderuiter
Plugin Author
From: Laren NH
Registered: 2004-02-24
Posts: 38
Website

Re: [archived] sdr_guestbook

Hi all,

terribly sorry for not updating my plugin. Thanks to doggiez for relentless bugfixing!
I’ve read through this thread and managed to work out most of the bugs.
The new plugin (v4.0) can be downloaded at sdr_guestbook.txt . I’ll create a new thread with changes. This plugin now validates, the pagestring doesn’t appear with there’s only 1 page. I’ve changed the markup to mimick the markup for Listamatic . An example can be found at guestbook.textdriven.com .

The tage used is
<code>
<txp:sdr_guestbook section=“guestbook” pagelimit=“2” articletitle=“Guestbook” pageul=“navlist” commentsid=“commentsid” divid=“navcontainer” pagestring_placement=“both” />
</code>

The pagestring can be placed above, below and both.

More info tonight (I hope).

Offline

#87 2005-09-19 17:46:42

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [archived] sdr_guestbook

Oh gelukkig! Glad you’re back Sander :)

Do you think my not so expert hacking might cause me trouble when I install the updated version?

Offline

#88 2005-09-19 18:10:00

zebreus
New Member
From: Sweden
Registered: 2005-09-16
Posts: 9

Re: [archived] sdr_guestbook

Everything works fine with your hacked version doggiez, my last problem is that I have to change the path in the navigation.

It is
http://seafarer.mine.nu/gastbok/?page=2

should be

http://seafarer.mine.nu/ola/textpattern/gastbok/?page=2

Offline

#89 2005-09-19 18:21:36

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [archived] sdr_guestbook

I’m so relieved I can leave this question for the plugin owner ;) Actually I don’t know a thing about coding, and – contrary to what sderuiter said – the bugfixes came mostly from others in this thread…

Offline

  1. Index
  2. » Archives
  3. » [archived] sdr_guestbook

Board footer

Powered by FluxBB