This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(version_compare(JVERSION,'1.6.0','ge')) { | |
//I had to add a new XML file because the plugin XML for some reason fails to load. try to fix this later to only core plugin. | |
$path = JPATH_SITE.'/plugins/'.$row->folder.'/'.$row->element.'/jform/'.$row->element.'.xml'; | |
//ok we get a jForm Object from the new file | |
$form = JForm::getInstance("paymentplugin", $path); | |
//we now need the data, so lets use the rows params and put them in an object. | |
$registry = new JRegistry; | |
$registry->loadString($row->params); | |
//for some reason the above method for me is returning NULL, which is just stupid. if you echo $row->params and copy it and put it below it loads |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$chartdata = array(); | |
$chartdata[] = array( 'fivestar' , 15 ); | |
$chartdata[] = array( 'fourstar' , 5 ); | |
$chartdata[] = array( 'threestar' , 25 ); | |
$chartdata[] = array( 'twostar' , 35 ); | |
$chartdata[] = array( 'onestar' , 25 ); | |
// HIGHROLLER PIE CHART |
NewerOlder