Results 1 to 11 of 11

Thread: 2 news modules, got merged: Try this

  1. #1

    Default 2 news modules, got merged: Try this

    on the right column I've clones the news module

    news1
    news2

    all works fine, but when I set news2 not to show separate posts, it shows the news1 posts plus the news2 posts, instead of only the news2 posts

    hope you understand

  2. #2
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default Re: 2 news modules, got merged: Try this

    I can't seem to reproduce this problem... Would you mind submitting a support ticket so I can have a look at things?

  3. #3

    Default Re: 2 news modules, got merged: Try this

    Brian, I further examined this problem and it happens when you have 2 news modules, on the same column, and the second one has the option "separate news posts" set to no

    If it is ser to "yes" the problem doesnt happen.

    It seems the specified forums for the news got combined in that situation

  4. #4

    Default Re: 2 news modules, got merged: Try this

    I wanted to confirm this problem and provide a description to what I am experiencing:

    I have two news modules setup on my front page currently.

    One (the top one) is supposed to pull from a single forum (my "daily announcements" forum) and I have it set to only show the latest post (number of news items displayed is set to 1)

    The next one pulls from 4 different forums to display usergroup specific news.
    This module is set to display the 8 latest news bits.

    I have double checked, and the daily announcement Forum is not selected in the second news module.

    The problem is that when I activate the top, "daily announcement" copy of the news module, the bottom module begins displaying the news posts a second time.

    attached is a screenshot of what i am talking about.

    I am also having the same problem with the upcoming events module, though i realize that is not one of the standard modules the symptoms seem to be exactly the same.

    In both cases the second instance of the module was created using the "module copy" function in the admincp area.

    In the Events module, the lower calendar now displays events from both calendars (the one it is set for as well as the events from the upper module's calendar)



    The fact that in the case of the two news modules, only the first news post from the "daily announcements" forum is displayed, rather than multiple (since that module is supposed to display the 8 most recent threads from the 4 selected forums) suggests to me that the upper module is somehow passing the information to the lower module.

    If I reverse the two modules display order so that the daily announcement module is below the news module, then the single thread displayed from the daily announcement forum is appended to the bottom of the list, and mutiple posts from the daily announcement forum are displayed.

    so it looks like:

    News module: (8 most recent posts from the correct four forums)
    post 1
    post 2
    post 3
    post 4
    post 5
    post 6
    post 7
    post 8

    Daily Announcements module: (supposed to be only most recent post from daily announcement forum)
    post 1 (same as above)
    post 2 (same as above)
    post 3 (same as above)
    post 4 (same as above)
    post 5 (same as above)
    post 6 (same as above)
    post 7 (same as above)
    post 8 (same as above)
    single post from daily announcement forum (which was posted after all the others listed here)


    Did I explain that clearly enough?
    Last edited by WAR; 08-26-2005 at 12:02 PM.

  5. #5

    Default Re: 2 news modules, got merged: Try this

    I did also just confirm that changing the "separate news posts" option to 'yes'
    corrects this problem. I would rather have the news items remain unseperated though.

    The similar problems with the upcoming events hack seems to suggest that there is a problem with the module cloning feature (which was an awesome idea) I know that I could just create a seperate copy of the news file and name it something like news2.php but I would much rather getting it working the way it seems like it was intended to.

  6. #6
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default Re: 2 news modules, got merged: Try this

    Try looking in your modules/news.php file for this code:
    PHP Code:
    unset($news$foruminfo['allowratings'], $newsarchivebits$attachment$newscount$newsforumbits$newsmod$archivemod); 
    Replace with this:
    PHP Code:
    unset($news$foruminfo['allowratings'], $newsarchivebits$attachment$newscount$newsforumbits$newsmod$archivemod$newsbits); 
    And that should take care of the problem.

  7. #7

    Default Re: 2 news modules, got merged: Try this

    Thanks Brian, I figured it was something like this.

  8. #8

    Default Re: 2 news modules, got merged: Try this

    At the end of the events.php file from this module: http://www.vbadvanced.com/forum/showthread.php?t=9357

    is this line:

    PHP Code:
            eval('$home["$mods[modid]"][\'content\'] .= "' fetch_template('adv_portal_events') . '";'); 
    Is this the reason why a cloned events module is producing a similar problem?

    Can this be fixed by adding something like the following line to the end of the file:
    PHP Code:
        unset($home["$mods[modid]"][\'content\']) 
    ? (btw, no this doesn't work)
    Last edited by WAR; 08-26-2005 at 02:54 PM.

  9. #9
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default Re: 2 news modules, got merged: Try this

    Try unsetting $daysevents.

  10. #10

    Default Re: 2 news modules, got merged: Try this

    not sure why it doesn't show that first ' in 'content' as being escaped...

  11. #11

    Default Re: 2 news modules, got merged: Try this

    I am already usetting the following:

    Code:
    	unset($events, $eventstore);
    	unset($calendarinfo, $eventcache, $calendarbits, $usertoday, $range, $daysevents, $day, $eventdate, $eventdates, $comma, $eventinfo);

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. News emailed auto-posts in News Forum?
    By SinCityJet in forum Troubleshooting / "How do I..." Questions
    Replies: 3
    Last Post: 05-17-2005, 02:05 PM
  2. Alternative News Module (RSS News Feeds)
    By gguerra3 in forum Add-On Modules & Modifications
    Replies: 0
    Last Post: 04-12-2005, 02:12 PM
  3. [HACK] redirect news reply to portal and scroll to original news thread...
    By jfreels in forum Add-On Modules & Modifications
    Replies: 0
    Last Post: 02-09-2005, 07:50 PM
  4. Replies: 2
    Last Post: 12-21-2004, 05:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •