cakePHP

Croogo Socialprivacy Plugin

Posted by Max on Wed, Oct 12 2011 13:53:00

I wrote a small plugin for the cakePHP CMS Croogo. It displays share buttons for the social networks Facebook, Twitter and Google+ below each blog entry. It uses socialshareprivacy script by Heise, which hides social media buttons behind a second click to prevent auto-loading these buttons and thereby auto-transmitting data to third parties by default.

2 klick logo

You can find more info on the used script here. The download of the plugin can be found on my github.

To install this plugin put the socialprivacy folder into your /app/plugins/ folder on your webserver and activate the plugin in the admin area.

The script can only be used once per page, so it is only displayed in details of a blog entry and not on the main page (where more than one entry is shown). You can probably see a demo of the plugin right below this blog entry.

cakePHP QR Code Helper

Posted by Max on Wed, Dec 22 2010 14:44:00

I wrote this little Helper to simplify the creation of QR Codes in a cakePHP app. It uses the Google Chart API, therefore Codes are generated on the fly and not saved on the server.

It can be found in my GIT repository.

Includes functions to create QR codes for:

  • free text
  • contacts
  • email sending
  • calendar events
  • Geolocations
  • Android Market Searches
  • MMS sending
  • SMS sending
  • Telephone calls
  • URLs

Some samples

echo $this->Qrcode->text('muXe rocks!');

would create this QR code with the content "muXe rocks!"

QR code with simple text

And this:

echo $this->Qrcode->event(
	array(
		'summary' => 'Highnachten',
		'start' => '20101224T180000',
		'end' => '20101224T235900',
		'location' => 'Berlin',
		'description' => 'Time to celebrate!'
	),
	array(
		'size' => '500x500',
	)
);

would create the following QR code, which contains an iCal event.

Sample QR code for an event

Posted in cakePHP | 3 Comments

Croogo Flattr Plugin 0.2

Posted by Max on Tue, Sep 28 2010 16:15:00

I worked on my Croogo Flattr Plugin to make it compatible with the new Croogo version 1.3.2, where some changes were made in the plugin hook system. While doing this, I improved the usability by adding an admin settings page, so the user won't have to edit anything in the source files anymore.

Screenshot of Croogo Flattr Plugin Admin Page

The Plugin can still be found at github. An uploadable zip file can be found in the downloads section.

Posted in cakePHP | 4 Comments

CakePHP Flattr Helper

Posted by Max on Thu, Aug 26 2010 12:58:00

In the course of writing a Flattr Plugin for my Blog I wrote a cakePHP helper to dispay Flattr buttons.

The source can be found on github and the usage is explained in the comments.

Croogo Flattr Plugin

Posted by Max on Thu, Aug 26 2010 12:35:00

I created a plugin for croogo (the cakePHP CMS) to display Flattr Buttons.

The sources are hosted on github and an example can (hopefully) be watched below.

 

Flattr if you like ;)