Navigation

Pligg Support

Avatar
User_4343977

3
Question: Solution fro the sidebar saved stories to display only those belonging to the logged-in user
Answer: provided by user_4343977 13 days ago
- 0 + For me it (the improved code from github) still doesn't work well and here's why:

1. There are 2 users : Andrew, John.

Both of them have published stories.

Right now both of them have empty list of saved stories.

When Andrew adds to his saved stories one of stories that has been authored by John he has it in his sidebar and it's OK.

When you log in as John and look at John's saved stories sidebar it is OK until John wants to save a story. When he click to save a story then in sidebar there is the story he just saved, and a story that Andrew saved (John is an author of that story, but he didn't add it to his saved stories. This story was saved by Andrew).

When you look to "user/andrew/saved/" and "user/john/saved/ " tabs in Andrew or John profiles they have everything right - there are only stories saved by themselves. But there is a bug in sidebar.

I'm not that good in programming, but maybe there is a solution to that by using the code that shows properly saved stories from profile tabs and implement them in sidebar.

I hope you can understand my case. If something is not clear please ask me.

Could you check if my problem is isolated, or this problem is common with the commit form github?

Thanks
3
Question: Solution fro the sidebar saved stories to display only those belonging to the logged-in user
Answer: provided by user_4343977 13 days ago
- 0 + Do I get it right? If I have a Pligg 2.0.1 and I change smartyvariables.php and modulessidebar_savedtemplatessidebar_saved_index.tpl according to the changes that 'yankidank' commited on github it should work with no other changes whatsoever ?
3
Question: Solution fro the sidebar saved stories to display only those belonging to the logged-in user
Answer: provided by user_4343977 13 days ago
- 0 + So, I did a new installation of pligg from github master so I didn't change anything and it still doesn't work. The files are made exactly in a way that 'Yankidank' commited . (So they have right prefixes)

Here you have my test case which shows a bug:

1. Create admin account during new installation of pligg.

2. Submit a story from admin account.

3. Register new account : 'user1'

4.Logged in as 'user1' submit a story.

So right now you have 2 stories One made by admin and second by user1.

5. While still logged in as 'user1' please add to bookmarks only the story that was submitted by admin (admin is the author).

6. Log out and Log in as admin.

7. Add to bookmarks story that was submitted by user1.

8. Now look to sidebar your sidebar saved storied -> There are 2 stories.

Conclusion: When someone adds to bookmarks a story that is submitted by somebody else then this story shows up on both accounts in sidebar_saved. (on his account and the author of added story account)

To be exact It will appear on the user account who adds the story (authored by some other person) to his bookmarks (which is good), and on account of the author of that story in sidebar_saved (which is wrong).
3
Question: Solution fro the sidebar saved stories to display only those belonging to the logged-in user
Answer: provided by user_4343977 13 days ago
- 1 + Ok, the solution is to refresh a page, after refreshing page it works fine. :D That's true you were right and I didn't check it.

Nevertheless I have strange behaviour on the dynamic part of adding to sidebar saved. When I don't refresh page and I only click to add 1 story to bookmarks it sometimes adds more (for example it still remembers a story that i have added previously,and later removed from bookmarks - and refreshed site). After I refresh site once again it goes back to normal and shows proper stories in 'sidebar saved'. So there is a tiny flaw that could be improved. Please don't get me wrong - I am grateful that you have wrote the code - Thanks very much for your thorough explanation.
3
Question: Solution fro the sidebar saved stories to display only those belonging to the logged-in user
Answer: provided by user_4343977 12 days ago
- 1 + Maan it works like a charm!

You are perfect! It's great to have you here.
4
Question: Fully working implementation to display Total Story Views in the story summary.
Answer: provided by user_4343977 13 days ago
- 0 + that's just perfect!
3
Question: advanced search by date not working
Answer: provided by user_4343977 46 days ago
- -1 + All Radio buttons options like:

comment search, user search and tag search

don't work, which is quite sad.

Will there be some bugfixes anytime soon ?
43
Question: Sorting categories
Answer: provided by user_4343977 212 days ago
- 0 + 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.
43
Question: Sorting categories
Answer: provided by user_4343977 210 days ago
- 0 + 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
43
Question: Sorting categories
Answer: provided by user_4343977 210 days ago
- 1 + 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.