AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] ForumAPI (XenForo/XF, Invision/IPB, MyBB, Flarum support) (https://forums.alliedmods.net/showthread.php?t=315960)

Bara 05-02-2019 17:48

[ANY] ForumAPI (XenForo/XF, Invision/IPB, MyBB, Flarum support)
 
You like this plugin or my work? Support is not a crime.
https://www.paypalobjects.com/en_US/..._donate_SM.gif

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)

Drixevel 05-02-2019 19:00

Re: [ANY] XenForo - API + Plugins
 
neat

Mr_panica 05-03-2019 07:01

Re: [ANY] XenForo - API + Plugins
 
Wow, that really will be useful!

Bara 05-06-2019 14:18

Re: [ANY] XenForo - API + Plugins
 
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

Bara 05-19-2019 09:58

Re: [ANY] XenForo - API [Admins + Credits included]
 
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.

whtevrwt 05-20-2019 12:06

Re: [ANY] XenForo - API [Admins + Credits included]
 
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.

Bara 05-20-2019 17:01

Re: [ANY] XenForo - API [Admins + Credits included]
 
Quote:

Originally Posted by whtevrwt (Post 2652402)
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. :up:

Bara 05-22-2019 19:26

Re: [ANY] XenForo - API [Admins + Credits included]
 
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.

Bara 06-29-2019 06:41

Re: [ANY] ForumAPI [Admins + Credits included]
 
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

Mr_panica 07-24-2019 19:27

Re: [ANY] ForumAPI (XenForo/XF, Invision/IPB, MyBB support)
 
After restarting the server, and before changing the map, the admin group is not applied to the players.
Am I alone with this problem?


All times are GMT -4. The time now is 14:19.

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