Tuesday, August 31, 2010

FIle system - joomla way

Here is a simple document about file system packages and functions in joomla.
It has almost all the functions which deals with file system in joomla way. Also
has an example of file uploading and reading !!

How_to_use_the_file system_package

Just to upload and display set of images
1. create a new folder using 'media manager' and upload set of images
2. write this code where you want them to get displayed

$opimages=JFolder::files($imagesfolderpath, $filter = '.', $recurse, $fullpath , $exclude); // check above link for more info
foreach($opimages as $key=>$opimage){
--- display using image tag ---

Thursday, August 12, 2010

Facebook publish - bug

I am using facebook publish feature in my current project.
Its an ajax request and requires Facebook API key and a secret key
Using facebook stream publish feature you can publish content to facebook wall
from your application. It works great !!
From past two days its not returning to call back function after successfull
publish..displaying blank page now (:
Anybody has some idea about this ??

Here is a sample code

// object of Facebook API
$facebook = new Facebook(FAPI_KEY, FAPI_SECRET);
//you need to have a small JS code for this
FB_RequireFeatures(["Connect"], function() {

FB.ensureInit(function() {

var message = 'Your message here';

var attachment = {
'name': 'name to display',
'href': '',
'caption': "enter caption here",
'description': 'enter description here',
"media": [{ "type": "image", "src": "http:///fbwall/ea.png", "href": ""}]
var action_links = [{ 'text': 'some text if you have website then its name goes here', 'href': 'link to a page or your website'}];

var alt;
alt = FB.Connect.streamPublish(message, attachment, action_links, '', " ", callback, true, null);
// callback function
function callback()
window.location='return URL';

ooooooooooooo End of the post oooooooooooooooo

Design thinking at work (Book summary)

Key things to keep in mind The essence of design thinking, in many ways, involves identifying problems by seeing things that other peo...