1
allnewtome
Smartsection - private articles - comments on all articles visible in "recent comments" block
  • 2007/10/5 20:18

  • allnewtome

  • Not too shy to talk

  • Posts: 175

  • Since: 2005/11/30


Hi

Some of my smartsection articles are not visible to anonymous users.

On the home page I have the "recent comments" block. It displays the title of comments on ALL articles. E.g. "Re: private article..." Even for anonymous users.

(However, anonymous users cannot read the actual comment.)

Is there any way to alter the "recent comments" box so as only to display the title of the comment if the relevant article is also visible to the user?

Thanks again.

2
hervet
Re: Smartsection - private articles - comments on all articles visible in "recent comments" block
  • 2007/10/6 7:34

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


This task, "Show me recent comments" should be done like the modules seach. The system should ask to each module for its recent comments.

This is not your solution, but a correction for the whole system :
https://sourceforge.net/tracker/index.php?func=detail&aid=1808484&group_id=41586&atid=430840

3
allnewtome
Re: Smartsection - private articles - comments on all articles visible in "recent comments" block
  • 2007/10/6 10:02

  • allnewtome

  • Not too shy to talk

  • Posts: 175

  • Since: 2005/11/30


Thank you very much for your extremely quick response. I added the code, but it didn't have any effect. I am using the latest version of smartsection and XOOPS 2.0.16 (although the same issue was there with older versions of each). Do you have any further advice? Thanks.

Here's what the code looks like now, just to check I added it correctly... [removed the code as it messed up the page formatting!]

4
hervet
Re: Smartsection - private articles - comments on all articles visible in "recent comments" block
  • 2007/10/6 10:05

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


As I wrote, this is not the complete solution to your problem.

The modification I pointed out will not show comments of the modules where users don't have access at all.

5
allnewtome
Re: Smartsection - private articles - comments on all articles visible in "recent comments" block
  • 2007/10/6 10:08

  • allnewtome

  • Not too shy to talk

  • Posts: 175

  • Since: 2005/11/30


Oh I see now - thank you.

Does anyone have a modification which would have the desired result?

Best wishes.

6
allnewtome
Re: Smartsection - private articles - comments on all articles visible in "recent comments" block
  • 2008/12/6 21:19

  • allnewtome

  • Not too shy to talk

  • Posts: 175

  • Since: 2005/11/30


BUMP.

Hopefully over a year later, someone has fixed this problem!!!!

I have the new version of smartsection and XOOPS and it's still the same

P.S. In the meantime I changed system_block_comments.html as follows:
<table width="100%" cellspacing="1" class="outer">
<{if !
$xoops_isuser}><tr><td><i>(Log in to see list...)td>tr>i>
<{else}>

  <{foreach 
item=comment from=$block.comments}>
  <
tr class="<{cycle values="even,odd"}>">
    <
td align="center"><img src="<{$xoops_url}>/images/subject/<{$comment.icon}>" alt="" />td>
    <
td><{$comment.title}>td>

    <
td align="center"><{$comment.poster}>td>
    <
td align="right"><{$comment.time}>td>
  tr>
  <{/foreach}>

<{/if}>
table>

7
trabis
Re: Smartsection - private articles - comments on all articles visible in "recent comments" block
  • 2008/12/6 21:40

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


The recent comments checks module access permissions but it cannot check articles specific permissions. This checking belongs to the module itself and for the moment, core does not have a way to know them.

8
allnewtome
Re: Smartsection - private articles - comments on all articles visible in "recent comments" block
  • 2008/12/6 22:15

  • allnewtome

  • Not too shy to talk

  • Posts: 175

  • Since: 2005/11/30


Thank you - I suspected that. Would it be possible for there to be a smartsection block which showed recent comments only for the smartsection module? Which also took into account the article permission status?

9
trabis
Re: Smartsection - private articles - comments on all articles visible in "recent comments" block
  • 2008/12/6 22:25

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Yes it would!

10
allnewtome
Re: Smartsection - private articles - comments on all articles visible in "recent comments" block
  • 2008/12/6 22:40

  • allnewtome

  • Not too shy to talk

  • Posts: 175

  • Since: 2005/11/30


Mega! I'll raise that on the *CMS forum!!

Login

Who's Online

300 user(s) are online (228 user(s) are browsing Support Forums)


Members: 0


Guests: 300


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