i guys, i'm new, and i can't speak english very well...so...sorry.

Now go to the matter,
i need a block that display a type content, i will use this for my news.
I want to display all text of a content, and i need an effect like marquee, so scrolling.
The scrolling is intended scroll all the contents continuously, and when i go with the mouse on the block, the scroll will stop, in any position are the text.

I can't find a module to di this, for Drupal 6.x

i think that, probably, can be done an adaptation using the module last_node, that use the marquee exactly as i need, but display only the title of the content, and not all the text.

I hope you can understand what i meaning, and you can help me.
Thanks

Comments

Views + New Ticker

This is how I did it on my site.

1] Download and Install views.
http://drupal.org/project/views

2] Create a new view that creates a block and filters out everything but the content you want in the news marquee, select the fields you want to display

3] Download and install Views Ticker (http://drupal.org/project/views_ticker)

4] Change the view type of your newly created view to Tickers: Scroll or something like that.

If you don't have views installed, or you don't know how to use views, I would try and use Taxonomy Ticker(http://drupal.org/project/taxonomy_ticker) first. I don't know if it can do what you want as I've never used it.

Good luck!

your solution are for drupal 5.x

Soluton you suggest are for Drupal 5.x, i use Drupal 6.x, so i can't try.

I found the TicketyBoo (http://drupal.org/project/ticketyboo) that is near my necessity, but have some problem.

The height of all item must be fixed, for example 100px, if my article is longer this will be cutted, without advise.
For example will be good, if after some words, is possible to add "..." and then cut the rest of article.

The article doesn't have the title, will be good to show the title for the article, and make this title a link to the full article.

Understand what i mean?
Can anyone help me?

marquee block

Hi, try this:

1. Download http://ftp.drupal.org/files/projects/front-6.x-1.2.tar.gz

2. Open the file and copy to \modules

3. Login as administrator then go to >Administer>Site building>MODULES and look for "Front Page 6.x-1.2 Allows site admins setup custom front pages for the site." and too "PHP filter Allows embedded PHP code/snippets to be evaluated." Mark as Enabled.

4. Cick to: "save configuration" (bottom of the MODULES page) and save this new module.

5. Go to >Administer look in the section Site configuration>Advanced front page settings

Now is open a new page, here you find: Front page for anonymous user and Front page for Authenticated user.

6. If you want that all "Authenticated User, can see your custom Html code first you must select: Front Page for authenticated user, Select type "themed" Redirect to: "node" and mark as Enabled "Allow embedded PHP code in this front page"
Then go to "Save configuration" (bottom of the page and click here to save your custom configuration"

7. Now go to Create content>page
In Title the text that you want "example"
In Body copy this:

<marquee direction="down" behavior="alternate" height="150">

<marquee behavior="alternate"><font size="5">example</font></marquee>

</marquee>



<FONT SIZE="4" FACE="courier" COLOR=blue><MARQUEE WIDTH=100% BEHAVIOR=SCROLL BGColor=yellow LOOP=3>This is an

example of a scrolling marquee...</MARQUEE></FONT>

Then in this same page look for: "Imput format" and select PHP code
and in Publishing options mark as enabled "promoted to front page.

Then Preview.

To change the text look for: "example and This is an

example of a scrolling marquee" and type the text that you want

If all now is Ok
click on save button and wala you have your MARQUEE TEXT READY for Drupal web site.

i found my solution

tanks for your time.

I make a personal module for my content.
Starting from ticketboo i create a module for include the marquee.

Now i create a content type, and all content i create in this type go on the marquee block.

If you tell me where to share this module, i can pubblic in the module section of this site, i think is good, it can be improved, but now is already functional

Hye iron_master ...i just

Hye iron_master ...i just read what you have posted. Actually i have a problem in order to make my news scrolling to the top. It is quite similar with what you have done. I did try to follow the step that yotrinity's posted. Actually its working. The problem is it is scrolling from left to right. I also download the ticketyboo to make my news srolling up. But rather than just enable it, I dont know what should i do next. I am quite lost here. Actually I am new to drupal. I am using drupal 6.X. Is it possible for you to share with me the module that you have create for include the marquee. Anyway, thanks in advanced.

i need a little improvement for my module

sorry for this post, you can read here
Moderators can delete this post, thanks.

Hi Yotrinity, Just a quick

Hi Yotrinity,
Just a quick correction.
You don't copy the module folder to /modules. That's were the drupal system modules go.
You copy any additional modules to /sites/all/modules. If the folder doesn't exist you can create it.

This makes life MUCH easier when upgrading or migrating.

Matt

P.S. Also the tag isn't supported by most browsers so not recommended.

i need a little improvement for my module

Hy Guys, after few times i'm returning to work on my little modified module, called "News Scroller".
The module work fine, but there is a problem, it dispaly all the content of a node, type or taxonomy, all the content of the selected nodes.
So i don't know how to add the functionality for dispaly only the publishied content, is very important.
Probably someone can help me, here is the code of my "newsscroller.module":

<?php
/***********************************************
* Module NewsScroller for Drupal created by XXXXXXXXX
* This notice MUST stay intact for legal use
* © XXXXXXXXX - all rights reserved
***********************************************/


/**
* Implementation of hook_help()
*/
function newsscroller_help($section) {
}

/**
* Implementation of hook_perm()
*/
function newsscroller_perm() {
   return array(
     
'administer newsscroller',
     
'view newsscroller',
   );
}

/**
* Implementation of hook_block()
*/
function newsscroller_block($op = 'list', $delta = 0, $edit = array()){
   if (
$op == 'list') {
      return array(
        
1 => array('info' => t('NewsScroller 1'), ),
        
2 => array('info' => t('NewsScroller 2'), ),
        
3 => array('info' => t('NewsScroller 3'), ),
        
4 => array('info' => t('NewsScroller 4'), ),
        
5 => array('info' => t('NewsScroller 5'), ),
      );
   }
   elseif (
$op == 'configure') {
      return
_newsscroller_config($delta);
   }
   elseif (
$op == 'save') {
      return
_newsscroller_config_save($delta, $edit);
   }
   elseif (
$op == 'view') {
     
$block = array();
     
$block['subject'] = 'NewsScroller '.$delta;
     
$block['content'] = _newsscroller_block($delta);
      return
$block;
   }
}

/**
* Return the block configuration form
*/
function _newsscroller_config($delta) {
  
$form = array();
  
$form['text'] = array(
     
'#title' => t('Text'),
     
'#description' => t('Text, which will go in front of the ticker. You can use some HTML elemets.'),
     
'#type' => 'textarea',
     
'#default_value' => variable_get('newsscroller_text_'.$delta, ''),
   );
  
$form['selection'] = array(
     
'#title' => t('Selection'),
     
'#description' => t('Method of selecting nodes to be displayed in the ticker:<br />- Node: a list of node numbers separated by commas<br />- Type: a single node type (eg page, story)<br />- Taxonomy: a list of taxonomy categories, type the term number separarted by commas'),
     
'#type' => 'select',
     
'#default_value' => variable_get('newsscroller_selection_'.$delta, 'node'),
     
'#options' => array('node'=>'Node', 'type'=>'Type', 'taxonomy'=>'Taxonomy'),
   );
  
$form['nodes'] = array(
     
'#title' => t('Nodes, Type or Taxonomy'),
     
'#description' => t('A list of node numbers, types or taxonomy categories which will be used for Ticker ').$delta.'. '.t('Separate each entry with commas.'),
     
'#type' => 'textarea',
     
'#default_value' => variable_get('newsscroller_nodes_'.$delta, ''),
   );
  
$form['style'] = array(
     
'#title' => t('NewsScroller style'),
     
'#description' => t('CSS style attributes for the ticker area'),
     
'#type' => 'textfield',
     
'#default_value' => variable_get('newsscroller_style_'.$delta, 'width: 150px; height: 200px;'),
   );
  
$form['item_width'] = array(
     
'#title' => t('Item width'),
     
'#description' => t('Width of individual ticker items in pixels'),
     
'#type' => 'textfield',
     
'#default_value' => variable_get('newsscroller_item_width_'.$delta, 150),
   );
  
$form['item_style'] = array(
     
'#title' => t('Ticker item style'),
     
'#description' => t('CSS style attributes for each ticker item.  Don\'t specify height or width, though.'),
     
'#type' => 'textfield',
     
'#default_value' => variable_get('newsscroller_item_style_'.$delta, ''),
   );
   return
$form;
}

/**
* Save the block configuration form
*/
function _newsscroller_config_save($delta, $edit) {
  
variable_set('newsscroller_nodes_'.$delta, $edit['nodes']);
  
variable_set('newsscroller_selection_'.$delta, $edit['selection']);
  
variable_set('newsscroller_text_'.$delta, $edit['text']);
  
variable_set('newsscroller_style_'.$delta, $edit['style']);
  
variable_set('newsscroller_item_width_'.$delta, $edit['item_width']);
  
variable_set('newsscroller_item_style_'.$delta, $edit['item_style']);
}

/**
* Return the contents of a block
*/
function _newsscroller_block($delta) {
static
$loaded = false;
$eps = 50; // events per second, controls the smoothness of the ticker

   // get the parameters
  
$nodes = variable_get('newsscroller_nodes_'.$delta, '');
  
$selection = variable_get('newsscroller_selection_'.$delta, '');
  
$text = variable_get('newsscroller_text_'.$delta, '');
  
$style = variable_get('newsscroller_style_'.$delta, 'width: 100px; height: 100px;');
  
$item_width = variable_get('newsscroller_item_width_'.$delta, 100);
  
$item_style = variable_get('newsscroller_item_style_'.$delta, '');

  
// ticker id
  
$id = "newsscroller_$delta";

  
// additional style information for ticker
  
$style = "overflow-x: hidden; overflow-y: hidden; $style";
   {
     
$pad_style="width: {$item_width}px; height: {$item_spacing}px";
   }
  
$item_style = "width: {$item_width}px; height: auto; {$item_style}";

  
// build the ticker contents
  
switch ($selection) {
      case
'node':
        
$nodes = explode(',', $nodes);
         break;
      case
'type':
        
$r = db_query("SELECT DISTINCT nid FROM {node} WHERE type ='%s'", trim($nodes));
        
$nodes = array();
         while (
$n = db_fetch_array($r)) {$nodes[] = $n['nid'];}
         break;
      case
'taxonomy':
        
$r = db_query("SELECT DISTINCT nid FROM {term_node} WHERE tid in (%s)", $nodes);
        
$nodes = array();
         while (
$n = db_fetch_array($r)) {$nodes[] = $n['nid'];}
         break;
   }
  
$ret = '';
  
$i=0;
   foreach (
$nodes as $nid) {
     
$node = node_load(trim($nid));

     
$ret .= '<a href="/node/'.$node->nid.'"><b>'.$node->title.'</b></a><br />';
     
$ret .= $node->teaser;
     
$i++;
   }

  
// put contents in ticker window
  
$ret = '<div id="marqueecontainer" style="'.$style.'; position: relative;" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed"><div id="vmarquee" style="position: absolute;">'.$ret.'</div> </div>';

  
// add scripts etc to page
   
{
     
drupal_add_js(drupal_get_path('module', 'newsscroller') .'/newsscroller.js');
    }

   return
$text.$ret;
  
}
</
code>

I'm waiting for your answer.
<a href="http://www.test.palermoscacchi.it/">Here</a> there is the actual result of the module, as you can see if you click, by the module, on a unpublishied node you can'
t read the node content.
The website is under construnction.

Thanks
?>

Problem Solved!

Problem solved guys, thanks however for your time.
The above code need only a little edit in this part:

<?php
case 'type':
        
$r = db_query("SELECT DISTINCT nid FROM {node} WHERE type ='%s'", trim($nodes));
?>

By adding this code:
AND status = 1 ORDER BY created DESC

In order to obtain this result:

<?php
case 'type':
        
$r = db_query("SELECT DISTINCT nid FROM {node} WHERE type ='%s' AND status = 1 ORDER BY created DESC", trim($nodes));            
?>

Obviously you have to repeat this edit also for the case 'taxonomy' in this way:

<?php
case 'taxonomy':
        
$r = db_query("SELECT DISTINCT nid FROM {term_node} WHERE tid in (%s) AND status = 1 ORDER BY created DESC", $nodes);
?>

This new code provide also the node dispalys by descending creation date, very good.
If you want, i'm ever ready to share all my module, very sample and easy/ready to use.

Bye

i'ld like to use that module

i'ld like to use that module & could u share me pls?
Thanks

ScrollText used for display

ScrollText used for display text in scrolling mode (marquee). The text come from certain node titles! You can take a number of node titles from page or story or any node type.
http://drupal.org/project/scrolltext

I suggest You to use Views Slideshow: http://drupal.org/project/views_slideshow (an add-on for Views module).

This module have two Plugin included that cover almost all situations about sliding, fading, moving, scrolling of contents, teasers, cck fields and so on...

The integration with Views gives You a complete control over the contents and possibilities to customize everything (in Views possibilities!).

It generate a valid markup w3c standard (no deprecated tag) and cross-browser JQuery libraries included!

Only one (little problem): the markup is not "semantic" ( should be replaced by list tags) but it's easy to patch the module to achieve this target.

I hope could be a good suggestion!
Bye!

nobody click here