Navigation

Pligg Support

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?
Hi.does anyone know where can i get the pligg developer.last time i hiring from odesk.

Do the on odesk still relevan for plgg version 2?
In my admin panel I am unable to change the status of links to publish or delete .

any idea :(
Hi!

I have installed two new modules:

Link Social Media Presence
Top 5 Users

(I have installed many others before)
And Pligg simply have disappear, I have no web.

http://marketertop.com/
Hi. i have send bug error the FB and twitter module to pligg.com/contact in last 5 days but still not getting any answer.. please improver you support.. :( :(
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
Hello there,
Number of categories is increasing on my website, i want to create directory like categories on the homepage .
is it possible to have categories on the Homepage instead of Published stories?
How can i make directory like categories, what code do i need to put.