• gForum - Forum Registration (SMF, MyBB, XenForo)
    211 replies, posted
Hello. I like this addon that you've made. But could you maybe try and add support for phpBB3, if you're still working on developing this addon. Thanks :)
How would I go about stopping gForum from forcing users to link on join? I just cannot figure it out, without breaking shit.
-Ability was added to repo-
Aide, are you doing any further work on this?
Possibly next week.
Awesome! What sort of work? Also, I'm assuming that goes in cl_init.lua. EDIT: A few errors: [CODE] Query4 errored! Query:FUNCTION versound_xf.SHA2 does not exist Error:[Query:15B48598] [Sidewaykill|2|STEAM_0:1:28562039] Lua Error: [ERROR] addons/gforum/lua/autorun/client/cl_init.lua:781: bad argument #1 to 'OpenURL' (string expected, got nil) 1. OpenURL - [C]:-1 2. DoClick - addons/gforum/lua/autorun/client/cl_init.lua:781 3. OnMouseReleased - lua/vgui/dlabel.lua:206 4. unknown - lua/vgui/dimagebutton.lua:125 [Sidewaykill|2|STEAM_0:1:28562039] Lua Error: [ERROR] addons/gforum/lua/autorun/client/cl_init.lua:772: attempt to call upvalue 'Users' (a userdata value) 1. DoClick - addons/gforum/lua/autorun/client/cl_init.lua:772 2. OnMouseReleased - lua/vgui/dlabel.lua:206 3. unknown - lua/vgui/dimagebutton.lua:125 [/CODE] Also, where do I put that code?
[CODE] hook.Add("PlayerInitialSpawn", "PlayerInitialSpawn.GetUserID", function( p ) umsg.Start("cl_forum", p) umsg.String(Forum) umsg.End() p.Register = false p.Halt = false //GetUserID(p) umsg.Start("cl_setinfo", p) umsg.String("Not Registered") umsg.String("Not Registered") umsg.String("www.google.com") umsg.End() end) [/CODE] Still can't figure where that goes? Where do I put it?
-Ability was added to repo-
Added the ability to disable forced registration. svn [url]https://garryforum.googlecode.com/svn/trunk/[/url] zip [url]https://code.google.com/p/garryforum/downloads/list[/url] At this moment I'm not aware of any bugs.
[code]Failed to connect to the database. Writing cfg/banned_user.cfg. [ERROR] addons/gforum/lua/autorun/server/sv_init.lua:33: attempt to index local 'query1' (a nil value) 1. unknown - addons/gforum/lua/autorun/server/sv_init.lua:33 Timer Failed! [Simple][@addons/gforum/lua/autorun/server/sv_init.lua (line 31)] SQLite query returned nil. This is normal if you're performing things like UPDATE and INSERT queries.[/code] I could really use some help with this. Using SMF, and I've done the config's all correctly, and checked the whitelist for SQL, and made sure the SQL pass/user/db was correct.
[QUOTE=rawr5852;40382310]Failed to connect to the database.[/QUOTE] That's your problem. Your not connected and it's trying to send a query. Make sure you host allows external connections.
Accept my Steam invite, I need to ask a few questions. It should be working, I think I may have done something wrong, but i'm not sure what.
[CODE] [ERROR] addons/gforum/lua/autorun/server/sv_init.lua:73: Tried to use a NULL entity! 1. ChatPrint - [C]:-1 2. unknown - addons/gforum/lua/autorun/server/sv_init.lua:73 Timer Failed! [Reminder][@addons/gforum/lua/autorun/server/sv_init.lua (line 72)] Query4 errored! Query:FUNCTION versound_xf.SHA2 does not exist Error:[Query:198B7DF8] Query4 errored! Query:FUNCTION versound_xf.SHA2 does not exist Error:[Query:19772F00] [/CODE] What's up with that? I have force registration off, and I use XenForo, and I need it to set user groups.
[QUOTE=Sidewaykill;40386363][CODE] [ERROR] addons/gforum/lua/autorun/server/sv_init.lua:73: Tried to use a NULL entity! 1. ChatPrint - [C]:-1 2. unknown - addons/gforum/lua/autorun/server/sv_init.lua:73 Timer Failed! [Reminder][@addons/gforum/lua/autorun/server/sv_init.lua (line 72)] Query4 errored! Query:FUNCTION versound_xf.SHA2 does not exist Error:[Query:198B7DF8] Query4 errored! Query:FUNCTION versound_xf.SHA2 does not exist Error:[Query:19772F00] [/CODE] What's up with that? I have force registration off, and I use XenForo, and I need it to set user groups.[/QUOTE] Based on that post the "player" is nil. My questions are, What addons you running. Lan or Dedicated server. Are you using the latest repo.
Dedicated, yes I'm using REV11. I'm using ULX, ULIB, VersoundXP (a custom store/XP system) and VersoundVoting, a custom map voting system, but I am trying to get this working on our Testing Server, which has no VersoundXP or VersoundVoting. [url]http://www.gametracker.com/server_info/103.23.148.108:29015/[/url] We also use SourceBans, a custom scoreboard and HUD. More errors: [CODE] [Sidewaykill|3|STEAM_0:1:28562039] Lua Error: [ERROR] addons/gforum/lua/autorun/client/cl_init.lua:757: attempt to call upvalue 'Users' (a userdata value) 1. DoClick - addons/gforum/lua/autorun/client/cl_init.lua:757 2. OnMouseReleased - lua/vgui/dlabel.lua:206 3. unknown - lua/vgui/dimagebutton.lua:125 Query4 errored! Query:FUNCTION versound_xf.SHA2 does not exist Error:[Query:19772CD0] [/CODE]
[QUOTE=Sidewaykill;40386747]Dedicated, yes I'm using REV11. I'm using ULX, ULIB, VersoundXP (a custom store/XP system) and VersoundVoting, a custom map voting system, but I am trying to get this working on our Testing Server, which has no VersoundXP or VersoundVoting. [url]http://www.gametracker.com/server_info/103.23.148.108:29015/[/url] We also use SourceBans, a custom scoreboard and HUD. More errors: [CODE] [Sidewaykill|3|STEAM_0:1:28562039] Lua Error: [ERROR] addons/gforum/lua/autorun/client/cl_init.lua:757: attempt to call upvalue 'Users' (a userdata value) 1. DoClick - addons/gforum/lua/autorun/client/cl_init.lua:757 2. OnMouseReleased - lua/vgui/dlabel.lua:206 3. unknown - lua/vgui/dimagebutton.lua:125 Query4 errored! Query:FUNCTION versound_xf.SHA2 does not exist Error:[Query:19772CD0] [/CODE][/QUOTE] The Users button was a feature that was never added. Something you have must of redefined the function ChatPrint. I'll double check the timer to make sure the player is being passed.
It's probably that someone has redefined the function. I'll try on another server and get back to you, and maybe try and see what's up with the timer.
[code] Added users panel. Changed "URL". Removed reminder timer. [/code] *[b] MAKE SURE YOUR URL IS CORRECT IN SV_CONFIG.LUA [/b]* *[b] OTHER WISE YOUR USERS PANEL WONT DIRECT USERS TO THEIR PROFILE WHEN CLICKING ON A USER [/b]* svn [url]https://garryforum.googlecode.com/svn/trunk/[/url] zip [url]https://code.google.com/p/garryforum/downloads/list[/url] I'm not aware of any bugs. *[b] MAKE SURE YOUR URL IS CORRECT IN SV_CONFIG.LUA [/b]* *[b] OTHER WISE YOUR USERS PANEL WONT DIRECT USERS TO THEIR PROFILE WHEN CLICKING ON A USER [/b]*
That is very cool. How do you feel about XenForo, Aide? I've been looking into it and considering moving over to it and ditching MyBB which has been a major pain in the nuts lately.
[QUOTE=MonkeysLP;40390766]That is very cool. How do you feel about XenForo, Aide? I've been looking into it and considering moving over to it and ditching MyBB which has been a major pain in the nuts lately.[/QUOTE] XenForo is very good. You can try a demo of the [URL="http://xenforo.com/demo/"]here[/URL] and if you have any questions you can ask in the pre-sales forum.
I don't know much about XenForo. MyBB is a pain but I've always like it's security. But that can vary if you use old or inscure plugins.
I'm still receiving this error: [CODE] Query4 errored! Query:FUNCTION versound_xf.SHA2 does not exist Error:[Query:1C198598] [/CODE]
[QUOTE=Sidewaykill;40393379]I'm still receiving this error: [CODE] Query4 errored! Query:FUNCTION versound_xf.SHA2 does not exist Error:[Query:1C198598] [/CODE][/QUOTE] I can't do anything If I don't know the line the error is related to.
[QUOTE=Sidewaykill;40393379]I'm still receiving this error: [CODE] Query4 errored! Query:FUNCTION versound_xf.SHA2 does not exist Error:[Query:1C198598] [/CODE][/QUOTE] Looked at that again it's related to hashing but I need the line it errors on to do my own tests.
Expanding on Sidewaykill's error, I seem to be having a similar issue. [CODE] Query1 errored! Query:Table 'smf.smf_link' doesn't exist Error:[Query:1F2F1AE8] [/CODE] Which I'm assuming would be something to do with the Syntax on sv_init.lua:33, but that looks fine to me... And I'm running MySQL 5.5.29, if you needed to know that. [editline]20th May 2013[/editline] And I fixed it, nevermind... It seems restarting the server was all it took. :v:
[QUOTE=WinterPhoenix;40710454]Expanding on Sidewaykill's error, I seem to be having a similar issue. [CODE] Query1 errored! Query:Table 'smf.smf_link' doesn't exist Error:[Query:1F2F1AE8] [/CODE] Which I'm assuming would be something to do with the Syntax on sv_init.lua:33, but that looks fine to me... And I'm running MySQL 5.5.29, if you needed to know that. [editline]20th May 2013[/editline] And I fixed it, nevermind... It seems restarting the server was all it took. :v:[/QUOTE] What your forum table prefix.
It keeps telling me that my password doesn't match for some reason. It lets me make an account and it does make the account my my forum, but when I try to log in to my real account in game it just keeps saying password does not match. Edit: It seems it was only the first forum account that wouldn't work. (I hope) I also have another issue. The only way to get your group from the forums is to type !link, is there a way for this addon to automatically do it? Like so I don't have to type !link every time I join the game.
[QUOTE=Vilusia;40722593]a way for this addon to automatically do it[/QUOTE] [lua] // Register is whether you like to force user to register. Register = true [/lua] [lua] hook.Add("PlayerInitialSpawn", "PlayerInitialSpawn.GetUserID", function( p ) if Register then GetUserID(p) else -- end end) [/lua]
Thanks
Issue here I am getting this error: [code][ERROR] addons/gforum/lua/autorun/client/cl_init.lua:849: bad argument #1 to 'OpenURL' (string expected, got nil) 1. OpenURL - [C]:-1 2. DoClick - addons/gforum/lua/autorun/client/cl_init.lua:849 3. OnMouseReleased - lua/vgui/dlabel.lua:206 4. unknown - lua/vgui/dimagebutton.lua:125 [/code]
Sorry, you need to Log In to post a reply to this thread.