1
titius
Random News display full News title
  • 2007/6/3 8:39

  • titius

  • Just popping in

  • Posts: 25

  • Since: 2006/11/18


Hi

Im wandering is it possibile to display full title of News, i random news block?

Default is for example

- < date > First news automobile In....
- < date > Cant figure out how to c....

and Im trying to do

- < date > First news automobile Industry crash
- < date > Cant figure out ho to change random news

:)

2
titius
Re: Random News display full News title
  • 2007/6/3 11:23

  • titius

  • Just popping in

  • Posts: 25

  • Since: 2006/11/18


Duh

I found it :),

Ive edited news_randomnews.php block.

foreach ( $stories as $story ) {
        
$news = array();
        
$title $story->title();
        if (
strlen($title) > $options[2]) {
            
$title xoops_substr($title,0,$options[2]+3);
        }
        
$news['title'] = $title;

and removed
$title xoops_substr($title,0,$options[2]+3);


instead added
$title $story->title();

Login

Who's Online

330 user(s) are online (234 user(s) are browsing Support Forums)


Members: 0


Guests: 330


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits