Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#31 2007-01-29 00:35:28

maverick
Member
From: Southeastern Michigan, USA
Registered: 2005-01-14
Posts: 976
Website

Re: TXPhorum: A simple forum solution for Textpattern

raveoli

This link should allow you to download the template as a text file:
txphorum_template_modified

This is the my second txphorum test site, and uses the above template:
Txphorum test site @ Evangelical Allliance

Disclaimers :P

The template was modified in SubEthaEdit, and displays okay in TextEdit. I have included tons of indents, comments, and instructions.

It is not an example of “best of practice”. Some of my css additions could have been better done (I was working fast). For nice tight code it should be tightented, a lot of white space and comments removed, etc.

This version remains essentially the Ben’s original template with some tweaks. Ben had made a number of improvements to his version of the template already. The standard template only had three xhtml 1.0 trans. validation errors and 1 css error last time I checked. So I didn’t have much to do. :)

My other test site has Txphorum more tightly integrated into the layout.

Morocco Church

I haven’t created a single template from that site, but could sometime if that would ever be of help to anyone.

Mike

Last edited by maverick (2007-01-29 13:29:12)

Offline

#32 2007-01-29 00:39:36

maverick
Member
From: Southeastern Michigan, USA
Registered: 2005-01-14
Posts: 976
Website

Re: TXPhorum: A simple forum solution for Textpattern

p.s. raveoli

I checked your site several times. It looks like you have most of txphorum working. It appears that the last big piece for you is to hear from Ben about using a different custom field. Sorry I can’t help you there – I used custom2, and haven’t had to experiment with alternatives yet (or the time right now to do so).

Mike

Offline

#33 2007-01-29 06:01:59

benbruce
Plugin Author
Registered: 2006-01-13
Posts: 328
Website

Re: TXPhorum: A simple forum solution for Textpattern

maverick,

let me know if I can post your template and test site here. I think it will be a good idea to have them all available to choose from one place. Also, about your “this document has moved” error … I’m wondering if that wasn’t because at first you had it set to the “about” section? Do you get that error with “new” posts to the forum?

raveoli,

currently, the only way to change what custom field is being used is to hack the code. i can help if you need instructions on how to do it. obviously, this is something that needs to be a preference that can be set [This is now a preference that can be set, available with the next version of the plugin]. I will be going over the manual again before releasing the next version of the plugin as well.

  • Ben

PS. The next version is nearly ready to release. It’s got a bunch of fixes that should hopefully make life a lot easier.

Last edited by benbruce (2007-01-29 08:00:51)

Offline

#34 2007-01-29 13:41:55

maverick
Member
From: Southeastern Michigan, USA
Registered: 2005-01-14
Posts: 976
Website

Re: TXPhorum: A simple forum solution for Textpattern

Ben,

Feel free to post my template and test site(s). Feel free to add any of my changes back into your template for that matter if you wish. “My” template is really more yours than mine :)

I did update the download link with a slightly newer version (I updated it to include “copy & paste” instructions at the page and style creation so that new folks would have a more accurate step-by-step instructions.)

With the “document has moved” message. I am receiving it on all edits (including posts, which have never changed sections) and all replies (old and new. The new have never changed sections). I am receiving it on both test sites. The Evangelical Alliance test site had the txpforum_replies section from the start – no sections have ever been changed.

The orginal version of the plugin that I used did not do this with replies (but the edit link did not work). The more recent download of the plugin enabled the edit inks but has this issue (on my sites at least). If you have been actively updating the download version of the plugin I can see if the probelm has gone away.

Thanks

Mike

Offline

#35 2007-01-29 18:22:53

benbruce
Plugin Author
Registered: 2006-01-13
Posts: 328
Website

Re: TXPhorum: A simple forum solution for Textpattern

Mike,

I think I’ll add your template. I think if there’s some variety — no matter how small — that will be good. Someday if I have time I’d like to set up a table-less template :)

From the sound of it, your “document has moved” error must be from the plugin, and you’re probably right about the redirection. I’m using the article’s “permlink” function to figure out what it’s url is, so maybe that’s it — in fact, I’m only using that on edits and replies. Are you receiving that error on a brand new post?

Thanks,

  • Ben

Offline

#36 2007-01-29 20:25:42

maverick
Member
From: Southeastern Michigan, USA
Registered: 2005-01-14
Posts: 976
Website

Re: TXPhorum: A simple forum solution for Textpattern

Ben

It only is happening with edits and replies. New posts function as they should.

Mike

Offline

#37 2007-01-29 21:37:07

benbruce
Plugin Author
Registered: 2006-01-13
Posts: 328
Website

Re: TXPhorum: A simple forum solution for Textpattern

Mike,

That pinpoints it then … it’s the <txp:permlink /> function that I’m using to build the article’s url (to redirect to). I’ll take a closer look at that … is there something like, you have permlink set a particular way?

  • Ben

Offline

#38 2007-01-29 22:28:26

maverick
Member
From: Southeastern Michigan, USA
Registered: 2005-01-14
Posts: 976
Website

Re: TXPhorum: A simple forum solution for Textpattern

Ben

By having the permlink set a particular way — do you mean the permlink mode as set in preferences?

If so, I use “/section/title”

Mike

Offline

#39 2007-01-31 01:37:40

benbruce
Plugin Author
Registered: 2006-01-13
Posts: 328
Website

Re: TXPhorum: A simple forum solution for Textpattern

I’ve posted a new version of the plugin and the initial template here.

This update includes the following fixes and additions:

  • Fixed Textile issue so now you can post <txp:article /> tags
  • Fixed redirection issue
  • Added some “user management” links
  • Fixed the “reply count” code to re-count after each reply [prior to this, if you deleted any articles in the admin, that would not be reflected in the count [1]
  • Changed the reply title to include the comment count, which helps make each title unique
  • Moved some stray style rules out of the pages and forms and into the style
  • Added the ability to specify which custom field you’ll be using to hold TXPhorum data
  • More

Mike,

I think version 0.2 will fix your redirection issue (“document has moved”) but since I can’t see the error on my machine I don’t know for sure. In other words, I’m eager to hear your feedback on this one. Also, I’ve added your template to the downloads page. Let me know if you think I should edit that at all.

Offline

#40 2007-01-31 02:05:11

maverick
Member
From: Southeastern Michigan, USA
Registered: 2005-01-14
Posts: 976
Website

Re: TXPhorum: A simple forum solution for Textpattern

Ben

Works like a charm! Nice work!

Mike

Offline

#41 2007-02-02 03:39:56

WebKat
Member
Registered: 2007-01-16
Posts: 301

Re: TXPhorum: A simple forum solution for Textpattern

I am getting this error when I view a thread in the forum:

tag_error <txp:article_custom post_or_reply="2" form="forum_reply" sort="Posted asc" /> ->
  Textpattern Notice: Unknown tag attribute: post_or_reply  on line 582

I do have my custom field 2 renamed to post_or_reply

Last edited by OpalCat (2007-02-02 03:43:13)



WebKat

Offline

#42 2007-02-02 13:12:41

mamash
Member
From: Prague
Registered: 2004-02-21
Posts: 128
Website

Re: TXPhorum: A simple forum solution for Textpattern

Do you have asy_wondertag installed and active?


Who’s gonna textdrive you home tonight?

Offline

#43 2007-02-02 17:09:03

WebKat
Member
Registered: 2007-01-16
Posts: 301

Re: TXPhorum: A simple forum solution for Textpattern

yes



WebKat

Offline

#44 2007-02-02 17:13:06

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: TXPhorum: A simple forum solution for Textpattern

That’s because TxP doesn’t recognize custom fields names as valid tag attributes (I think because their are infinite posibilities to rename a custom field).

That error should disappear if you change from Testing to Production mode in Site Admin Preferences.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#45 2007-02-03 01:43:00

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: TXPhorum: A simple forum solution for Textpattern

…TxP doesn’t recognize custom fields names as valid tag attributes…

It does, actually (both article and article_custom). I think the error message you’re getting was a bug we’ve since fixed in svn. And yes, as Julián mentioned, changing your Production mode setting will hide it (it doesn’t break anything).

Offline

Board footer

Powered by FluxBB