Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-08-22 00:33:37
- deronsizemore
- Member

- From: Kentucky
- Registered: 2005-11-02
- Posts: 324
Question regarding GodBit code
I downloaded the GodBit code to look at the excerpt code and I’m wondering a couple things. If you look at the godbit site right now at <a href=“http://www.godbit.com”>God Bit</a> you can see that under the title for each article they have “4 comments | Posted: 21 August 06 in Books, by Jon Doe”
What I’m wondering is how they have where the article is posted? Like where it says “in Books” or whatever section/category it’s in?
Here is the code for their “excerpt” and I don’t see the code for this.<br />
<code>
<h1><a href=”<txp:permlink />”><txp:title /></a></h1>
<p class=“info”><txp:posted /> | <a href=”<txp:permlink />#discuss”><txp:comments_count /> comments</a> | <txp:author link=“0” /></p>
<p class=“excerpt”>
<txp:kgr_safe_excerpt words=“65” linktext=”• Continue Reading” /></p>
</code>
Offline
#2 2006-08-22 11:19:51
- Ace of Dubs
- Member

- Registered: 2006-04-17
- Posts: 446
Re: Question regarding GodBit code
My guess is that this is something Nathan may have cooked up himself with PHP. It would probably be a simple affair to modify the txp:posted tag, I reckon. You should ask on their forum to be sure though..
Offline
Re: Question regarding GodBit code
What about:
<p class="info"><txp:posted /> | <a href="<txp:permlink />#discuss"><txp:comments_count /> comments</a> | Posted: <txp:posted /> in <txp:section />, by <txp:author link="0" /></p>
Offline
#4 2006-08-22 15:48:08
- deronsizemore
- Member

- From: Kentucky
- Registered: 2005-11-02
- Posts: 324
Re: Question regarding GodBit code
Thanks for the help. That worked great!
Only thing that isn’t working like the GodBit site is the comments invite. On GodBit, if there are “0” comments it actually displays “0 Comments” where on my site, if I don’t have any comments it just displays “Comments”. Any ideas there?
Offline
Re: Question regarding GodBit code
Take a look a this page in the TextBook: txp:if comments
Last edited by Skubidu (2006-08-22 17:04:40)
Offline
#6 2006-08-22 17:58:24
- deronsizemore
- Member

- From: Kentucky
- Registered: 2005-11-02
- Posts: 324
Re: Question regarding GodBit code
Nice! I’ve got it working now. Thanks for your help with pointing me to the links I needed.
Offline
#7 2006-08-23 01:11:07
- deronsizemore
- Member

- From: Kentucky
- Registered: 2005-11-02
- Posts: 324
Re: Question regarding GodBit code
Skubidu,
Using the same code you gave me above “<code><p class=“info”><txp:posted /> | <a href=”<txp:permlink />#discuss”><txp:comments_count /> comments</a> | Posted: <txp:posted /> in <txp:section />, by <txp:author link=“0” /></p></code>” if I wanted to display the category the article was listed under instead of the section, wouldn’t all I need to do is use <code><txp:category /></code> instead of <code><txp:section /></code>? I’ve tried that and can’t seem to get it to work….
Offline
Re: Question regarding GodBit code
You would use <code><txp:category1 /></code> and/or <code><txp:category2 /></code>.
Cheers
Offline
#9 2006-08-23 02:26:09
- deronsizemore
- Member

- From: Kentucky
- Registered: 2005-11-02
- Posts: 324
Re: Question regarding GodBit code
Ah, thank you!
Offline
Pages: 1