Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2010-02-06 04:32:31

JimJoe
Member
From: United States
Registered: 2010-01-30
Posts: 573
Website

Re: any category listing, any plugin, breaks at the blank between words

Some word wrap less. Thanks.

Sorry, I have to work this Saturday, and sunrise comes early. A computer tech’s work is never done. I have to get some sleep. I’ll try and check here Saturday evening.

Offline

#14 2010-02-06 19:44:31

JimJoe
Member
From: United States
Registered: 2010-01-30
Posts: 573
Website

Re: any category listing, any plugin, breaks at the blank between words

All fixed. I increased all 3 width definitions in sidebar-2 to 250 pixels.

Offline

#15 2010-02-06 19:52:19

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: any category listing, any plugin, breaks at the blank between words

Great. Again, there’s no need to keep the extra rules that look like this:

\width: 150px;
w\idth: 150px;

That’s an old CSS hack for dealing with Internet Explorer version 5, which now has a negligible market share.

Your pages seem to load unusually slowly. Worth putting the site into “Debugging” production status to see if you have any particularly slow queries.


Code is topiary

Offline

#16 2010-02-06 20:03:24

JimJoe
Member
From: United States
Registered: 2010-01-30
Posts: 573
Website

Re: any category listing, any plugin, breaks at the blank between words

Well, until I changed all 3, the extra width didn’t show up. No idea why, as you say its from olden days.

Slowness likely due to a backbone outage that took place in the area around my web host’s servers. Still recovering probably.

Offline

#17 2010-02-06 20:46:51

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: any category listing, any plugin, breaks at the blank between words

JimJoe wrote:

plugin help […] even less php.

Well, the plugin doesn’t have php skill requirement. It works like every other Textpattern tag. But yeah, the documentation might be bit messy and it has atleast four big typos and missing letters. I officially seem to hate “t”. Sorry about that :D

Offline

#18 2010-02-06 20:58:18

JimJoe
Member
From: United States
Registered: 2010-01-30
Posts: 573
Website

Re: any category listing, any plugin, breaks at the blank between words

I got it solved. And frankly, textpattern has the best documentation I have seen out of around 7-9 blog/cms I have tried out.

I checked my other sites on that domain, all are much faster than Crestar.

Offline

#19 2010-02-06 21:51:28

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: any category listing, any plugin, breaks at the blank between words

JimJoe wrote:

I checked my other sites on that domain, all are much faster than Crestar.

I’d look into it, then. Put your site into debugging mode (see link above) and at the bottom of the page source you’ll see processing time, query time, and time for each query. With a nested category list it’s possible you have some convoluted queries.


Code is topiary

Offline

#20 2010-02-06 22:14:54

JimJoe
Member
From: United States
Registered: 2010-01-30
Posts: 573
Website

Re: any category listing, any plugin, breaks at the blank between words

I don’t see processing time, query time, nor time for each query.

I only see these plugin errors, repeated numerous times at the top of the pages. The Diagnostic page in my cms works fine.

ag error: <txp:stw_category_tree maxlevel=“5” count=”{}” /> -> Notice: Uninitialized string offset: 2 on line 78

textpattern/lib/txplib_misc.php(594) : eval()’d code:45 stw_make_tree()
textpattern/publish.php:1106 stw_category_tree()
textpattern/publish.php:1028 processTags()
textpattern/publish.php:506 parse()
index.php:45 textpattern()

Tag error: <txp:stw_category_tree maxlevel=“5” count=”{}” /> -> Notice: Undefined variable: type on line 76

textpattern/lib/txplib_misc.php(594) : eval()’d code:45 stw_make_tree()
textpattern/publish.php:1106 stw_category_tree()
textpattern/publish.php:1028 processTags()
textpattern/publish.php:506 parse()
index.php:45 textpattern()

Offline

#21 2010-02-06 22:36:28

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: any category listing, any plugin, breaks at the blank between words

Farther down the page (source):

</html>
<!-- Runtime:    9.2277 -->
<!-- Query time: 8.956575 -->
<!-- Queries: 325 -->
<!-- Memory: 3362Kb, <txp:title /> -->

9 seconds worth of queries is … not good. 325 queries is also not good. I’ll see if I can find anything obvious to fix, but at first glance it’s stw_category_tree that is the gorilla.


Code is topiary

Offline

#22 2010-02-06 23:16:03

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: any category listing, any plugin, breaks at the blank between words

Short answer is that stw_category_tree is not really up to the task of such a long list of categories. It generates a separate count(*) query for each category. I’m a little surprised at how long each of those queries takes, but even were they faster it is still too many queries. I don’t know of an alternative plugin that would also do both the article count and the nested output (there might be one, I’m just not aware of it). cbs_category_list will do the count, but not nested lists.


Code is topiary

Offline

#23 2010-02-06 23:21:37

JimJoe
Member
From: United States
Registered: 2010-01-30
Posts: 573
Website

Re: any category listing, any plugin, breaks at the blank between words

Article count doesn’t matter, if the replacement plugin has can trim the empty categories. I can remove the article count.

edit: the nesting is a requirement.

Last edited by JimJoe (2010-02-06 23:24:22)

Offline

#24 2010-02-06 23:27:09

JimJoe
Member
From: United States
Registered: 2010-01-30
Posts: 573
Website

Re: any category listing, any plugin, breaks at the blank between words

Oh, I had left it in debug. I put it back into Live.

Offline

Board footer

Powered by FluxBB