Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-04-28 08:21:34

FireFusion
Member
Registered: 2005-05-10
Posts: 698

Textile on these forums

I run a PunBB forum and would REALLY like to know how I could add textile support (in the same way this forum admin has).

Last edited by FireFusion (2006-04-28 08:24:36)

Offline

#2 2006-04-29 01:34:16

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

Re: Textile on these forums

Hacking, but it’s pretty simple. Here’s how it’s done here:

  1. Take a copy of classTextile.php (it’s in the Textpattern “lib” folder) and put it in your PunBB’s “include” folder.
  2. In that same folder, open up parser.php, and scroll down until you find the function “parse_message”.
  3. Now what you’re going to do is block comment (C-style) out the two functions “parse_message” and “parse_signature” (assuming that you want Textile for signatures too). You comment them out, rather then delete them, in case you screw something up or want to revert this change later.
  4. Add the following just above/below the functions you’ve commented out
  5. Save. All done.

Offline

#3 2006-04-29 07:03:37

FireFusion
Member
Registered: 2005-05-10
Posts: 698

Re: Textile on these forums

Wow thank you. Any chance of see the whole file? As mine can’t do spaces between sentences anymore.

Offline

#4 2006-04-29 07:06:03

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

Re: Textile on these forums

That’s a CSS issue, because for some silly reason the distributed stylesheet has set paragraphs to have no margins.

Offline

#5 2006-04-29 07:14:07

FireFusion
Member
Registered: 2005-05-10
Posts: 698

Re: Textile on these forums

Ah, so if I change the style sheet I’ll work?

I found how to do that but it made the rest of the layout all funny. I can see it’s going take a lot of work to get Textile working and keep everything looking good. So I’ll give up for now.

Offline

#6 2006-05-24 01:21:08

a73x
New Member
From: Rhode Island
Registered: 2004-03-05
Posts: 4
Website

Re: Textile on these forums

So which PunBB file do I find the BBCode:on bit in? I’d like to point people towards Textile.


—Alex

Offline

#7 2006-05-24 23:55:13

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

Re: Textile on these forums

Offline

#8 2006-05-25 01:16:34

a73x
New Member
From: Rhode Island
Registered: 2004-03-05
Posts: 4
Website

Re: Textile on these forums

I should have been more specific. I was looking for the references to BBCode in the text of the templates. For instance, below the box I’m typing this in are the words “Formatting: Textile (Quick Help)” where it used to say “BBCode:on… etc.”

I’ve since found them in both the post.php and edit.php files

Last edited by a73x (2007-03-04 19:23:58)


—Alex

Offline

#9 2006-05-25 08:12:30

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

Re: Textile on these forums

Ooh. Duh. Glad you got it figured out.

Offline

#10 2006-08-30 02:05:24

NeilA
Member
From: Blue Mountains, Australia
Registered: 2004-08-15
Posts: 316
Website

Re: Textile on these forums

Just made these changes in a PunBB forum I’ve just set up – thanks Mary!

But I have one more question: with the changes made as above, quoting a post in reply still uses the BBcode quote markup and not the Textile code.
Can someone point me to where in the PunBB code that is changed (and change it to what)?

Thanks!


Neil – Blue Mountains, Australia

http://westserve.org
http://ministrygrounds.net.au

Offline

#11 2006-08-30 04:04:50

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

Re: Textile on these forums

Re-read #3 and #4.

Offline

#12 2006-08-30 04:26:51

NeilA
Member
From: Blue Mountains, Australia
Registered: 2004-08-15
Posts: 316
Website

Re: Textile on these forums

Errr. OK… so the fact that after applying the patch, quoting produces [quote] and [/quote] around the quote, instead of <code>bq.</code> like this forum does, is a css issue?

Sorry, you lost me Mary! :)


Neil – Blue Mountains, Australia

http://westserve.org
http://ministrygrounds.net.au

Offline

Board footer

Powered by FluxBB