2.3  SDK Function Examples

2.3.1  Retrieving a topic title

This function requires certain parameters

echo md_get_topic_title(md_one_database,$md_db_extension,$md_cat_id,$md_topic_id,0,$dbhr,$dbhw);

2.3.2  Retrieve the number of registered members on a given forum or on all the forums hosted by the server.

echo md_get_total_registered($dbhr,$dbhw,$md_forum_id);

2.3.3  Activating email notification

If the action has been successfully performed, it will return the value “true”. Otherwise, it will return the value “false”

md_activate_mail($md_db_extension,md_one_database,$md_topic_id,$md_cat_id,$md_user_id,$dbhr,$dbhw);

2.3.4  Create a new topic

The parameters below are optional. If you do not precise their functions, their default value will be used

This function will return a PHP table that contains 2 values, the ID of the newly-created topic and the ID of the first message of this topic

2.3.5  Add a reply to a topic

This function returns the ID of the posted message.


2.2 Essential Information3 SDK Tutorial