Kayako Fusion : Controlling the display of sub departments

Kayako No Comments »

We run Kayako fusion over at BlueThunder, and one of the issues I have had is dealing with sub-departments.

e.g.

GROUP1

  • dept1
  • dept2

I do not want customers to be able to to submit tickets to the parent department "GROUP1",  as this is just a a group/label, but fusion provides no way to stop this as it treats everything as a department., and does not allow to simply treat the parent as a group.

I never found any solution to this, so decided to do it myself, hopefully others may find this useful.

In the template editor, find the template named "submitticket_departments"

Find the following line, right after the first <(foreach block


<td width="16" align="left" valign="middle" class="zebraodd"><input type="radio" name="departmentid" onclick="javascript: ToggleTicketSubDepartments('<{$_item[departmentid]}>');" value="<{$_item[departmentid]}>" id="department_<{$_item[departmentid]}>"<{if $_selectedDepartmentID == $_item[departmentid]}> checked<{/if}> /></td>

and replace it with this


<td width="16" align="left" valign="middle" class="zebraodd"><input type="radio" name="departmentid" onclick="javascript: ToggleTicketSubDepartments('<{$_item[departmentid]}>');<{if count($_item[subdepartments]) >= 1}>unselect(this);<{/if}>" value="<{$_item[departmentid]}>" id="department_<{$_item[departmentid]}>"<{if $_selectedDepartmentID == $_item[departmentid] && count($_item[subdepartments]) == 0 }> checked<{/if}> /></td>

This will stop any departments that have sub-departments being selected, even if it is set as the default department.
If you also want all the departments to be expanded by default

find this line, after the second <(foreach block


<tr class="ticketsubdepartments_<{$_item[departmentid]}>" style="<{if $_displayParentDepartmentID != $_item[departmentid]}>display: none;<{/if}>"> 

and change it to




<tr class="ticketsubdepartments_>{$_item[departmentid]}>">



Locking down Railo Admin on Windows/IIS

No Comments »

This is something I have been meaning to do for a while and then came across a thread on the Railo group asking how to do it, so thought I would put together a little video tutorial showing how it is done.

This shows you how to globally lock down access to your Railo Server Admin and/or Railo web admins. I will be doing another tutorial soon on how to lock down your Railo installation.

Digital Network Services telephone scam

Jibber Jabber , News & Gossip No Comments »

My wife got a dodgy call today from some woman  (probably from India) claiming to be from Digital Network Solutions, making some claim about our IP address accessing their servers or something. It wasn’t very coherent and she didn’t really appear to know what she was talking about, so the scam is obviously only going to work on people with no clue about I.T. so It didn’t go very far with my wife, and as soon as my wife said “my husband is an expert in this stuff, let me get him”, they hung up Smile

Having googled it I can see others reporting the same, and it seems the end goal is to try an d extort some “computer protection” fees out of you, so they are presumably trying to convince victims their computers are infected or hacked and just trying to collect card details.

While i’m sure readers of my blog would not fall for such a scam, you may have friends or family who might, so you might want to warn them.

Also just to make it clear to everyone, even if your computer was infected with malware and was attacking servers, the only information they would have is your IP address and from this they could find out your ISP and contact them to log a complaint. Your ISP is not allowed to give out your personal information to just anyone, so it would be up to them to contact you directly and let you know your system might be infected or potentially they would just turn off your broadband until it was resolved.

Applying Google Analytics to your entire site with a single IIS rewrite rule

WEBBY STUFF , Windows 2008 Server No Comments »

imageGoogle analytics is brilliant, of that there is no doubt, and it has replaced website stats for many people these days, however applying it  to your entire site can be a pain if you have a large site and do not have a modern CMS system that allows you to easily insert scripts onto every page.

This can create a dilemma if you want to do away with website stats entirely and encourage customers to use Google analytics instead, but many customers have old legacy sites and do not have the required skills (or inclination) to do the required work, so I started looking for a way that Google analytics could be easily and automatically added to a customers site without making code changes.
Being a windows/IIS guy I first looked into using the URL rewrite engine, which allows you to create OUTGOING rules to rewrite content before it is delivered to the client, and it turned out this did the job nicely, although with the caveat that you cannot just insert raw JavaScript as some characters break the URL rewriting engine, so you have to do a bit of manipulation to get things working.

Basically you have to remove all newline characters and encode any {curly braces} as these have special meaning in url rewriting.
I actually solved this back in 2012, but it has sat unused until now as I still needed an easy way for non technical customers to do this and apply it to their websites. Well today I was having my first play with JSFiddle.net (as some have suggested I do something similar for cflive.net) and decided to do something constructive and throw together a quick script to generate the required rewrite rule to do the above, and here it is.
It is very small and very simple, but I hope useful script that will convert your analytics code into the required format and also generate the rewrite rule for you to insert into your web.config file. Just click the Result tab below to actually use the script.

New year and new laws, welcome to 2014

News & Gossip 2 Comments »

If it feels like you're waking up to a slightly different world today, then it's because you will be. January 1st is habitually a watershed for new rules, appointments and bylaws; 2014 is no exception.

So what is changing? Well, if you are driving in Oregon with children in your car, do not light up. It'll be illegal. And if you're driving in Switzerland, turn your headlights on. Even if it's the middle of the day.

While we're on the subject of lighting, if you live in Canada please remove those last incandescent light bulbs – they won't be allowed any more.

Other things that are no being banned: owning unregistered assault weapons in Connecticut; harassing celebrities and their children with long-lens cameras in California; hunting elephants in Botswana and injudicious calls to the London Fire Brigade (if you're a business you'll be fined for false alarms). Oh, and if you're an architect practising in Texas, you will have to get yourself fingerprinted. Don't ask why.

On the other hand, there are moments of great liberalisation to salute. Colorado on Wednesday will become the first state in the US to allow the sale of marijuana for recreational purposes. Also in America, for the first time it will be OK to be a gay Boy Scout, while for their British counterparts, it's OK to be an atheist. For Germans, liberalisation comes in more subtle ways, such as the new dispensation for universities and libraries, which will henceforth be allowed to upload "orphaned" works of art on to the internet without permission.

If you're Bulgarian or Romanian, welcome. Work restrictions across the EU for citizens of two of the poorest EU countries are lifted. But despite the dire warnings from the right (er, people who are supposed to believe in free markets no less) the indications are that there will be no sudden influx of Balkan builders.

In a less-observed border relaxation, it will become much easier for Chinese tourists to visit Taiwan as the Chinese authorities make a concerted effort to improve cross-strait ties.

And in the unlikely event that you are off to do some shopping in Latvia, leave your lats at home and take euros instead: the Baltic republic becomes the 18th country to join the single currency zone.

Indeed, institutional changes are a 1 January perennial. Russia will run the G8 for a year while Greece gets its turn to lead the EU. Democrat Bill de Blasio takes over as New York mayor. And Barack Obama's system of healthcare coverage, known as Obamacare, is formally launched with hundreds of thousands of newly insured Americans presenting a formidable test to a system that has endured a difficult birth.

Bill de Blasio 
Bill de Blasio will become New York mayor from 1 January. Photograph: Seth Wenig/AP

Then there are more obscure new laws that take some explaining. If you live in France, you can demand your home be checked for electromagnetic waves. If you are arrested, make sure the police address you as "vous" and not "tu", as they are required to do from 1 January.

If you die in Hungary, fear not: from Wednesday the state will reportedly provide a free grave, coffin or urn – and even a free shovel for grave digging – to poorer sections of society.

The other thing that 1 January signifies is the start of a year dedicated to an issue or theme. So prepare yourself, and make any necessary adjustments to your schedule, to accommodate the International Year of Family Farming, the International Year of Crystallography and the International Year of Small Island Developing States.

Happy new year.

Europe

• Work restrictions across the EU are lifted for migrants from Romania and Bulgaria.

• Greece takes over EU presidency.

• Latvia joins the eurozone.

• The European fiscal compact, which forces countries across the eurozone to deliver a balanced budget, becomes operational.

UK

• The amount of time migrants have to wait before claiming benefits is lengthened to three months.

• London Fire Brigade becomes the first service in the country to introduce a charging scheme for callouts to false alarms at buildings such as hospitals, airports and student accommodation.

• Regulation of undercover police – new rules come into force requiring higher level of authorisation

• Average season ticket prices are due to rise by 4.1%

• Scout Association introduces pledge that removes the promise by Scouts to do their duty to God.

• The Defamation Act 2013 is set to change libel laws. Claimants will need to show they have suffered "serious harm" before suing.

France

• Individuals allowed to import 10 (200 cigarette) boxes of cigarettes.

• Minimum hourly wage rises by 10 cents an hour to €9.53 (£8).

• "Red Bull" tax comes into effect on energy drinks – €1 a litre.

• Minimum hours to be considered "part-time" worker – 24 hours a week• Anyone can demand their home be checked for electromagnetic waves. Same applies to public spaces.

• New code of conduct for police insisting they use the more respectful and formal "vous" when addressing the public and suspects and have a number on their uniform so they can be identified.

• The validity period for a French identity card rises from 10 to 15 years

Germany

• The points system for driving licences will be simplified. Minor offences are punished with fewer points, but Germans will only need eight instead of 18 points to lose their driving licence.

• The tax for bars of silver will jump from roughly €1 to €2 an ounce.

• From 1 January Germans will make less money from subletting their flats. Previously, citizens were able to offset the average local rent for a 60 sq metre flat against tax, in the future they will be able to claim back no more than €1,000 a month.

• Universities and libraries will be allowed to upload "orphaned" works of art – artworks, photographs or books whose creator can no longer be identified – on to the internet without getting permission.Previously, they were only able to do so with the explicit permission of a copyright holder.

Switzerland

• Competition for a new national anthem starts.

• Using car headlights in daylight hours becomes mandatory.

Russia

• Takes helm of the G8.

United States

• Minimum wage rises in 14 states.

• Oregon: no smoking in a car with children.

• Colorado becomes the first state in the US to allow the sale of marijuana for recreational purposes.

• Affordable Care Act – individual mandate takes effect, requiring most Americans to buy health insurance.

• Guns that are considered assault weapons and large-capacity ammunition magazines that have not been registered with Connecticut authorities will be considered illegal contraband.

• Photographers who harass celebrities and their children face tougher penalties under a law in California backed by actors Halle Berry and Jennifer Garner.

• Bill de Blasio becomes New York mayor.

• Texas requires all architects to be fingerprinted.

• The Boy Scouts of America lifts a ban on openly gay members after the organisation's national council voted against the rule in late May.

US scouts The Boy Scouts of America has lifted a ban on openly gay members. Photograph: Mychele Daniau/AFP/Getty Images

Asia

• The visa process for mainland Chinese visitors to Taiwan will be streamlined in an effort to bolster cross-strait ties

Africa

• Botswana, home to a third of the global elephant population, bans commercial hunting amid growing concerns about the decline in wildlife species.

African elephants Drinking at Dusk African elephants drinking along a riverbank at dusk in Botswana. Photograph: Frans Lanting/ Frans Lanting/Corbis

• Deadline for the controversial "indigenisation" of businesses in Zimbabwe. The Indigenisation and Economic Empowerment Act obliges foreign-owned companies operating in the country to cede at least a 51% controlling stake to black Zimbabweans. Those who refuse face possible arrest.

• Travel for Kenyans, Rwandans and Ugandans to each other's countries will become easier with the use of national identity cards as travel documents and an east African tourist visa

Powered by Mango Blog. Design and Icons by N.Design Studio
RSS Feeds
penultimate-recession
penultimate-recession
penultimate-recession
penultimate-recession