HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


news_34

Login / Search

 [ Join | More ]
 

news_34

Avatar
This is a spacer post for an ocPortal comment topic. The content this topic relates to: Beta-countdown: May 17th

Avatar
Hurrah! The tables are gone!

I could never get over the amount of nested tables in the themes - I'm sure they all had a purpose somewhere along the line, but I tend to strip out as many as possible (without breaking stuff) and replace them with CSS and div's myself.

I wonder if ocPortal v4 will have XSLT stylesheets as an option? :lol:

Avatar

Pete said

Hurrah! The tables are gone!

I couldn't agree more with you Pete. ;)

I could never get over the amount of nested tables in the themes - I'm sure they all had a purpose somewhere along the line, but I tend to strip out as many as possible (without breaking stuff) and replace them with CSS and div's myself.

We did have a go at removing them for ocPortal 2.6, but we couldn't manage it with the layout we used to have. This time, although they're now gone, we did come up against some resistance from some browsers. :P

I wonder if ocPortal v4 will have XSLT stylesheets as an option? :lol:

I highly doubt that, since XSLT stylesheets are used to translate XML (into XHTML, for example). However, you could add some to ocPortal if you so wished. :P

Amy

Avatar
Yay this is so cool. I am so going to get this. I so can not wait. Great job you guys.

Avatar
Well, you never know Philip - XML could be very handy for ocPortal. For example, the main_forum_news block uses a few queries (or maybe just one… I can't remember) for each post it calls onto the page - storing the results in an XML file and using ONE query to see if there's any later news, or else calling the XML file would be much faster.

This would be very handy as since you can't realistically cache the main_forum_news block (in case you post new news but it's not displayed on the main page straight away) but it'd save the full barrage of querying every time.

In fact, I'm sure this could be used in other areas on ocPortal, though I'll admit I can't think of any right now ;)

My only gripe now is I'm halfway through skinning for 2.6 and will be upgrading my 2.1.6 version to 2.6 shortly, and then I'll have to do it all again next month :'( ;)

Avatar
Bah, wasn't logged in for the above post - t'was I!

Avatar
Actually Pete, I don't think your idea works :P. If a topic is deleted, the block wouldn't be updated.

Avatar
D'oh! You're right :(

You could, however, scroll through the XML data and create a simple query that would check to see if the latest posts still existed, plus one that checks for new news.

If there's new news, or deleted topics, you've added 2 queries to the 20 current ones (2 per news post on my setup with 10 news posts showing), but if there's no deleted news or new news, you save running 18, and most of the time on sites where news isn't updated daily that's a fair difference - especially if you have a hundred or so visitors a day (or even those pesky search bots that send a hundred spiders at you at once ;)).

Avatar
ocPortal 3 uses a single query for the forum news block :). The old multi-sourcing feature for that block was a last-minute hack.

Avatar
Fair enough ;)

1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: