Navigation

Pligg Support

After upgrading to 2.02, i am always getting this error while submitting url
URL is invalid or blocked
The Statistics Widget was returning "UNKNOWN" for the MySql version. To fix it:
Open /widgets/statistics/templates/widget.tpl
On LINE 138, delete this bloc of code between the {php} and {/php}. It is returning an empty array:
function find_SQL_Version() {
$output = shell_exec('mysql -V');
preg_match('@[0-9]+.[0-9]+.[0-9]+@', $output, $version);
if ($version[0] != ''){
return $version[0];
}else{
return 'Unknown';
}
}
echo find_SQL_Version();

Replace it with the following block, between the {php} and {/php}
$link = mysqli_connect(localhost,EZSQL_DB_USER,EZSQL_DB_PASSWORD);
/* check connection */
if (mysqli_connect_errno()) {
printf("Connect failed: %sn", mysqli_connect_error());
exit();
}
$my_sql = mysqli_get_server_info($link);
//$my_sql returns will be something like the version and -log (5.5.24-log). we have to just grab the version number
$my_sql_version = substr($my_sql, 0, strpos($my_sql, "-"));
echo $my_sql_version;
mysqli_close($link);

https://github.com/redwinefireplace/pligg-cms/commit/f5093812849ef56bc7c3b8c34e97e63f06767a25
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
Freshly installed Pligg 2.0.2 and no changes on any settings and template.

All submissions were not successful because it will show: "URL is invalid or blocked:" even though URLs are valid.

Even if Submit > Validate URL is set to false, it still shows that error.
Hey i was wondering if it was possible to manually sticky/feature items at the top of the home page. Is there a module do this? I want to have "editor's picks" at the top, so people can easily see what i think is the best content.
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
In my Facebook I have the Desk Hop VNC APP. I use this with a few clients at times. My Facebook is listed in my Profile.

If you need help, are in the continental US, on a highspeed connection and a PC or Laptop, friend me then message me with your problem. I'll co-ordinate with you there.

Only Thursday nights 7PM and later , I'll pick and choose the problems and who I'll help. If this doesn't get ridiculous I'll consider extending this some.

I'm in the process of outlining a possible book or document. This is for case studies and further experience. Else this might wind up on my websites.
I am building up a site at http://dollar.bargains and managed to add a few products in there initially, but have made quite a few changes including to latest version but I can no longer post. Would having $ signs in my category names create an issue ? I don't get an error messages - just nothing posts.
Recently, the support site is filled with questions that answers have been provided in previous posts!

Moreover, some users are installing Pligg, having no clue whatsoever and do not bother exploring the Admin Panel first and before they hammer the site with questions...It is like buying a house and keep calling the company or the previous owner asking how to turn the lights on or how to move the stairs and change the decor!!!

In their questions, they need everything YESTERDAY and all is either nonsense or need modifying the whole Pligg core!!!!

You want help? Then:
1- Do your homework first
2- Ask a clear question and don't let us hire a psychic to guess what you really want.
3- If you have no clue whatsoever, then please don't expect us to tailor the Pligg CMS to your imagination!!!
I want to add extra comment field. I have tried as following:

1. Created extra column "extra_comment_field" into "pligg_comments" table

2. Added following code to comment_form.tpl
input type="text" name="extra_comment_field" id="extra_comment_field" 


3. Added following lines into comment.php

$extra_comment_field= $db->escape($this->extra_comment_field);


And changed following line:

 $sql = "INSERT IGNORE INTO " . table_comments . " (comment_parent, comment_user_id, comment_link_id, comment_karma, comment_date, comment_randkey, comment_content, extra_comment_field, comment_status) VALUES ($comment_parent, $comment_author, $comment_link, $comment_karma, FROM_UNIXTIME($comment_date), $comment_randkey, '$comment_content', '$extra_comment_field', '$comment_status')";

But it is not writing data to db column ? What am I doing wrong, please help me. I am new to php and pligg.