Infopanel - block or module?
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexAdd-Ons & Blocks
Author Message
espsjurs
Nice poster


Joined: Aug 09, 2005
Posts: 92
Location: Bergen, Norway

PostPost subject: Infopanel - block or module?
Posted: Tue Aug 31, 2010 8:46 am
Reply with quote

Anyone know about a module or block that will show news or content pages continuously? Like wait for 15 sec and show the next?
_________________
www.krypinn.net
mod.krypinn.net

espsjurs's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
FreeBSD 4.10/1.3.37/5.0.27/5.2.4/9.2.1
Back to top
View user's profile Visit poster's website
layingback
Forum Admin


Joined: Apr 19, 2004
Posts: 953

PostPost subject: Re: Infopanel - block or module?
Posted: Tue Aug 31, 2010 2:38 pm
Reply with quote

The following seems to work for a module:

Add at end of the module's display code for the page:
Code:
url_refresh(getlink(),10);

where 10 is number of seconds to display before update.

Details here.

If you created the content specifically for this purpose, and thus could ensure no gaps in the record index, then you could simply increment your way through the records with a suitable getlink call, and a loop back to 1 when limit is reached.

A reasonably simple add to an existing News, Content, Pro_News, etc, display item page. Indeed I believe you could do it all in template for Pro_News.

The Featured Content Slider module by grenday2k would do what you want, plus give you smoother blended changes, but you would have to enter all the data. Or there is a FCS template for Pro_News which will take any Pro_News articles, including images, and display as an FCS, no changes other than selecting the FCS template. (Example on my Home page.)

_________________
Pro_News: The complete module for Dragonfly - now available as version 3.3

layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6 - 3.6 / 1.3.42 - 2.2.12 / 5.0.92 - 5.1.37 - 5.1.54 / 4.4.49 - 5.2.17 - 5.3 / 9.2.1
Back to top
View user's profile Visit poster's website
espsjurs
Nice poster


Joined: Aug 09, 2005
Posts: 92
Location: Bergen, Norway

PostPost subject: Re: Infopanel - block or module?
Posted: Tue Aug 31, 2010 4:49 pm
Reply with quote

Thanks layingback, I am getting closer.. Smile
_________________
www.krypinn.net
mod.krypinn.net

espsjurs's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
FreeBSD 4.10/1.3.37/5.0.27/5.2.4/9.2.1
Back to top
View user's profile Visit poster's website
DJ Maze
Developer


Joined: Apr 19, 2004
Posts: 5668
Location: http://tinyurl.com/5z8dmv

PostPost subject: Re: Infopanel - block or module?
Posted: Tue Aug 31, 2010 8:17 pm
Reply with quote

Better to write it in JavaScript using setInterval

DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Fedora 12 / 2.2.15 / 5.1.47 / 5.3.3 / CVS
Back to top
View user's profile Visit poster's website Yahoo Messenger
layingback
Forum Admin


Joined: Apr 19, 2004
Posts: 953

PostPost subject: Re: Infopanel - block or module?
Posted: Wed Sep 01, 2010 7:07 am
Reply with quote

Indeed the FCS approach does use JavaScript setInterval (ie. it's 'pull' not 'push').

There is an (untested!) option in Pro_News to get the content from a saved html file using Ajax. It came as part of the FCS module from DynamicDrive. You would have to create the source html file - somehow. Might be of some use? Pro_News can display an article in a Center Block, but the non-Ajax version is limited to 10 records I believe, as its intended purpose was a rotating banner type display.

(presumably the same would work with greenday2k's FCS module)

_________________
Pro_News: The complete module for Dragonfly - now available as version 3.3

layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6 - 3.6 / 1.3.42 - 2.2.12 / 5.0.92 - 5.1.37 - 5.1.54 / 4.4.49 - 5.2.17 - 5.3 / 9.2.1
Back to top
View user's profile Visit poster's website
layingback
Forum Admin


Joined: Apr 19, 2004
Posts: 953

PostPost subject: Re: Infopanel - block or module?
Posted: Thu Sep 02, 2010 7:10 am
Reply with quote

Been thinking some more on this ...

First, I need to note that Pro_News supports a "Featured Content Slider" (FCS) function - by trivially changing the template - as well as a Center Up Block. But it does not - currently - support an FCS Center Block. Probably not impossible, however I'd just never thought of it.

You don't give details of the problem you are trying to address with this, but I've been pondering how you might display a large (> 10) number of ever changing/incrementing articles. Pro_News will display a page's worth of articles (10, or however many articles per page you've set), in an FCS display. You could probably handle 20 or so this way, but beyond that you may be assuming a lot about how much data the user's browser can cache.

I've done a quick test, and if you set a Pro_News Section with, say, 100 articles to display as FCS then the first 10 are displayed in FCS plus a normal DF pagination block below. Clicking on Next will display the next 10 articles in the FCS, and so forth.

So I'm thinking an additional setInterval script to simulate clicking the Next button after 10 articles have displayed in the FCS should move you on through the entire Section. This ought to be possible from inside the template, ie. without changing Pro_News code.

Obviously this will cause a page refresh which may or may not present a problem, but to employ the embedded Ajax method probably requires a Pro_News code change. Unless it is possible to dump the required part of a template out to a file from within the template - but I can't think how to do accomplish that ...

( I'm still learning how powerful the DF template system is - I've just implemented a fund raising style donation thermometer entirely in the template alone which is quite amazing - but there are limits to everything! Wink )

_________________
Pro_News: The complete module for Dragonfly - now available as version 3.3

layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6 - 3.6 / 1.3.42 - 2.2.12 / 5.0.92 - 5.1.37 - 5.1.54 / 4.4.49 - 5.2.17 - 5.3 / 9.2.1
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexAdd-Ons & Blocks All times are GMT
Page 1 of 1


Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

stopsoftwarepatents.eu petition banner
User Info [x]

Welcome Anonymous

Nickname
Password
(Register)

Last CVS commits [x]

Languages [x]

Community [x]

Support for DragonflyCMS in a other languages:

Deutsch
Español

X-links [x]
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

Preview theme [x]
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.


You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
This page generated in 0.4028 seconds with 19 DB Queries in 0.0389 seconds
Memory Usage: 2.91 MB
Interactive software released under GNU GPL, Code Credits, Privacy Policy