Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#73 2005-06-17 23:20:35
- BlueMaex
- New Member
- Registered: 2005-02-20
- Posts: 2
Re: [archived] sdr_guestbook
i have also this plugin up and running. Its works fine in rc3 yes but it is showing some strange dates.
When i choose in the Admin the date option hrs/days ago everything works fine, but when i chose any other options it produces me output like this:
%+0200e %666, %16:%May
Do somebody know how can i fix this?
UPDATE:
Ok i found it, RC3 is handling the date format differently. Just edit the plugin around line 229 in the function sdr_formatComments()
change the line
$comment_time = date($comments_dateformat,($time + $timeoffset));
to
$comment_time = safe_strftime($comments_dateformat,$time);
Then it works like a charm again :-)
Last edited by BlueMaex (2005-06-17 23:40:23)
Offline
#74 2005-07-23 00:07:40
- danbanG
- New Member
- Registered: 2005-07-19
- Posts: 2
Re: [archived] sdr_guestbook
hi together =)
thanks for this great plugin …
but i have two minor problems:
first of all have a look – <a href=“http://www.unterstrich.de/schrittweise/index.php?s=guestbook” title=“guestbook”>guestbook</a>
- problem nr.1:
the LINKS: NEXT – 1 2 3 dont work … the link is wrong, but i absolutly could not find out how to fix it (i am using messy urls)
<br />
- problem nr 2:
at the top of the guestbook page you will find the headline “guestbook” – under that headline u can see in a small fontsize “- Kommentar” – how can i get rid of that?
<br />
thanks =)
bb
Last edited by danbanG (2005-07-23 00:09:12)
Offline
#75 2005-07-26 14:11:51
- TextDude
- New Member
- Registered: 2005-07-26
- Posts: 3
Re: [archived] sdr_guestbook
Hi!
I installed the plugin, created a section “guestbook” and posted an article.
When I put …
sdr_guestbook section=“guestbook” pagelimit=“10” articletitle=“Guestbook”
… into the message body, I get a 500 Internal Server Error. When I leave the
text out, TXP works again. I can preview the comment but comments are not
added to the page.
Is there any trick? http://www.igslo-abi91.de/ is the web site with the guestbook.
Thank you in advance for help!
U
Last edited by TextDude (2005-07-26 14:16:07)
Offline
#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
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
Re: [archived] sdr_guestbook
thank you! :)
textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation
Offline