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 |
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
JTable::addIncludePath( JPATH_ADMINISTRATOR.'/components/com_categories/tables' ); | |
JModel::addIncludePath( JPATH_ADMINISTRATOR.'/components/com_categories/models' ); | |
$model = JModel::getInstance('Categories','CategoriesModel'); | |
$model->setState('list.select','a.id, a.title, a.alias, a.note, a.published, a.params'); | |
$app = JFactory::getApplication(); | |
$app -> setUserState('com_categories.categories.filter.extension', 'com_yourapp.yoursection'); | |
$items = $model -> getItems(); |
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 | |
$user = JFactory::getUser(); | |
$profile = JUserHelper::getProfile($user->id); | |
var_dump($profile); | |
//each plugin adds its own object loaded with an array so you can access your fields like this | |
echo $profile->profile['address1']; | |
?> |
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
include 'sg/SendGrid_loader.php'; | |
//Getting the elements from the form | |
// | |
$guestName = $_REQUEST['guestName'] ; | |
$accomodationPlans = $_REQUEST['accomodationPlans'] ; | |
$favoriteLoveSong = $_REQUEST['favoriteLoveSong'] ; | |
$bestContact = $_REQUEST['bestContact'] ; | |
$message = $_REQUEST['message'] ; | |
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 | |
/** | |
* Verifies that all the required form fields are completed | |
* if any fail verification, set | |
* $object->error = true | |
* $object->message .= '<li>x item failed verification</li>' | |
* | |
* @param unknown $submitted_values array post data | |
* @return unknown_type |
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 | |
Class URLGenerator { | |
var $base = 'ryst.cc/b/'; | |
var $amount = '110000'; | |
//var $group = 'wf-'; | |
var $uuid = 'cccc'; | |
var $filename = 'goband2025'; |
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 | |
namespace Dash\Site\Models\Event; | |
class Tags extends Eventbase | |
{ | |
/** | |
* Default Document Structure | |
* @var unknown | |
*/ |
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 | |
namespace Dash\Helpers; | |
//Convert Activities to Nice humaniness output | |
Class Activity { |
OlderNewer