Archive for October, 2008

Facebook logic bug or not .. i don’t know..

Here is the scenerio..  Let’s say my friend F1 has a friend F2  ( F2 is not a friend to me i want to call me T ).  F2 has a privacy option so T can’t watch F2’s  profile. 

Now oneday F1 comments a picture of F2.  As F2 is no close to T so this comment feed should not be visible to T ( in my opinion). But it’s showing in T’s  Latest Feed i think because of F1( as he is a friend of T ). 

But here is the catch, Now if T clicks on that particular photo link he can see that picture. OKey it’s fair, your friend comments on another friend’s photo it’s logical you may can see that picture. But what happens is .. now T can see all the pitures in that album of F2

 

I am not sure if this is a logic bug or some privacy issue. It felt to me surprising. If you are reading this post and you know the reason.. plz do enlighten me.. pleaseeeee

thanks

 

Updated: 

Damn I am late again.. :( … … here he found it before me. But not found an answer yet.

Leave a Comment

Planning to create my first screencast on CodeIgniter

I am planning to make my first screencast. Here is my rough plan:

Desktop Tools I will use:

  1. Camtasia ( for screen capture )
  2. Total Commander
  3. DBdesigner 4
  4. uniserver

CodeIgniter :

  1. CodeIgniter 1.6.3
  2. BackendPro
  3. RabbitForms
  4. Jquery Pagination

Online Resource: 

  1. Oswd ( Open Source web design ) for template

Hopefully the outcome will be a blog.. before 18October. [ Apology: due to sudden crisis(personal) i am postponing the screencast till november 15. I am really sorry. But i will upload the necessary files before the screencast. This will give a glimpse of what i was trying to do.]

P.S. Do post your suggesstion. 

Comments (4)

CodeIgniter AJAX Pagination Example/Guideline

[ Update:  Download the example and source file from download page. ]

I wanted to put this example a long time ago ..  Here is a small example (thanks to xwero; i took his code from here  :D . I wanted to create a full application example but now i think it’s better to show this one. It’s not a tested code rather than a small guideline.

 

 

 

 

class Test extends Controller {

	function page($offset = 0)
	{
		ob_start();
		$this->ajax_page( 0 );
		$initial_content = ob_get_contents();
		ob_end_clean();	

		$data['table'] = "<div id='content'>" . $initial_content . "</div>" ;

	    $this->load->view('page',$data);

	}

	function ajax_page($offset = 0)
	{
	  	$this->load->model('model');
		$this->load->library('Jquery_pagination');

		$config['base_url'] = site_url('test/ajax_page/');
		/* Here i am indicating to the url from where the pagination links and the table section will be fetched */

		$config['div'] = '#content';
		/* CSS selector  for the AJAX content */

		$config['total_rows'] = $this->model->num_rows();
	    $config['per_page'] = 20;

	    $this->jquery_pagination->initialize($config);

	    $this->load->library('table');

	    $html =  $this->jquery_pagination->create_links() . br(1)
				.  $this->table->generate($this->model->content( $limit, $offset));

		echo $html;
	}
}

 

 

 

 

Note: Don’t forget to add the jquery.js in your view file, Jquery_pagination.php in your library folder.

Comments (15)

RAD in CodeIgniter

What is the first thing you did when you start learning PHP? You wrote a PHP page which echoed ‘Hello World !’ . Later you start developing sites for yourself and for other people. One fine day you somehow stumbled upon a framework. And at last you see that you need not to code much. Though Framework provides a good number of library and helpers bt still you do code everything from scratch. So, where is the RAD( Rapid Application Development ) which every framework shouts about.

Today i am going to show you or direct you to some of the contributions in CodeIgniter which will help you to develop a site rapidly ( :D ) . At least it’s helping me out :

BackendPro Control Panel

Every site whether it’s a commercial or a personal, you need a user management system including role management. This control panel provides the exact thing. With some additional features like asset management, page and view … please go and discover it. The documentation is fair enough to learn. If you have heard about matchbox then you may like it more. It uses it. So, you can integrate your modules with it in no time.

Rabbit Forms ( A CRUD automate Library )
 
Now you have a Control Panel, and you need a CRUD system. Rabbit Forms is just the tool you need to have. I have included it with BackendPro and it helps me a lot. Including it with BackendPro is not that tough. Before you start with Rabbit Forms please view the video tutorial. Which helped me gr8.

GandyXT ( New CodeIgniter Package )

This one is new in town. But it can give you a quick start. It includes XAJAX scripts, Asset helper, facebox, lightbox, .htaccess modification bundled with codeigniter installation. 

CodeExtinguisher ( Plug and Play )

Though it  seems to me that it’s a combination of BackendPro and RabbitForms but till now it did not impressed me. I personally like to have control on each and every simple things. But why should you listen to me ?? Go and have a look at it.

Bamboo Invoice ( Invoicing System )

I will never forget this one. If you need an invoicing system i prefer this one. To know my opinion you can see one of my post.

Blogmer ( Blog System )

It looks impressive. If you need one go for it ..

ORM

I saw some ORM like Datamapper, IgnitedRecord

[ Note: There are many other  contributions which can help you. Always keep an eye in wiki and forum of CodeIgniter. ]

Comments (3)

Older Posts »