Posts: 1,607
Joined: Apr 2016
OK, I have it and it is working. Just how do you see the location of the image? Top/bottom, centered, same as normal banners?
Posts: 352
Joined: Dec 2005
Reputation:
3
Amazing!
Could that be a configurable option? Would have use cases for centred and bottom.
Posts: 1,607
Joined: Apr 2016
Yes, I'll try making top/center/bottom, but horizontally it will always be centered.
Posts: 352
Joined: Dec 2005
Reputation:
3
Sounds great. Thanks for this!
Posts: 1,607
Joined: Apr 2016
v1.6
- Display banner via http/json/API: i.e. from any browser send:
http://localhost:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Addons.ExecuteAddon","params":{"addonid":"service.banners","params":{"imageloc":"D:\\img.jpg","displaytime":"3000","position":"center"}},"id":1}
Where "imageloc" is full path to image, "displaytime" is how long it should be displayed (1000-60000 mS) and "position" is "top", "bottom" or "center"
Posts: 352
Joined: Dec 2005
Reputation:
3
Thanks again, this is going to be a huge help around the office.
Quick bug report, looks like top & bottom in imageloc have been reversed.
Posts: 1,607
Joined: Apr 2016
OK, will fix
Posts: 1,607
Joined: Apr 2016
v1.7
- fixed small bug; reversed image location top-bottom for json/API call
- Other (really) small fixes
Posts: 1
Joined: Oct 2017
Reputation:
0
Looks very interesting, thanks for your work! Just have a question..is it possible to scroll some custom text, like: We Welcome Company X Mr. Y and so on?
Posts: 1,607
Joined: Apr 2016
No, just if you make animated GIF.
Posts: 1,607
Joined: Apr 2016
2017-10-17, 09:10
(This post was last modified: 2017-10-17, 09:11 by User 325245.)
v1.71
- fixed bug; image centered and shown in actual size
- new option: offset banner l/r (only if banner x size > skin resolution, since banners are centered) and top/bottom (always)
Updated in the TEST repo.
Posts: 1,607
Joined: Apr 2016
Since there were no complaints, I'm updating the latest version from the test repo to regular repo...
v1.8
- fixed bug; image centered and shown in actual size
- new option: offset banner l/r (only if banner x size > skin resolution, since banners are centered) and top/bottom (always)