Jump to content

kuran

Members
  • Content Count

    51
  • Joined

  • Last visited

Community Reputation

0 Neutral

About kuran

  • Rank
    Newbie
  1. Thank you, how do I make the line disappear the same time that the text appears?I'll have to do the inverse since I'm using a white background and black text.
  2. Hi, I'm trying to do something that seems simple, but I just can't get it to work. I have a list of links being displayed, and I want each link to be a solid, black horizontal line until a mouseover event reveals the text 'underneath'. What is the best way to do this besides using images? <ul><li><a href="#">LinkA</a></li><li><a href="#">LinkB</a></li><li><a href="#">LinkC</a></li></ul> Thanks for any help!
  3. Apologies for the cryptic topic title, I wasn't quite sure if there was any place on this forum to discuss Wordpress, or where.. I am starting to develop a website with reasonably simple, but dynamic functionality, and I would like to know if going for Wordpress is the right idea. I have worked with Wordpress before, but that concerned styling within the relative safe format of a 'standard' wordpress layout.I'm also relatively fluent in CSS and HTML. I have included a diagram of what I am going for, and I think that explains it best. Basically I want something close to your average 'online store' layout, where each new wordpress 'post' is displayed as a small square image preview. Once clicked that preview will lead to a different page showing the rest of the information contained in that post. (It won't be a real store as there will be no checkout process.) Is Wordpress right for this concept? How would I make it interpret my post data in this way? It would be great if someone could push me in the right direction.. thank you in advance.
  4. Please delete.
  5. Thank you Ingolme, I've wormed my way to the solution using your great advice.Using span to add 'nieuw' to the <li> element works out, however I can't seem to force the word 'nieuw' to appear on the same line as the <li> element. Right now it jumps to the second line, appearing below the <li> element..
  6. Please see the attached picture to see what I want to achieve.Right now I have the horizontal lines embedded as a .jpg image between each <li> element in the html. Is there a way to use CSS so it places these images in the same way? I would prefer to keep using bitmaps so the effect is as standardized as possible, if that makes sense. Also, is it possible to attach the 'nieuw' element in a clean CSS way to the final element in the list? I want it to be positioned so it matches the end of each line... right now I am doing it in a messy way with absolute positioning and its own separate div.Thanks for any help!
  7. kuran

    How does this site work?

    They seem to have put their scripts into a seperate javascript.js file, I did not know that was possible... it's a good tip to keep your code clean!
  8. kuran

    How does this site work?

    Thank you all for the elaborate replies.One more question, I found this list of possible hide/show effects: http://www.w3schools.com/jquery/jquery_effects.aspIs one of these the affect that this site? http://www.scribbletone.com/ (once you click on a project, a grey bar appears allowing you to switch between types of content.. ) I was wondering how they could get the animation to be so smooth.
  9. http://www.scribbletone.com/I tried to analyze the source, but as usual that is pretty hard to do if you do not know specifically what you are looking for.. I would like to learn how the system works where you can call specific div id's into being visible, whilst hiding others.And how hard is it to implement the jquery 'easing' effect into this, the way this site has done?Thanks for any help!
  10. Thank you chokk, and everyone else! I have learned a lot from this thread.
  11. Thank you, that makes sense. How would I go about changing my verify.php?
  12. Ah, I have modified the closing brackets, and now I get a different error. (Closer to the truth?) So the recaptcha code is preventing the regular checks from being executed...<?php require_once('recaptchalib.php'); $privatekey = "xxxxxxxxxxxxxxxxxxxx"; $resp = recaptcha_check_answer ($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); if (!$resp->is_valid) { // What happens when the CAPTCHA was entered incorrectly die ("The reCAPTCHA wasn't entered correctly. Go back and try it again." . "(reCAPTCHA said: " . $resp->error . ")"); } else { // Your code here to handle a successful verification /* Set e-mail recipient */$myemail = "info@test.com";/* Check all form inputs using check_input function */$fullname = check_input($_POST['fullname'], "Please enter your name.");$tel = check_input($_POST['tel']);$email = check_input($_POST['email']);$comments = check_input($_POST['comments'], "Please write your comments.");/* If e-mail is not valid show error message */if (!preg_match("/([\w\-]+\@[\w\-]+\.[\w\-]+)/", $email)){ show_error("It seems your E-mail address is not valid.");}/* Let's prepare the message for the e-mail */$message = "Hello!Your contact form has been submitted by:Name: $fullnameE-mail: $emailTel: $telComments:$commentsEnd of message";/* Send the message using mail() function */mail($myemail, $subject, $message);/* Redirect visitor to the thank you page */header('Location: thanks.php');exit();/* Functions we used */function check_input($data, $problem=''){ $data = trim($data); $data = stripslashes($data); $data = htmlspecialchars($data); if ($problem && strlen($data) == 0) { show_error($problem); } return $data;}function show_error($myError){?> <?php echo $myError; ?><?phpexit();} } ?>
  13. Hi Chokk, that is exactly where it is going wrong, let me show you the code and the subsequent error message on the bottom of this email.In my version I included the private and public keys, I should have been clear about that in my initial post.This is one of the errors I get, line 181 is the final line in the verify.php document.. so I am doing something wrong with just pasting my code in. Here is how it looks if I paste my existing verify.php contents into the reCaptcha line:<?php require_once('recaptchalib.php'); $privatekey = "xxxxxxxxxxxxxxxxxxxxxxx"; $resp = recaptcha_check_answer ($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); if (!$resp->is_valid) { // What happens when the CAPTCHA was entered incorrectly die ("The reCAPTCHA wasn't entered correctly. Go back and try it again." . "(reCAPTCHA said: " . $resp->error . ")"); } else { /* Set e-mail recipient */$myemail = "info@test.com";/* Check all form inputs using check_input function */$fullname = check_input($_POST['fullname'], "Please enter your name.");$tel = check_input($_POST['tel']);$email = check_input($_POST['email']);$comments = check_input($_POST['comments'], "Please write your comments.");/* If e-mail is not valid show error message */if (!preg_match("/([\w\-]+\@[\w\-]+\.[\w\-]+)/", $email)){ show_error("It seems your E-mail address is not valid.");}/* Let's prepare the message for the e-mail */$message = "Hello!Your contact form has been submitted by:Name: $fullnameE-mail: $emailTel: $telComments:$commentsEnd of message";/* Send the message using mail() function */mail($myemail, $subject, $message);/* Redirect visitor to the thank you page */header('Location: thanks.php');exit();/* Functions we used */function check_input($data, $problem=''){ $data = trim($data); $data = stripslashes($data); $data = htmlspecialchars($data); if ($problem && strlen($data) == 0) { show_error($problem); } return $data;}function show_error($myError){?> <?php echo $myError; ?><?phpexit();}?> Thanks for any help!
  14. I have been following these instructions: http://code.google.com/apis/recaptcha/docs/php.htmlI currently have this form on my website: <form action="verify.php" method="post"><fieldset class="two-col"> <p class="left"> <br/>Full name<span class="required"> *</span><br/> <input type="text" name="fullname" class="texta"/> <br/>Telephone number<br/><input type="text" name="tel" class="texta"/><br/><br/>Your message<span class="required"> *</span><br/><br/><textarea name="comments" rows="8" cols="1" class="textb"></textarea></p> <p class="right"> <br/>Email address<span class="required"> *</span><br/><br/> <input type="text" name="email" class="texta"/></p> <?php require_once('recaptchalib.php'); $publickey = "xxxxxxxxxxxxxxxxxxxxxxxx"; // you got this from the signup page echo recaptcha_get_html($publickey); ?></fieldset> <div class="submitbutton1"><br/><input value="Submit" type="image" src="images/submitbutton.png" width="102" height="43" ></p><br/><span class="required">*</span> indicates a required field.<br/>All Requests for quotations are confidential.</form> I have already implemented the reCaptcha information on this page.This form 'posts' in verify.php, and that is where I fail to include the required reCaptcha code. I just can't seem to integrate it. This is verify.php without the reCaptcha code: <?php/* Set e-mail recipient */$myemail = "xxxxxxxxxxxxx";/* Check all form inputs using check_input function */$fullname = check_input($_POST['fullname'], "Please enter your name.");$tel = check_input($_POST['tel']);$email = check_input($_POST['email']);$comments = check_input($_POST['comments'], "Please write your comments.");/* If e-mail is not valid show error message */if (!preg_match("/([\w\-]+\@[\w\-]+\.[\w\-]+)/", $email)){ show_error("It seems your E-mail address is not valid.");}/* Let's prepare the message for the e-mail */$message = "Hello!Your contact form has been submitted by:Name: $fullnameE-mail: $emailTel: $telComments:$commentsEnd of message";/* Send the message using mail() function */mail($myemail, $subject, $message);/* Redirect visitor to the thank you page */header('Location: thanks.php');exit();/* Functions we used */function check_input($data, $problem=''){ $data = trim($data); $data = stripslashes($data); $data = htmlspecialchars($data); if ($problem && strlen($data) == 0) { show_error($problem); } return $data;}function show_error($myError){?> <?php echo $myError; ?><?phpexit();}?> This is the bit of code that I need to splice into my content.php file: The guide tells me that 'The following code should be placed at the top of the verify.php file:', however in the case of my mail form it does not seem to be that simple. Unfortunately the reCaptcha website does not have a lot of documentation.. I hope someone would be nice enough to help me. Thanks in advance! <?php require_once('recaptchalib.php'); $privatekey = "your_private_key"; $resp = recaptcha_check_answer ($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); if (!$resp->is_valid) { // What happens when the CAPTCHA was entered incorrectly die ("The reCAPTCHA wasn't entered correctly. Go back and try it again." . "(reCAPTCHA said: " . $resp->error . ")"); } else { // Your code here to handle a successful verification } ?>
×
×
  • Create New...