• gForum - Forum Registration (SMF, MyBB, XenForo)
    211 replies, posted
I'm sure you could run it on a server, if you have the coding know-how. I'll be running this on my server, if there are any bugs I'll be sure to let you know.
Oddly enough when I try to use this on my server everyone spawns as joining/connecting, DarkRP commands cease to work, and everyone's money is reset. It may be another addon conflicting but this problem has been consistent in two of my servers so far.
This isn't working for Gmod13, is it? Or am I messing something up? [code] [ERROR] addons/gforum/lua/autorun/server/sv_meta.lua:987: attempt to index local 'query1' (a nil value) 1. GetUserID - addons/gforum/lua/autorun/server/sv_meta.lua:987 2. fn - addons/gforum/lua/autorun/server/sv_init.lua:61 3. unknown - addons/ulib/lua/ulib/shared/hook.lua:183 [/code] and [code] [ERROR] addons/gforum/lua/autorun/server/sv_init.lua:27: attempt to index local 'query1' (a nil value) 1. unknown - addons/gforum/lua/autorun/server/sv_init.lua:27 [/code]
It works. Your doing something wrong if it's not.
Added the error. Any clues? I noticed I got the same problem as the guy above me with the DarkRP issues. I have the mysqloo for Gmod13. When I use sv_register to pop the window up, and try to register, I get: [code] [ERROR] addons/gforum/lua/autorun/server/sv_meta.lua:155: attempt to index local 'query1' (a nil value) 1. RegisterUser - addons/gforum/lua/autorun/server/sv_meta.lua:155 2. unknown - addons/gforum/lua/autorun/server/sv_cmd.lua:4 3. unknown - lua/includes/modules/concommand.lua:69 [/code] Just noticed this: HTTP failed - ISteamHTTP isn't available!
Make sure your double check and review the following. 1. Checking sv_config.lua. Make sure all the information is correct. [thumb]http://puu.sh/1PAr4[/thumb] 2. Checking sv_init.lua. This file contains the information to connect to mysql make sure it's correct. [thumb]http://puu.sh/1PApa[/thumb] 3. Check with your web host make sure they allow external connections to query your database. You can do this by submitting a support ticket. If you use cPanel their is usually a white list you have to add your game server's ip to that list. 4. If you still experiencing problems and you did all the above steps. Then list what's on your server in terms of gamemode and addons. If your using mysqloo for something else make sure to post what else.
Is vBulletin still not supported? Will it be?
[QUOTE=Aide;39275105]Make sure your double check and review the following. 1. Checking sv_config.lua. Make sure all the information is correct. [thumb]http://puu.sh/1PAr4[/thumb] 2. Checking sv_init.lua. This file contains the information to connect to mysql make sure it's correct. [thumb]http://puu.sh/1PApa[/thumb] 3. Check with your web host make sure they allow external connections to query your database. You can do this by submitting a support ticket. If you use cPanel their is usually a white list you have to add your game server's ip to that list. 4. If you still experiencing problems and you did all the above steps. Then list what's on your server in terms of gamemode and addons. If your using mysqloo for something else make sure to post what else.[/QUOTE] I've spent ALL NIGHT LONG looking for a MySQL host that allows remote access, turns out I had to rent a webhosting + domain. And I did that all just for this addon xD
Well done, I've tested it and it works fine for me. I don't use it as it forces a player to join/link a forums account, thus losing players. I'd love it if there was an option to use !link to link the players account or something. I'm guessing vBulletin won't be supported, because the creator of gForum said he could not find the hash.
Any idea why this messes DarkRP up, like the guy a few posts above mentioned? Meh found it. If you're not using a prefix in your database you're screwed. If you leave the "" prefix empty at the config file, it still adds a "_" to it. For the good case i'll just reinstall my forum software, so it uses a prefix. (Maybe usefull for in the future.) Works now :) Edit: Another error pops up when finishing registration... [code] addons/forumconnect/lua/autorun/server/sv_meta.lua:158: attempt to index local 'Args' (a nil value) [/code] = [lua] local Args = query:getData()[1] or nil if Args or Args['name'] == user then umsg.Start("cl_register", self) umsg.End() umsg.Start("cl_error", self) umsg.String("Registeration Error;This username is taken.") umsg.End() self.Halt = true timer.Simple(3, function() // query is to fast because the return is so slow self.Halt = false [/lua]
Anyway you can make it for the [url]www.webs.com[/url] ? The forums come with the website so it's just simply registering on the site.
[QUOTE=darklom;39298722]Anyway you can make it for the [url]www.webs.com[/url] ? The forums come with the website so it's just simply registering on the site.[/QUOTE] Unless you have direct access to the database it's not possible.
Hey [B][URL="http://www.facepunch.com/member.php?u=275208"]Aide[/URL][/B], amazing addon! This is great! But I have a question. I've read every page and didn't find anyone who asked this before. Also, I don't know if this is already included or if it's easy to add, but: Could it be possible to run serverside-commands if a user has connected his account to the game? I mean the following: A user plays on our server and has the rank [User] (I'm using [B][URL="http://ulyssesmod.net/"]ULX[/URL][/B]). Also, the server is running [B][URL="http://www.facepunch.com/showthread.php?t=1228438"]PointShop[/URL][/B]. Now, we'll tell the player that registering in the forum promotes him to the rank [Player] and gives him 100 points through the PointShop. These are the commands that are needed I think: [B]ULX promotion:[/B] [QUOTE]ulx adduser [USERNAME] [GROUP][/QUOTE] or with Steam-ID [QUOTE]ulx adduserid [STEAM-ID] [GROUP][/QUOTE] [I]Example:[/I] Username: [I]ulx adduser "Swagfag" "Player"[/I] Steam-ID: [I]ulx adduserid "STEAM:1234567890" "Player"[/I] [B]PointShop Points-Giving[/B] [QUOTE]PS_GivePoints[/QUOTE] I don't know what comes after this, but that's the command for sure. Example (as far as I know): PS_GivePoints "Swagfag" 10 The server could run this serverside command normally. Or gForum just edits the table in the MySQL-Database of the PointShop (PointShop allows to use MySQL). If you could do that in anyway, god this would be amazing! And if this is already included, ignore this post or tell me how to do this because I would find this veeery useful. And another little suggestion: If gForum detects that the player has made more posts in the forum since the last time he joined (For example: [I]Joined 2 days ago -> 10 Forum Posts, Joins Today-> 15 Posts[/I]) the player will get points (also for PointShop) for each post he made (for example for each post 2 points: [I]2 Days ago -> 0 Points, Today -> 10 Points[/I]). Once again, amazing addon! Keep up that great work! Thank you, [B]DigitalClark[/B].
Google MySQLOO V8 and read that, you will be able to make your own script using that documentation.
[QUOTE=Sidewaykill;39324027]Google MySQLOO V8 and read that, you will be able to make your own script using that documentation.[/QUOTE] Oh, ok. Nice, I'm going to experiment with this :-). Thank you.
Any plans to make this support phpbb?
[QUOTE=Crissiejjj;39276914]words[/QUOTE] The underscore is there because most forum software by default use an underscore after the prefix. I have it in the addon as a result of 1. being used widely and often enforced 2. when original testing was conducted in some situations I experienced some bad query's when the underscore was placed in the config file instead of in each query. [QUOTE=DigitalClark;39301821][i]long post[/i][/QUOTE] gForum is an addon to allow you to do that. The feature you see in gForum are features that all forum software have and support. I'm not gonna force something like this on users. This is something you can do however I suggest posting in the Lua Scripters Hire Thread. [QUOTE=Neddy;39327219]Any plans to make this support phpbb?[/QUOTE] There was in plans and in fact at one time I was working on it. I will extend support for vBulletin and phpBB but this won't happen anytime soon as I'm currently dealing with technical issues as a result of RMA.
Is there any chance of instead of forcing a player to link an account, they can use a !link etc. command?
[QUOTE=Sidewaykill;39350104]Is there any chance of instead of forcing a player to link an account, they can use a !link etc. command?[/QUOTE] -Make it so the pop up doesnt appear on join -Make a console command in your gamemode that works via "!link" -make the console command open tje gForum window
Noting to state, but I have a problem with the addon, again. [code]Successfully to connected to database. Client "(GPi) Devul" connected (lolno IP for you). Query1 errored! Query:MySQL server has gone away Error:[Query:1B688ED0][/code] Using MyBB, it connects perfectly but when i try joining, bam. That error. I restarted too - many times.
I keep getting this ERROR: Timer Failed! [Simple][@addons/gforum/lua/autorun/server/sv_init.lua (line 24)] ServerLog: X-Lenny Flacko (STEAM_0:1:24989758) is Authed ServerLog: X-Lenny Flacko (STEAM_0:1:24989758) Spawned for the first time [ERROR] addons/gforum/lua/autorun/server/sv_meta.lua:916: attempt to index local 'query1' (a nil value) 1. GetUserID - addons/gforum/lua/autorun/server/sv_meta.lua:916 2. fn - addons/gforum/lua/autorun/server/sv_init.lua:61 3. unknown - addons/ulib/lua/ulib/shared/hook.lua:183 But I also get this.... [gForum] Server -> Commands loaded. [gForum] Server -> Variables loaded. [gForum] Server -> Commands loaded. [gForum] Server -> Variables loaded. [gForum] Server -> Player meta's loaded. [gForum] Server -> Player meta's loaded. Help pleasee.....
[QUOTE=X-Flamingo;39655713]I keep getting this ERROR: Timer Failed! [Simple][@addons/gforum/lua/autorun/server/sv_init.lua (line 24)] ServerLog: X-Lenny Flacko (STEAM_0:1:24989758) is Authed ServerLog: X-Lenny Flacko (STEAM_0:1:24989758) Spawned for the first time [ERROR] addons/gforum/lua/autorun/server/sv_meta.lua:916: attempt to index local 'query1' (a nil value) 1. GetUserID - addons/gforum/lua/autorun/server/sv_meta.lua:916 2. fn - addons/gforum/lua/autorun/server/sv_init.lua:61 3. unknown - addons/ulib/lua/ulib/shared/hook.lua:183 But I also get this.... [gForum] Server -> Commands loaded. [gForum] Server -> Variables loaded. [gForum] Server -> Commands loaded. [gForum] Server -> Variables loaded. [gForum] Server -> Player meta's loaded. [gForum] Server -> Player meta's loaded. Help pleasee.....[/QUOTE] Does it say [code]Successfully to connected to database.[/code] When you connect, in the Console? [QUOTE=Garrison;39366755] -make the console command open tje gForum window[/QUOTE] There is a Console Command. It's called sv_register.
I get Error - Starting new message without ending the old one! [ERROR] lua/autorun/server/sv_meta.lua:11: Tried to use a NULL entity! 1. Start - [C]:-1 2. RegisterUser - lua/autorun/server/sv_meta.lua:11 3. unknown - lua/autorun/server/sv_cmd.lua:4 4. unknown - lua/includes/modules/concommand.lua:69
[QUOTE=X-Flamingo;39657824]I get Error - Starting new message without ending the old one! [ERROR] lua/autorun/server/sv_meta.lua:11: Tried to use a NULL entity! 1. Start - [C]:-1 2. RegisterUser - lua/autorun/server/sv_meta.lua:11 3. unknown - lua/autorun/server/sv_cmd.lua:4 4. unknown - lua/includes/modules/concommand.lua:69[/QUOTE] Do you have the mysqloo module along with libmysql? ^^
[QUOTE=ideal-gaming;39028066]I am still wondering one thing, would it be possible instead of this popping up when you join you make it a command like "!signup" or "!signin" ?[/QUOTE] just still wondering
[QUOTE=ideal-gaming;39673661]just still wondering[/QUOTE] Find the PlayerInitialSpawn hook and replace it by a player chat hook that checks if they write !signup or !signin
[QUOTE=mib999;39670397]Do you have the mysqloo module along with libmysql? ^^[/QUOTE] Yes I do, The 'mysqloo' is in "lua/bin" & 'libmysql' is in "Orangebox"
Does anyone know if this Addon still works? I get Mysql server has gone away after like 5 seconds of server uptime.
Awesome! Seems very promising. I am going to use it! :)
[B]It links perfectly fine but when I click "view all users from forum"[/B] [CODE][ERROR] addons/garryforum/lua/autorun/client/cl_init.lua:757: attempt to call upvalue 'Users' (a userdata value) 1. DoClick - addons/garryforum/lua/autorun/client/cl_init.lua:757 2. OnMouseReleased - lua/vgui/dlabel.lua:206 3. unknown - lua/vgui/dimagebutton.lua:125 [/CODE]
Sorry, you need to Log In to post a reply to this thread.