Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Textile on these forums
Thanks Mary, I’m getting real close, but I think the couple of lines before the one you cite in post.php are also involved:
The relevant bit of post.php (I think) is:
<code>
$quote = ‘[quote=’.$q_poster.’]’.$q_message.’[/quote]’.”\n”;
}
else
$quote = ‘> ‘.$q_poster.’ ‘.$lang_common[‘wrote’].’:’.”\n\n”.’> ‘.$q_message.”\n”;
</code>
<br />
Your solution above deals with the second line, but not the first?
Applying your hack alone doesn’t change the quoting behaviour on my install.
Thanks for your patience… :)
Offline
#17 2006-08-31 00:44:50
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Textile on these forums
That line only applies to BBCode. And you need to turn it (BBCode) off as well.
Offline
Re: Textile on these forums
Doh! hadn’t turned off BBCode… <blush>
Many thanks Mary – so nice to have Textile in the forum (now to educate the users… )
Offline
Re: Textile on these forums
I have one more teeny question about this…
The standard CSS for punbb closes up blank lines between paragraphs.
I’m not sure if this is related to the change to Textile or not, but Mary said:
That’s a CSS issue, because for some silly reason the distributed stylesheet has set paragraphs to have no margins.
Can someone point me to the place in the CSS file(s) to change this?
Many thanks!
Offline
#20 2006-09-07 01:10:20
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Textile on these forums
base.css, right at the top, has:
.pun TABLE, .pun DIV, .pun FORM, .pun P, .pun H1, .pun H2, .pun H3,
.pun H4, .pun PRE, .pun BLOCKQUOTE, .pun UL, .pun OL, .pun LI, .pun DL,
.pun DT, .pun DD, .pun TH, .pun TD, .pun FIELDSET, .pun IMG {
MARGIN: 0px;
PADDING: 0px;
FONT-WEIGHT: normal;
LIST-STYLE: none;
}
Underneath it, add:
.pun p {
margin-bottom: 10px;
}
:)
Offline
Re: Textile on these forums
Woo hoo!
Looking good!
Thanks Mary
Offline
#22 2006-09-13 22:29:27
- candyman
- Member

- From: Italy
- Registered: 2006-08-08
- Posts: 684
Re: Textile on these forums
Please, where can I find a PhpBB powered forum hacked to use textile?
Offline
Re: Textile on these forums
Err, you are posting on one… :)
But if you mean “how can you hack a PunBB forum to use Textile” all the instructions are in this thread.
Offline
#24 2006-09-14 12:19:56
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Textile on these forums
…PhpBB powered forum hacked to use textile?
I don’t know of even one that exists. Sorry. :/
Offline
Re: Textile on these forums
Mary, may I ask how you are calling textile for this forum with the new textile 2.0.0? (i.e. with which parameters).
It seems to me that the TextileRestricted is a little too restrictive for forum use (no ul, ol, no images linked from elsewhere) and the standard textileThis is perhaps a little too generous judging by what you’ve excluded in this forum.
I’d be interested to know if you could achieve this through the parameters or whether you had to modify classTextile.php to achieve the right mixture.
EDIT: After playing around I think you may be using TextileRestricted but with lite = false (overriding standard true) and noimages= false (overriding standard true). Is that correct? HTML is escaped as are style, id and class which reduces vulnerabilities. Would that still be a ‘safe’ setup for a forum?
Last edited by jakob (2006-12-03 16:13:56)
TXP Builders – finely-crafted code, design and txp
Offline
#26 2006-12-05 22:18:48
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Textile on these forums
After playing around I think you may be using… Is that correct?
Yep.
Would that still be a ‘safe’ setup for a forum?
I am still getting used to the new Textile myself.
I had to make some modifications of PunBB to deal with spam. I created a new user group which users get added to by default when they join. In the parser, I check the usergroup before running the parse.
- Images are only allowed by the older, “trusted” members. That’s a very important distinction; I would not recommend letting just any bozo post images.
- I have lite turned off. It means you have to trust that users won’t screw up your layout (with tables, etc). It should still be “safe” because of using TextileRestricted.
Offline
Re: Textile on these forums
Thanks for the infos, Mary!
TXP Builders – finely-crafted code, design and txp
Offline