Navigation

Pligg Support

Hello Chuck,

The demo.pligg.com is already with the 2.0.1 Pligg version? Becauve I've realized (if I'm not wrong) that the sort by categories is still not working properly. If you open http://demo.pligg.com/upvoted/finance/ you'll be able to see that it's sorting the stories by ALL categories, not just by the Finance category.

Thanks!

Possible Answers

    Is it fixed? I went to the demo, and it looks like it is working right.

    | Posted 178 days ago | Permalink | Hide Replies

    and there's one more bug, in admin panel ->manage->categories it's impossible to select order of categories, the order is not saved, and it's quite random. It sometimes remember order of main categories, but never subcategories.

    | Posted 184 days ago | Permalink | Hide Replies

    I suggest moving just 1 category position from the category management admin page at a time, then re-load the page to move another category. If you attempt to move multiple categories around without a page refresh it will often go haywire.

    | Posted 182 days ago | Permalink | Hide Replies

    Thanks for and answer. I have 3 main categories and in one main category there are 10 subcategories. Even with reloading it's impossible to order them properly. I was thinking about setting the order numbers directly into database, but can't figure out what is the mechanism of assigning numbers of categories and subcategories. If someone know that could you tell ? When I figure it out I'll post the solution :) thanks

    | Posted 182 days ago | Permalink | Hide Replies

    I have a solution. I'll explain it on example (I added 2 screenshots) To order categories manually you have to change values in 3 columns in pligg_categories in your Database. First column to look for is category_order. The numbers depends on the number of main categories you have.

    1.Add 1 to number of main categories you want to have.

    2. Change sign to have a negative number.

    The number you get is a value for the first main category from the left (if you look at front end).

    I had 3 main cateogries therefore 3+1 = 4, so my value for category order column is -4 for 'main category 1'

    For next category you have to add 1 to the previous value.

    As you can see on attachment 'pligg_category in DB' my Main categories have values -4, -3, -2 .

    Sub categories are ordered from 0 to n-1 for each Main category.

    Now you have to fill 'rgt' and 'lft' columns with values.

    I think the columns are abbreviations of left and right because as you can see on attachment 'Front End' the values from rgt are for right side of each category button, and lft for left side. So please number your categories as you wish them to look.

    WARNING ( I have a sub category under Main cateogry 2, so watch for that when you analyze my screenshots).

    I hope it'll do the trick unless Pligg guys improve source files.

    | Posted 182 days ago | Permalink | Hide Replies

    It does look like it is mixing in multiple categories for some of the sort options. I guess we will have to take another look at this issue.

    | Posted 217 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.