Raised This Month: $12 Target: $400
 3% 

[ANY] ForumAPI (XenForo/XF, Invision/IPB, MyBB, Flarum support)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Bara
AlliedModders Donor
Join Date: Apr 2012
Location: Germany
Plugin ID:
6548
Plugin Version:
1.0.0
Plugin Category:
Technical/Development
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    This plugin will provide some functions to work with XenForo, Invision Community (IPB), MyBB and Flarum on SourceMod.
    Old 05-02-2019 , 17:48   [ANY] ForumAPI (XenForo/XF, Invision/IPB, MyBB, Flarum support)
    Reply With Quote #1

    You like this plugin or my work? Support is not a crime.

    Description:
    This plugin will provide some functions to work with XenForo, Invision Community (IPB), MyBB and Flarum on SourceMod. More natives and forwards coming soon, I'll update this thread later with more details.

    Requirements:
    Installation:
    • Open your databases.cfg (located in addons/sourcemod/configs) and add a new entry with the name "forum"
    • Upload forum_api.smx and all other plugins which you want (but read the requirements before).
    • Update "forum_api_software" in your config file (cfg/sourcemod/forum_api.cfg) to your forum software
    • I think that's all.


    ToDo:
    • Unread notifications
    • Replace ingame name with forum name
    • Get/Set User fields

    Credits:
    Drixevel - Original Author, this plugin based on his old version.


    Download:
    Sourcecode
    Plugin (Sourcecode included)
    __________________
    Discord (Bara#5006) | My Plugins (GitHub)
    You like my work? Support is not a crime.

    Last edited by Bara; 07-15-2021 at 12:29.
    Bara is offline
    Drixevel
    AlliedModders Donor
    Join Date: Sep 2009
    Location: Somewhere headbangin'
    Old 05-02-2019 , 19:00   Re: [ANY] XenForo - API + Plugins
    Reply With Quote #2

    neat
    Drixevel is offline
    Mr_panica
    Senior Member
    Join Date: Jan 2017
    Location: Russia, Saint-Petersburg
    Old 05-03-2019 , 07:01   Re: [ANY] XenForo - API + Plugins
    Reply With Quote #3

    Wow, that really will be useful!
    __________________
    Sorry for my English.
    Mr_panica is offline
    Bara
    AlliedModders Donor
    Join Date: Apr 2012
    Location: Germany
    Old 05-06-2019 , 14:18   Re: [ANY] XenForo - API + Plugins
    Reply With Quote #4

    API Plugin updated with new natives and forward.

    Natives:
    • XenForo_GetClientName(int client, const char[] name); - True if user is processed and found a name, false otherwise
    • XenForo_GetClientPrimaryGroup(int client); - Group ID will be returned
    • XenForo_GetClientSecondaryGroups(int client); - Group IDs will be returned as ArrayList, this array must be closed

    Forward:
    • XF_OnInfoProcessed(int
      client, const char[] name, int primarygroup, ArrayList secondarygroups); - don't close or delete secondarygroups
    __________________
    Discord (Bara#5006) | My Plugins (GitHub)
    You like my work? Support is not a crime.
    Bara is offline
    Bara
    AlliedModders Donor
    Join Date: Apr 2012
    Location: Germany
    Old 05-19-2019 , 09:58   Re: [ANY] XenForo - API [Admins + Credits included]
    Reply With Quote #5

    xenforo_admins added. It's possible to use this for VIPs (based on XF Groups) too with the included config file.
    xenforo_unread added. Simple plugin that posts every X minutes 2 messages with unread alerts and unread conversations.
    __________________
    Discord (Bara#5006) | My Plugins (GitHub)
    You like my work? Support is not a crime.

    Last edited by Bara; 05-19-2019 at 16:11.
    Bara is offline
    whtevrwt
    AlliedModders Donor
    Join Date: Apr 2015
    Old 05-20-2019 , 12:06   Re: [ANY] XenForo - API [Admins + Credits included]
    Reply With Quote #6

    Can confirm that this works as intended. Please be aware that this is originally compiled for SM1.10. If you want it for 1.9 then you need to recompile it.
    __________________
    whtevrwt is offline
    Bara
    AlliedModders Donor
    Join Date: Apr 2012
    Location: Germany
    Old 05-20-2019 , 17:01   Re: [ANY] XenForo - API [Admins + Credits included]
    Reply With Quote #7

    Quote:
    Originally Posted by whtevrwt View Post
    Can confirm that this works as intended. Please be aware that this is originally compiled for SM1.10. If you want it for 1.9 then you need to recompile it.
    Oh yeah. I forgot to change that, SM1.9 versions comes with the next update.
    __________________
    Discord (Bara#5006) | My Plugins (GitHub)
    You like my work? Support is not a crime.
    Bara is offline
    Bara
    AlliedModders Donor
    Join Date: Apr 2012
    Location: Germany
    Old 05-22-2019 , 19:26   Re: [ANY] XenForo - API [Admins + Credits included]
    Reply With Quote #8

    Added:
    • native StringMap XenForo_GetUserFields();
    • native StringMap XenForo_GetClientUserFields(int client);
    • forward void XF_OnUserFieldsProcessed(int client, StringMap userfields);

    Next changes will be the support for different forum softwares like Invision and WoltLab. If you run another software, let me know (Steam Integration/Login must be required) - Paid stuff can't be added, except you can provide an test installation.
    __________________
    Discord (Bara#5006) | My Plugins (GitHub)
    You like my work? Support is not a crime.

    Last edited by Bara; 05-22-2019 at 19:27.
    Bara is offline
    Bara
    AlliedModders Donor
    Join Date: Apr 2012
    Location: Germany
    Old 06-29-2019 , 06:41   Re: [ANY] ForumAPI [Admins + Credits included]
    Reply With Quote #9

    New update is out.
    • Plugin renamed from "Xenforo-API" to "ForumAPI"
    • Support for Invision Community (IPB)
    • Support for MyBB
    • Renamed all native and forward prefix from XenForo_ to Forum_
    • Added Natives: Forum_LogMessage and Forum_IsLoaded
    • Added credits plugin
    __________________
    Discord (Bara#5006) | My Plugins (GitHub)
    You like my work? Support is not a crime.

    Last edited by Bara; 06-29-2019 at 06:42.
    Bara is offline
    Mr_panica
    Senior Member
    Join Date: Jan 2017
    Location: Russia, Saint-Petersburg
    Old 07-24-2019 , 19:27   Re: [ANY] ForumAPI (XenForo/XF, Invision/IPB, MyBB support)
    Reply With Quote #10

    After restarting the server, and before changing the map, the admin group is not applied to the players.
    Am I alone with this problem?
    __________________
    Sorry for my English.
    Mr_panica is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 01:49.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode