Jump to content

sobi2 using cb everywhere addon error


sean preston

Recommended Posts

Alejandro,

 

 

i am using the setup you suggested a few months ago to display the cb everywhere addon inside of my sobi template which is no problem.. the only problem is that the look of both does not seem to be consistent.  this is the quote form when you suggested before

The code for the everywhere addon can be found in the manual:

 

http://docs.reviewsforjoomla.com/Everywhere_Add-on_Downloads

 

You can put that code in Sobi2 and instead have it show and record reviews for CB profiles. Something like this should work:

 

		# MVC initalization script
	if (!defined('DS')) define('DS', DIRECTORY_SEPARATOR);	
	require('components' . DS . 'com_jreviews' . DS . 'jreviews' . DS . 'framework.php');

	# Populate $params array with module settings
	$JreParams['data']['extension'] = 'com_comprofiler';
	$JreParams['data']['tmpl_suffix'] = '';
	$JreParams['data']['controller'] = 'everywhere';
	$JreParams['data']['action'] = 'index';
	$JreParams['data']['listing_id'] = $user_id;
	$JreParams['data']['limit_special'] = 10;				

	// Load dispatch class
	$Dispatcher = new S2Dispatcher('jreviews',true);

	$jreDetail = $Dispatcher->dispatch($JreParams);
                echo $jreDetail['output'];
                echo $jreDetail['detailed_ratings'];
                echo $jreDetail['summary'];

 

You just need to make sure you pass the correct $user_id above.

 

 

and here is how it looks now..

 

 

this is how it supposed to look as in cb 34179564.jpg

 

and here is how it looks in sobi2sobi.jpg

 

is there a way just "mirror" the one from cb in sobi2?

 

thanks a ton Alejandro,

 

big thanks to Kristian for all the help he has provided!!!

 

Link to comment
×
×
  • Create New...