Pligg CMS http://pligg.com/blog Open Source Content Management System for Social Networking Fri, 18 May 2012 20:12:27 +0000 en hourly 1 Pligg CMS 1.2.2 Release http://pligg.com/blog/1625/pligg-cms-1-2-2-release/ http://pligg.com/blog/1625/pligg-cms-1-2-2-release/#comments Fri, 18 May 2012 20:12:01 +0000 Eric Heikkinen http://pligg.com/blog/?p=1625 Pligg CMS version 1.2.2 is now available for download. The new version has 3 major changes: Security fixes, the default template is now 2 columns, and the Status Update module is now included. We highly recommend that everyone updates to the latest version as soon as possible since there are known security threats in the previous release (although they are minor)]]> Pligg CMS version 1.2.2 is now available for download. The new version has 3 major changes: Security fixes, the default template is now 2 columns, and the Status Update module is now included. We highly recommend that everyone updates to the latest version as soon as possible since there are known security threats in the previous release (although they are minor). Details on how to upgrade can be found in the included readme.html file that is stored within the Pligg download package. For those who need to upgrade your templates to match the latest changes, follow this guide on how to use Winmerge.]]> http://pligg.com/blog/1625/pligg-cms-1-2-2-release/feed/ 0 Pligg CMS API http://pligg.com/blog/1596/pligg-cms-api/ http://pligg.com/blog/1596/pligg-cms-api/#comments Tue, 01 May 2012 23:05:08 +0000 Eric Heikkinen http://pligg.com/blog/?p=1596 For quite some time now, Pligg has included an API system with the CMS package. This API allows you to perform a few different actions like get your Pligg User ID number, find the site categories and their IDs, and even submit a story from a simple POST form. Today I’m going to explain all of these API functions, since it is something that we haven’t talked about much in the past even though it is one of the most interesting things that you can do with Pligg.

Warning: There are a couple reasons why enabling the API could be a bad thing. One reason is because there is no cooldown period for submitting queries, allowing users to submit a massive number of stories or attempt to try login credentials at unlimited rates. Another issue is that the post function (for submitting stories) doesn’t have any type of spam checking feature. I recommend only enabling the API’s post function if you are actively monitoring your website’s stories. We recognize that there are issues with the API and would love to get some input from our users on how to improve functions and what features need to be added. Leave a comment below to share your thoughts.

First lets talk about enabling the API functionality, because by default we have it disabled on all sites as a way to protect sites that don’t want to use it. To enable the API you will have to perform a very quick edit to a single file stored at /3rdparty/API/api.php. Search for the two lines that contain the text “REMOVE TO ACTIVATE”, delete the line, save the file, and upload it to your server.

Now that you have the API enabled you can make use if it through a series of POST variables:

  • List – Returns a category list in XML format
  • Login – Check if Pligg login credentials are valid
  • Ping – Check a Pligg website’s API status
  • Post – Submit a new story
  • Version – Get the Pligg API version

List


The list function will return a category  list for your website, as well as ID numbers for each category. These ID numbers will be needed when you go to use the Post function later on.

Arguments
&username={USERNAME}
(required) the username of a member account.

&password={PASSWORD}
(required) the password of a member account.

Example URL: http://DOMAIN.com/3rdparty/API/api.php?fn=list&username=demouser&password=demopass

Example Successful Response

<?xml version="1.0" encoding="UTF-8"?>
<categorylist>
    <cate>
        <id>1</id>
        <name>Automative</name>
    </cate>
    <cate>
        <id>2</id>
        <name>Finance</name>
    </cate>
</categorylist>


Login


The login function is useful if you want to check if the account credentials provided are valid. When the username and password provided are correct it will return a unique user ID number. On failure it will return a zero (0).

Arguments
&username={USERNAME}
(required) the username of a member account.

&password={PASSWORD}
(required) the password of a member account.

Example URL: http://DOMAIN.com/3rdparty/API/api.php?fn=login&username=demouser&password=demopass


Ping


Ping is one of the simplest function provided because it doesn’t have any arguments. It will return a response of “Active” to indicate that the site is online and the API is enabled.

Example URL: http://DOMAIN.com/3rdparty/API/api.php?fn=ping


Post


The post function is the most complicated because it has so many variables. It is also the most useful because it can be used to submit stories to a site from a third party website by submitting a simple POST form.

Arguments
&username={USERNAME}
(required) the username of a member account.

&password={PASSWORD}
(required) the password of a member account.

&url={URL}
(required) the url associated with the story that you are submitting. This is what you typically put in the first submit step on Pligg websites.

&category={CATEGORY_ID_#}
(required) the ID number for the category that you are submitting to. To retrieve the category ID see the list function above.

&title={TITLE}
(required) the title of story being submitted.

&content={CONTENT}
(required) the content for the story being submitted.

&tags={TAGS}
(required) tags for the story separated by commas ( , )

Example URL: http://DOMAIN.com/3rdparty/API/api.php?fn=post&username=demouser&password=demopass&url=http://google.com&category=1&title=Hello World&content=Story Description&tags=tag1,tag2

On Success: Submit complete!
On Failure: Duplicate Story!!!


Version


The version function is used to return the Pligg API version number. A successful response will be a number, often with a decimal place.

Example URL: http://DOMAIN.com/3rdparty/API/api.php?fn=version

]]>
http://pligg.com/blog/1596/pligg-cms-api/feed/ 0
Pligg CMS 1.2.1 Release http://pligg.com/blog/1590/pligg-cms-1-2-1-release/ http://pligg.com/blog/1590/pligg-cms-1-2-1-release/#comments Wed, 18 Apr 2012 16:23:58 +0000 Eric Heikkinen http://pligg.com/blog/?p=1590 download the 1.2.1 version from here.]]> An update for Pligg has been released that includes a number of bug fixes and new features. Fortunately there have not been any reported security holes since the 1.2.0 release, so this is not a critical update. We do however recommend that all users update to the latest version so that they will benefit from some of the bugs squashed since 1.2.0. You can download the 1.2.1 version from here. Below is a list of the most notable changes since the 1.2.0 release.

  1. Users can now select multiple categories during story submission. This feature can be turned on or off from the admin panel configuration area.
  2. Fix for password reset email being blank.
  3. Pligg now stores old URLs in database to allow for URL forwarding when a story title changes.
  4. Fix for related stories. Now returns only upcoming or published stories.
  5. Fix for story URLs having a -1 at the end when they use original titles. Duplicate article title URLs should now start appending at -2 rather than -1.
  6. Moved CAPTCHA check position to allow the submission process to save form progress in case of wrong CAPTCHA.
  7. Changed character encoding used in emails to UTF-8 to allow for a greater variety of languages.
  8. Fix for when adding a comment to a story causes a blank page
  9. Live pages pagination fix for friendly URLs
  10. If someone tries putting in a url into the story url field that doesn’t include http:// at the start we now automatically add that for them.
  11. Fixed a bug related to category management messing up subcategories when adding a new subcategory. http://www.youtube.com/watch?v=lwNdhulXB9c
  12. Changed how we handle deletion of categories with subcategories. Subcategories can now be moved up a level.
  13. Fix for group pagination.
  14. Tags are now included in admin story management search.
  15. Added select all option for users in admin panel.
  16. Added option to turn parent category visibility off when viewing a subcategory.
]]>
http://pligg.com/blog/1590/pligg-cms-1-2-1-release/feed/ 3
Pligg Forum Improvements http://pligg.com/blog/1571/pligg-forum-improvements/ http://pligg.com/blog/1571/pligg-forum-improvements/#comments Tue, 03 Apr 2012 19:09:00 +0000 Eric Heikkinen http://pligg.com/blog/?p=1571 About a week ago we temporarily took the forums online to upgrade vBulletin, the software that powers our bulletin board. We did this mainly to combat a growing spam problem, but the upgrade also comes with a number of new features that we have implemented. Some of the upgrades will be familiar features that have been updated, while others provide all new tools to improve the forums.

