Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
import comments and edit comments time&date
Hi I’m working on a guestbook,
1.
I got an old JS guestbook system that saving all the posts on a .txt file
here is a sample:
“ 1077046390²name@domain.com²My name²http://www.my-website.com²my post bla bla bla “
now I got 200 posts, so is there a way to convert them to TXP’s comments style
and somehow import/upload them into textpattern to my guestbook article using a plugin or phpmyadmin please?
2.
Is there a way to edit/change the comments time&date?
(not just the format, from 01.01.08 to 15.04.08 or so)
Thanks :)
Offline
Re: import comments and edit comments time&date
OK so I got an Idea!
Get ready:
ok so if I can’t edit the time&date so I can fake it!
using the <txp:comment_web />
I will create 2 articles in my guestbook
1. for the old guestbook posts.
2. for the new posts that will come in the future.
I will need to create 2 forms too
and I will not use the date tag in the old guestbook form,
I will use the website input tag and write the date of each message
after I will done to post all the old posts I will close the comment-form
so I will have only the comments left,
and I will go to my guestbook page and place them down to the new posts.
yes it’s a long way to go but I don’t know any other way to do this s**t
the only problem is that I will can’t have comments paging,
if I do have a comments paging so I will have 2 paging,
one for each article of my 2 articles and it will be realy bad lol.
but it’s still a way to fake all the old posts dates from my old guestbook ;)
does anyone got a better idea?
Last edited by THE BLUE DRAGON (2008-04-26 18:57:40)
Offline
Re: import comments and edit comments time&date
a better idea is to:
<txp:if_comment_web />
<txp:comment_web />
<txp:else />
<txp:comment_time />
</txp:if_comment_web />
is there a way to do something like this please?
Offline
#4 2008-04-26 23:29:46
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,306
Re: import comments and edit comments time&date
<txp:chh_if_data><txp:comment_web /><txp:else /><txp:comment_time /><txp:chh_if_data>
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: import comments and edit comments time&date
uli wrote:
<txp:chh_if_data><txp:comment_web /><txp:else /><txp:comment_time /><txp:chh_if_data>
wonderful!!!
you just save me all that trouble…
ohh that is so great now I can have paging and only one article and it’s so gooooddd…:)
now I will add the web input tag to the form, and after I will done to posts and fake all the old posts
I will delete the web input tag from the form yaaa…
btw: you forgot to close the tag </txp:chh_if_data>
lol
Thank you ;)
Offline
#6 2008-04-27 11:10:52
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,306
Re: import comments and edit comments time&date
Nice to read about your joy ;) You’re welcome!
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline