Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

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

#37 2005-02-19 20:29:25

mcouture
New Member
Registered: 2005-01-23
Posts: 4

Re: [archived] sdr_guestbook

Help, I still can’t figure out one thing.

My guestbook article doesn’t show, all that shows is the headers to the form, then the guestbook entries and then the form with headers…..

-Mike

Offline

#38 2005-02-19 20:39:49

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

Re: [archived] sdr_guestbook

> mcouture wrote:

> Help, I still can’t figure out one thing.

My guestbook article doesn’t show, all that shows is the headers to the form, then the guestbook entries and then the form with headers…..

You do have a txp_body tag in your guestbook form, right?

Offline

#39 2005-05-04 22:05:08

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

Re: [archived] sdr_guestbook

TH wrote:

With recent txp releases there’s a bug in your datedisplay. you need to replace the line:
$comment_time = date($comments_dateformat,($time + $timeoffset));
with
$comment_time = safe_strftime($comments_dateformat,($time + $timeoffset));

Well, if I do that, my guestbook disappears completely…
And if I don’t, the date looks like this:

%26 %04 %2005 – %12:%Apr

So, what else can I do?

Offline

#40 2005-05-05 09:30:09

phux
New Member
From: Münster
Registered: 2005-04-26
Posts: 7
Website

Re: [archived] sdr_guestbook

@doggiez: For me the date-thing works great! Are you sure, that you didnt change anything else?

I got a problem, too:
How can i design the guestbook as you have, doggiez?
I would use different colors, but the design is exactly what i’m looking for :)
(small page-scroll at the buttom, framed posts and the post-author at the top of every post)

I dont understand where to find the parts to change, or where to put
.gbookentry {
background-color:#F5F5DC ;
border:1px solid #999;
margin-left:10px;
margin-right:10px;
margin-bottom:8px;
color: #000;
padding : 3px; }

hf

Last edited by phux (2005-05-05 13:05:26)

Offline

#41 2005-05-05 14:01:28

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

Re: [archived] sdr_guestbook

phux wrote:

@doggiez: For me the date-thing works great! Are you sure, that you didnt change anything else?

Not that I know of. I modified the plugin code when I started using it, but that didn’t have anything to do with that line. I’m only trying out RC3 locally, so I’ll try again when I move it to the server, see if that makes any difference. The live site is still on g1.19.

I got a problem, too:
How can i design the guestbook as you have, doggiez?

In my page template:
<code><txp:sdr_guestbook section=“reakties” pagelimit=“10” articletitle=“Reakties” form=“reakties” commentform=“comments” /></code>

My commentform:
<code><p class=“dgrijs”><span class=“klein”><strong><txp:comment_name /></strong> · <txp:comment_time /></span><br />
<txp:message /></p></code>
(it’s & # 1 8 3 ; for <code>·</code> , but it won’t show)
(class=“dgrijs” would be for you class=“gbookentry”)

I modified the plugin code somewhat to output the paging differently, replaced <code><ul></code>s with <code><br /></code>s, I think earlier in this thread I wrote what I did. If that isn’t clear enough, tell me and I’ll try and find out what exact changes I made.

EDIT: I don’t suggest you try that though… My changes must have something to do with my not getting this date thing to work. When I changed the plugin code as said above, not only did my guestbook disappear and I got a php warning (that unfortunately I don’t remember), but it remained that way after replacing the original code, so the only thing I could think of was restoring the backup of my database. After having tried this three times I give up. I’m going to use the original plugin and try to style it some other way.

Last edited by doggiez (2005-05-05 20:15:49)

Offline

#42 2005-05-06 19:23:30

phux
New Member
From: Münster
Registered: 2005-04-26
Posts: 7
Website

Re: [archived] sdr_guestbook

I added >>> commentform=“guestbook” <<< to my entry and created a form guestbook.
Works great.
But how do i get the frame around every post?

And my second/last problem:
When i change
if ($darr) {
$out.= “< br />$pagestring< ul $commentsul > \n

Offline

#43 2005-05-06 19:49:38

phux
New Member
From: Münster
Registered: 2005-04-26
Posts: 7
Website

Re: [archived] sdr_guestbook

Got the pagenumber-thing solved.

Now i just need the box/frame around every post…
Do i have to do it with “.<.t.d. .b.g.c.o.l.o.r..>.” tags?

Last edited by phux (2005-05-06 19:50:49)

Offline

#44 2005-05-06 20:17:47

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

Re: [archived] sdr_guestbook

I’m glad you got the page numbering solved. It took me all night yesterday to stop my page from crashing… but I managed to solve it too.

What I did is get rid of the <code><ul></code>s in the plugin code and replace them with <code><br /></code>s, so my styling will probably not work for your situation. And I see that you’re using tables, I’m not good at styling <code><ul></code>s (that’s why I changed the code), let alone in tables, so I hope someone else can help you.

Or, if you want to, I can give you my modified plugin code, and I can tell you how to style that.

Offline

#45 2005-05-07 09:25:48

phux
New Member
From: Münster
Registered: 2005-04-26
Posts: 7
Website

Re: [archived] sdr_guestbook

Don’t know what color to choose for the Frames :)
So i’ve put <.h.r.>s to seperate the posts… should be enough for now

cya

Offline

#46 2005-05-11 15:18:52

phux
New Member
From: Münster
Registered: 2005-04-26
Posts: 7
Website

Re: [archived] sdr_guestbook

Hi,
i found an mistake in the plugin:

My page was valid before i started using sdr_guestbook and now the page containing the guestbook has two mistakes.

Line 131, column 9: document type does not allow element “UL” here; assuming missing “LI” start-tag
</li><ul ><b>1</b> </ul></ul>

Line 131, column 12: start tag for “LI” omitted, but its declaration does not permit this
</li><ul ><b>1</b> </ul></ul>

Can you try to fix it? I couldn’t fix it.
It has to be somewhere around the “// dynamic page number links”-part.

Hope you can help me :)

thx

Offline

#47 2005-05-11 18:57:11

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

Re: [archived] sdr_guestbook

It’s not a mistake in the plugin I think, it must have something to do with your changing the output order.

This is your code:
<code><ul ><li>blah</li><li>blah</li><ul ><b>1</b> </ul></ul></code>

The last <code></ul></code> should come right after the last <code></li></code>.
And this: <code><ul ><b>1</b> </ul></code> should be <code><ul ><li><b>1</b></li> </ul></code>.

Try and modify the plugin code like this.

Offline

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

Board footer

Powered by FluxBB