Search found 12 matches

by suvroz
06 Dec 2012, 14:12
Forum: SFS2X Java / Android API
Topic: Disconnection on calling toJson() for SFSObject
Replies: 2
Views: 2186

Disconnection on calling toJson() for SFSObject

I am trying to call toJson() on SFSObject in the dispatch method of my class (which implements IEventListener): @Override public void dispatch(BaseEvent event) throws SFSException { if (event.getType().equalsIgnoreCase(SFSEvent.EXTENSION_RESPONSE)) { ISFSObject params = (ISFSObject) eventArgs.get(&q...
by suvroz
11 Oct 2010, 09:43
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Getting Date & Time using SFS Extension
Replies: 1
Views: 805

Getting Date & Time using SFS Extension

Hi,

I need to record the login time using the SFS Extension. Is there a function the can fetch the current date and time using an extension?

Thanks in advance,
Suvro
by suvroz
20 Sep 2010, 10:54
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Getting Buddy List of other Buddies
Replies: 2
Views: 1027

BigFIsh wrote:Anything is possible :-)

The built-in buddylist (v1 and v2) does not have this feature. You will need to create your own logic in your extension to fetch such data (SFS PRO only).



Thanks BigFish!
Creating extension is what we are going to do.
by suvroz
20 Sep 2010, 08:39
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Getting Buddy List of other Buddies
Replies: 2
Views: 1027

Getting Buddy List of other Buddies

Hi,

Is it possible to get list of buddies of another Buddy. For ex. Chimpo is a buddy of Monky. Chimpo needs to know who are Monky's buddies? Is it possible?

Thanks in advance..
Suvroz
by suvroz
16 Aug 2010, 07:38
Forum: SmartFoxServer 1.x Discussions and Help
Topic: advanced buddylist options not working.
Replies: 1
Views: 825

advanced buddylist options not working.

Hi, I have the below configuration set in config.xml <BuddyList active="true"> <size>200</size> <maxBuddyVariables>10</maxBuddyVariables> <mode>advanced</mode> <offLineBuddyVariables>true</offLineBuddyVariables> <addBuddyPermission>true</addBuddyPermission> <permissionTimeOut>10</permissio...
by suvroz
13 Aug 2010, 08:16
Forum: Server Side Extension Development
Topic: Auto-Destroy Rooms created by sfsExtensons
Replies: 2
Views: 1330

Thanks.... It worked like a charm! :D
by suvroz
13 Aug 2010, 07:09
Forum: Server Side Extension Development
Topic: Auto-Destroy Rooms created by sfsExtensons
Replies: 2
Views: 1330

Auto-Destroy Rooms created by sfsExtensons

Hi, I am creating room using extension using the below code: var roomObj = {} roomObj.name = roomname roomObj.maxU = 20 roomObj.isGame = "true" var roomVars = [{name:"wel", val:'welcome to room', priv:false, persistent:true}]; var resRom = _server.createRoom(roomObj, null, true, ...
by suvroz
18 Mar 2010, 05:37
Forum: SmartFoxServer 1.x Discussions and Help
Topic: DbManager could not retrive a connection.
Replies: 5
Views: 2029

Lapo wrote:I have no idea. It looks like it's more of a system/db issue than an SFS one :)


Yeh! Good to see such a lively forum anyway!
by suvroz
18 Mar 2010, 02:33
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Access of possibly undefined property onExtensionResponse
Replies: 1
Views: 1330

Access of possibly undefined property onExtensionResponse

I am trying to compile this piece of code: import it.gotoandplay.smartfoxserver.*; import it.gotoandplay.smartfoxserver.data.*; var smartfox:SmartFoxClient=new SmartFoxClient(true); var extensionName:String="mydb"; butt_load.addEventListener("click", getData); function getData() ...
by suvroz
17 Mar 2010, 12:10
Forum: Server Side Extension Development
Topic: Access to undefined extension
Replies: 1
Views: 1086

Access to undefined extension

I am trying to compile this piece of code: import it.gotoandplay.smartfoxserver.*; import it.gotoandplay.smartfoxserver.data.*; var smartfox:SmartFoxClient=new SmartFoxClient(true); var extensionName:String="mydb"; butt_load.addEventListener("click", getData); function getData() ...
by suvroz
17 Mar 2010, 09:32
Forum: SmartFoxServer 1.x Discussions and Help
Topic: DbManager could not retrive a connection.
Replies: 5
Views: 2029

It is working now!

what i did?
I unblocked port 3306 for public. It was only open to internal server requests.

But here another question arises, both SFS and MySql are residing on the same server, so how does opening of the port to public help?

Anyway, Problem resolved temporarily...
by suvroz
16 Mar 2010, 09:48
Forum: SmartFoxServer 1.x Discussions and Help
Topic: DbManager could not retrive a connection.
Replies: 5
Views: 2029

DbManager could not retrive a connection.

Hi I am using the below configuration: <DatabaseManager active="true"> <!-- <Driver>sun.jdbc.odbc.JdbcOdbcDriver</Driver> <ConnectionString>jdbc:odbc:sfsTest</ConnectionString> --> <!-- Example connecting to MySQL --> <Driver>org.gjt.mm.mysql.Driver</Driver> <ConnectionString>jdbc:mysql://...

Go to advanced search