• Registration/Login Form
    4 replies, posted
I am working on a GMOD server for my website GamePiranha.com. I saw a login/register form that was on a F1 menu for another site. I would really like to know if I can get some sort of thing like that for my site. If you need any more details on what I mean than please feel free to post here.
To bad your guys forums use phpbb, Well any who [url]http://www.facepunch.com/showthread.php?t=960186[/url]
Why don't you just use a browser? [lua] function Html() local Browser = vgui.Create( "DFrame" ) Browser:SetPos( 0,0 ) Browser:SetSize( ScrW(), ScrH() ) Browser:SetTitle( "GamePiranha.com" ) Browser:SetVisible( true ) Browser:SetDraggable( false ) Browser:ShowCloseButton( true ) Browser:MakePopup() local start = "http://GamePiranha.com" --Set this to what ever the url is for the signup page. local html = vgui.Create( "HTML", Browser ) html:SetPos(5,40) html:SetSize(ScrW()-10, ScrH()-45) html:StartAnimate(45) html:Refresh(true) html:OpenURL(start) local RefreshButton = vgui.Create( "DButton", Browser ) RefreshButton:SetPos( 55, 4 ) RefreshButton:SetSize( 45, 15 ) RefreshButton:SetText( "Refresh" ) RefreshButton.DoClick = function() html:Refresh() end end concommand.Add( "gpbrowser", Html ) [/lua]
Thank you, that'll work too.
np
Sorry, you need to Log In to post a reply to this thread.