0 Members and 2 Guests are viewing this topic.
If videos are not working remove the "http://" part, because apperently garry broke comment blocking and when you input some thing like this...Code: [Select]http://www.youtube.com/watch?v=OFUdKVN4ivQthe server sees this...Code: [Select]http:Other wise it should work unless your getting a plugin related error. ( Probably meaning you need to install or update flash player. )
http://www.youtube.com/watch?v=OFUdKVN4ivQ
http:
local Panel = vgui.Create( "DPanel" )Panel:SetSize( 500, 500 )Panel:Center()local HTML = vgui.Create( "HTML", Panel )HTML:Dock( FILL )
*edit* As it turns out I can not give Karma.. so +1 Virtual Karma for you! Maybe one of the UStaff guys can make it official.
Would someone be able to post motdmenu.lua with this fix? I don't have a clue when it comes to lua.
I have fixed the issue in motdmenu.lua and am finishing up some changes in XGUI, I'm going to try my hardest to get it released or at least pushed to SVN by tonight.
function ulx.showMotdMenu() local window = vgui.Create( "DFrame" ) if ScrW() > 640 then -- Make it larger if we can. window:SetSize( ScrW()*0.9, ScrH()*0.9 ) else window:SetSize( 640, 480 ) end window:Center() window:SetTitle( "ULX MOTD" ) window:SetVisible( true ) window:MakePopup() local panel = vgui.Create( "DPanel", window ) local html = vgui.Create( "HTML", panel ) local button = vgui.Create( "DButton", window ) button:SetText( "Close" ) button.DoClick = function() window:Close() end button:SetSize( 100, 40 ) button:SetPos( (window:GetWide() - button:GetWide()) / 2, window:GetTall() - button:GetTall() - 10 ) panel:SetSize( window:GetWide() - 20, window:GetTall() - button:GetTall() - 50 ) panel:SetPos( 10, 30 ) html:Dock( FILL ) if not isUrl then html:SetHTML( file.Read( "ulx/motd.txt" ) ) else html:OpenURL( url ) endend
Whoo okay, turns out I have more to do than I thought, so we won't be pushing tonight lol. Here is the ulx.showMotdMenu() function from the motdmenu.lua that I fixed:\ulx\lua\ulx\modules\cl\motdmenu.lua line 6Code: [Select]function ulx.showMotdMenu() local window = vgui.Create( "DFrame" ) if ScrW() > 640 then -- Make it larger if we can. window:SetSize( ScrW()*0.9, ScrH()*0.9 ) else window:SetSize( 640, 480 ) end window:Center() window:SetTitle( "ULX MOTD" ) window:SetVisible( true ) window:MakePopup() local panel = vgui.Create( "DPanel", window ) local html = vgui.Create( "HTML", panel ) local button = vgui.Create( "DButton", window ) button:SetText( "Close" ) button.DoClick = function() window:Close() end button:SetSize( 100, 40 ) button:SetPos( (window:GetWide() - button:GetWide()) / 2, window:GetTall() - button:GetTall() - 10 ) panel:SetSize( window:GetWide() - 20, window:GetTall() - button:GetTall() - 50 ) panel:SetPos( 10, 30 ) html:Dock( FILL ) if not isUrl then html:SetHTML( file.Read( "ulx/motd.txt" ) ) else html:OpenURL( url ) endend*Disclaimer! Code was not really approved by Megiddo and may be slightly changed before fix is released! But it still should work just fine
LX version 3.54 loaded.[@ulib\client\cl_util.lua:9] Received bad RPC, invalid function (ulx.rcvMotd)!