HomeUnityBlogs
 
 
SrMeXiCaNo

Ray Suit Link in admin panel not working - Help ;)

I upgraded, 03 --->  04 ----> 05  and followed instraction by the book
But now my Ray Suite link is not working, can not
get in to my Ray Suite base to enter my licences....
when I click the link to Ray Suite it says
"sRayUrl undefined" 

I noticed that

<script type="text/javascript" language="javascript">
var sRayUrl = 'http://www.AhJiJo.com/ray/';</script>

is missing from the header in the admin index. but in the
other pages it does appear... tried everything but still wont appear
in the admins page header code source
can some body help me....


bad
2
good
 
 

Comments

mrpowless
mrpowless 306 days agocomment permalink
 
check ray/modules/global/js/integration.js
topline:
var sRayUrl =
 
bad
0
good
 
 
baggypants
baggypants 306 days agocomment permalink
 
Hello mrpowless... I have the same problem and tried to change the path in the intergration.js file as you suggested but cannot find "var sRayUrl =" at the top as you suggested.

Can you please show me the exact place where I should change the path to Ray Base? Here is the entire code for the intergration.js file...

function getCookie(name) {
var leftPart = name + "=";
var aCookies = document.cookie.split(";");

for(var i=0; i<aCookies.length; i++) {
var sCookie = aCookies[i];
while(sCookie.charAt(0) == " ") sCookie = sCookie.substring(1, sCookie.length);
if(sCookie.indexOf(leftPart) == 0) return sCookie.substring(leftPart.length, sCookie.length);
}
return "";
}
function updateRayUserStatus(sUserId) {
var XMLHttpRequestObject = false;
if(sUserId != "") {
var d = new Date();
var url = sRayUrl + "XML.php?action=updateOnlineStatus&id=" + sUserId + "&_t=" + d.getTime();
if(window.XMLHttpRequest)
XMLHttpRequestObject = new XMLHttpRequest();
else if(window.ActiveXObject)
XMLHttpRequestObject = new ActiveXObject("Microsoft.XMLHTTP");

if(XMLHttpRequestObject) {
XMLHttpRequestObject.open("GET", url);
XMLHttpRequestObject.send(null);
}
}
}
function openRayWidget(sModule, sApp) {
if(aRayApps[sModule][sApp] == undefined)return;

var aInfo = aRayApps[sModule][sApp];
var sUrl = sRayUrl + "index.php?module=" + sModule + "&app=" + sApp;
for(var i=0; i<arguments.length - 2; i++)
sUrl += "&" + aInfo["params"][i] + "=" + arguments[i + 2];

var popupWindow = window.open(sUrl, 'Ray_' + sModule + '_' + sApp + parseInt(Math.random()*100000), 'top=' + aInfo["top"] + ',left=' + aInfo["left"] + ',width=' + aInfo["width"] + ',height=' + aInfo["height"] + ',toolbar=0,directories=0,menubar=0,status=0,location=0,scrollbars=0,resizable=' + aInfo["resizable"]);

if( popupWindow == null )
alert( "You should disable your popup blocker software" );
}

var sRayUrl = window.location.protocol + '//' + window.location.hostname + '/' + sRayHomeDir;

updateRayUserStatus(getCookie("memberID"));

var aRayApps = new Array();

//base begin
aRayApps["global"] = new Array();
aRayApps["global"]["admin"] = {"params": new Array('nick', 'password'), "top": 0, "left": 0, "width": 800, "height": 600, "resizable": 0};
//base end
//chat begin
aRayApps["chat"] = new Array();
aRayApps["chat"]["user"] = {"params": new Array('id', 'password'), "top": 0, "left": 0, "width": 730, "height": 515, "resizable": 1};
//chat end

//im begin
aRayApps["im"] = new Array();
aRayApps["im"]["user"] = {"params": new Array('sndId', 'password', 'rspId'), "top": 0, "left": 0, "width": 490, "height": 610, "resizable": 1};
//im end

//video begin
aRayApps["video"] = new Array();
aRayApps["video"]["recorder"] = {"params": new Array('id', 'password'), "top": 0, "left": 0, "width": 350, "height": 435, "resizable": 1};
aRayApps["video"]["player"] = {"params": new Array('id'), "top": 0, "left": 0, "width": 350, "height": 435, "resizable": 1};
aRayApps["video"]["admin"] = {"params": new Array('nick', 'password'), "top": 0, "left": 0, "width": 700, "height": 330, "resizable": 0};
//video end

//desktop begin
aRayApps["desktop"] = new Array();
//desktop end

//mp3 begin
aRayApps["mp3"] = new Array();
aRayApps["mp3"]["player"] = {"params": new Array('id', 'password', 'vId', 'song'), "top": 0, "left": 0, "width": 350, "height": 310, "resizable" : 0 };
aRayApps["mp3"]["editor"] = {"params": new Array('id', 'password'), "top": 0, "left": 0, "width": 440, "height": 570, "resizable": 1};
//mp3 end

//presence begin
aRayApps["presence"] = new Array();
aRayApps["presence"]["user"] = {"params": new Array('id', 'password'), "top": 0, "left": 0, "width": 240, "height": 600, "resizable": 1};
//presence end

//board begin
aRayApps["board"] = new Array();
aRayApps["board"]["user"] = {"params": new Array('id', 'password'), "top": 0, "left": 0, "width": 750, "height": 760, "resizable": 0};
//board end
 
bad
0
good
 
 
lalakis
lalakis 304 days agocomment permalink
 
As mrpowless said, put it in the beginning of ray/modules/global/js/integration.js
So your first line should be
var sRayUrl = "http://www.AhJiJo.com/ray/';
 
bad
0
good
 
 
disstudem
disstudem 280 days agocomment permalink
 
I did that a few times and it still dose not work for me.Any other ways?
 
bad
0
good
 
 
ubhardwaj
ubhardwaj 217 days agocomment permalink
 
dear sir,
I have installed ray in my site and i have done everything its say on readme.
but when i click on plugin in admin nothing happen at all.

please tell me what is difference in these two?

Copy "ray" folder to your site root directory and run "http://[your_site]/ray/install/" to install the script.
This package contains the next elements:

1. “ray” folder contains the basic files necessary for Ray operation as a whole, and an installation interface for detached widgets. Copy the folder to the server, for example, to the public_html folder and run instalation wizard. following the next URL: http://www.your_domain.com/path_to_ray/install/index.php. Don’t forget to replace your_domain and path_to_ray with your site data.
 
bad
0
good
 
 


Post a Comment

Please login to post a comment.

This Post
 
 
SrMeXiCaNo Blog
All Blogs
Found a bug? Have a suggestion? We really value your feedback!
 
© 2008 BoonEx Ltd
ABN 27 127 966 581
 
PET:0.617865085602