Hello, Guest.

Walls System Explained

Contents


Background

Walls / comments is simply a commenting system in Jom Social. It allows comments to be placed on 3rd party applications within the system just like the walls /comments you see on the core applications. Before even beginning writing the codes to integrate the walls / comments into your 3rd party application, you should by now fairly understand how Jom Social works and you should by now have at least a little knowledge on the Joomla!™ MVC framework.

Including necessary libraries

The first step, is to include the necessary library so that your application can start using them.

require_once( JPATH_COMPONENT . DS . 'libraries' . DS . 'wall.php' );

Usage

After including the necessary files, all you have to do now is to get the form for the walls /comments and the contents of the walls / comments.

Getting the forms

  • To get the form's HTML content, you simply need to issue the following block of codes. The parameters are explained below,
$form = CWallLibrary::getWall( $uniqueID , $applicationName );

$uniqueID : This parameter is required and it tells the wall system that a wall / comment is made on this specific unique id.

$applicationName : This parameter is required and it tells the wall system to call your AJAX methods within your class. It should always have the prefix of 'plugins,' followed by your application name. E.g:

This example, selects the unique id for the specific image that is being commented on.
 
$db    =& JFactory::getDBO();
 
$query = 'SELECT `id` FROM ' . $db->nameQuote('#__myapplication_images');
$db->setQuery( $query );
 
$uniqueID = $db->loadResult();
 
if($db->getErrorNum())
{
	JError::raiseError( 500, $db->stderr());
}

Docs Navigation

JomSocial Video Testimonial Contest. Top 5 best videos wins iPod Nano 4G.

Slashes & Dots Sdn. Bhd.
MALAYSIA OFFICE
No 1-7, Signature Office,
The Boulevard Mid Valley City,
Lingkaran Syed Putra,
59200 Kuala Lumpur, Malaysia.
U.S. OFFICE
251 West Central Avenue #146,
Springboro, Ohio 45066, U.S.A.

Tel: +60 (3) 2282-1997
Fax: +60 (3) 2283-1997
E-mail:
Copyright © 2007 - 2009 JomSocial.com. All rights reserved.
JomSocial is made for Joomla!
JomSocial Community Count

523 users currently online | 84903 forum posts