Navigation

Pligg Support

i have pligg cms social bookmarking website. i try to add google analytics on this but i can't do this. i search it on google but i can't find it. if you have any solution then please provide me and also give me all steps snapshots if it possible.
Reference post http://pligg.com/support/question/groups-role-doesnt-work/#question

I fixed the issue with banned or flagged members being still able to share and do activities as normal. In addition, I am working on fixing the issue of the Edit button being displayed, even for the Group Creator and Group Admin, which is incorrect and leads to no effective actions.

The questions is:

If there is another Admin and Moderators of the Group:

1- None of the privileges are displayed to them
2- The second Admin can ban, flag, change role of the creator of the Group BUT CANNOT deactivate the Creator and Admin of the Group. However, a Moderator can do all!!!

Are Admins and Moderators supposed to have banning, flagging, editing members roles and status privileges the same as the Creator? Are they supposed to apply those privileges even on the Creator of the Group?

Please provide the answers so that I continue fixing the groups features accordingly!


If the Group creator "Banned" a Group member, it has no effect and the banned member can still share stories to that Group. The banned member's profile shows he's still joined in that group.

If the Group creator edit the member to become Admin or Moderator, the edited member still doesn't have permissions as an Admin or moderator.

The Group creator can even banned himself and still he's the Admin of that group. IMO, the original Group creator should not be able to banned himself or set it's role to just Normal & Moderator.

I am working on the groups system and came across a bug. I traced it and discovered the following:

The canIhaveAcess concept is erroneous and extensively redundant anywhere in the Pligg CMS files. In some places, the access is not granted to the Site Admin because it is overridden (not only in the groups), and here is how:

In \editgroup.php, LINE 19 to 30, we find:

//check group admin
$canIhaveAccess = checklevel('admin');
$canIhaveAccess = checklevel('moderator');

if($current_user->user_id != get_group_creator($requestID) && $canIhaveAccess != 1)
{
//page redirect
$redirect = '';
$redirect = getmyurl("group_story", $requestID);
// header("Location: $redirect");
die;
}

The second $canIhaveAccess, on LINE 21, is overriding the first and only the moderator is granted access to edit. If it happens that the logged in is the site Admin, no access is granted unless the Site Admin is the creator of the group, while if the logged in is a moderator, a full access is granted to him/her.

Now, if the concept is that the Site Admin and Moderators are supposed to be able to edit any group, then we must modify the code.

Open \editgroup.php, and replace the bloc of code from LINE 20 to 21:

$canIhaveAccess = checklevel('admin');
$canIhaveAccess = checklevel('moderator');

With this block of code:

$canIhaveAccess = 0;
$canIhaveAccess = $canIhaveAccess + checklevel('admin');
$canIhaveAccess = $canIhaveAccess + checklevel('moderator');

To explain:
Hi chuckroast, i have enable the story counter in every story on index.php. but the problem is when user visit the index.php,all of the story will count 1 for i visit.. so if index.php get 10 visits,all the story list also get 10 counter..

How to so the only story has visitor will get count?
There was a bug with already voted and already buried buttons.
When a person voted for or buried something the buttons changed classes into btn-success or btn-danger. After refreshing page the buttons stayed as they were supposed to. When a person changed his/her mind and wanted to 'un-click' the vote, btn-succes or btn-danger classes were removed and the link for already voted or already buried lost a btn class and was left without any indicator that it's a button.
Now it's fixed and you can see it here:
https://github.com/Bugierek/pligg-cms/commit/b2e0c7fa99616d71e8bb69e04d9a0d2353b70aad

I've created a fork request for it
Hi all. i need to change link_date DESC for top yesterday,week etc to link_out DESC so will popular by view/clicking.

The top today in sidebar already modify to top today by view..

Where locate the top yesterday,week etc?
Step One

If we set the value of “Negative votes to remove submission” in Admin Panel -> Settings -> Voting to any number other than zero, all submitted stories after this change will be discarded. The code is inaccurately processing the “buries_to_spam” variable which reflects the value set above.

To fix this bug see the link:

http://pastebin.com/9EdtzV1y


Step Two

In Admin Panel -> Settings -> Voting -> Negative votes to remove submission is set to 0 by default. However, in the current code, this defined variable that is assigned to buries_to_spam does not achieve its goal to set the story status to 'discard' when it reaches the number we set in here. As a matter of fact, even with the default value of 0, the story will be sent to discard. The fact is that the function evaluate_formulas () in \libs\link.php is what decides the status of the story when the formula set in the table_formulas is evaluated.

See the complete trace and fix:

http://mymonalisasmile.com/upload/Negative-votes-to-remove-submission.html
Hi.. anyone know where is mistake on this.. all url is work but only in all user page url has blank and error.

I thing the problem is related by ridirect from url method 2..anyone know hos to correct this?..take a look screnshot below.

***solved... its .htaccess problem after upgrade.
HI

I have a question how can increase the number of posts displayed on the homepage. along with the category page. can any one help me