11
stefan88
Re: news module
  • 2007/1/25 11:01

  • stefan88

  • Community Support Member

  • Posts: 1086

  • Since: 2004/9/20


Hi,

Quote:
What do I need to do to correct the error that you mentioned above?


The line 97 of blocks/xmspotlight_block_news.php

is:

if(getmoduleoption('displayname')!=3) {


If you use only news 1.5+ you may just change it to:

if(news_getmoduleoption('displayname')!=3) {


Or to make it compatible with old and new news versions, change it to:

if (substr($news_modversion,0,2) == 15)
      {  
//NEWS >= v1.5 
        
if(news_getmoduleoption('displayname')!=3
        {
              
$news['poster'] = $xoopsConfig['anonymous'];
            }
      }
      else
        {  
//NEWS < v1.5     
        
if(getmoduleoption('displayname')!=3
          {
              
$news['poster'] = $xoopsConfig['anonymous'];
            }
      }


Quote:
It's basically there, but doesn't pick up everything it should.

What do you mean - could you give an example...?

..

12
Anonymous
Re: news module
  • 2007/1/25 11:45

  • Anonymous

  • Posts: 0

  • Since:


Very many thanks for the above....most helpful


Quote:
Quote:
It's basically there, but doesn't pick up everything it should.

What do you mean - could you give an example...?



Sorry, I should have been more specific

I meant that on a striaght download and install, without editing any files, the module doesn't display any category names in the grey (yuk!) title bars and that it doesn't pick-up category images.

Also, there is no "spotlight" item above the category columns.

Do the above mods/edits, along with the ones mentioned in Hervé's "News1.50 and instant zero" XOOPS news item sort this out?

Do you have a link to a site that uses xmspotlight and News 1.50/1.51 so that I can see what I should be getting?

Thanks for the perseverence - I've been so busy this week that I haven't had a chance to play about with it myself

13
Anonymous
Re: news module
  • 2007/1/25 17:59

  • Anonymous

  • Posts: 0

  • Since:


I changed line 97 of that file as suggested to no effect. I then changed another instance of "getmoduleoption" in the same file but to no effect.......

.....all I get is two columns of news categories each with the selected number of items in, but no titles in the grey boxes above each listing, no category images and nothing at the top covering the two columns where I assume the spotlight should be (like on this site's homepage).

I searched for "mygetitemids" in the file (took this from the XOOPS news article about "News 1.50 & Instant Zero" but couldn't find any occurences in the file.

In short, I've deactivated, uninstalled and deleted xmspotlight from my server space. I'll give it another go when a version that is compatible with News 1.5+ without any hacking about is released

Thanks for the efforts - I'm grateful.

14
iHackCode
Re: news module

My site uses News 1.5 and XM-Spotlight.
http://www.Bandit-X.Net . but i havent added that fix for anonymous authors yet. (the block is configured in the blocks admin.. and the admin side of the module.)

.but i got it on the site. Link..

And. Thanks Stefan for finding that bug.
CBB / LatestNews / Publisher / XM-Spotlight

(ノ◕ヮ◕)ノ*:・゚✧

15
Anonymous
Re: news module
  • 2007/1/25 19:07

  • Anonymous

  • Posts: 0

  • Since:


Many thanks for the updated files via the link above. I@ll download it now and test it later.

Much appreciated.

16
stefan88
Re: news module
  • 2007/1/25 19:22

  • stefan88

  • Community Support Member

  • Posts: 1086

  • Since: 2004/9/20


Hi,

I do not use images, so have no experience with that, but did you set "Show An Image On The Spotlight?" and "Show Category Images?" settings for XM-Spotlight block? (To do that go to blocks and chose "edit" for that block)

For the spotlight news did you chose a news to be spotlighted? In XM-Spotlight admin go to "News Spotlight" tab and from the list that say "10 Last News Post" check the action box (last column) for each news you want spotlighted and click submit button under that list. You may need to chose image for spotlighted news and again submit it (the section under).

Hope that helps
..

17
Anonymous
Re: news module
  • 2007/1/25 19:54

  • Anonymous

  • Posts: 0

  • Since:


Thank you guys - almost there now.....

......just need to play with the template as the text and pictures overlap and the title is slightly cut-off in the spotlight.

Basically, its there now, though

Login

Who's Online

390 user(s) are online (333 user(s) are browsing Support Forums)


Members: 0


Guests: 390


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