Navigation

Pligg Support

Live Answer Submissions
Answer Author Story Ago
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). user_4343977 Solution fro the sidebar saved stories to display only those belonging to the logged-in user 135 days
The only difference between what Yankidank committed and my code here is what he changed the variable I created in the smartyvariables.php. I showed you the snapshots as a proof it is working and obvsiously YankiDank also tried it before committing it. Compare my steps above with what you have changed in your files and let me know. Go through the steps one more time and make sure they are followed correctly! redwine Solution fro the sidebar saved stories to display only those belonging to the logged-in user 135 days
Correction: In the query, I mistakenly left my pligg prefix in it. So please change, In step 7 above: To this: $res = "select link_id,link_title,saved_id,saved_user_id,saved_link_id from ".table_links.",".table_saved_links." WHERE saved_user_id =$user_logged_id and link_id = saved_link_id ORDER BY saved_id DESC limit 5"; redwine Solution fro the sidebar saved stories to display only those belonging to the logged-in user 135 days
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 ? user_4343977 Solution fro the sidebar saved stories to display only those belonging to the logged-in user 135 days
You must have missed or incorrectly done something. Attached are 2 snapshots for 2 different users showing the save stories for each accordingly! redwine Solution fro the sidebar saved stories to display only those belonging to the logged-in user 135 days
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 user_4343977 Solution fro the sidebar saved stories to display only those belonging to the logged-in user 135 days
Thanks! That worked wonderfully! pdigangi Change Subnav Category Color When Selected 136 days
On /bootstrap/categories.tpl find: < li{if $cat_array[thecat].principlecat neq 0} class="dropdown"{/if}> then replace with: < li class="{if $cat_array[thecat].principlecat neq 0}dropdown{/if}{if $request_category eq $cat_array[thecat].safename} selected{/if}"> On /bootstrap/css/style.css add: #categories li.selected { background: red; } OxyThemes Change Subnav Category Color When Selected 136 days
Thanks OxyThemes! On a noob level, should I make that change in the index.php and new.php or pligg.tpl file? ~ Paul pdigangi Change Subnav Category Color When Selected 136 days
Use the conditional: {if $request_category eq $cat_array[thecat].safename} selected{/if} then in your CSS just make a .selected class that defines the colors. OxyThemes Change Subnav Category Color When Selected 137 days
I will check how to use github as it should be. I posted these on github too: https://github.com/Pligg/pligg-cms/issues/184 https://github.com/Pligg/pligg-cms/issues/181 redwine Repository for contributions and fixes 144 days
Great, thanks for your follow up! :-) If you can take a look at my other posts, there are quite few things to also add to github. redwine Solution fro the sidebar saved stories to display only those belonging to the logged-in user 144 days
What ^Chuckroast said. Github pull requests are the most efficient way for us to import code changes into the project. If you aren't proficient with Git, then feel free to link to pastebin.com for code examples or provide .zip folders containing any changed files which we can review. Yankidank Repository for contributions and fixes 144 days
I finally got around to adding this to Github. I made some slight adjustments to your code, the most notable being a variable name change from $user_logged_id to just $user_id. https://github.com/Pligg/pligg-cms/commit/17fb083ce61356dd506dec8ad359eafe2d2dc759 Yankidank Solution fro the sidebar saved stories to display only those belonging to the logged-in user 144 days
Here are the snapshots showing the proper RTL for text and buttons. If you have checked my second post I sent you this morning and applied it you would get the desired results. However, the fixes are not for all the site. you have to fix what you want based on the concept I provided and add the css rules in the style_arabic.css so that you keep the original css intact and no need to change back anything. http://discretefeed.com/test/rtl-buttons.html redwine Fixes to apply to any Right-To-Left language, Arabic and possible other languages. 150 days
Have you also checked this: http://pligg.com/support/question/fixes-to-the-search-box-right-to-left-rtl/#question It is a fix for the input field and the buttons. redwine Fixes to apply to any Right-To-Left language, Arabic and possible other languages. 150 days
I'm on localhost I will waiting for you I think you do Great job! lets see user_695970 Fixes to apply to any Right-To-Left language, Arabic and possible other languages. 150 days
Could you provide a link to your site so that I take a look and see what is not right? I will post a snapshot of my site (development) tomorrow and it looks all RTL properly. redwine Fixes to apply to any Right-To-Left language, Arabic and possible other languages. 151 days
oops! its my mistake I create style_arabic.css into templatesbootstrap : P there is many issue with RTL text look Great but button and headr is still not RTL Thanks! user_695970 Fixes to apply to any Right-To-Left language, Arabic and possible other languages. 151 days
White page where and what is the page? Please also provide the Pligg version you are using. I did not include any new or modified files except the lang_arabic.conf. The steps are in the attachment in "pligg-fixes.html". Unzip the attached folder and follow the steps and make sure not to override anything. When you open the pligg-fixes.html the first thing you will see is: Please, MAKE SURE TO COPY EVERY FILE TO A BACKUP FOLDER BEFORE YOU MAKE ANY CHANGES TO IT. ALSO, MAKE SURE TO FOLLOW ALL THE STEPS CAREFULLY TO END UP WITH THE EXPECTED RESULTS! redwine Fixes to apply to any Right-To-Left language, Arabic and possible other languages. 151 days