1
Ro5SM
Recent News
  • 2004/3/30 18:27

  • Ro5SM

  • Just popping in

  • Posts: 38

  • Since: 2003/12/14


I'm trying to get rid of the date of the news piece on the 'Recent News' block. I've edited the file
modules/news/templates/blocks/news_block_new.html
which I think is the right file. It looks like this:

<ul>
  <{foreach 
item=news from=$block.stories}>
    <
li><a href="<{$xoops_url}>/modules/news/article.php?storyid=<{$news.id}>"><{$news.title}>a> (<{$news.date}>)li>
  <{/foreach}>
ul>


I've removed (<{$news.date}>) from that but still the date remains. What am I doing wrong?

2
Mithrandir
Re: Recent News

Update the module after changing templates.

3
Ro5SM
Re: Recent News
  • 2004/3/30 18:58

  • Ro5SM

  • Just popping in

  • Posts: 38

  • Since: 2003/12/14


Ah damn, can some one help me please.

I updated it and that worked, but the rest of the module has screwed up. Check for yourself:

http://www.nintendofusion.co.uk

As you can see it's the news pieces, which no longer have their boxes / stylings around them. Now I must have fiddled with a file at some point before to mess this up. So, which files contain the code controlling this? And what code needs to be in there? Damn my stupidity.

4
Ro5SM
Re: Recent News
  • 2004/3/31 15:17

  • Ro5SM

  • Just popping in

  • Posts: 38

  • Since: 2003/12/14


Please, does anyone know what file contains the problem that is with my news module?

5
ladon
Re: Recent News
  • 2004/3/31 17:26

  • ladon

  • Quite a regular

  • Posts: 284

  • Since: 2003/10/31


I asume you have removed the TD's or the class specifications. The file displaying the news items is /modules/news/templates/news_item.html. After changing it, make sure to update the module :)

You can also edit the templates in the adminsection! Might be easyer. If you can't get the lay-out back simply put the old .html file back (original) and edit it to fit your needs.

6
Ro5SM
Re: Recent News
  • 2004/3/31 17:38

  • Ro5SM

  • Just popping in

  • Posts: 38

  • Since: 2003/12/14


I think /modules/news/templates/news_item.html is the file I changed. However, now that I changed it I don't know what needs to be in it! Can someone please have a look and tell me the code that should appear in that file?

EDIT: That file isn't the problem, I've just checked it. Do any of you experts know what I've done to mess it up?

7
JackJ
Re: Recent News
  • 2004/3/31 21:33

  • JackJ

  • Community Support Member

  • Posts: 747

  • Since: 2003/8/31


It looks like your news page has some missing
etc

Need more info about what templates you are using. So I am assuming it is a "default" clone. If you don't know already you can't edit the original default template, you need to clone it--and set up your clone as default in general settings, you can call this clone anything you wish. If you are not using the default template the proceedure is similar to the following:

If you go to system admin/templates and go to the original "default" template, the one you can't edit, and go to the "News" list and look at news_index.html, this is the one that displays the news stories on the main page, you can copy this code into matching news files in the template your system is using. (The default template your system is using will have a tick against it). But it may be this news_index.html code in your default template has been damaged--so use this method if that is the case:

Go to the original template files in your news module download and copy and paste the code directly into the matching template files using the above method.

The file news_article.html is for the full display page of the article. Both files include "news_item.html" in the code which is for the display of each individual news item.


8
Ro5SM
Re: Recent News
  • 2004/4/1 17:04

  • Ro5SM

  • Just popping in

  • Posts: 38

  • Since: 2003/12/14


I've tried everything, and nothing will sort it. If those files are the problem, could you please just post the code that needs to be inside them here, as I really dunno why it won't work.

9
JackJ
Re: Recent News
  • 2004/4/1 19:36

  • JackJ

  • Community Support Member

  • Posts: 747

  • Since: 2003/8/31


news_item.html


<{$story.title}>


<{$lang_postedby}> <{$story.poster}> <{$lang_on}> <{$story.posttime}> (<{$story.hits}> <{$lang_reads}>)


<{$story.imglink}>

<{$story.text}>




<{$story.adminlink}> <{$story.morelink}>



<{if $displaynav == true}>


<{$topic_select}>

<{/if}>

news_index.html


<{section name=i loop=$stories}>
<{include file="db:news_item.html" story=$stories[i]}>


<{/section}>


<{$pagenav}>

<{include file='db:system_notification_select.html'}>

news_article.html

<{if
$pagenav}>Page <{$pagenav}><{/if}>



<{include file="db:news_item.html" story=$story}>


<{if
$pagenav}>Page <{$pagenav}><{/if}>





<{$commentsnav}>
<{$lang_notice}>




<{if $comment_mode == "flat"}>
<{include file="db:system_comments_flat.html"}>
<{elseif $comment_mode == "thread"}>
<{include file="db:system_comments_thread.html"}>
<{elseif $comment_mode == "nest"}>
<{include file="db:system_comments_nest.html"}>
<{/if}>


<{include file='db:system_notification_select.html'}>

I notice your style sheet is calling images remotely from the news code in style.css

your stylesheet news code:

.item {border: 1px solid #5D2965;}
.itemHead {background-image: url(http://www.sublimeone.elixant.com/image_host/albums/userpics/10026/newsgradient3.jpg); background-repeat: repeat; background-color: #efefef; color: #EEEEEE; padding: 2px; font-weight: bold; text-align: left;}
.itemInfo {text-align: right; padding: 3px; background-color: #CBCBCD;}
.itemTitle a {font-size: 100%; font-weight: bold; color: #EEEEEE; background-color: transparent;}
.itemPoster {font-size: 90%; font-style:italic;}
.itemPostDate {font-size: 90%; font-style:italic;}
.itemStats {font-size: 0%; font-style:italic; visibility: hidden; color: #FFFFFF;}
.itemBody {padding-left: 5px; text-align: left;}
.itemText {margin-top: 5px; margin-bottom: 5px; line-height: 1.5em;}
.itemText:first-letter {font-size: 100%;}
.itemFoot {text-align: right; padding: 3px; background-color: #efefef; background-image: url(http://www.sublimeone.elixant.com/image_host/albums/userpics/10026/newsgradient2.jpg); background-repeat: repeat;}
.itemAdminLink {font-size: 90%;}
.itemPermaLink {font-size: 90%;}

10
Ro5SM
Re: Recent News
  • 2004/4/1 20:49

  • Ro5SM

  • Just popping in

  • Posts: 38

  • Since: 2003/12/14


Although those files were wrong I changed them but still nothing changed on the actual site.

Login

Who's Online

960 user(s) are online (321 user(s) are browsing Support Forums)


Members: 0


Guests: 960


more...

Donat-O-Meter

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

Latest GitHub Commits