I have worked with the java code for the width, height, and velocity of the scrollbox but doesn't seem to do anything. :no:
How can I manipulate these elements? Isn't it supposed to be on newsScroller.js?
Printable View
I have worked with the java code for the width, height, and velocity of the scrollbox but doesn't seem to do anything. :no:
How can I manipulate these elements? Isn't it supposed to be on newsScroller.js?
There are settings in the admin after you install it for the height, amount, & delay (amount & delay control speed). The width is automatically set to roughly the column width that it is placed in.Quote:
Originally Posted by ideasgirl
Ok, but where? It's not on "News & Articles Management". :huh:
It is in the news & articles settings if you installed the scrollbox sql.Quote:
Originally Posted by ideasgirl
Well, apparently something is wrong, this is my patch:
but it stops while processing.PHP Code:
# News Scroller Config
INSERT INTO configuration VALUES ('', 'News Sidebox Scroller Days', 'NEWS_SCROLLER_NUMBER_OF_DAYS', '7', 'The news sidebox scroller will only contain news from the past xx news days', '2504', '100', NULL, now(), NULL, NULL),
('', 'News Sidebox Scroller Height', 'NEWS_SCROLLER_HEIGHT', '250', 'The height of the news sidebox scroller box', '2504', '101', NULL, now(), NULL, NULL),
('', 'News Sidebox Scroller Amount', 'NEWS_SCROLLER_AMOUNT', '2', 'The amount to scroll by', '2504', '102', NULL, now(), NULL, NULL),
('', 'News Sidebox Scroller Delay', 'NEWS_SCROLLER_DELAY', '100', 'The amount of delay when scrolling', '2504', '103', NULL, now(), NULL, NULL);
UPDATE configuration, configuration_group SET configuration.configuration_group_id = configuration_group.configuration_group_id WHERE configuration_group.configuration_group_title = 'News & Articles Management' AND configuration.configuration_group_id = '2504';
That Update statement should be commented out. It doesn't work with the Zen Cart SQL Patch tool.
The Select & Update statement after it should be the one that runs and it should read:
If you've already run the INSERT INTO configuration VALUES ... statement, don't run it again. Just run what I've posted above.Code:SELECT @group_id := configuration_group_id FROM configuration_group WHERE configuration_group_title = 'News & Articles Management';
UPDATE configuration SET configuration_group_id = @group_id where configuration_group_id = '2504';
B I N G O ! :smartass: Thanks!
:cry:
its not working for me though... the scroller setting still wont appear where it should be!
Is this News and Articles module support multilanguage?
If not, is there any code suggest to add for this function?
Thanks.
yup, it is support multilanguage function... no special code required!Quote:
Originally Posted by icemanchai