Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

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

#31 2005-01-07 22:18:54

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

Re: [archived] sdr_guestbook

It doesn’t seem to matter whether I have the plugin enabled or not. If the plugin is disabled I would have thought that the tag would show up for some reason, but it does not.

Hmmmmm?

Offline

#32 2005-01-08 09:38:46

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

Re: [archived] sdr_guestbook

Hi soulship,

have you enabled comments for this guestbook article?

Good luck!

Last edited by sderuiter (2005-01-08 14:48:40)

Offline

#33 2005-01-08 18:12:29

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

Re: [archived] sdr_guestbook

Ok I do have comments enable in the for the article “guestbook”, but I think I having a general comments problem. It appears comments are broken for some reason? Hmm I guess I will post and see if I can figure out what is wrong with commenting in general and them come back if I still encounter problem.

Thanks!

Offline

#34 2005-02-14 18:46:57

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

Re: [archived] sdr_guestbook

I am having trouble syling my guestbook. I’ll admitt that I’m a newbie up front.

Can someone help me out?

www.eliteallstarsofmaine.com Look for the guestbook section.

Suggestions? Or example code to make it look better?

Thank you.

Last edited by mcouture (2005-02-14 19:59:23)

Offline

#35 2005-02-14 20:48:56

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

Re: [archived] sdr_guestbook

Hi mcouture,
Thanks for trying out my plugin!

You can start with styling the list.
#sidebar li { list-style: none; margin: 0 0 0 10px; font-size: .8em;
}

And maybe a box around each entry.
.gbookentry { background-color: #F5F5DC ; border: 1px solid #999; margin-left:10px; margin-right:10px; margin-bottom:8px; color: #000; padding : 3px; }

Good luck!

PS: I must admit, I’m no styling pro either…

Offline

#36 2005-02-15 01:53:31

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

Re: [archived] sdr_guestbook

dseruiter,

You welcome. It seems to do what I need it to do.

I added the sytle to my main style sheet but it doesn’t seem to look any different. I had to add your styles to the actual form to make it work. I’m sure my Newbie’ness is now showing…..

Also, if you hit the preview button look what happens to the form, it’s all shifted.

And lastly, 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.

Thanks again!

-Mike

Last edited by mcouture (2005-02-15 20:03:12)

Offline

#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

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

Board footer

Powered by FluxBB