Category: All

Salutations in SugarCRM Community Edition (CE)

Salutations in SugarCRM Community Edition (CE)

To change or add to the available salutations in SugarCRM Community Edition, open /include/language/en_us.lang.php.  Go to the line  ”  ‘salutation_dom’ =>  ” around line 313 and add to the array of options there.  Save the file.

CKEditor toolbar separator issues 0

CKEditor toolbar separator issues

While using CKEditor within a GetSimple 3.1.2 installation, the toolbar separators I inserted just were not working. According to CKEditor documentation, separators are easily inserted using ‘-‘ within your toolbar parameters (contained in gsconfig.php). So, from reading the wiki and forums it seems as if the syntax would be: define(‘GSEDITORTOOL’, “[‘Bold’, ‘Italic’, ‘Underline’, ‘FontSize’,’TextColor’, ‘-‘, ‘JustifyLeft’,’JustifyCenter’,’JustifyRight’,’JustifyBlock’, ‘-‘, ‘NumberedList’, ‘BulletedList’, ‘-‘, ‘Table’, ‘-‘, ‘Link’, ‘Unlink’, ‘Image’, ‘RemoveFormat’, ‘Source’]”); Unfortunately, in Firefox 12 and IE 9, my separators were not showing up and my toolbar was just one big jumble of buttons. The syntax to correct this is as follows: define(‘GSEDITORTOOL’, “[‘Bold’,...

Set or change zoom level in embedded PDF files 0

Set or change zoom level in embedded PDF files

The following code will embed a PDF file into a website, and set the zoom level to 75% of the original. Pay attention to the text in red to see how the zoom level is achieved. <object type=”application/pdf” data=”PATH TO YOUR PDF HERE.pdf?#zoom=75” width=”100%” height=”800″> <param name=”src” value=”PATH TO YOUR PDF HERE.pdf?#zoom=75” /> <param name=”type” value=”application/pdf” /> <param name=”width” value=”100%” /> <param name=”height” value=”800″ /> <param name=”zoom” value=”75%” /> <a href=”PATH TO YOUR PDF HERE.pdf?#zoom=75“>Click here</a> </object>

Drop shadow not showing up in Flex 3 application? 0

Drop shadow not showing up in Flex 3 application?

DropShadowFilter does not work when the background alpha of application is set to 0. This is true even when the drop shadow filter is being set on a LABEL that is on top!! Found this out after, oh, about 93 hours of reading, testing, re-reading, re-testing, and thinking I was going absolutely nuts….

Opening a SWC file 0

Opening a SWC file

Most of what you read on the internet insists that SWC files are Flex/Flash Builder files… which they are, but what most sources don’t mention is that they are also plain old ZIP archives. If you really want to easily check out the contents of your SWC file (without having to create a new “namespace” for it and jump through all sorts of other hoops), here’s what you do: 1. MAKE A COPY OF THE FILE *** *** I will not be held responsible for anything that happens if you fail to do this! 😛 2. Change the file extension...

Create arched text in Macromedia/Adobe Fireworks 0

Create arched text in Macromedia/Adobe Fireworks

It is very difficult to find information on techniques for creating arched text in Fireworks. While there still seems to be no “automatic” way of doing this, I found this great tutorial on doing it manually. http://www.fireworksguruforum.com/index.php?showtopic=15253

Flex 3 background image 0

Flex 3 background image

Lesson: When using an embedded image to skin a canvas using 9-slice scaling and CSS within Flex 3, don’t forget to set the background-size property! I was skinning a Canvas component in my Flex 3 app and while the image was showing up, it wasn’t filling the Canvas correctly — it was just displaying at its native size. I set my scale-nine parameters (scaleGridTop, et. al.) and still no change. Then I found this Adobe article mentioning the background-size property. Oops.

List skinning being applied to list items in Flex 3 0

List skinning being applied to list items in Flex 3

While trying to skin a List control with a JPG in Flex Builder 3, I ran across an odd problem. The skin was also being applied to the list items by default. My image was showing up not just on my list, but also on each item in that list, so I had lots of mini images on top of a larger image — a real mess. This happened despite my trying to name a separate style for the items. A little background: The list items are wrapped in a Canvas within an MXML component separate from my main MXML....

Disable list item highlighting in Flex 3 0

Disable list item highlighting in Flex 3

In Flex Builder 3, when creating a list of items using the List control, default behavior is to highlight list items in one color on rollover, and then in a second color on click. In my case, I was creating a list of labels and text boxes that aren’t interactive, and therefore I didn’t want to give the user any appearance of interactivity by having items “clickable” and highlighted. In your Flex project .MXML file, inside your control, add selectable=”false” and useRollOver=”false”. For added insurance, in my project I also set focusEnabled=”false”. This keeps the user from tabbing to the...

Changing the look of your Accordion navigation in Flex 3 0

Changing the look of your Accordion navigation in Flex 3

Skinning and styling your accordion in Flex Builder 3 is much easier, I think, than most books and articles seem to indicate. I’d like to take a moment here to explain the difference between styling and skinning, because the two terms are not interchangeable. Styling refers to changing basic colors, text, and borders, without affecting the overall default look of the element(s) in question. Since this can mostly be accomplished right in the Design window of your Flex application, and hence is pretty self-explanatory, I will not be discussing it here. Skinning, however, is the practice of totally changing the...