• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Windows News-ticket system for 0.3.2

Nikkster

Programmer
Joined
May 9, 2008
Messages
2,848
Reaction score
10
Location
Confidential
Hello, I am wondering if anyone has got a working News-ticket support system for gesior AAC 0.3.2 BETA?

I saw that, in the newest gesior AAC release, there is a working News ticket system, but I don't know if it would work in the version of aac I am using.

So, do anyone have this script? I will give reputation ofcourse, 17 Points.

Kind Regards,
Nikkster
 
I'm not sure if this one will work, but that's what I got :-

// status of the news ticker entries (0 = closed / 1 = open)
state = new Array("0", "0", "0", "0", "0");

function TickerAction(id) {
var line = id.substr(12, 1);
if(state[line] == "0") {
state[line] = "1";
OpenNews(id);
}
else {
state[line] = "0";
CloseNews(id);
}
}

function OpenNews(id)
{
var div = document.getElementById(id)
var idShort = id.concat("-ShortText");
var idMore = id.concat("-FullText");
var idButton = id.concat("-Button");
document.getElementById(idShort).style.display = "none";
document.getElementById(idMore).style.display = "block";
document.getElementById(idButton).style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/general/minus.gif')";
}

function CloseNews(id)
{
var div = document.getElementById(id)
var idShort = id.concat("-ShortText");
var idMore = id.concat("-FullText");
var idButton = id.concat("-Button");
document.getElementById(idShort).style.display = "block";
document.getElementById(idMore).style.display = "none";
document.getElementById(idButton).style.backgroundImage = "url('<?PHP echo $layout_name; ?>/images/general/plus.gif')";
}
 
Did you at least check it? Didnt work?

Ofcourse, otherwise I wouldn't have posted here.

@ Sir Shutter, i'll try it

@ Richux, can you please stop spamming in the boards.. I asked if anyone had a working script for it. I didn't ask for questions if I have tied it or not.
 
Last edited:
Back
Top