1
BDW
News topic Image "title" - How do i add it?
  • 2006/9/12 10:10

  • BDW

  • Quite a regular

  • Posts: 280

  • Since: 2002/9/28


In news articles the images that link to the topics dont have a title in the HTML. For example:

Quote:
<img src='http://www.mineoryoursite.net/modules/news/images/topics/ac8d11dec055b9a9.gif' alt='Announcements' hspace='10' vspace='10' align='right' />


Should be

Quote:
<img src='http://www.mineoryoursite.net/modules/news/images/topics/ac8d11dec055b9a9.gif' title='Announcements' hspace='10' vspace='10' align='right' />


How do I change this?

2
rplima2004
Re: News topic Image "title" - How do i add it?
  • 2006/9/12 13:09

  • rplima2004

  • Just popping in

  • Posts: 70

  • Since: 2004/10/8


Hi,

Change the function below and insert the title. This function is on the file XOOPS_ROOT_PATH/modules/news/class/class.newsstory.php
Quote:

function imglink()
{
$ret = '';
if ($this->topic_imgurl() != '' && file_exists(XOOPS_ROOT_PATH."/modules/news/images/topics/".$this->topic_imgurl())) {
$ret = "<a href='".XOOPS_URL."/modules/news/index.php?storytopic=".$this->topicid()."'><img src='".XOOPS_URL."/modules/news/images/topics/".$this->topic_imgurl()."' alt='".$this->topic_title()."' hspace='10' vspace='10' align='".$this->topicalign()."' /></a>";
}
return $ret;
}


att

Rodrigo

Login

Who's Online

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


Members: 0


Guests: 234


more...

Donat-O-Meter

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

Latest GitHub Commits