Navigation

Pligg Support

Avatar
User_4343977

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
The attached zipped folder contains instructions on how to implement “Total Views” for each story displayed in the summary.

Included in the zipped folder:

File(s) included in the attached zipped folder:
• storyview.php (Make sure you save it in libs)
• Instructions HTML file display total story views.html
I've noticed that the advanced search is not working when i choose a date.

I have tested on the pligg demo and doesn't work either.

http://demo.pligg.com/advanced-search/

If I choose a date i get this url and error:
http://demo.pligg.com/search/care/date/04%2F22%2F2014/slink/3/scategory/0/sgroup/3/status/all/adv/1

error:
Not Found

The requested URL /search/care/date/04/22/2014/slink/3/scategory/0/sgroup/3/status/all/adv/1 was not found on this server.
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'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
I created a free module (total_story_views) for pligg CMS to show the number of story views in the line under the story title right after the time published. it has two callbacks to functions in the module:
1. To add the story ID to a newly created table “story_views”, every time a story is viewed.
2. To get the total views of each story from the “Story_views” table to print in the story summary.

The module (total_story_views) includes the following files (attached in a zip file):
1. total_story_views_init.php, where the pages to include are listed and the module_add_action to answer the callbacks, and module_add_action_tpl to display the result of the callbacks.
2. total_story_views_install.php (information about the module)
3. total_story_views_main.php, where the two callback functions reside.
4. total_story_views_settings.php (settings of the paths to the location of the module, the template folder and language files)
5. Language file. I made sure that language files are detected automatically by the config file, because I named them lang_english, lang_french, etc. and the define statement picks up the file according to the language chosen during installation or even when it is changed back and forth.

define('total_story_views_lang_conf', "/modules/total_story_views/lang_" . pligg_language . ".conf");

I tested it many times and here is the result:
• The callback from the story.php file to insert the ID in the story_view table is working
• The callback t
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