Navigation

Pligg Support

Hi Everyone,
I want to hide storycontent from Home and category index but when visitor click on discussion then story-content should be there. How can I do that I tried but then story-content is hidden from everywhere.

Please help, thanks for assistance

Possible Answers

    Set your "Votes To Publish" to a very high number, let's say 10000. This way, all your stories will not become Published and will only remains in the New page. Then make the New page as the Discussion page.

    | Posted 118 days ago | Permalink | Hide Replies

    Thanks for replying OxyThemes, I just want to hide the story-content but title should be like normal, i want to built something like Reddit.com

    I tried .story-content{display:none;} then story-content become hidden from everywhere.

    i want to hide from the home page.

    Thanks,

    | Posted 117 days ago | Permalink | Hide Replies

    In link_summary.tpl, find:

    < div class="storycontent" >

    then replace with:

    < div class="storycontent{if $pagename neq "story"} storycontent-summary{/if}" >

    In your CSS, add:

    .storycontent-summary { display:none; }

    | Posted 117 days ago | Permalink | Hide Replies

    < div class="storycontent{if $pagename neq "story"} storycontent-summary{/if}" >

    didn't work for me. :(

    | Posted 115 days ago | Permalink | Hide Replies

    It's a wrong code actually, intended to be wrong so that it will show here in the comment. If I write the correct code, it won't show here. The mistake is it has a space before and after the < and > .

    The correct code should be this one: http://jsfiddle.net/G7H4y/

    | Posted 114 days ago | Permalink | Hide Replies

    @OxyThemes thanks for your assistance,

    open and closing of detail on below website, is feature possible on pligg?

    Please forgive me if its a stupid Question, i have very limited knowledge about coding.

    http://dotnetkicks.com

    | Posted 115 days ago | Permalink | Hide Replies

    Yes, it's very possible.

    First, do the modification I posted above.

    Then, above the:

    < div class="storycontent{if $pagename neq "story"} storycontent-summary{/if}" >

    add again:

    < span class="showDetails">Details< /span>

    Next, add this in your pligg.tpl:

    {literal}

    $(function() {

    $(".showDetails").click(function() {

    $(this).next().toggle();

    });​

    });

    {/literal}

    | Posted 114 days ago | Permalink | Hide Replies

    Hi Oxythemes, i have done but nothing is happening, it's only showing details. but nothing is happening. i have removed the space between < span>

    can you please help

    | Posted 114 days ago | Permalink | Hide Replies

    I get it now, the jQuery part should have enclosed in a < script> tag bug it was not displayed here.

    Anyway, I posted the whole code you need to have in order to have that functionality. The whole code including the little CSS is on JSFiddle. The code you need to copy are on the HTML, JavaScript and CSS pane, do not copy the output on the bottom-left pane at JSFiddle. Here's the code: http://jsfiddle.net/mg8ru/1/

    | Posted 114 days ago | Permalink | Hide Replies

    Thanks you very much oxythemes, it worked. I really appreciate your help.

    you've been good.

    can i buy you a beer?

    | Posted 114 days ago | Permalink | Hide Replies

    Post your code in JSFiddle, code formatting here is really not good.

    | Posted 114 days ago | Permalink | Hide Replies

    Hi,this the link

    http://jsfiddle.net/hC2jj/

    | Posted 114 days ago | Permalink | Hide Replies

    I replied earlier with the link to the whole code, see my post above for notes, and heres' the final code: http://jsfiddle.net/mg8ru/1/

    | Posted 114 days ago | Permalink | Hide Replies

    by save it as index.html then is it going to update automatically when there is a new published new? is it not possible to remove some code in link_summary.tpl

    | Posted 121 days ago | Permalink | Hide Replies

    No. But if you want an index other than Pligg's index.php file that's where I'd go.

    I'm sure you could modify the tpl file to do this as there are 'hooks' all over Pligg to allow you to do most anything. If you want to go that route I'd create a second template file.... modify the first for use with the main page and use the second for the underlying pages.

    There's no way I have the time to figure this out for you but I hope this will steer you toward the answer you need.

    BTW: I did the index.html file during development of WildWellEnt.com to handle the weird redirect I needed (due to the technical need for WordPress to be in root for that site) with Pligg actually being the front end of the site.

    One of these days I'm going to document some of the stuff I've done..... maybe a book!

    | Posted 120 days ago | Permalink | Hide Replies

    Sounds like you want an index page so load your main page into a html editor and remove what you don't want. Save it as index.html and upload it. That's how I did it when I needed a page like that.

    | Posted 122 days ago | Permalink | Hide Replies

Who Upvoted this Story

Pligg.com's Support area is where you can ask questions and get answers. Just getting started with the Support area? This section describes tips for participating.

Submitting a Question or Comment

By taking a minute to research previous posts you may receive an answer much faster than waiting for a response to a new question. Begin by searching the support section for an answer. Sometimes you may even want to extend your search to the entire pligg.com domain.

If you are unable to find a relevant answer, submit a new question or comment here. Please provide a detailed description and, when necessary, debugging information such as your server environment (a link to a <?php phypinfo(); ?> .php page would be very helpful), your web browser, and any steps necessary to reproduce your issue.

Submitting an Answer

If you have an answer or useful response that you would like to add to a post, you can submit it as a comment which other users will then vote on. Answers are sorted by most popular to least, allowing the best information to climb to the top of the page.

Please read and vote for existing answers before submitting your own, as there may already be an acceptable answer provided. You can use the "Reply" link found within an answer to submit a response to it, in case you want to expand or comment on someone else's contribution.

Including Files or Code

Sometimes it is necessary for you to attach a file or include a snippet of code for others to reference in your response. In most cases, you can .zip up files and attach them to a question or answer using Pligg's file manager. At times though this may fail, and in these circumstances we recommend using a third party host. Below we are including a list of recommended websites where you can share easily share file uploads (or snippets of code) through the web.