Topics

User Functions

Events

There are no upcoming events

What's New

Stories

No new stories

Comments last 2 weeks

No new comments

Trackbacks last 2 weeks

No new trackback comments

Links last 2 weeks

No recent new links

NEW FILES last 14 days

No new files

Welcome to Geeklog Thursday, May 23 2013 @ 07:32 PM EDT


 Forum Index > Support > General Geeklog Support New Topic Post Reply
 News Ticker
   
trampoline
 03/14/08 02:48PM (Read 1768 times)  
+++++
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 ???

 
Profile Email
 Quote
jmucchiello
 03/14/08 05:30PM  
+++++
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)?

 
Profile Email
 Quote
trampoline
 03/14/08 05:31PM  
+++++
Full Member

Status: offline


Registered: 02/24/06
Posts: 392
Automatically scrolling actually, just under the header...

 
Profile Email
 Quote
jmucchiello
 03/14/08 10:36PM  
+++++
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?

 
Profile Email
 Quote
geiss
 03/15/08 12:16AM  
+++++
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. Big Grin

Hope this helps!

Eric

Synergy - Stability - Style --- Visit us at glfusion.org
 
Profile Email Website
 Quote
trampoline
 03/15/08 05:06AM  
+++++
Full Member

Status: offline


Registered: 02/24/06
Posts: 392
Thanks Geiss,
That is a start !...

 
Profile Email
 Quote
geiss
 03/16/08 07:38PM  
+++++
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
 
Profile Email Website
 Quote
trampoline
 03/18/08 10:09AM  
+++++
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 ????

 
Profile Email
 Quote
geiss
 03/18/08 11:04AM  
+++++
Full Member

Status: offline


Registered: 02/10/04
Posts: 176
Quote by: trampoline

Thanks Geiss,
Will this change of code alter any RSS feeds we have ? because I would like to keep those ????



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
 
Profile Email Website
 Quote
ArchyAA
 08/02/09 11:42AM  
++---
Junior

Status: offline


Registered: 12/19/07
Posts: 23
Where can i download 1.6.1 mediagallery ??

 
Profile Email Website
 Quote
Content generated in: 1.06 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Able to post 
Filtered HTML Allowed 
Censored Content