1
skenow
News 1.42 Spotlight does not restrict based on block options
  • 2005/12/4 19:37

  • skenow

  • Home away from home

  • Posts: 993

  • Since: 2004/11/17


I have restricted the topics displayed in the Recent News block, and that is working fine, but the spotlight article will display an article from other topics if the group has permissions to view that topic. It does not list the article in the most recent list, though.

You can see it here. The Daily Text article is in a topic not selected to display (Prayer Corner) - no tab, and it is not listed in the recent articles at the bottom of the spotlight.

I want to have separate blocks for different topics and use the spotlight for both of them, so this causes a problem.

Xoops 2.0.13.2
News 1.42

2
skenow
Re: News 1.42 Spotlight does not restrict based on block options
  • 2005/12/10 5:35

  • skenow

  • Home away from home

  • Posts: 993

  • Since: 2004/11/17


I did what I should have done earlier - checked the dev.xoops.org site and found the answer in the forums. Edit blocks/news_top.php in 2 places and replace
getAllPublished(1,0,$restricted,0,1,true,$options[0])
with
getAllPublished(1,0,$restricted,$topics,1,true,$options[0])

Login

Who's Online

135 user(s) are online (52 user(s) are browsing Support Forums)


Members: 0


Guests: 135


more...

Donat-O-Meter

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

Latest GitHub Commits