Number of Items in Ticker Wrong
nofue - February 2, 2008 - 13:10
| Project: | Taxonomy Ticker |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Servus!
Although I filed this issue under the 5.x-1.x-dev I first dealt with the 1.1 release version, so this issue applies to both versions for 5.x.
The site in question runs Drupal 5.5
Having put taxonomy_ticker to work on some site a while ago, I was alerted by users that the number of items shown can't be changed from four (4). I changed that number in the respective admin/settings/taxonomy_ticker field to no avail. I also hacked the module's code
...variable_get(variable_get('taxonomy_ticker_count', 5));to allow 50 entries, but nope it displays only 4. I also installed a view to check and right, all the nodes which should display are listed in that view.
To see what's going on:
site: http://www.basitours.com
The ticker is on the front page.
The view with all the items which should be shown is in
http://www.basitours.com/inticker
Any hints as what to tweak where?
TIA,
Norbert

#1
Update:
Checking all code I found the dbquery to work OK, all the items to be shown are visible in the page's source code.
So I suppose the problem to be in the CSS code.
I increased the outerscrollPane (which is supposed to hold all the content to scroll) to a width of 3000px -- should suffice for starters, but it didn't change anything -- I get only the first four items displayed, no matter how wide I set that outerscrollPane, with the remaining entries simply vanishing somewhere between the source code of the page and the displaying panel.
Very irritating...
Odd: with Safari, scroll speed is reasonably fast, but with Firefox it's incredibly slow. So there needs to be some code to check for the browser to provide a better user experience with Firefox...
Any ideas?
#2
I have the same problem as you do, only on my site it displays more than 4 titles. Just like you did my first port of call was to check the source, which did have all the entries there. I did consider the css width problem which gave me the same error. I notice that both you and I use something to separate the titles on the scroll. You use +++ and i use chevrons maybe thats what is causing the problem. Probably unlikely, but is possible. I will alter the code on my website and see if it fixes it.
Regards
Nash
#3
Servus, Nash.
Sorry updating my findings late: later last time I tried to just shorten the respective strings, and bingo, there were all six showing up when I "themed" only a substring of 30 or such chars to display. Which sort of tells me, that some part of the display is definitely out of dimension. I tried to change those three panels (which names escape me, but two are 200 px, one is 2000px wide) but to no avail.
I suppose in your case the strings are rather short and that's why you get more than four. The strings on my site are pretty long -- four max. What confuses me: making the width too small should truncate some string somewhere, but it's exactly those four strings. As if there were something which chops strings at white space, which sure wouldn't be done by CSS... As all the links of that ticker will always lead to the same page, I'll try to concatenate all of the strings I want to display first and then send them as one single string to display -- curious what's going to happen then :)
Well, hope we'll get rid of that bug before vs. 6 hits the road :)
Enjoy,
Norbert
#4
Funny you should say that i picked up the source removing all formating like div tags and a hrefs and other references and it seems that i get 266 characters displayed on my ticker and 256 is right in the middle of the last title. Funny number 256-266 can you make any sense of it?
www.profitrentals.co.nz
Cheers
Nash
#5
By the way I had a look at the source on your site and i did the same thing and found that there were 236 characters displayed on yours that is including the " +++ " string that separates the titles.
Just thought it might make some sense to you.
Cheers
nash
BTW: very nicely designed site!!
#6
I can't reproduce the bug. nofue, I saw that the ticker on your ticker works. Did you find a solution ?
#7
Servus.
I'm somewhat surprised by your post -- please check the frontpage and the other page where I provided that view and you'll notice there should be six entries in that ticker by now, but there are only four entries showing up... So no, no solution so far -- but I have a lot of other tasks going on. Hope to work on this thing soon.
If you can't reproduce the bug, it may be caused by some other module interfering with taxonomy ticker...
However, first I'll add some ticker to a newly installed site to prove if it's working on a fresh site. Then I'll add module by module to see when it breaks. Geez, guess that's the downside of open source, but you get what you pay for :)
Have a nice day,
Norbert
#8
Hi nofue,
Sorry for my last message. I made a lot of tests and I forgot the initial goal on the way :-) . This is clearly a CSS problem. I increased the outterScrollPane to 4000 pixels on your site with Firebug and the two missing entries appeared. Unfortunately, if you want to display 50 entries, you will have big problems of performance because the div will be too big to be quickly moved (see http://drupal.org/node/130582 ).
#9
Servus!
Thanks for checking -- but I can't get any change from setting outerscrollPane to 4000px (testing with FF and Safari, Mac only). You may check as I left that setting at 4000px...
And right, as I said some posts ago, it seems FF has a bug which makes it scroll very slow and maybe that's getting worse if there are more entries to list.