1
crackerboy
chaning how the news headings are displayed
  • 2004/9/29 17:57

  • crackerboy

  • Just popping in

  • Posts: 16

  • Since: 2004/9/29


i'm starting to poke around the templats, but can't seem to find this.

i'd like to change the display style of the news items from;


category : title
Posted by user on date (4 reads)

to

title
Posted in category by user on date (4 reads)

where would i go about changing this??
thanks in advance.

2
sbkiller
Re: chaning how the news headings are displayed
  • 2004/9/29 18:14

  • sbkiller

  • Just can't stay away

  • Posts: 461

  • Since: 2004/6/9 2


To change the

category : title
to
title

Read the following

Go into your news module directory and find the index.php file:

Goto this code at line 134:

$story['title'] = $sarray[$i]->textlink().'&nbsp;:&nbsp;'."<a href='".XOOPS_URL."/modules/news/article.php?storyid=".$sarray[$i]->storyid()."'>".$sarray[$i]->title()."</a>";


Change to:

$story['title'] = "<a href='".XOOPS_URL."/modules/news/article.php?storyid=".$sarray[$i]->storyid()."'>".$sarray[$i]->title()."</a>";


To chagne this:

Posted by user on date (4 reads)
to
Posted in category by user on date (4 reads)

You might need to do that in the template. Maybe it's not possible or else you need a big hack.

Login

Who's Online

243 user(s) are online (168 user(s) are browsing Support Forums)


Members: 0


Guests: 243


more...

Donat-O-Meter

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

Latest GitHub Commits