Go Back   Pligg Forum > Pligg Help > Customization Assistance
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-11-2007, 03:46 PM
dallasdan dallasdan is offline
New Pligger
 
Join Date: Feb 2007
Posts: 1
Downloads: 3
Uploads: 0
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
Sponsored Links
Check out the New Modules at the Pligg Pro Shop.
  #2 (permalink)  
Old 08-20-2007, 04:53 PM
Dan Dan Dan Dan is offline
New Pligger
 
Join Date: Sep 2006
Posts: 12
Downloads: 12
Uploads: 0
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, 07:32 PM
tommy818 tommy818 is offline
New Pligger
 
Join Date: Aug 2007
Posts: 12
Downloads: 7
Uploads: 0
Thanks: 2
Thanked 0 Times in 0 Posts
Would be interested in this too.
Reply With Quote
  #4 (permalink)  
Old 09-08-2007, 04:08 AM
nzbullet's Avatar
nzbullet nzbullet is offline
Send a message via MSN to nzbullet
Constant Pligger
Pligg Version: 9.9.
Pligg Template: Very Custom
 
Join Date: Jun 2007
Location: New Zealand
Posts: 133
Downloads: 70
Uploads: 5
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, 07:43 AM
WebWatch WebWatch is offline
New Pligger
 
Join Date: Aug 2007
Posts: 3
Downloads: 9
Uploads: 0
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, 12:32 PM
Andtony Andtony is offline
Constant Pligger
 
Join Date: Feb 2007
Posts: 177
Downloads: 8
Uploads: 0
Thanks: 13
Thanked 20 Times in 17 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, 01:45 AM
catchpen's Avatar
catchpen catchpen is offline
Pligg Donor
 
Join Date: Jan 2008
Posts: 203
Downloads: 25
Uploads: 1
Thanks: 29
Thanked 17 Times in 12 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, 03:06 PM
djpaddystudio7 djpaddystudio7 is offline
New Pligger
Pligg Version: 9.9
 
Join Date: Apr 2008
Posts: 2
Downloads: 1
Uploads: 0
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, 10:47 AM
abraxas's Avatar
abraxas abraxas is offline
Pligg Donor
Pligg Version: Plig
Pligg Template: b-Ice
 
Join Date: Feb 2008
Location: Boulder county, CO.
Posts: 101
Downloads: 28
Uploads: 0
Thanks: 24
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, 02:59 PM
Andtony Andtony is offline
Constant Pligger
 
Join Date: Feb 2007
Posts: 177
Downloads: 8
Uploads: 0
Thanks: 13
Thanked 20 Times in 17 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 02: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

vB 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
Sort Categories Display on Main Page kanedaguy General Help 5 02-02-2007 01:03 PM
move category selection to first page of submit process cruci Pligg Mods 4 12-29-2006 07:32 AM
Wacky Bug in Categories html on main page Type40 Bug Report 1 10-22-2006 01:37 AM
Displaying Code On Page The Humanaught Pligg Templates 0 10-12-2006 02:23 AM
Displaying Stories with 0 Pliggs on front page scasey Bug Report 1 04-01-2006 07:48 PM


LinkBacks Enabled by vBSEO 3.0.0