Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: PunBB integration?
These look like great ideas so far. I’ll put my vote in for the suggestions Jeremie made. This would work great for me, but I don’t know about others’ needs:
- PunBB 1.3
- MySQL
- UTF-8
- Two bridges: authorization / commenting
I take it that these ideas are at the “setting objectives” stage, but that there is yet to be actual development until a developer shows interest in working on this. (Edit: Jeremie, you just answered my question.) If increased interest is what is needed, I am very interested.
Last edited by bauhouse (2006-01-25 17:47:07)
Offline
Re: PunBB integration?
Jeremie wrote:
Yep. We have two sources… the Textile version, and the xhtml version. PunBB only deals natively with BBcode. So what do we do there ?
I would say use the xhtml version for the conversion to bbcode. This way any markup language can be used, whether it’s Textile or any other plugin an author may use.
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline
Re: PunBB integration?
As I posted before:
Once you have finished your requirements, I would do the job. But one question hcgtv:
Why do you want to convert xhtml to bbcode? – I would leave the html as it is.
At least there’s no 100% equal implementation of bbcode in all the bulletin boards and its a big thing to convert html to bbcode,… What happens to all the css styles and tags not supported by bbcode?
Next thing is, I would really recommend to wait for punBB 1.3, because with the extension feature a bridge will work independently of what changes are made to punbb in future.
But that’s just my opinion, what do you guys think?
Offline
Re: PunBB integration?
chriloi,
PunBB stores it’s posts with bbcode formatting.
Take a look at punbb_posts, the message field.
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline
Re: PunBB integration?
Whatever the format, I suspect some smart parsing would be needed. On the top of the list, headers. h1, h2, h3 are commonly used in article. Once published in a forum’s post format, they will break the page semantic.
My suggestion would be to “downsize” the headers to h4 (if allowed by the post’s format) and below (something like h1 and h2 to h4, h3 to h5, h4~6 to h6).
Offline
Re: PunBB integration?
@hgctv:
You’re right, most bulletin boards store posts as you enter it in the text box. It doesn’t matter if the post contains html, bbcode or whatever. The problem is, when a post is viewed, punBB automatically converts bbcode to html and quotes html tags. But with some coding it shouldn’t be that hard to allow only html that comes over the bridge to not be quoted.
@Jeremie:
In fact no extra parsing is needed. You can do all reformating stuff with just an extra css file.
While the article is rendered in punBB as html it will be enclosed like that:
<code>
<div class=“txpArticle”><some html></div>
</code>
Let’s say you want the h1 tag to be smaller, you just add
.txpArticle h1 {
font-size: 10px;}
to the css.
Rendering the comments for punBB could be done the same way!!
Last edited by chriloi (2006-01-25 23:41:06)
Offline
Re: PunBB integration?
Nope, I don’t want the h1 to be smaller, that’s the easy part. I want the semantic of the html page of the forum thread view to be correct.
A smaller css size won’t help a vocal browser (for example) find any sense to all that :)
Offline
Re: PunBB integration?
Ok, now I understand what you mean. But that only belongs to headers, doesn’t it? – I think downsizing this tags by the logic you posted is a good way to keep the semantic.
Offline
Re: PunBB integration?
I think it only apply to headers yes. The others Textiles or HTML tags can be kept or adapted straightforward. AH, no. Another exception : the Textpattern tags included within an article. I think they should be stripped.
Offline
Re: PunBB integration?
Which textpattern tags should be stripped? – Shouldn’t the article (and also the txp tags) be parsed, before it’ll be send through the bridge?
Another question: What happens to articles that are published with a future date? – Txp only publishes them on page request. That means, if a user goes directly to the forum without viewing txp at least once, there must also be a routine in punBB which calls this txp publishing procedure. Otherwise the article wouldn’t show up.
Offline
Re: PunBB integration?
True for “future” article.
For the TXP tag inside the article body… well if you prefer to, yes. And now that I think of it, it’s better to evaluate them, yes. Plugins like zem_link or img_popper does generate content.
Last edited by Jeremie (2006-01-26 17:43:21)
Offline
Re: PunBB integration?
On the ‘future’ article issue, something I ran into already.
I asked Rickard if he would consider adding some logic to PunBB 1.3 so that posts with future dates don’t appear until the date is reached.
If this is added to PunBB 1.3, then the article can be fed over when entered.
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline