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:
Hello guys, I'm here because I've a trouble with pligg script.
I had published 30 news on my website and, after two month, I decided to remove them all to empty the website.
After this manual reset (I've clicked on "Delete discarded stories from Database"), I've tried to publish again some news, but I'm encountering some troubles.
1. I click on submit
2. I paste the story url
3. In the "article details" page I correctly fill all the empty fields and I click on "Save changes and Submit".
4. The page becomes white and the news is not submitted.

I think it could be a database problem. Is there a way to resolve the issue without to reinstall all the website? Thanks for your help.
Hello Everyone,
On my website, i have so many categories, so it can become inconvenience for user to select right category from drop-down.
How can i use Chosen plugin to make category looks like here http://harvesthq.github.io/chosen/
When i try to click SETTINGS for Auto Content Scraper it just loops back to the login page. when i login again, it loops back again to the login page again.

This also happens when i click Auto Content Scraper from the admin menu. I cant enter my API or configure any settings. Please help.

UPDATE: same thing goes for the UPLOAD module
UPDATE :same thing goes for Facebook Comments module, too

Here's an example of the link that it keeps looping back to:
mysite.com/login.php?return=/module.php?module=fb_comments
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.
I have my old version of pligg site with lots of news and registered users.
Can I do some kind of upgrade to version 2.0 and not lose the links and users?

Can anyone help me?
Hi,
After a long search, I've met Pligg that does everything I need in a new project, however, I want to use phone numbers instead of URLs.
Is it possible?!
Out of the box, I believe that is not, but does it worth to change the code by myself or can you recomend other software of this kind?
Thank you.
In bootstrap template in file submit_step_2_center.tpl at line 58-59 there are so many tag, what's the purpose of those words,
is it for suggestion while input of tag in tag field?
can we change it to something else as per our need?
I installed the facelook theme and now all the links at the top go to # and do nothing. With WISTIE they work fine. I am on the latest version of Pligg.

UPDATE: And when i manually type in the .php, i.e., upcoming.php, the page is just blank.

Help?
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.