Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2006-08-30 10:53:39

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

Re: Textile on these forums

Ah, now I understand the problem. “Quoting” uses a separate thing altogether, which is why it is not automatically changed (and was something I added here later – after finding the stupid thing…).

Open up post.php and look for the line:

$quote = '> '.$q_poster.' '.$lang_common['wrote'].':'."\n\n".'> '.$q_message."\n";

I changed it to:

$quote = '*'.$q_poster.' '.$lang_common['wrote'].':*'."\n\n".'bq. '.$q_message."\n";

Does that solve all?

Last edited by Mary (2006-08-30 10:54:12)

Offline

#14 2006-08-30 18:50:59

candyman
Member
From: Italy
Registered: 2006-08-08
Posts: 684

Re: Textile on these forums

Found this old topic very interesting.
One question: what about old posts written in BBcode? They’ll be correctly translated? I mean, the BBcode will work again, after this hack?

Offline

#15 2006-08-30 19:38:01

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

Re: Textile on these forums

They’ll be correctly translated?

No.

Offline

#16 2006-08-31 00:24:41

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

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… :)


Neil – Blue Mountains, Australia

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

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

#18 2006-08-31 01:22:27

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

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… )


Neil – Blue Mountains, Australia

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

Offline

#19 2006-09-06 03:46:49

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

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!


Neil – Blue Mountains, Australia

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

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

#21 2006-09-07 04:03:13

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

Re: Textile on these forums

Woo hoo!

Looking good!

Thanks Mary


Neil – Blue Mountains, Australia

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

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

#23 2006-09-13 22:40:30

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

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.


Neil – Blue Mountains, Australia

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

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

Board footer

Powered by FluxBB