Navigation

Pligg Support

Avatar
User_4343977

Karol
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,
I would like to add to my pligg site a Mobiledetect script :
https://github.com/serbanghita/Mobile-Detect
It's because the changes I want to make in link_summary.tpl for mobile devices are too hardcore for a normal CSS media query manipulations.
I want to make additional story template for mobile and name it 'link_summary_mobile.tpl'.

Then I will check the device type and apply appropriate link_summary.tpl or link_summary_mobile.tpl accordingly.

But I have difficulties in finding where link_summary.tpl is actually included (in story_center.tpl there is a variable called {$the_story}, but I can't find the source )

I would be very grateful for any help
Thank you
Karol
Hi folks,
I was checking the feature in admin->voting: Negative votes to remove submission. In demo it doesn't work at all. When I vote for a story to have -1 votes on main page and set value in admin panel for 1 or -1 it doesn't work, nothing happens. The story is still on main site with -1 votes. In my Pligg version that I have downloaded and set up on WAMP, when the feature is set to 0 which should be disabled, it's actually enabled, and it means that if i have voted -1 on a story and the value in admin panel i set to 0 (disabled) then the story gets 'discarded' which is bad. When I change the value to any other number (not equal to 0) then this option gets really disabled, and nothing happens. To sum up: in demo the feature doesn't work at all, in my downloaded version (I did some changes but not to voting) it works the other way round (0=enabled) any other value =disabled. Can you check what's wrong guys ?
Thanks
Hi, I'm a new user to Pligg and i have been struggling with the issue of sorting in ChuckRoast 's sidebar stories module.
I want to be able to set sidebar stories in a way that I can see there top voted stories from today or last week or last month (i'll do buttons to change timeframe).

I have found libs/sidebarstories.php and at the beginning there is :

class SidebarStories {
var $pagesize = 5; // The number of items to show
var $orderBy = ""; // The sorting order
var $filterToStatus = "all"; // Filter to "all" or just "published" or "new"
var $filterToTimeFrame = ""; // Filter to "all" or just "published" or "new"

I see that I can filter timeframe to all or published, but i want to filter it by 'today', 'week', 'month'.

I thought that if I make following changes it'll work but i was mistaken :)

class SidebarStories {
var $pagesize = 5; // The number of items to show
var $orderBy = "link_votes DESC"; // The sorting order
var $filterToStatus = "all"; // Filter to "all" or just "published" or "new"
var $filterToTimeFrame = "week"; // Filter to "all" or just "published" or "new"

None of my changes worked, so I'd like to ask for help in finding solution to this problem
Thanks

P.S. there is quite nice solution for setting timeframe but for older pligg i think: http://forums.pligg.com/questions-comments/10341-set-time-frame-sidebar_stories_u-php-number-days.html