Print this Page

MODERATOR LOG Functions

Below is a listing of all the functions.

 

DeleteLog

DeleteLog

Delete a log entry based on a log ID.

 

Return Type: n/a

 

Name

Type

Description

LogID

Integer

The ID of the log entry you want to delete.

 

Examples

Visual Basic.Net

'Method DeleteLog

ftObj.DeleteLog(1)

 

C#

//Method DeleteLog

ftObj.DeleteLog(1);

 

DeleteLogByDate

DeleteLogByDate

Delete the log entries based on a date.

 

Return Type: n/a

 

Name

Type

Description

LogDate

DateTime

All log entries prior to this date will be deleted.

 

Examples

Visual Basic.Net

'Method DeleteLogByDate

ftObj.DeleteLogByDate(New DateTime(2004, 1, 1))

 

C#

//Method DeleteLogByDate

ftObj.DeleteLogByDate(new DateTime(2004, 1, 1));

 

GetLogs

GetLogs

Get the log information from FuseTalk.

 

Return Type:  Log()

 

Name

Type

Description

StartDate

DateTime

The date the log entries will start on.

EndDate

DateTime

The date the log entries will end on.

Order

String

The order of the logs entries.

asc - Ascending
desc - Descending.

Forums

String

A comma-delimited list of forums you wish to retrieve the log entries for.

 

Examples

Visual Basic.Net

'Method GetLogs

Dim Logs() As Log = ftObj.GetLogs(New DateTime(2004, 1, 1), New DateTime(2004, 12, 31), "ASC", "1")

If Not Logs Is Nothing Then   

Dim LogEntry As Log    

For Each LogEntry In Logs        

MsgBox(LogEntry.LogText)

Next

End If

 

C#

//Method GetLogs

FuseTalk.API.Log[] Logs = ftObj.GetLogs(new DateTime(2004, 1, 1), new DateTime(2004, 12, 31), "ASC", "1");

if (Logs != null)

{

foreach (FuseTalk.API.Log LogEntry in Logs)

{

Interaction.MsgBox(LogEntry.LogText, 0, null);

}

}

 

InsertModeratorLog

InsertModeratorLog

This function inserts a log entry into the moderator logs.

 

Return Type:  n/a

 

Name

Type

Description

LogText

String

The text you want to insert in the log.

UserID

Integer

The ID of the user who you performed the action you want to insert.

ForumID

Integer

The ID of the forum that the action was performed on.

IPAddress

String

The IP Address of the user who performed the action.

 

Examples

Visual Basic.Net

'Method InsertModeratorLog

ftObj.InsertModeratorLog("User: administrator has delete topic id: 1", UserID, ForumID, "127.0.0.1")

 

C#

//Method InsertModeratorLog

ftObj.InsertModeratorLog("User: administrator has delete topic id: 1", UserID, ForumID, "127.0.0.1");