To many newsitmes in html source code

5 years 4 months ago #7406 by ptrouw
Hi,
I just installed your great scroller in J1.5. I had a look at the generated html source code and I don't understand why I see a total of 16 newsitems.
I used all the 5 news-item spots in the module and have set it to consecutive. I would assume I would only see 5 news-items in the sourcecode, but not 16!.
Any ideas how to fix this?
I think somehow the loop or counting in the helper.php file is incorrect.
Cheers Paul

5 years 4 months ago #7407 by ptrouw
I had another try. If I switch off "consecutive" then all is fine. The only big disadvantage is after 5 news-items it show a white empty screen, before starting with the first one again. So with consecutive on it generates these additional news-items.
The code responsible for this is, I think:
for ($a = 0; $a < 4; $a++) { $html_content .= $html_content; }
Any tips?
5 years 4 months ago - 5 years 4 months ago #7413 by Uhtred
Hi Paul,

I think you have to rewrite the JavaScript code to achieve a consecutive scroller without the additional entries. Or just change the 4 to 3 or 2, so you won't have to many repeats of the news in the source code.

Regards
Vitja
Time to create page: 0.077 seconds