Home Private Messages Search
CPG Dragonfly™ CMS Dedicated Server & Bandwidth Sponsored by DedicatedNOW
Toggle Content
 
Forums ⇒ DragonflyCMS ⇒ Add-Ons & Blocks ⇒ Infopanel - block or module?


Infopanel - block or module?
Need help creating a block or add-on, or you have created or modified a block/add-on that works in Dragonfly CMS and it meets the CPG Security Requirements? Do you have feedback about a specific add-on? Here is the place to post. Read the announcements here first!.
Post new topic    Reply to topic    Printer Friendly Page     Forum Index ⇒  Add-Ons & Blocks

View previous topic :: View next topic  
Author Message
espsjurs
Nice poster
Nice poster

Offline Offline
Joined: Aug 09, 2005
Posts: 92
Location: Bergen, Norway
PostPosted: Tue Aug 31, 2010 8:46 am
Post subject: Infopanel - block or module?

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
Forum Admin

Offline Offline
Joined: Apr 19, 2004
Posts: 1040

PostPosted: Tue Aug 31, 2010 2:38 pm
Post subject: Re: Infopanel - block or module?

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 Photo Gallery
espsjurs
Nice poster
Nice poster

Offline Offline
Joined: Aug 09, 2005
Posts: 92
Location: Bergen, Norway
PostPosted: Tue Aug 31, 2010 4:49 pm
Post subject: Re: Infopanel - block or module?

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
Developer

Offline Offline
Joined: Apr 19, 2004
Posts: 5683
Location: http://tinyurl.com/5z8dmv
PostPosted: Tue Aug 31, 2010 8:17 pm
Post subject: Re: Infopanel - block or module?

Better to write it in JavaScript using setInterval


DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Fedora 15 / 2.2.22 / 5.5.20 / 5.3.10 / CVS
Back to top
View user's profile Visit poster's website Yahoo Messenger Photo Gallery
layingback
Forum Admin
Forum Admin

Offline Offline
Joined: Apr 19, 2004
Posts: 1040

PostPosted: Wed Sep 01, 2010 7:07 am
Post subject: Re: Infopanel - block or module?

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 Photo Gallery
layingback
Forum Admin
Forum Admin

Offline Offline
Joined: Apr 19, 2004
Posts: 1040

PostPosted: Thu Sep 02, 2010 7:10 am
Post subject: Re: Infopanel - block or module?

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 Photo Gallery
Display posts from previous:   
Post new topic    Reply to topic    Printer Friendly Page    Forum Index ⇒  Add-Ons & Blocks
Page 1 of 1
All times are GMT



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


 
   Toggle Content User Info

Welcome Anonymous

Nickname
Password
(Register)

   Toggle Content Last CVS commits
· Further security class improvements.
· 301 redirects on LEO changes
· Option to force 3xx http status codes
· Validate googlebot.com and google.com crawlers.
· CCBot
· Rss with etag and atom.
· Removed index.php depency.
· v9 fixed menu hoverings on touch screens.
· Fixed menu hoverings on touch screens.
· Fixed empty $Module object

Детальніше...

   Toggle Content Community

Support for DragonflyCMS in a other languages:

Deutsch
Español

   Toggle Content X-links
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

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
Interactive software released under GNU GPL, Code Credits, Privacy Policy