New Features and Fixes:

  1. New mobile version of the forums
  2. The Pligg Gallery is back online! Sign in with your forum user details and submit your unique Pligg designs for others to vote on.
  3. Leave feedback for members through a rating system that is similar to Ebay. If you deal with a forum member who offers a commercial service or product, we highly recommend that you leave a review.
  4. Log in using your traditional forum username OR your email address
  5. We now offer Facebook user integration for faster registrations and logins
  6. Improved downloads section for official Pligg CMS releases
  7. Avatars are now powered by Gravatar. Don’t have a Gravatar yet? Either sign up for one, or a unique MonsterID will be automatically generated for you.
  8. Unsubscribe from email alerts with one click. Want to do that now? Click here. This will prevent us from sending you update alerts via email when new versions of Pligg are released.
  9. Are you a module or template developer? Accept Paypal donations for your hard work.
  10. Securely store Pligg and FTP login information in your profile, which admins will be able to view for support purposes
  11. We’ve replaced the old Wiki system with something we call “The Glossary“. Glossary entries can be edited by any registered user to help improve our documentation. We’re working hard on adding new articles every day
]]>
http://pligg.com/blog/1571/pligg-forum-improvements/feed/ 0
Pligg Pro Spring Sale! http://pligg.com/blog/1577/pligg-pro-spring-sale-2/ http://pligg.com/blog/1577/pligg-pro-spring-sale-2/#comments Fri, 30 Mar 2012 21:10:19 +0000 Eric Heikkinen http://pligg.com/blog/?p=1577 SAVE 33.33% ON YOUR PLIGG PRO ORDERS! That's right, it's our annual Pligg Pro Spring Sale. Our biggest sale of the whole year starts now, and ends April 9th. Enjoy 1/3 off your entire order, including the regularly priced $10 installation fees.]]> It’s that wonderful time of year where you can put away your winter coats, witness the foliage come back to life, and SAVE 33.33% ON YOUR PLIGG PRO ORDERS! That’s right, it’s our annual Pligg Pro Spring Sale. Our biggest sale of the whole year starts now, and ends April 9th. Enjoy 1/3 off your entire order, including the regularly priced $10 installation fees.

Use the coupon code SPRING2012 during checkout to receive 33.33% off your order!

In addition to our store-wide sale coupon, we will be dropping prices on a variety of products on different days of the week. Act fast because you only find deals this good once a year.

]]>
http://pligg.com/blog/1577/pligg-pro-spring-sale-2/feed/ 0
Forum Upgrade Tonight http://pligg.com/blog/1569/forum-upgrade-tonight/ http://pligg.com/blog/1569/forum-upgrade-tonight/#comments Fri, 23 Mar 2012 00:52:37 +0000 Eric Heikkinen http://pligg.com/blog/?p=1569 http://pligg.com/blog/1569/forum-upgrade-tonight/feed/ 0 Pligg Forum Mid-March Downtime http://pligg.com/blog/1566/pligg-forum-mid-march-downtime/ http://pligg.com/blog/1566/pligg-forum-mid-march-downtime/#comments Wed, 14 Mar 2012 08:22:37 +0000 Eric Heikkinen http://pligg.com/blog/?p=1566 http://pligg.com/blog/1566/pligg-forum-mid-march-downtime/feed/ 0 Pligg Welcome Page Redirect http://pligg.com/blog/1559/pligg-welcome-page-redirect/ http://pligg.com/blog/1559/pligg-welcome-page-redirect/#comments Thu, 02 Feb 2012 17:03:47 +0000 Eric Heikkinen http://pligg.com/blog/?p=1559 Today a guest in the IRC chatroom for Pligg (irc.freenode.net #pligg) ask if there was a way to create a landing page on his website to welcome first time visitors. Being the gracious coder that I am, I gave him a simple example that can be used to redirect newcomers to a welcome page. Add the code below to the top of your pligg.tpl template file to redirect users to a URL of your choosing (see code comments). I suggest creating a static HTML page with a welcome message or registration form.

