Jump to content

deathadder

Members
  • Posts

    83
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by deathadder

  1. colorpicker.com, also photoshop has a colorpicker
  2. how about, not a forum just a database, which i now change i just need it to display text but also allow $name variables or . name . variables
  3. try given me one that qorks next time instead of giving me shit links
  4. hi, i would like to no how people do this http://runelink.org/site/sc.php?server=TestScapez its an image with the name and votes of a server in a mysql database how would i do this?
  5. do you have a code that could do this?
  6. hi i need the following done for my site, and i have no idea how cause i suck at php i have a toplist site and i want users to only be able to vote once in 24 hrs, and i want to put a recapcha, i know i need public and private keys i have them also could you please give me a snippet of the finished code instead of explaining it, i tend to learn from from editing code then reading so hers the 2 vote files the first one is where they type the name and click vote, 2nd performs the vote first: <center><form action="voted.php" method="post"> <table border="0" bordercolor="" style="background-color:" width="400" cellpadding="3" cellspacing="3"> <tr> <td>Site name:</td> <td><input type="text" name="title" /></td> </tr> </table> <input type="submit" value="Vote" ></input></center> </form> and 2nd code: <?php include("config.php"); mysql_query("UPDATE sites SET votes = votes + 1 WHERE title = '$_POST[title]'"); echo "Voted!"; mysql_close($con); ?> ok i would also like a better control panel, instead of having just site name: password: description: [edit] if it where possible id like to have a cpanel that has site name: password: then redirects to another page where you can edit it, if you can't/wont do this for any reason i will settle for just a peie of code to say "invalid username or password" if details are incorrect so heres my code <?php include("config.php"); mysql_query("UPDATE sites SET content = '$_POST[content]' WHERE title = '$_POST[title]' AND password = '$_POST[password]'"); mysql_query("UPDATE sites SET link = '$_POST[link]' WHERE title = '$_POST[title]' AND password = '$_POST[password]'"); echo "Site Updated"; mysql_close($con); ?> and the html bit <center><form action="edit.php" method="post"> <table border="0" bordercolor="" style="background-color:" width="400" cellpadding="3" cellspacing="3"> <tr> <td>Site name:</td> <td><input type="text" name="title" /></td> </tr> <tr> <td>Password:</td> <td><input type="password" name="password" /></td> </tr> <tr> <td>Link to site:</td> <td><input type="text" name="link" /></td> </tr> <tr> <td>Description:</td> <td><textarea name="content" ></textarea></td> </tr> </table> <input type="submit" value="Edit Site" ></input></center> </form> </body> </html> ok i hope you can help, ill try to make this have the best punctuation i can, and please dont tell me how insecure these codes are i have been informed plenty of times
  7. a limited amount, but a peice of code i could use would be greatly appreciated
  8. i want a search thing like this http://www.near-reality.com/market/ how can i search with a javascript drop down menu?\ i dont mind so much about the search without refreshing but i want a basic search thing like that
  9. did you read what i said at all? what can i do with a drop down menu?
  10. so ik you cna get a search box to search items or text in a database, but what i want to know is how to manually insert text and images into it example image (imagine its an image) text name - text price how would i do this?
  11. i have a php script and i want it to submit to itself having the php script on the same page, the problem is when i do it it tries to upload the file without waiting for the form resaulting in format you tried to upload was not allowed" (its an image uploader) heres my code <?php // Configuration - Your Options $allowed_filetypes = array('.jpg','.gif','.bmp','.png'); // These will be the types of file that will pass the validation. $max_filesize = 1524288; // Maximum filesize in BYTES (currently 1.5MB). $upload_path = './files/'; // The place the files will be uploaded to (currently a 'files' directory). $filename = $_FILES['userfile']['name']; // Get the name of the file (including file extension). $ext = substr($filename, strpos($filename,'.'), strlen($filename)-1); // Get the extension from the filename. // Check if the filetype is allowed, if not DIE and inform the user. if(!in_array($ext,$allowed_filetypes)) die('<font size="4"><font color="red">The file you attempted to upload is not allowed.</font></font>'); // Now check the filesize, if it is too large then DIE and inform the user. if(filesize($_FILES['userfile']['tmp_name']) > $max_filesize) die('The file you attempted to upload is too large.'); // Check if we can upload to the specified path, if not DIE and inform the user. if(!is_writable($upload_path)) die('You cannot upload to the specified directory, please CHMOD it to 777.'); // Upload the file to your specified path. if(move_uploaded_file($_FILES['userfile']['tmp_name'],$upload_path . $filename)) echo '<font size="4"><span style="color: white; text-shadow: lime 0px 0px 3px;"><h2>Upload Successful!</h2><br> <img src="' . $upload_path . $filename . '"><br> <p id="codes"><label for="codedirect">Direct Link:</label><br /> <input type="text" id="codebb" value="http://imageplanet.site90.net/' . $upload_path . $filename . '" onclick="javascript:this.focus();this.select();" readonly="true" /><br /> <label for="codehtml">HTML code:</label><br /> <input type="text" id="codehtml" value="<img src="http://imageplanet.site90.net/' . $upload_path . $filename . '">" onclick="javascript:this.focus();this.select();" readonly="true" /><br /> <label for="codebb">IMG code:</label><br /> <input type="text" id="codebb" value="[img=http://imageplanet.site90.net.info/' . $upload_path . $filename . ']" onclick="javascript:this.focus();this.select();" readonly="true" /></p></div> </span></font>'; // It worked. else echo '<font size="4"><font color="red">There was an error during the file upload. Please try again.</font</font>'; // It failed . ?> <form action="upload.php" method="post" enctype="multipart/form-data"> <p> <label for="file"><font color="white">Select a image:</font></label> <br><br> <input type="file" name="userfile" id="file"> <br /> <button>Click Here To Upload</button> <p> <br> <br> <font color="#006FFF"><span style="font-family: Criovision; font-weight: normal; font-style: normal; text-decoration: none; font-size: 15pt;">Max File Upload Size: 1.5MB<br></span></font> </div> </span> i just want it so it doesn't display that error
  12. what the hell is that? you trieng to give me an alternative for a register page and a update page? while there is no password box but 2 title boxes when i only need one? example my reigster page is title password description url to webbsite not just site, title and, there needs to be a password, also please explain better what this code does relative to what my code already does? it only gives and error for not typing anything in i asked for an error be displayed on editing the site if the password or title was incorrect
  13. would this code be ready to use or is it incompletete?
  14. can you fix it make it better?
  15. nevermind i fixed it <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <meta http-equiv="Expires" content="Fri, Jan 01 1900 00:00:00 GMT"> <meta http-equiv="Pragma" content="no-cache"> <meta http-equiv="Cache-Control" content="no-cache"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Lang" content="en"> <meta name="author" content=""> <meta http-equiv="Reply-to" content="@.com"> <meta name="description" content=""> <meta name="keywords" content=""> <meta name="creation-date" content="01/01/2009"> <meta name="revisit-after" content="15 days"> <style type="text/css"> body { background: #000000; color: #DBDBDB; text-shadow: 0.1em 0.1em 0.05em #000000; font: 8pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; background-image:url('bgbg.jpg'); background-repeat:no-repeat; background-attachment:fixed; background-position:center; a:link {color: #fff000; text-decoration: none; } a:active {color: #fff000; text-decoration: none; } a:visited {color: #fff000; text-decoration: none; } a:hover {color: red; text-decoration: none; } } .content { background-image: url('transbg.png'); border: 1px solid #1C1C1C; width:60%; </style> <title>my new website</title> </body> <a href="index.html">Home</a> ll <a href="forums">Forums</a> </head> <br> <br> <br> <div id="content" align="center"> <fieldset class="content"> test </div> </fieldset> </body> </html>
  16. looks fine from my end
  17. we need the css file i think because we cant do anything with the code you supplied it it looks like its all linked through your css file
  18. <a>;s as in links? if so in the <nav> css section just add the appropriate <a> styling, if you supply your css file i could show you
  19. it doesen't look like you have a hack for ie7 in the css you have a hack for mozilla based browsers but not ie based
  20. by scale i think you mean resize your browser? and if thats what you mean when i tried i had no error i had a horizontal bar yes, but when i scrolled over to the right hand side it was perfectly normal and bug/error free
  21. you would need to know the name of the font, download the font upload the font to wherever your hosting your website and update the font in your css file, i have no idea what font that is, though it looks very familiar now i look at it again i can see that the text is only white with a black outline not saying that helps but if you can find a similar font and add a black border you might be ready to go.
  22. so i thought id make a whole new website from scratch but i tried making a div area with a background but it wont work heres my code <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <meta http-equiv="Expires" content="Fri, Jan 01 1900 00:00:00 GMT"> <meta http-equiv="Pragma" content="no-cache"> <meta http-equiv="Cache-Control" content="no-cache"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Lang" content="en"> <meta name="author" content=""> <meta http-equiv="Reply-to" content="@.com"> <meta name="description" content=""> <meta name="keywords" content=""> <meta name="creation-date" content="01/01/2009"> <meta name="revisit-after" content="15 days"> <style type="text/css"> body { background-image:url('bgbg.jpg'); background-position: center top; background-repeat: no-repeat; background-size: 100%; } a:link {color: #fff000; text-decoration: none; } a:active {color: #fff000; text-decoration: none; } a:visited {color: #fff000; text-decoration: none; } a:hover {color: red; text-decoration: none; } } .main_frame { position: absolute; top: 80pt; left: 90pt; width: 853pt; height: 500pt; background-image: url(transbg.png); background-repeat: repeat } } </style> <title>my new website</title> </body> <a href="index.html">Home</a> ll <a href="forums">Forums</a> </head> <br> <br> <br> <div id="main_frame"> <fieldset class="main_frame"> test </div> </fieldset> </body> </html> i also tried using a fieldset to gewt the background but the bg will not appear i have tried multiple different css codes for this but none did work please help, i am quite good at html and understand it very well but i currently have no idea why this is not working
  23. deathadder

    Iframe

    if your trieng to say that you are going to use iframes to put a header and footer on your website 1 iframe for the header and one for the footer, thats a bad idea rethink this and use something like this say your page is named index.html, now its named index.php use this code instead of the iframes <php include('header.php'); ?> <body> keep your original body codes <php include('footer.php'); ?> now make a file called header.php and a file called footer.php, add your normal header and footer html code into it and you have your page finished, a great alternative to the iframe method if this isn't what you meant please explain it more clearly
  24. none of the text fields in your html script above have name attributes instead of just <input type='text'> try something like this <input type='text' name='myname'> although i dont know how it would work becuase you would need an address to send the mail so im not too sure
  25. what error are you getting are you gettign it with other browsers? is it a style error or a php error? the error could be related to your css file not being compadable with ie, as to pleek if you scroll down to the bottom you will see the two end tags for the divisions
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.