Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#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:
- Take a copy of classTextile.php (it’s in the Textpattern “lib” folder) and put it in your PunBB’s “include” folder.
- In that same folder, open up parser.php, and scroll down until you find the function “parse_message”.
- 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.
- Add the following just above/below the functions you’ve commented out
- 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
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
Uh… I already said?
Offline
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
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!
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
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! :)
Offline