Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

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

#13 2004-08-21 21:33:01

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

Re: [archived] sdr_guestbook

Sander,
I hope you don’t mind I changed the code a bit, got rid of the lists, and now it’s almost the way I want it. Just one more thing, and I don’t know enough about php how to do that: I would like to have the page links below the messages, and above the comments input form. Is there an easy way to do that?

And one last question, totally off-topic: what is Reza? Grote munsterlander?

Els

Offline

#14 2004-08-21 21:50:16

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

Re: [archived] sdr_guestbook

Modify any way you like.
Tommorrow I’ll look into the pagestring placement.
Reza is a Heidewachtel or Kleine Munsterlander.

Offline

#15 2004-08-22 07:11:18

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

Re: [archived] sdr_guestbook

Els,

in function sdr_discuss, the following piece of code can be found:

if ($darr) { $out.= “< br />$pagestring< ul $commentsul > \n”; $out.= sdr_formatComments($darr, $atts); $out.= n.’< /ul >’; }

Change this to

if ($darr) { $out.= “< ul $commentsul> \n”; $out.= sdr_formatComments($darr, $atts); $out.= n.’< /ul >< br />$pagestring’; }

to have the pagenavigation below the comments, before the commentform.

Last edited by sderuiter (2004-08-22 07:11:59)

Offline

#16 2004-08-22 11:25:55

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

Re: [archived] sdr_guestbook

I did that, and changed < ul $commentsul > into < br / >, and removed < /ul >. Like this:

if ($darr) {
$out.= “< br / > \n”;
$out.= sdr_formatComments($darr, $atts);
$out.= n.’< br / >$pagestring’;
}

It shows on my page: $pagestring.

(of course I removed the spaces before and after the < and >.

I also tried it exactly as you said, without changes, and then the comments are in an unordered list, but still the text $pagestring is shown.

I hate to bother you like this, but I would really like to use the plugin because it’s something I have wanted to be able to do for a long time.

EDIT: NEVER MIND, GOT IT! Changed the last line into:
$out.= “< br />$pagestring\n”;
Thank you for all your help!

Last edited by doggiez (2004-08-22 11:44:12)

Offline

#17 2004-08-22 18:19:03

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

Re: [archived] sdr_guestbook

DONE! New page is <a href=“http://www.doggiez.nl/reakties/”>here</a>.

Thank you Sander for this great plugin!

Offline

#18 2004-09-22 18:00:43

yatil.de
Archived Plugin Author
From: Vienna/Austria
Registered: 2004-02-26
Posts: 14
Website

Re: [archived] sdr_guestbook

Well done, but i don’t like the paging, at least if you have one page it’s pretty disturbing.

But well done.

Oh, it doesnt work with foreign characters like ä (which is needed in the German word for guestbook=Gästebuch). Is there a way to use the article-number instead of the name?

URI: http://www.yatil.de/gaestebuch/


Eric Eggert
Textpattern-Sites: yatil! | Snookerblog | Schachfreunde Ruhbank

Offline

#19 2004-09-22 18:23:02

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

Re: [archived] sdr_guestbook

> yatil.de wrote:

> Well done, but i don’t like the paging, at least if you have one page it’s pretty disturbing.

But well done.

Oh, it doesnt work with foreign characters like ä (which is needed in the German word for guestbook=Gästebuch). Is there a way to use the article-number instead of the name?

URI: http://www.yatil.de/gaestebuch/

Using the article-id where? In the tag? In the URL? I think it should also work to call the article using the ID alone.

Maybe I’ll add some code to surpress the navigation if there’s only 1 page.

Offline

#20 2004-09-22 20:06:17

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

Re: [archived] sdr_guestbook

> sderuiter wrote:

> Maybe I’ll add some code to surpress the navigation if there’s only 1 page.

That would be nice! Especially since no one is posting, so I keep seeing this 1… ;-(

Offline

#21 2004-10-19 23:01:03

stevechamp
Member
Registered: 2004-08-13
Posts: 12

Re: [archived] sdr_guestbook

I would like to get the comments to display as divs, and use textile to convert into paragraphs, headings etc.

Is this possible with this plugin. can get the divs, but paragraphs??

Last edited by stevechamp (2004-10-20 12:23:31)

Offline

#22 2004-11-01 09:09:34

Jeena Paradies
New Member
From: Germany / Bamberg
Registered: 2004-10-16
Posts: 3
Website

Re: [archived] sdr_guestbook

Hello,

I’ve a problem with setting up this sdr_guestbook.

<ol> <li>I’ve created a specific section with the name »guestbuch«</li> <li>I’ve created a article that I want to use as the guestbook called »Guestbuch«</li> <li>I’ve filled in the body this: <blockquote> Wollt ihr uns was mitteilen? Na dann los. Wenn ihr was konkretes auf unsere News antworten möchtet dann macht es direkt dort.

< txp:sdr_guestbook section=“guestbuch” pagelimit=“10” articletitle=“Guestbuch” / > </blockquote> </li> </ol>

But when I go to this page <a href=“http://vivosomuertos.de/guestbuch/”>http://vivosomuertos.de/guestbuch/</a> nothing apears even not the normal page.

If I erase the line with < txp:sdr_guestbook section=“guestbuch” pagelimit=“10” articletitle=“Guestbuch” / > it works but of course without the guestbook. What I’m doin wrong, can anybody help me?

Jeena

Offline

#23 2004-11-01 10:15:32

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

Re: [archived] sdr_guestbook

Jeena,

You need to setup a txp-page with the < txp:sdr_guestbook section=“guestbuch” pagelimit=“10” articletitle=“Guestbuch” / > tag, NOT an article. The body of your article should contain:

Wollt ihr uns was mitteilen? Na dann los. Wenn ihr was konkretes auf unsere News antworten möchtet dann macht es direkt dort.

So, where normally you would have a <txp:article > tag, just replace this with the correct <txp:sdr_guestbook> tag.

Good luck!

Last edited by sderuiter (2004-11-01 10:38:19)

Offline

#24 2004-11-01 10:21:59

Jeena Paradies
New Member
From: Germany / Bamberg
Registered: 2004-10-16
Posts: 3
Website

Re: [archived] sdr_guestbook

Yes it works! Thanks a lot, it was so easy and I wasn’t able to figure it out for a week.

Jeena

Offline

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

Board footer

Powered by FluxBB