Archive for the ‘ SugarCRM ’ Category
You can hide a SubPanel in an upgrade safe way but unsetting the subpanel via PHP. Example: You can hid the Leads SubPanel into Accounts module by customizing the custom/modules/Accounts/Ext/Layoutdefs/layoutdefs.ext.php, which is a upgrade safe customization. Add the following to the end of the file, before the closing PHP tag. unset($layout_defs['Accounts']['subpanel_setup']['leads']); [ READ MORE ]
unset($layout_defs['Accounts']['subpanel_setup']['leads']);
After searching for a while, I finally found out how to manually delete or remove a sugar crm relationship that was created in studio. I tested this on Sugar 5.2 Professional and it seems to work just fine. Use at your own risk. When you create a new relationship through Admin -> Studio -> -> Relationships, Sugar create several files at custom folders: Left Side Hand Relationship (module from which you created the relationship): custom/Extension/modules//Ext/Vardefs/.php [ READ MORE ]
Here's a quick plugin I wrote for vBulletin to display social group icons on the postbit. The social group icon for each public social group the user belongs to will be displayed. Please see attachment. To install, just import the plugin via the admin panel. This plugin was only tested on vBulletin 3.8 on http://www.b15u.com. Please use at your own risk[ READ MORE ]
To register new custom entry points for Sugar CRM, do the following you have to create the file custom/include/MVC/Controller/entry_point_registry.php Contents should be the following: $entry_point_registry['entry_point_name'] = array('file' => 'path/to/custom/code.php', 'auth' => true); [ READ MORE ]
$entry_point_registry['entry_point_name'] = array('file' => 'path/to/custom/code.php', 'auth' => true);
This is a little helper function I wrote to send an email using Sugar CRM's built in mail class. /** * A wrapper for sugar's mail class * Sends emails to everyon in $tos array. * $tos['user name'] = 'username@domain.com'; * * @example : $tos['Some User'] = 'SomeUser@somewhere.com'; * $tos['Some User 2'] = 'SomeUser2@somewhere.com'; * sendSugarPHPMail($tos, 'hi', 'hello fellas'); * * @param associative array * @param string $subject * @param string $body * @return boolean */ [ READ MORE ]
/** * A wrapper for sugar's mail class * Sends emails to everyon in $tos array. * $tos['user name'] = 'username@domain.com'; * * @example : $tos['Some User'] = 'SomeUser@somewhere.com'; * $tos['Some User 2'] = 'SomeUser2@somewhere.com'; * sendSugarPHPMail($tos, 'hi', 'hello fellas'); * * @param associative array * @param string $subject * @param string $body * @return boolean */ [ READ MORE ]
There's not much information out there about Sugar CRM, so here's a quick example on creating a custom logic hook. This example uses a custom helper function called 'sendSugarPHPMail' which can be found here http://www.redinkdesign.net/sugar_email_wrapper. In this example, we're going to email someone when a Case's status is set to 'Closed'. To make this upgrade friendly we're going to create two files in 'custom/modules/Cases'. First file: logic_hooks.php - Loaded automatically by Sugar. Second: case_closed.php - Our custom code. The contents of logic_hooks.php are: [ READ MORE ]