Welcome to Geeklog Thursday, May 23 2013 @ 07:32 PM EDT
|
||||||||
![]() |
Forum Index > Support > General Geeklog Support |
New Topic
|
Post Reply
|
News Ticker |
|||
| trampoline |
|
||||||
![]() ![]() ![]() ![]() ![]() Full Member Status: offline ![]() Registered: 02/24/06 Posts: 392 |
I would like a news Ticker, so much news is coming out for us at the moment...
Is there one for Geeklog ??? |
||||||
|
|||||||
| jmucchiello |
|
||||||
![]() ![]() ![]() ![]() ![]() Full Member Status: offline ![]() Registered: 08/29/05 Posts: 985 |
Be more specific. What does a news ticker do that RSS blocks don't already do (aside from automatically scrolling)?
|
||||||
|
|||||||
| trampoline |
|
||||||
![]() ![]() ![]() ![]() ![]() Full Member Status: offline ![]() Registered: 02/24/06 Posts: 392 |
Automatically scrolling actually, just under the header...
|
||||||
|
|||||||
| jmucchiello |
|
||||||
![]() ![]() ![]() ![]() ![]() Full Member Status: offline ![]() Registered: 08/29/05 Posts: 985 |
But what content? Your website's articles or some RSS feed? Or do you want to customize it?
|
||||||
|
|||||||
| geiss |
|
||||||
![]() ![]() ![]() ![]() ![]() Full Member ![]() Status: offline ![]() Registered: 02/10/04 Posts: 176 |
Here's a MooTools javascript library based News Ticker. See it in action here, and download it here.
Perhaps it can be shaped to do what you're wanting. Hope this helps! Eric Synergy - Stability - Style --- Visit us at glfusion.org |
||||||
|
|||||||
| trampoline |
|
||||||
![]() ![]() ![]() ![]() ![]() Full Member Status: offline ![]() Registered: 02/24/06 Posts: 392 |
Thanks Geiss,
That is a start !... |
||||||
|
|||||||
| geiss |
|
||||||
![]() ![]() ![]() ![]() ![]() Full Member ![]() Status: offline ![]() Registered: 02/10/04 Posts: 176 |
On my test site, I've added that MooTools news ticker. It was really simple since I already had the framework installed for the theme I'm working on.
You create an unordered list, and give it the class="moostick" and it does the rest: PHP Formatted Code <script type="text/javascript" src="http://geiss.getmyip.com/gl141ctl/layout/nouveau/js/moostick.js"></script> <ul class="moostick"> <li>Simple Text in a list item</li> <li>A <a href="#">link</a> in a text item</li> <li><a href="#">A headline of a story or RSS</a></li> </ul> So, now the question becomes writing a function that will output an RSS feed that way. You could use a portal block, but the feed will have the class="list-feed". You can change that in Geeklog's lib-common.php. On line 3529 change: PHP Formatted Code $content = COM_makeList( $articles, 'list-feed' );to $content = COM_makeList( $articles, 'moostick' ); Save your changes, clear your browser cache, and make sure to clear your feed cache in the block editor. Hope this helps! Eric Synergy - Stability - Style --- Visit us at glfusion.org |
||||||
|
|||||||
| trampoline |
|
||||||
![]() ![]() ![]() ![]() ![]() Full Member Status: offline ![]() Registered: 02/24/06 Posts: 392 |
Thanks Geiss,
Will this change of code alter any RSS feeds we have ? because I would like to keep those ???? |
||||||
|
|||||||
| geiss |
|
||||||
![]() ![]() ![]() ![]() ![]() Full Member ![]() Status: offline ![]() Registered: 02/10/04 Posts: 176 |
Quote by: trampoline Thanks Geiss, Yes, it will affect them by making them all use the ticker, since the modification to lib-common.php spits out the RSS feeds with class="moostick" instead of class="list-feed". You could either add any CSS for .list-feed to .moostick in your style.css file if you are only worried about styling, or back out the above changes in lib-common.php and figure out a way to create a custom function to create an RSS feed and specifically give it a class="moostick" attribute. Hope this helps! Eric Synergy - Stability - Style --- Visit us at glfusion.org |
||||||
|
|||||||
| ArchyAA |
|
||||||
![]() ![]() ![]() ![]() ![]() Junior ![]() Status: offline ![]() Registered: 12/19/07 Posts: 23 |
Where can i download 1.6.1 mediagallery ??
|
||||||
|
|||||||
| Content generated in: 1.06 seconds |
|
|
|