• Help with sv_loadingurl! using a website to add certain things
    20 replies, posted
Ok so I made a free website on wix.com and I realized that when you join it doesn't display the how many downloads you have left. How can I do that? I know you have to use HTML I tried adding a HTML widget and copying the code from the index.html resource\loading folder but it doesn't work. I am trying to make it to where it will show the how many downloads you have left and the things in this picture. That list the name, last joined, money (for darkrp), and the map. So it would be helpful if you could post a code. Please and thank you. The Flame Uhh I don't know how to upload the pic.
You'd have to make a PHP script to interface with a database that contains the player info. But sv_loadingurl is static iirc so it wouldn't work anyway.
[url]http://wiki.garrysmod.com/?title=Sv_loadingurl[/url] You have to send the steamid through the URL for e.g. http://yoursite.com/index.php?steamid={whatever} the link provide you with details on how to do so. Jetboy above already pointed out how to get the player's information, you have to use PHP to connect to your player database select the player by their steamid and get all the required information. Below is an example on how to show the renaming downloads etc, got it from [url]http://loading.garrysmod.com[/url] [code] <script type="text/javascript"> var iFilesNeeded = 0; var iFilesTotal = 0;a var bDownloadingFile = false; function SetFilesNeeded( iNeeded ) { iFilesNeeded = iNeeded; RefreshFileBox(); } function SetFilesTotal( iTotal ) { iFilesTotal = iTotal; RefreshFileBox(); } function DownloadingFile( filename ) { if ( bDownloadingFile ) { iFilesNeeded = iFilesNeeded - 1; RefreshFileBox(); } document.getElementById( "loadingtext" ).innerHTML = "Downloading " + filename; bCanChangeStatus = false; setTimeout( "bCanChangeStatus = true;", 1000 ); bDownloadingFile = true; } function SetStatusChanged( status ) { if ( bDownloadingFile ) { iFilesNeeded = iFilesNeeded - 1; bDownloadingFile = false; RefreshFileBox(); } document.getElementById( "loadingtext" ).innerHTML = status; bCanChangeStatus = false; setTimeout( "bCanChangeStatus = true;", 1000 ); } function RefreshFileBox() { document.getElementById( "files" ).innerHTML = "<img src='images/download.png' style='position: relative; top: 7px;'> " + iFilesNeeded + " downloads remaining"; if ( iFilesTotal > 0 ) document.getElementById( "files" ).style.visibility = 'visible'; else document.getElementById( "files" ).style.visibility = 'hidden'; } RefreshFileBox(); </script> [/code]
[QUOTE=kragmars102;33987830][url]http://wiki.garrysmod.com/?title=Sv_loadingurl[/url] You have to send the steamid through the URL for e.g. http://yoursite.com/index.php?steamid={whatever} the link provide you with details on how to do so. Jetboy above already pointed out how to get the player's information, you have to use PHP to connect to your player database select the player by their steamid and get all the required information. Below is an example on how to show the renaming downloads etc, got it from [url]http://loading.garrysmod.com[/url] [code] <script type="text/javascript"> var iFilesNeeded = 0; var iFilesTotal = 0;a var bDownloadingFile = false; function SetFilesNeeded( iNeeded ) { iFilesNeeded = iNeeded; RefreshFileBox(); } function SetFilesTotal( iTotal ) { iFilesTotal = iTotal; RefreshFileBox(); } function DownloadingFile( filename ) { if ( bDownloadingFile ) { iFilesNeeded = iFilesNeeded - 1; RefreshFileBox(); } document.getElementById( "loadingtext" ).innerHTML = "Downloading " + filename; bCanChangeStatus = false; setTimeout( "bCanChangeStatus = true;", 1000 ); bDownloadingFile = true; } function SetStatusChanged( status ) { if ( bDownloadingFile ) { iFilesNeeded = iFilesNeeded - 1; bDownloadingFile = false; RefreshFileBox(); } document.getElementById( "loadingtext" ).innerHTML = status; bCanChangeStatus = false; setTimeout( "bCanChangeStatus = true;", 1000 ); } function RefreshFileBox() { document.getElementById( "files" ).innerHTML = "<img src='images/download.png' style='position: relative; top: 7px;'> " + iFilesNeeded + " downloads remaining"; if ( iFilesTotal > 0 ) document.getElementById( "files" ).style.visibility = 'visible'; else document.getElementById( "files" ).style.visibility = 'hidden'; } RefreshFileBox(); </script> [/code][/QUOTE] Can you help me do it because im having a hard time understanding how? I have the website already I just need help adding it. Add me on steam please. My steam name is The Flame
you're trying to add javascript to a flash site.
[QUOTE=zzlawlzz;33988512]you're trying to add javascript to a flash site.[/QUOTE] Then what site do you suggest me using?
If you can't read the simplest of code or use google then you'd be better of paying someone. No one here is going to code a whole site for you.
[QUOTE=kragmars102;33988575]If you can't read the simplest of code or use google then you'd be better of paying someone. No one here is going to code a whole site for you.[/QUOTE] You don't have to I know how to read and I know how to use goggle but the problem is im having trouble adding it. I said before I have a website already im just having trouble adding it!
Krag gave you as much help as you're probably going to receive. Either pay someone or use Google to its fullest extent.
[QUOTE=jetboy;33988649]Krag gave you as much help as you're probably going to receive. Either pay someone or use Google to its fullest extent.[/QUOTE] Well then who would like me to pay them to do it for me and for how much? [editline]31st December 2011[/editline] I just added it but it still doesn't work! [url]http://www.wix.com/jdtice9/foreverrp[/url] I put it on the bottom left of the box. It doesn't show up. I did a HTML wiget and it doesn't show in game!
you cant just expect to make something without any knowledge of what you are going to do. [editline]1st January 2012[/editline] also, you are going to have to either buy a shared hosting or find a free hosting.
[QUOTE=zzlawlzz;33989354]you cant just expect to make something without any knowledge of what you are going to do. [editline]1st January 2012[/editline] also, you are going to have to either buy a shared hosting or find a free hosting.[/QUOTE] What part of I ALREADY HAVE A WEBSITE DONT YOU GET?!? [editline]31st December 2011[/editline] And I am a particial coder
[QUOTE=jdticer;33989381]What part of I ALREADY HAVE A WEBSITE DONT YOU GET?!? [/QUOTE] Wix =/= shared hosting. [QUOTE=jdticer;33989381] And I am a particial coder[/QUOTE] And I'm the president of the United States.
[QUOTE=jdticer;33989381]What part of I ALREADY HAVE A WEBSITE DONT YOU GET?!? [editline]31st December 2011[/editline] And I am a particial coder[/QUOTE] like i said. You should know what you're doing before saying/doing anything.
[QUOTE=jetboy;33989460]Wix =/= shared hosting. And I'm the president of the United States.[/QUOTE] Why don't you quit being a dick and grow a pair! [editline]31st December 2011[/editline] [QUOTE=zzlawlzz;33989502]like i said. You should know what you're doing before saying/doing anything.[/QUOTE] You Too!
[QUOTE=jdticer;33989610]Why don't you quit being a dick and grow a pair! [editline]31st December 2011[/editline] You Too![/QUOTE] Are you 12? It's not hard to tell we're informing you with good stuff.
[QUOTE=zzlawlzz;33989648]Are you 12? It's not hard to tell we're informing you with good stuff.[/QUOTE] No im 16, if you have a problem there's something called turn the computer off or log off! [editline]31st December 2011[/editline] Im pretty sure a 12 year old can't create a custom server and a website! Even if the website isn't working as it should be. Im just trying to go beyond the point of being regular. Im trying to make it look somewhat professional is that a problem?
[QUOTE=jdticer;33989674]No im 16, if you have a problem there's something called turn the computer off or log off! [editline]31st December 2011[/editline] Im pretty sure a 12 year old can't create a custom server and a website! Even if the website isn't working as it should be. Im just trying to go beyond the point of being regular. Im trying to make it look somewhat professional is that a problem?[/QUOTE] I did. When I was 11 ~ 12. [editline]1st January 2012[/editline] As long as i didnt have a mic to speak on I did pretty well.
And im sorry im not understanding. Im have absolutely no experience with HTML and Java. Im more of a lua coder but im a ok lua coder im not to good and not to bad. So excuse me for wanting to do something and trying to get help and not understanding what people are saying. [editline]31st December 2011[/editline] [QUOTE=zzlawlzz;33989717]I did. When I was 11 ~ 12. [editline]1st January 2012[/editline] As long as i didnt have a mic to speak on I did pretty well.[/QUOTE] Well I did to but I never coded or made a website. Im pretty sure you didn't either! And if you did good for you. Just means you can learn fast. Im not that type of person who learns fast at something that I know nothing about!
I don't want mad cow :v:. [thumb]http://www.mcskinsearch.com/ul/images/1325385681.png[/thumb] But in all seriousness wix is not professional at all! Do you even have a mysql database and have darkrp configured for it?
I mean is it really that much to ask for? What I am saying is pretty much all I want is the download thing to show with my website. I want the other stuff to but I am fine if I only get the download thing to work, but for some reason it won't so that's why I need help! [editline]31st December 2011[/editline] [QUOTE=hacksore;33989799]I don't want mad cow :v:. [thumb]http://www.mcskinsearch.com/ul/images/1325385681.png[/thumb] But in all seriousness wix is not professional at all! Do you even have a mysql database and have darkrp configured for it?[/QUOTE] Well not really because im not familiar with mysql [editline]31st December 2011[/editline] [QUOTE=jdticer;33989810]I mean is it really that much to ask for? What I am saying is pretty much all I want is the download thing to show with my website. I want the other stuff to but I am fine if I only get the download thing to work, but for some reason it won't so that's why I need help! [editline]31st December 2011[/editline] Well not really because im not familiar with mysql[/QUOTE] And I know right now it doesn't but im trying to get familiar with it so I can make a better one later! [editline]31st December 2011[/editline] [url]http://photoupload.org/uploads/13253873811.jpg[/url] This is what I wanted in the first place but I know no one will just give me the code
Sorry, you need to Log In to post a reply to this thread.