logo

The ConnectWise Control forum has moved to ConnectWise University! This forum has been locked and is in read-only mode. Click here for instructions on how to access the new forum.

Welcome Guest! You can not login or register.

Notification

Icon
Error

Options
Go to last post Go to first unread
dw5304  
#1 Posted : Wednesday, January 9, 2013 4:24:16 PM(UTC)
dw5304


Rank: Advanced Member

Medals: Level 1: Random Act of Kindness! Received One Thanks!

Joined: 1/9/2013(UTC)
Posts: 45
Location: usa

Thanks: 1 times
Was thanked: 3 time(s) in 3 post(s)
to new session.

example.

UserPostedImage

Paul Moore  
#2 Posted : Thursday, January 10, 2013 5:22:04 AM(UTC)
Paul Moore


Rank: Advanced Member

Medals: Level 3: Shirt off your back! Received 25 Thanks!

Joined: 9/16/2011(UTC)
Posts: 334

Thanks: 5 times
Was thanked: 70 time(s) in 44 post(s)
Great idea - but I see little point in printing the whole thing when all you really want is the code converting to phonetic. This solution could be cleaner, but it does the job with little overhead.

Open Host.aspx

Find line...

var instructions = SC.util.formatString(SC.context.resources[instructionsResourceKey], window.context.guestUrl, sessionSummary.clp.t, sessionSummary.c);

Under it, add...

if(joinModeValue == 'SecureCode') {instructions = instructions.replace(sessionSummary.c, convphonetic(sessionSummary.c));}

Find line...

function refreshSessionDialog(sessionGroupName, sessionSummary, selectName) {

Above it, paste...

function convphonetic(code)
{
var abcs = new Array("A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z");
var repo = new Array("Alpha","Bravo","Charlie","Delta","Echo","Foxtrot","Golf","Hotel","India","Juliet","Kilo","Lima","Mike","November","Oscar","Papa","Quebec","Romeo","Sierra","Tango","Uniform","Victor","Whiskey","X-Ray","Yankee","Zulu");

strLength = code.length;
currentpos = 0;
output = "";
while (currentpos < strLength)
{
output += repo[abcs.indexOf(code[currentpos])] + " ";
currentpos++;
}
output = output.slice(0,-1);
return '<strong>' + output + ' (' + code + ')</strong>';
}

Save & refresh the page. Click "Create Session". It should look like this...

UserPostedImage
ScreenConnect Reporting - Collects live & historical information including session times.
http://goo.gl/nrF3e9
dw5304  
#3 Posted : Friday, January 11, 2013 6:46:59 PM(UTC)
dw5304


Rank: Advanced Member

Medals: Level 1: Random Act of Kindness! Received One Thanks!

Joined: 1/9/2013(UTC)
Posts: 45
Location: usa

Thanks: 1 times
Was thanked: 3 time(s) in 3 post(s)
thats exactly what im looking for... Thanks!
dw5304  
#4 Posted : Tuesday, April 30, 2013 5:03:21 PM(UTC)
dw5304


Rank: Advanced Member

Medals: Level 1: Random Act of Kindness! Received One Thanks!

Joined: 1/9/2013(UTC)
Posts: 45
Location: usa

Thanks: 1 times
Was thanked: 3 time(s) in 3 post(s)
would like to ask to get this merged into main build so i do not need to keep adding it everytime sc updates :).
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.