Go Back   Pligg CMS Forum > Pligg Help > Customization Assistance

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-11-2007, 04:46 PM
New Pligger
 
Join Date: Feb 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Exclude a category from displaying on main page?

How could I set a particular category to not display posts on the mainpage? I would like for it to only display posts in that category when you go to that category's page. Hope this makes sense...;)
Reply With Quote
  #2 (permalink)  
Old 08-20-2007, 05:53 PM
New Pligger
 
Join Date: Sep 2006
Posts: 12
Thanks: 0
Thanked 1 Time in 1 Post
I am still looking for a way to do this. Anyone have any ideas?
Reply With Quote
  #3 (permalink)  
Old 08-29-2007, 08:32 PM
New Pligger
 
Join Date: Aug 2007
Posts: 12
Thanks: 2
Thanked 0 Times in 0 Posts
Would be interested in this too.
Reply With Quote
  #4 (permalink)  
Old 09-08-2007, 05:08 AM
nzbullet's Avatar
Coder
 
Join Date: Jun 2007
Location: New Zealand
Posts: 133
Thanks: 17
Thanked 19 Times in 14 Posts
I need this too

bump, I need this too
Reply With Quote
  #5 (permalink)  
Old 12-19-2007, 08:43 AM
New Pligger
 
Join Date: Aug 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Has anyone done this yet?

Would love to be able to do this
Reply With Quote
  #6 (permalink)  
Old 12-19-2007, 01:32 PM
Constant Pligger
 
Join Date: Feb 2007
Posts: 183
Thanks: 13
Thanked 24 Times in 19 Posts
Don't have a tested solution herre but you could maybe use $link_category for this.

The link_summary.tpl begins like this
Code:
<div class="news-summary" id="xnews-{$link_shakebox_index}"
	{if $link_shakebox_currentuser_reports gt 0}
	    style="opacity:0.3;filter:alpha(opacity = 30)"
	{/if}
>
Excluding stories from main page could maybe work if you modify those lines to look something like this

Code:
<div class="news-summary" id="xnews-{$link_shakebox_index}"
{if $category_href neq "" &&& $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}
>
As I said this is not tested. If someone tries something like this please report here if it works or not.
Reply With Quote
  #7 (permalink)  
Old 05-10-2008, 02:45 AM
catchpen's Avatar
Pligg Donor
 
Join Date: Jan 2008
Posts: 210
Thanks: 30
Thanked 18 Times in 13 Posts
Quote:
Originally Posted by Andtony View Post
Don't have a tested solution herre but you could maybe use $link_category for this.

The link_summary.tpl begins like this
Code:
<div class="news-summary" id="xnews-{$link_shakebox_index}"
	{if $link_shakebox_currentuser_reports gt 0}
	    style="opacity:0.3;filter:alpha(opacity = 30)"
	{/if}
>
Excluding stories from main page could maybe work if you modify those lines to look something like this

Code:
<div class="news-summary" id="xnews-{$link_shakebox_index}"
{if $category_href neq "" &&& $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}
>
As I said this is not tested. If someone tries something like this please report here if it works or not.
No workie :_s:
Reply With Quote
  #8 (permalink)  
Old 05-10-2008, 04:06 PM
New Pligger
Pligg Version: 9.9
 
Join Date: Apr 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
yeah would look forward to a working solution. This would be interesting...
Reply With Quote
  #9 (permalink)  
Old 07-16-2008, 11:47 AM
abraxas's Avatar
Pligg Donor
Pligg Version: Plig
Pligg Template: b-Ice
 
Join Date: Feb 2008
Location: Boulder county, CO.
Posts: 104
Thanks: 26
Thanked 1 Time in 1 Post
I also would like to implement this.

I wonder if setting up a second pligg site that looks the same as the first, using the same database but a different category table would be easier, but I am too nooby to do this alone.

Anyone out there with the skills? You are much appreciated.
Reply With Quote
  #10 (permalink)  
Old 07-16-2008, 03:59 PM
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
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Control of meta description - categories Divisive Cotton Suggestions 64 11-23-2008 07:37 PM
Can you post category contents on the main page? qwik3r General Help 0 11-06-2007 12:50 AM
RSS import works but on on main page but feed not added to category and ... doit Bug Report 2 06-27-2007 02:24 PM
Displaying specific 'extra fields' based on category selected on Submit page aaronpais General Help 0 05-16-2007 03:41 PM


Search Engine Friendly URLs by vBSEO 3.2.0