Jump to content
Existing user? Sign In

Sign In



Sign Up
Search In
  • More options...
Find results that contain...
Find results in...
Fuck

does anyone know how to get a rs gold selling website template?

Recommended Posts

Hey,

does anyone know how to get a template with the price calculator in it?

 

or how do people make price calculators on their website?

 

 

anyone that can help me out? I want to start a gold selling website but i don't know php or html so i can't make the website.

Share this post


Link to post
Share on other sites

Try coming up with a concept, outlining the features your website would need, and ask for it in a more concise format. It's really hard to help someone (Not saying that I would either way) that doesn't even know what they need help with.

Share this post


Link to post
Share on other sites

Most of the time they're made by freelancers and sometimes have built in modules that are made specifically for them.

Share this post


Link to post
Share on other sites

This quote should lead you to where you're trying to get:

Quote

I want to start a gold selling website but i don't know php or html so i can't make the website.

You should start by learning those, i'll give you a head start, this is a basic sample of what (I imagine) a gold-to-usd converter would look like. Html for the base, php for the basic logic. Want to make it dynamic, no page refreshing? Look up javascript and learn that too. 

<!doctype html>
<html>
<head>
  
<title> My awesome gold selling site </title>
 
    <style>
        input, select {
            padding: 3px;
            margin: 3px;
            width: 200px; 
            border: 1px solid grey;
            /* note, it's not a good idea to determine widths using pixels due to different 
			monitor resolutions and phones and such */
        }
    </style>
	<!-- link your CSS here and such -->
</head>
<body>
<h3>Gold to USD Calculator</h3>
	<form method="post">
		<select name="gameType">
			<option value="osrs"> OSRS Gold</option>
			<option value="rs3"> RS3 Gold </option>
		</select><br>
		<input type="number" min="0" name="goldAmount" placeholder="Amount of gold" required><br>
		<input type="submit" value="Convert" name="submit">
	</form>
	
	<?php
		  if (isset($_POST["gameType"]) && isset($_POST["goldAmount"])){ //checks if the form was filled out properly

			  /* post is the method the form used to send value from the client to the server
			  these values get stored in a superglobal variable called $_POST. 
			  You can usually spot superglobal variables by checking their prefix, which is by default $_, you can read 
			  more about superglobal variables here: https://stackoverflow.com/documentation/php/3392/superglobal-variables-php#t=201710021133189423951 */

			  $gold = $_POST["goldAmount"];
			  $game = $_POST["gameType"];

			  $result;

			  /*in this code example, 1million OSRS gp is worth $5 and 1million RS3 gp is worth $2.50
			  the if statements below determine the game type
			  then they take the inserted value and divide it by 1 million to get the amount of millions
			  then multipliy by the conversion number.*/

			  if ($game == "osrs"){
				  $result = ($gold/1000000)*5;
			  } else if ($game == "rs3"){
				  $result = ($gold/1000000)*2.5;   
			  }

			  //prints out the converted value.
			  echo $gold . " gp will convert to: $" . $result . " (USD)";
      }
	?>
</body>
</html>

Comments are there to explain what's going on, but please use the internet to aid you, it's vast and full of info

Share this post


Link to post
Share on other sites
Spaming will not be tolerated do not abuse the limited char system

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Get connected with us on social networks:

Contact

Lumbridge Castle

@ace

Discord

Discord

What is a RSPS?

A RSPS, also known as RuneScape private server, is an online game based on RuneScape, and controlled by independent individuals.

Disclaimer

Runesuite is not affiliated with runescape, jagex, rune-server and runelocus in any way & exists solely for educational purposes.

×
×
  • Create New...