![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| 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...;) |
| Sponsored Links |
|
Check out the New Modules at the Pligg Pro Shop.
|
| |||
| I am still looking for a way to do this. Anyone have any ideas? |
| |||
| Would be interested in this too. |
| |||
| Has anyone done this yet? Would love to be able to do this |
| |||
| 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}
> 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}
> |
| ||||
| Quote:
|
| |||
| yeah would look forward to a working solution. This would be interesting... |
| ||||
| 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.
__________________ SoulB.us--Where All Good Comes Together |
| |||
| 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}
> 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 |
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |
| |
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 |






Linear Mode

