Navigation

Pligg Support

I think I fixed a small bug in the twitter login app.
It was requireing you to authorize the app everytime you logged in.

In twitter.php I changed the line from "public function authorizeURL() { return self::$TW_API_ROOT.'/authorize'; }"
to
"public
function authorizeURL() { return self::$TW_API_ROOT.'/authenticate'; }"

and that seems to have done the trick.
Now if I can only get facebook to pull in the user image I'd be golden.

Anywho. Check out what I'm doing at allgeek.com and let me know what you think.
Trev
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
The Last Logged in Users Widget is not working at all. I found and fixed the following (click the link to view the explanation):
http://mymonalisasmile.com/upload/last-logged-in-users-widget.html

You can get the fix from my Pligg fork at:
https://github.com/redwinefireplace/pligg-cms/commit/743c7f20869c5eda97c4902a0eb932a8fcbb7715
I installed it and it was only returning empty placeholders. I noticed at the bottom of /widget.tpl the following:
ProFeed("http://www.pligg.com/pro/feed.php",$proitems);
//ProFeed("http://pligg.com/wp-content/recent-global-posts-feed.php?posttype=product",$proitems);
// Need to switch this to Feedburner after Pligg.com re-launch
//ProFeed("http://feeds.feedburner.com/PliggPro",$proitems);

So I commented the first one and uncommented the last one as it says in the comment above.

It worked, however, the images are broken in the display. The links to the thumbnails as fetched by the $rss->channel->item is a broken link:
http://pligg.com/pro/images/products/thumb_160_email_add.png

Even the links to the products are broken!
http://pligg.com/pro/index.php?l=product_detail&p=160
How can we fix this and where is the right source for the thumbnails and products?

Thank you!
I want to make the onboarding experience for my users as easy as possible. One key change I would like to make is to be able to disable "Please select category".

I have only one category anyway so this additional step is really unimportant.

Can anyone be of help on this? I've tried a lot of Google and even Bing! (yeah, that's how desperate I got LOL) search but didn't find anything.

Thanks in advance
Had my 1.2 site, I changed my hosting and did upgrade to 2.0, but sent links do not appear anywhere. When you click submit link it directs to the new links, news.php, but new links do not appear.
already installed a new copy and has also bought a premium template. But does not work.

Simply click on send history, after all filled, but the stories do not appear.
Can someone please help me?
The current bootstrap2 theme has some hardcoded strings that I want to translate. I therefore introduced some new tags, such as {#PLIGG_Visual_More#} in the tpl and language.conf files.

I then delete the cache... and wait for the translation to show up but my new tag does not get replaced by the string from the conf files.

How can I add a new string to be translated?

see github for an example: github.com/berteh/pligg-cms/commit/7b60e887e6bb1c70db2bf6d2ea398981f46d4b0f
Hi, thanks for Pligg. I'm looking forward to getting it fully set up.

I've installed the rss_import module on my site, and I can import stories via the admin interface. But when I try to automate the import via command line (in preparation for setting up cron job), I get an error.

In my terminal window I cd to the modules.rss_import folder, then run:

$ php import.php
PHP Fatal error: Call to undefined function captcha_create() in /home/me/public_html/modules/captcha/captcha_main.php on line 105

when I try to go through the web server, i.e.:

$ wget http://mysite.net/modules/rss_import/import.php
ERROR 500: Internal Server Error.

And when I look in my error log I see a message similar to the original command line error.

Any idea how to proceed?

Update: when I try to import feeds by clicking on the "Import All Feeds" link in the RSS Importer Admin panel, a few feeds import, then importing stops and I get the following in the error log:

EntityRef: expecting ';' at line 1, column 1639
PHP Fatal error: Call to undefined function trigger_rss_error() in /home/me/public_html/modules/rss_import/magpierss/rss_fetch.inc on line 238

Any hints?

Update 2:

I couldn't get import.php to run, so in order to get past the issue, I figured out how to use cURL to log in as admin, then call the admin feed import link for each feed individually.
How can I have the category title display as translated text?
The pligg categories table in database already contains a "lang" field, but manually entering a new record with adequate title and lang is not enough.
Since categories are only editable by admins it's fine by me to use the file-based translation mechanism too.
Is it readily possible? planned? how can I help?
A user that is logged-in is allowed to change pligg's interface language... but only after registering with the form displayed in the site default-language.
I'd like to allow users to land on a page in their favorite language (eg via url param ?lang=de) or at least have a switch in the tempate header to select another (active) language.
How would that be possible?