Navigation

Pligg 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
Hi Chuck! Hope you are doing well.

I have noticed that all of the spam settings seem to allow spammers to bypass them.

I have a forum that had a serious spam problem, but when I turned on the question and answer captcha system it completely stopped the spam. It is similar to the math problems one, but this one lets you set the questions and the answers to what ever you want them to be. It allows you to also make an unlimited amount of them. The forum software I am using it on is xenforo. Maybe you could implement this into Pligg, since spam has been a huge problem for so many people.

Here's the option they use in xenforo. Maybe it can be used as a reference or maybe it can be bridged into pligg. xenforo dot com/help/captcha/ (I put a space in there so the link will show up)

Thanks for all of the awsome work you do! You rock.
** ATTENTION YANKIDANK **
I committed it on my forked pligg too.
**
table_tags and table_tag_cache are updated in two cases:

1. Upon submitting a new story.
2. Every time a story is edited.

In the first case, in \submit.php, LINE 428, we find a call to a function in the \libs\tags.php file: tags_insert_string($linkres->id, $dblang, $linkres->tags);

However, at this stage the status of the story being submitted is still ‘discard’, while in the Function tags_insert_string, it specifically selects from table_links only the links that meet the status of published or new, therefore the new tags entered for story being submitted won’t be included and won’t appear in the tag cloud until the next submit (and again the newest tags won’t be included) or when the admin deletes the discarded stories from the admin section and automatically rebuilds the table_tag_cache.

After following the logic of the process, the best place to call the Function tags_insert_string is after we make sure that the story’s status is set to publish:

1. In \submit.php, LINE 428, comment or remove this code:

tags_insert_string($linkres->id, $dblang, $linkres->tags);

2. On LINE 517, after
function do_submit3() {

change this: global $db;

To this: global $db, $dblang;

Because we need the database language for the table_tags entries

3. On LINE 549, right after:

$linkres->check_should_publish();

Add this (the code we commented or removed in step 1)

tags_insert_string(
Hi all, i have some problem after setup and run my pligg on www.ahexa.com. On my dashboard admin panel, i have 2 error log message like this:

[14-Feb-2014 00:14:53] PHP Warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 in /var/zpanel/hostdata/zadmin/public_html/ahexa_com/libs/db.php on line 479
[14-Feb-2014 00:14:53] PHP Warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 in /var/zpanel/hostdata/zadmin/public_html/ahexa_com/libs/db.php on line 479

How to fix them? cause i'am not familiar with php language.
Hi,

We submitted new plugin "Compare Two Documents Online" in the "Vendor dashbord" for review couple month ago and still have no results. How long it will take?

Thank you
My sidebar góes to the bottom of the page in new and Groups page but in the other works normal as correct
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
Hello...my site http://simatrix.us was previously installed wordpress then i change to pligg..How Can I redirect old url to the new one..

For example : how can I redirect http://simatrix.us/cara-menurunkan-berat-badan-dalam-10-hari-gratis/ to http://simatrix.us/health/obat-pelangsing-herbal-atau-alami-cara-menurunkan-berat-badan-secara-cepat-dan-aman/

I have already add this code in htacces :
redirect 301 /cara-menurunkan-berat-badan-dalam-10-hari-gratis/ http://simatrix.us/health/obat-pelangsing-herbal-atau-alami-cara-menurunkan-berat-badan-secara-cepat-dan-aman/

But it didn;t work..

Please help me..
In the Admin Panel -> Settings -> Miscellenaous
The "Show subcategories" is by deffault set to false.

If you have subcategories and the default is false, when you click on a category to display all the stories under this category, it won't include its subcategories in the search result. However, if you want to also include the subcategories of the category you are searching, you have to set the value to true.

The code to include the subcategories in the search won't work as it is.

Open the below files and go to te line numbers and replace every instance of
if(! Independent_Subcategories ){

with

if( Independent_Subcategories == true){

\libs\group.php
LINE # 373 ..... if(! Independent_Subcategories ){
LINE # 450 ..... if(! Independent_Subcategories ){
\load_data.php
LINE # 190 ..... if(! Independent_Subcategories ){
\libs\search.php
LINE # 132 ..... if(! Independent_Subcategories ){
\libs\tags.php
LINE # 83 ..... if(! Independent_Subcategories ){
LINE # 115 ..... if (! Independent_Subcategories ){
\userrss.php
LINE # 146 ..... if(! Independent_Subcategories ){
I'm looking for a Pligg developer who could help me setup a blogger community. Are their any here if not where can I find them?

I would like to have this template: http://pligg.com/downloads/template/otnewz-pligg-theme/