View Single Post
  #10 (permalink)  
Old 07-16-2008, 03:59 PM
Andtony Andtony is offline
Constant Pligger
 
Join Date: Feb 2007
Posts: 183
Thanks: 13
Thanked 24 Times in 19 Posts
Well it hasn't been too vbad what I tried six months ago.

Anyway this quickfix could work bit better.

Link_summary.tpl
Code:
<div class="news-summary" id="xnews-{$link_shakebox_index}"
{if $pagename eq "published" &&& $link_category eq "Category name here"}
style ="display: none;"
{/if}
	{if $link_shakebox_currentuser_reports gt 0}
	    style="opacity:0.3;filter:alpha(opacity = 30)"
	{/if}
	>
The instructions are the same as on the post above.

There is few problems that I could maybe fix if I have time to sit down and think.

1. This excludes also stories from the category's own page because category pages are part of Published page.

2. I think the hidden stories are visible on source code so this is not too secure way to limit people from seeing these stories.

3. These stories are visible on search and user pages. You can limit these pages out by adding them to the list.

Remember that this works only if your front page is the default page with published stories. And remember to type the category's name as it's written on your story pages. If your category is Animals, remember to use the capital A also on the code.

Let me know if this works better.

Last edited by Andtony; 07-17-2008 at 03:58 AM.. Reason: Fixed the code
Reply With Quote