1
isronax
News module and HTML format
  • 2007/12/12 16:46

  • isronax

  • Just popping in

  • Posts: 100

  • Since: 2005/4/26


i am trying to create some html page and put in news (news module) and the result is like this

http://coolradiostation.info/modules/news/article.php?storyid=4

and here the code i made
Quote:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>

<body>
<table width="500" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="143">&nbsp;</td>
<td width="250"><img src="gbr/adam.jpg" width="250" height="204" alt="cooldj" /></td>
<td width="13">&nbsp;</td>
<td width="78">&nbsp;</td>
<td width="16"><img src="gbr/ainie.jpg" width="233" height="211" /></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>DJ. Adam, DJ yang punya tanggung jawab tuk urusan siaran dengan Arabic, mesti seru deh.. </td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>DJ. Adam, DJ yang punya tanggung jawab tuk urusan siaran dengan Arabic, mesti seru deh.. </td>
</tr>
<tr>
<td>&nbsp;</td>
<td><img src="gbr/mery.jpg" width="250" height="291" /></td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td><img src="gbr/amanda.JPG" width="250" height="241" /></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>DJ. Adam, DJ yang punya tanggung jawab tuk urusan siaran dengan Arabic, mesti seru deh.. </td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>DJ. Adam, DJ yang punya tanggung jawab tuk urusan siaran dengan Arabic, mesti seru deh.. </td>
</tr>
<tr>
<td>&nbsp;</td>
<td><img src="gbr/bimo.jpg" width="250" height="206" /></td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td><img src="gbr/coy.jpg" width="250" height="175" /></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>DJ. Adam, DJ yang punya tanggung jawab tuk urusan siaran dengan Arabic, mesti seru deh.. </td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>DJ. Adam, DJ yang punya tanggung jawab tuk urusan siaran dengan Arabic, mesti seru deh.. </td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
</body>
</html>


Note: a pic not yet upload. i copy and paste this code to extended text box.
The Greats Xoops ... Go Ahead.
www.xoopsindonesia.com
www.indonesianschool.org

2
christian
Re: News module and HTML format
  • 2007/12/12 16:59

  • christian

  • Just can't stay away

  • Posts: 401

  • Since: 2002/2/24


Hi

Look my answer in this thread.

3
isronax
Re: News module and HTML format
  • 2007/12/12 17:40

  • isronax

  • Just popping in

  • Posts: 100

  • Since: 2005/4/26


its very nice..thread news. Thanks.
but stil have gap between scoop and extended text.

here is the result http://coolradiostation.info/modules/news/article.php?storyid=4

once again;
thanks
The Greats Xoops ... Go Ahead.
www.xoopsindonesia.com
www.indonesianschool.org

4
christian
Re: News module and HTML format
  • 2007/12/12 20:51

  • christian

  • Just can't stay away

  • Posts: 401

  • Since: 2002/2/24


When you insert your html code, copy and paste ONLY the text between <body> and </body>

For the gap between scoop and extended text , edit the file article.php and delete tag < br /> here

$story['text'] = $story['text'].'<br />'.news_getmoduleoption('advertisement').'<br />'.$articletext[$storypage];

5
Shine
Re: News module and HTML format
  • 2007/12/12 23:12

  • Shine

  • Just can't stay away

  • Posts: 822

  • Since: 2002/7/22


if ($storypage == 0) {
            
$story['text'] = $story['text'].'<br />'.news_getmoduleoption('advertisement').'<br />'.$articletext[$storypage];
        } else {
            
$story['text'] = $articletext[$storypage];
        }
    } else {
        
$story['text'] = $story['text'].'<br />'.news_getmoduleoption('advertisement').'<br />'.$bodytext;
    }
}


Hm,..... which < br / > in which line exactly? As you can see there are more.

Thanks, Shine

6
pw-kw
Re: News module and HTML format
  • 2007/12/13 8:16

  • pw-kw

  • Just popping in

  • Posts: 50

  • Since: 2007/2/1 8


news-modul 1.56: turn off XOOPS codes

Hi XOOPSlers,

i have the same problem - I think, the problem could be solved with de-activating of XOOPS-Codes.

But I can't find a possibility to turn off XOOPS codes. - What can I do? - Is there a possibility to include such kind of function in the news-modul.

Thanx a lot in advance!

Login

Who's Online

79 user(s) are online (45 user(s) are browsing Support Forums)


Members: 0


Guests: 79


more...

Donat-O-Meter

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

Latest GitHub Commits