1
skyangelo
Each post of NEWS is displayed twice...
  • 2010/6/30 23:15

  • skyangelo

  • Just popping in

  • Posts: 79

  • Since: 2005/4/9 1


This may be a silly question...
I don't know how to fix the pb I got that each post of my News (1.65) module is displayed twice with Xoop 2.4.3...

Don't know where I have to fix it.
Thanks a lot!

2
ghia
Re: Each post of NEWS is displayed twice...
  • 2010/7/1 6:57

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


News has a lot of possibilities for showing its posts.
Where do you see this doubles (block, page, URL) and how does it look (screenshot, URL)?
Did you upgrade, installed something lately?
Has it worked before?
PHP, MySQL version.


3
skyangelo
Re: Each post of NEWS is displayed twice...
  • 2010/7/3 19:20

  • skyangelo

  • Just popping in

  • Posts: 79

  • Since: 2005/4/9 1


For the block, it's fine.
For all the pages (index page, page by topics, even the page of each block), it's displayed twice.
for example:
/modules/news/ (index page)
/modules/news/article.php?storyid=69 (1 post page)
/modules/news/index.php?storytopic=2&storynum=10 (topic page)
etc...

Actually, it worked normally as I used a theme (city_reflections) that has news module template. I just notices that with other themes, each post is displayed twice.
And i don't know why.... @_@

my URL:
http://www.skyangelo.com/html/modules/news/

Xoops 2.4.3
News 1.65
PHP 5.2.13
MySQL 5.0.81-log

I think it's a "display" issue???

4
ghia
Re: Each post of NEWS is displayed twice...
  • 2010/7/4 7:24

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


It seems you have duplicated code in
modules/news/templates/news_item.html
<table cellpadding="0" cellspacing="0" class="item">
<
tr>
    <
td>
        <
table cellpadding="0" cellspacing="0" width="98%">
        <
tr>
            <
td class="itemHead">
                <
span class="itemTitle">
                    <
a href="<{$xoops_url}>/modules/news/index.php?storytopic=<{$story.topicid}>"><{$story.topic_title}> : <{$story.news_title}>
                span>
            td>

        tr>
        <
tr>
            <
td class="itemInfo"><{if $story.files_attached}><{$story.attached_link}>&nbsp;<{/if}><{if $story.poster != ''}><span class="itemPoster"><{$lang_postedby}> <{$story.poster}>span><{/if}> <span class="itemPostDate"><{$lang_on}> <{$story.posttime}>span> (<span class="itemStats"><{$story.hits}> <{$lang_reads}>span>) <{$news_by_the_same_author_link}>td>

        tr>
        <
tr>
            <
td class="itemBody">
                <{
$story.imglink}>
                <{if 
$articlePicture != ''}><img src="<{$articlePicture}>" alt="" align="left" style="margin-right: 5px; margin-bottom: 5px" /><{/if}>
                <
class="itemText"><{$story.text}>p>
            td>
        tr>
        <
tr>

            <
td class="itemFoot"><span class="itemAdminLink"><{$story.adminlink}>span><{if $rates}><b><{$lang_ratingc}>b> <{$story.rating}> (<{$story.votes}>) - <a href="<{$xoops_url}>/modules/news/ratenews.php?storyid=<{$story.id}>" rel="nofollow"><{$lang_ratethisnews}>a> - <{/if}><span class="itemPermaLink"><{$story.morelink}>span>td>
        tr>
        table>

    td>
tr>
table><table cellpadding="0" cellspacing="0" class="item">
<
tr>
    <
td>
        <
table cellpadding="0" cellspacing="0" width="98%">
        <
tr>
            <
td class="itemHead">
                <
span class="itemTitle">
                    <
a href="<{$xoops_url}>/modules/news/index.php?storytopic=<{$story.topicid}>"><{$story.topic_title}> : <{$story.news_title}>
                span>

            td>
        tr>
        <
tr>
            <
td class="itemInfo"><{if $story.files_attached}><{$story.attached_link}>&nbsp;<{/if}><{if $story.poster != ''}><span class="itemPoster"><{$lang_postedby}> <{$story.poster}>span><{/if}> <span class="itemPostDate"><{$lang_on}> <{$story.posttime}>span> (<span class="itemStats"><{$story.hits}> <{$lang_reads}>span>) <{$news_by_the_same_author_link}>td>

        tr>
        <
tr>
            <
td class="itemBody">
                <{
$story.imglink}>
                <{if 
$articlePicture != ''}><img src="<{$articlePicture}>" alt="" align="left" style="margin-right: 5px; margin-bottom: 5px" /><{/if}>
                <
class="itemText"><{$story.text}>p>
            td>
        tr>
        <
tr>

            <
td class="itemFoot"><span class="itemAdminLink"><{$story.adminlink}>span><{if $rates}><b><{$lang_ratingc}>b> <{$story.rating}> (<{$story.votes}>) - <a href="<{$xoops_url}>/modules/news/ratenews.php?storyid=<{$story.id}>" rel="nofollow"><{$lang_ratethisnews}>a> - <{/if}><span class="itemPermaLink"><{$story.morelink}>span>td>
        tr>
        table>

    td>
tr>
table>
Delete one part.

5
skyangelo
Re: Each post of NEWS is displayed twice...
  • 2010/7/4 12:45

  • skyangelo

  • Just popping in

  • Posts: 79

  • Since: 2005/4/9 1


It's corrected.
Thanks a lot ghia !!!!

6
skyangelo
Re: Each post of NEWS is displayed twice...
  • 2010/7/4 13:18

  • skyangelo

  • Just popping in

  • Posts: 79

  • Since: 2005/4/9 1


Just found out that I also have duplicated code in
modules/news/templates/news_article.html
Corrected.

Login

Who's Online

432 user(s) are online (344 user(s) are browsing Support Forums)


Members: 0


Guests: 432


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