{if $pagename eq 'index'}
	{php}
		if(!isset($_COOKIE['PliggWelcome'])){
			setcookie("PliggWelcome", "visited");
			// Change this line to point to your welcome page...
			echo '<meta http-equiv="REFRESH" content="0;url=http://pligg.com/demo/">';
			exit;
		}else{
			// echo "No cookie was found.. Continue loading page"; 
		}	
	{/php}
{/if}

Having trouble reading or copying the text above? Try this pastebin.com url.

This snippet of code works by checking if the person browsing the page has a specific cookie installed on their browser. If the cookie does not exist, it will add it and then redirect the user to another page. If the user does have the cookie, then the page will continue loading like normal. I haven’t personally tested this out on a Pligg myself, so let me know if you have any problems or comments.

]]>
http://pligg.com/blog/1559/pligg-welcome-page-redirect/feed/ 2
Pligg Widget Contest Winners http://pligg.com/blog/1540/pligg-widget-contest-winners/ http://pligg.com/blog/1540/pligg-widget-contest-winners/#comments Thu, 12 Jan 2012 17:06:41 +0000 Eric Heikkinen http://pligg.com/blog/?p=1540 a contest for Pligg Widget designers. The top 3 widget authors would win some awesome prizes including an Amazon Kindle, external hard drive, and thumb drive. Over time we forgot about the contest, but were recently reminded of it. Today we are happy to announce the winners.]]> A very long time ago, we announced a contest for Pligg Widget designers. The top 3 widget authors would win some awesome prizes including an Amazon Kindle, external hard drive, and thumb drive. Over time we forgot about the contest, but were recently reminded of it. Today we are happy to announce the winners.

In first place, and winner of an Amazon Kindle, is Sirwanme’s Last Logged In Users widget. This brilliant widget will display users who recently logged into your website. Not only does it show when they logged in, but Sirwanme went the extra mile and made it so that members who have registered in the last week show up in red. Hovering over each user’s last login time brings up even more details about the user including their email address, registration timestamp, and IP address.


The second place widget goes to Sansui’s Pligg Shortcut widget. While the first two tabs of this widget prove useful, it’s the third one that lets you send a message to all of your site’s members that I find to be most useful.



In third place is Lowster11 for his Alexagraph widget. This widget displays a graph from Alexa.com displaying your estimated traffic from the past several months. When installing this widget you will need to edit a line in one of the widget’s template files to define your domain, but it is still pretty simple to setup.

]]>
http://pligg.com/blog/1540/pligg-widget-contest-winners/feed/ 1
Status Update Module is Now Free! http://pligg.com/blog/1510/status-update-module-is-now-free/ http://pligg.com/blog/1510/status-update-module-is-now-free/#comments Fri, 16 Dec 2011 22:02:00 +0000 Eric Heikkinen http://pligg.com/blog/?p=1510 Download the Status Update Module here by tweeting about Pligg.]]> It’s our 6th birthday tomorrow (December 16th), and to celebrate our 6th year of development we are releasing the most powerful module ever developed for Pligg CMS for free! The Status Update Module was previously sold at Pligg Pro for $29.99, but now you can download it for free. All that you have to do is submit a tweet to Twitter by using a special landing page that we’ve designed. You will then be given immediate access to download the Status Update Module.


For a detailed description and screenshots of the Status Update Module, see the module’s official forum thread. The module will be included with the next release of Pligg CMS, but until then you can download it from this page.

]]>
http://pligg.com/blog/1510/status-update-module-is-now-free/feed/ 2