Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

clubdesign

Members
  • Joined

  • Last visited

Everything posted by clubdesign

  1. Hi, I'm hoping someone can help. I have a flicker issue when scrolling through level 3 of a navbar list only in IE. I didn't code the CSS and haven't had to deal with this issue before. I'm hoping perhaps someone has come across this problem before. It doesn't occur in Firefox or Chrome. Sorry, I can't post a link to the site as it's an intranet site. "Level 3 Styles", below, is relevant to the issue but I've included the base chunk for context. Thanks to anyone that has a look and tries to help. The CSS is: /* --- HTML ELEMENTS --- */ FORM {width:940px;margin:0px auto;text-align:left;} A {color:<%=link_color%>;text-decoration:none;} A:hover {text-decoration:underline;} A.dpeLink {color:#000000; text-decoration:none; cursor:hand;cursor:pointer;} A.linkBold {font-weight:bold; color:<%=link_color%>; text-decoration:none;cursor:hand;cursor:pointer;} A.breadcrumb {color:<%=link_color%>; text-decoration:none; cursor:hand;cursor:pointer;} .bgMain {background-color:<%=main_background_color%>;border: 1px solid <%=main_background_color%>;} body#editorBody, body#faqIframe, body#templateCreation, body.documentManagerBody, body#refineBody, body#brandManager, body.noBodyBackground {background-image:none !important;background-color:<%=main_background_color%> !important;text-align:left !important;} body#templateCreationWhite, body#templateCreationWhite form {background-color:#FFFFFF !important;background-image:none !important;} body {color:<%=main_text_color%>;padding-top:0px;font-size: 11px;font-size:<%=main_font_size%>;margin:0px;font-family:Tahoma;text-align:center;background:<%=main_background_color%> url(<%=GetImage("form_bg.jpg")%>) center top repeat-y !important;} td, th {font-family:Tahoma;font-size:11px;font-size:<%=main_font_size%>;color:<%=main_text_color%>;} .treeView {background-color:<%=table_item_background%>; border: solid 1px <%=table_border_color%>; SCROLLBAR-FACE-COLOR: #efeded; SCROLLBAR-HIGHLIGHT-COLOR: #ffffff; SCROLLBAR-SHADOW-COLOR: #cccccc; SCROLLBAR-3DLIGHT-COLOR: #f7f7f7; SCROLLBAR-ARROW-COLOR: #000000; SCROLLBAR-TRACK-COLOR: #ffffff; SCROLLBAR-DARKSHADOW-COLOR: #f7f7f7 } .d1 { OVERFLOW: auto; BORDER: <%=table_border_color%> 1px solid; POSITION: relative; TOP: 0px; HEIGHT: 100%; BACKGROUND-COLOR: <%=table_item_background%> } .d2 { OVERFLOW: auto; BORDER: <%=table_border_color%> 1px solid; POSITION: relative; TOP: 0px; HEIGHT: 100%; BACKGROUND-COLOR: <%=table_item_background%> } /* --Skip to next -- */ /* --- HORIZONTAL NAV --- */ #horizNavHolder {height: 24px;z-index:20;} #horizNav {border-bottom: 1px solid <%=hmenu_border%>;margin: 0; padding: 0; width: 100%; list-style: none; height: 24px; background:url(<%=GetImage("nav_horizontal_bg.gif")%>) repeat-x <%=hmenu_level1_out_background%>; z-index:20;} #horizNav li {margin:0; padding: 0; float: left; display: inline; list-style-type: none;height: auto;position: relative;text-align:left;zoom:1;z-index:20;} #horizNav ul {margin: 0; padding: 0; width: 120px; list-style: none; display: none; position: absolute; top: 24px; left: 0;z-index:20;} #horizNav ul ul{border-bottom: 1px solid <%=hmenu_border%>;border-left: 1px solid <%=hmenu_border%>;} #horizNav ul {border-bottom: 1px solid <%=hmenu_border%>;border-left: 1px solid <%=hmenu_border%>;} #horizNav ul:after{clear: both; display: block; content: "."; height: 0; visibility: hidden;} #horizNav ul li {width: 120px; float: left; display: block !important; display: inline;z-index:20;} /* --- LEVEL 1 STYLES --- */ #horizNav a {border: none;border-right: 1px solid <%=hmenu_border%>; padding: 0 6px; float: none !important; float: left; display: block; background-color: transparent; color: <%=hmenu_level1_out_text_color%>; line-height:24px; text-decoration: none; height: auto !important; height: 1%;} #horizNav a:hover, #horizNav li:hover a, #horizNav li.parenthover a {background-color: transparent; color: <%=hmenu_level1_over_text_color%>;} #horizNav li.parenthover, #horizNav li.hover {background:url(<%=GetImage("nav_horizontal_glow.gif")%>) top center no-repeat;} /* --- LEVEL 2 STYLES --- */ #horizNav li:hover li a, #horizNav li.parenthover li a {border-top: 1px solid <%=hmenu_border%>;float: none; background-color: <%=hmenu_level2_out_background%>; color: <%=hmenu_level2_out_text_color%>;line-height:13px;height: auto !important; height: 1%;padding-top:6px;padding-bottom:6px;} #horizNav li:hover li a:hover, #horizNav li:hover li:hover a, #horizNav li.parenthover li a:hover, #horizNav li.parenthover li.parenthover a {border-top: 1px solid <%=hmenu_border%>;background-color: <%=hmenu_level2_over_background%>; color: <%=hmenu_level2_over_text_color%>;} /* --- LEVEL 3 STYLES --- */ #horizNav li:hover li:hover li a, #horizNav li.parenthover li.parenthover li a {background-color: <%=hmenu_level3_out_background%>; color: <%=hmenu_level3_out_text_color%>;} #horizNav li:hover li:hover li a:hover, #horizNav li:hover li:hover li:hover a, #horizNav li.parenthover li.parenthover li a:hover, #horizNav li.parenthover li.parenthover li.parenthover a {background-color: <%=hmenu_level3_over_background%>; color: <%=hmenu_level3_over_text_color%>;} #horizNav ul ul, #horizNav ul ul ul {display: none; position: absolute; top: 0; left: 119px; z-index:20;} /* --- DO NOT MOVE - MUST COME BEFORE DISPLAY:BLOCK FOR G-ECKO --- */ ul#horizNav li:hover ul ul, ul#horizNav li:hover ul ul ul, ul#horizNav li.parenthover ul ul, ul#horizNav li.parenthover ul ul ul {display: none; z-index:inherit;} ul#horizNav li:hover ul, ul#horizNav ul li:hover ul, ul#horizNav ul ul li:hover ul, ul#horizNav li.parenthover ul, ul#horizNav ul li.parenthover ul, ul#horizNav ul ul li.parenthover ul {display: block; z-index:inherit;} #iFrameShim1, #iFrameShim2 {border:0; display:none;z-index:15;position:absolute;} #horizNav li li.parent a, #horizNav li li.parenthover a{background-image:url(<%=GetImage("parent_arrow.gif")%>);background-position:center right;background-repeat:no-repeat;} #horizNav li li.parent li a, #horizNav li li.parenthover li a{background-image:none;} #horizNav a {} #horizNav li:hover li.parent li, #horizNav li.parenthover li.parent li, #horizNav li:hover li.parent ul, #horizNav li.parenthover li.parent ul {display:none !important;} /* -- End -- */ Thank you for your time.
  2. [edit] Or rather: PHP 'Emailer' form help with checkboxes [/edit] Hi people, I'm trying to get my php form to email with checkbox values. I don't know how to manipulate php at all and have been working on a contact script I use elsewhere on the site. Have googled endlessly, but don't understand my form or php enough to implement. The form gets sent to my employers also so would like it to be neat and decipherable (and presentable should they use it to 'reply'). Where the checkboxes have a value of 'yes' I would like to have the form email that value as a one-line statement such as "Ticked checkbox to request more information on 'Product Type 1'". This is not attempted below btw. Best help gets a link also Thanks Here's the html: <form method="post" action="http://www.addressforform.php"> <table width="84%" cellspacing="0" cellpadding="0"> <tr> <td height="27" colspan="2" valign="top">First name<span class="mandatory">*</span></td> <td width="51%" valign="top" align="right"><input type="text" name="firstname" style="width:180px"></td> </tr> <tr> <td height="27" colspan="2" valign="top">Surname<span class="mandatory">*</span></td> <td valign="top" align="right"><input type="text" name="surname" style="width:180px"></td> </tr> <tr> <td height="27" colspan="2" valign="top">Email<span class="mandatory">*</span></td> <td valign="top" align="right"><input type="text" name="email" style="width:180px"></td> </tr> <tr> <td height="27" colspan="2" valign="top">Telephone number<span class="mandatory">*</span></td> <td valign="top" align="right"><input type="text" name="telephone" style="width:180px"></td> </tr> <tr> <td height="25" colspan="3">More information on the product range? </td> </tr> <tr> <td width="6%" height="25" valign="top"><input type="checkbox" name="producttype1" value="yes"></td> <td colspan="2" valign="top">Product Type 1</td> </tr> <tr> <td height="25" valign="top"><input type="checkbox" name="producttype2" value="yes"></td> <td colspan="2" valign="top">Product Type 2</td> </tr> <tr> <td height="25" valign="top"><input type="checkbox" name="producttype3" value="yes"></td> <td colspan="2" valign="top">Product Type 3</td> </tr> <tr> <td height="25" valign="top"><input type="checkbox" name="producttype4" value="yes"></td> <td colspan="2" valign="top">More information on Product Type 4?</td> </tr> <tr> <td colspan="3" align="center"><?php require_once('folder/recaptchalib.php'); $publickey = "recaptchaproductkeynumberremovedhere"; // you got this from the signup page echo recaptcha_get_html($publickey); ?></td> </tr> <tr> <td colspan="3" valign="top" align="right"><span style="float:left; color:#CC0000; margin-left:130px; clear:left; font-size:10px">* Mandatory fields</span> <input name="Submit" type="submit" style="margin-right:8px" value="Submit" src="images/environment/submit.jpg" alt="Carbon Offset form submit"/></td> </tr> </table> </form> And here's the PHP: <?php require_once('../folder/recaptchalib.php'); $privatekey = "recaptchaproductkeyremovedhere"; $resp = recaptcha_check_answer ($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); if (!$resp->is_valid) { header("location:captcha_error.php"); die(); } // VALUES FROM THE FORM $firstname = $_POST['firstname']; $surname = $_POST['surname']; $email = $_POST['email']; $telephone = $_POST['telephone']; $producttype1 = $_POST['producttype1']; $producttype2 = $_POST['producttype2']; $producttype3 = $_POST['producttype3']; $producttype4 = $_POST['producttype4']; $referer = $_SERVER['HTTP_REFERER']; // ERROR & SECURITY CHECKS if ( ( !$firstname ) || ( strlen($firstname) > 100 ) || ( preg_match("/[:\<\>]/", $firstname) ) ) { print "Error: Sorry, but names can only use alphabetical characters. Please press 'Back' on your browser and try again."; exit; } if ( ( !$surname ) || ( strlen($surname) > 100 ) || ( preg_match("/[:\<\>]/", $surname) ) ) { print "Error: Sorry, but names can only use alphabetical characters. Please press Back on your browser and try again."; exit; } if (eregi("\r",$email) || eregi("\n",$email)){ print "Error: Sorry, the email address you entered does not work. Please press 'Back' on your browser and try again."; exit; } if (FALSE) { print "Error: Sorry, we are unable to process an email address on the same domain. Please press Back on your browser and try again."; exit; } if ( ( !$telephone) || ( strlen($_POST['telephone']) > 20 ) || ( !preg_match("#^[0-9 .-]+$#", $telephone) ) ) { print "Error: Sorry, but the telephone number you have entered is invalid. Please press Back on your browser and try again."; exit; } if ( ( !$email ) || ( strlen($_POST['email']) > 200 ) || ( !preg_match("#^[A-Za-z0-9](([_\.\-]?[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([\.\-]?[a-zA-Z0-9]+)*)\.([A-Za-z]{2,})$#", $email) ) ) { print "Error: Sorry, but the email address you have entered is invalid. Please press Back on your browser and try again."; exit; } // CREATE THE EMAIL $headers = "Content-Type: text/plain; charset=iso-8859-1\n"; $headers .= "From: $firstname $surname <$email>\n"; $recipient = "myemail@domain.com"; $subject = "Enquiry from particular page on 'company name' website"; // This is just wrong, I know $message = wordwrap($message, 1024); $message .= "Name: $firstname $surname \n Email: $email \n Tel: $telephone \n \n Ticked boxes for: \n $producttype1 \n $producttype2 \n $producttype3 \n $producttype4 \n "; // SEND THE EMAIL TO YOU mail($recipient, $subject, $message."URL page of enquiry: $referer", $headers); // REDIRECT TO THE THANKS PAGE header("location: mailsuccess.html"); ?>
  3. Ok all working now. Here's the contact form script which also reports the current URL (thanks to CraigWoodland): <?php // VALUES FROM THE FORM $firstname = $_POST['firstname']; $surname = $_POST['surname']; $email = $_POST['email']; $telephone = $_POST['telephone']; $message = $_POST['message']; $referer = $_SERVER['HTTP_REFERER']; // ERROR & SECURITY CHECKS if ( ( !$email ) || ( strlen($_POST['email']) > 200 ) || ( !preg_match("#^[A-Za-z0-9](([_\.\-]?[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([\.\-]?[a-zA-Z0-9]+)*)\.([A-Za-z]{2,})$#", $email) ) ) { print "Error: Invalid E-Mail Address "; exit; } if ( ( !$firstname ) || ( strlen($firstname) > 100 ) || ( preg_match("/[: \<\>]/", $firstname) ) ) { print "Error: Invalid first name"; exit; } if ( ( !$surname ) || ( strlen($surname) > 100 ) || ( preg_match("/[: \<\>]/", $surname) ) ) { print "Error: Invalid second name"; exit; } if ( preg_match("#cc:#i", $message, $matches) ) { print "Error: Found Invalid Header Field"; exit; } if ( !$message ) { print "Error: No Message"; exit; } if (eregi("\r",$email) || eregi("\n",$email)){ print "Error: Invalid E-Mail Address"; exit; } if (FALSE) { print "Error: You cannot send to an email address on the same domain."; exit; } // CREATE THE EMAIL $headers = "Content-Type: text/plain; charset=iso-8859-1\n"; $headers .= "From: $firstname $surname <$email>\n"; $recipient = "YOUREMAIL@YOUREMAIL.com"; $subject = "Contact form enquiry from YOUR WEBSITE"; $message = wordwrap($message, 1024); $message .= "\n \n"; $message .= "Name: $firstname $surname \n"; $message .= "Email: $email \n"; $message .= "Tel: $telephone \n \n"; // SEND THE EMAIL TO YOU mail($recipient, $subject, $message."Referer: $referer", $headers); // REDIRECT TO THE THANKS PAGE header("location: thanks.html"); ?> And this is the form used: <!------------------------Here where form starts--------------------------> <p>If you have a query regarding ...<br /> <br /><strong>*</strong> - Denotes a required field.</p> <div class="form"> <form method="post" action="http://www.URL-FOR-contactscript.php"> <div class="form-row"> <span class="form-row-label"><label for="form-firstname">First Name *</label> <input type="text" name="firstname" id="firstname" size="25" maxlength="30" /></span> <span class="form-row-labelright"><label for="form-lastname">Last Name*</label> <input type="text" name="surname" id="surname" size="25" maxlength="30" /></span> </div> <div class="form-row"> <span class="form-row-label"><label for="form-email">Email Address *</label> <input type="text" name="email" id="email" size="25" maxlength="40" /></span> <span class="form-row-labelright"><label for="form-telephone">Telephone *</label> <input type="text" name="telephone" id="telephone" size="25" maxlength="15" /></span> </div> <div class="message-row"> <label for="message">Message *</label> <textarea cols="45" name="message" id="message" rows="5" >Enquiry about....</textarea> </div> <input name="submit" type="submit" id="submit" value="Send enquiry" /> </form></div> <!-- --------------------Here is where the form ends------------------- --> Here's some CSS div.form { background-color: #EAEAEA; text-align:center; padding:0px; margin:0px } div.form-row { text-align:center; width:100%; } div.form label { display:block; padding:10px; margin:0px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; } span.form-row-label { float:left; padding:0px; border: solid #FFF 0px; width:50%; } span.form-row-labelright { padding:0px; border: solid #FFF 0px; width:50%; } div.message-row { width:100%; } Email should look like: (with details:) from Joe Bloggs <example@email.com> to YOUREMAIL@EMAIL.com date 3 September 2009 03:42 subject Contact form enquiry from YOUR website mailed-by YOURHOST.com (Or just:) Joe Bloggs to me Enquiry about the .... Name: Joe Bloggs Email: example@email.com Tel: 555 5678 Referer: http://www.YOUR-REFERRING-WEB-PAGE Hoorah! Big Kudos to Craig Woodland for sorting this! Thank you!
  4. Brilliant! Yep, this works. Just cleaning up for the email layout now, spaces and text in grey etc. I'll post it when I'm done for others to see and use. Thanks a lot, CraigWoodland!
  5. Thanks. I need it as the form will be used on about 230 product pages, primarily as a contact form but if they don't mention the product they're interested in I can at least see what product page they were looking at. My problem here is the form works right now but all my product pages are html, not php. The contact form works as is but looks like I'll need to update all these html pages to php extensions if I want the new 'url reporting' in the forms to work, then look at the htaccess file again, yuk! I don't however understand how to do 'stage 4.'
  6. Thanks. I'm using Dreamweaver CS3. Yeah, I'm still a bit confused. Does the 'function' go on the script and in full? I found something else. Again I don't know how to implement it. Here, what do you think and should I use this instead?... $currentpage = $_SERVER['HTTP_REFERER']; Or store the current page in a hidden field.... $thispage='http://'.$_SERVER[HTTP_HOST].'/'.$_SERVER["REQUEST_URI"]; <input type="hidden" name="page" value="<?php echo $thispage; ?>" /> $message = "URL: ".$_POST['page']; I take it this is in 3 parts that I would put in two places in my script and then the hidden 'input type' on the form. Or does $thispage='http://'.$_SERVER[HTTP_HOST].'/'.$_SERVER["REQUEST_URI"]; get put on the (html) page with the form somewhere? Sorry, back on the bottom rung with this php stuff, lol
  7. Found this but not sure what goes where (script or page with form) Add the following code to a page: <?php function curPageURL() { $pageURL = 'http'; if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";} $pageURL .= "://"; if ($_SERVER["SERVER_PORT"] != "80") { $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"]; } else { $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]; } return $pageURL; } ?> You can now get the current page URL using the line: (where does this go?) <?php echo curPageURL(); ?> Please could someone help me. The (contact) form works fine but I don't know how to make it report the url from where the form was filled so the email I receive tells me what page they were looking at. Thank you.
  8. I want to change this contact form script to include the current URL in the email message. I've added so far the surname, telephone number and email into the 'footer' (just by tweaking as I don't know PHP). I'd like the form / script to report the URL of where the form was filled as it will be used on multiple pages. First the current form script: <?php // VALUES FROM THE FORM $firstname = $_POST['firstname']; $surname = $_POST['surname']; $email = $_POST['email']; $telephone = $_POST['telephone']; $message = $_POST['message']; // ERROR & SECURITY CHECKS if ( ( !$email ) || ( strlen($_POST['email']) > 200 ) || ( !preg_match("#^[A-Za-z0-9](([_\.\-]?[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([\.\-]?[a-zA-Z0-9]+)*)\.([A-Za-z]{2,})$#", $email) ) ) { print "Error: Invalid E-Mail Address "; exit; } if ( ( !$firstname ) || ( strlen($firstname) > 100 ) || ( preg_match("/[: \<\>]/", $firstname) ) ) { print "Error: Invalid first name"; exit; } if ( ( !$surname ) || ( strlen($surname) > 100 ) || ( preg_match("/[: \<\>]/", $surname) ) ) { print "Error: Invalid second name"; exit; } if ( preg_match("#cc:#i", $message, $matches) ) { print "Error: Found Invalid Header Field"; exit; } if ( !$message ) { print "Error: No Message"; exit; } if (eregi("\r",$email) || eregi("\n",$email)){ print "Error: Invalid E-Mail Address"; exit; } if (FALSE) { print "Error: You cannot send to an email address on the same domain."; exit; } // CREATE THE EMAIL $headers = "Content-Type: text/plain; charset=iso-8859-1\n"; $headers .= "From: $firstname $surname <$email>\n"; $recipient = "email@email.com"; $subject = "Contact form enquiry from YOUR website"; $message = wordwrap($message, 1024); $message .= "\n"; $message .= "\n"; $message .= "$firstname $surname"; $message .= "\n"; $message .= "$email"; $message .= "\n"; $message .= "Tel: $telephone"; // SEND THE EMAIL TO YOU mail($recipient, $subject, $message, $headers); // REDIRECT TO THE THANKS PAGE header("location: thanks.html"); ?> The following is an example of the kind of code I've found online that adds 'current url' and 'visitor ip' into the script, although I don't know how to implement. Also it's for a Wordpress plugin so would probably need modifying. function curPageURL() { $pageURL = ‘http’; if ($_SERVER["HTTPS"] == “on”) {$pageURL .= “s”;} $pageURL .= “://”; if ($_SERVER["SERVER_PORT"] != “80″) { $pageURL .= $_SERVER["SERVER_NAME"].”:”.$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"]; } else { $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]; } return $pageURL; } .. and .. $curpageurl = curpageurl(); $visip=$_SERVER['REMOTE_ADDR']; $form .= ‘<input type=”hidden” name=”page-url” value=”‘ . $curpageurl . ‘” />’; $form .= ‘<input type=”hidden” name=”visitor-ip” value=”‘ . $visip . ‘” />’; Then would you need hidden field references in the form itself? The form is as follows: <div class="form"> <form method="post" action="http://www.URL/contactscript.php"> <div class="form-row"> <span class="form-row-label"><label for="form-firstname">First Name *</label> <input type="text" name="firstname" id="firstname" size="25" maxlength="30" /></span> <span class="form-row-labelright"><label for="form-lastname">Last Name*</label> <input type="text" name="surname" id="surname" size="25" maxlength="30" /></span> </div> <div class="form-row"> <span class="form-row-label"><label for="form-email">Email Address *</label> <input type="text" name="email" id="email" size="25" maxlength="40" /></span> <span class="form-row-labelright"><label for="form-telephone">Telephone *</label> <input type="text" name="telephone" id="telephone" size="25" maxlength="15" /></span> </div> <div class="message-row"> <label for="message">Message *</label> <textarea cols="45" name="message" id="message" rows="5" >Enquiry about the ....</textarea> </div> <input name="submit" type="submit" id="submit" value="Send enquiry" /> </form></div> Would appreciate any help. Thanks.
  9. clubdesign replied to gsaweb's topic in Server Side
    Hey thanks for this too, Achshar! I've been trying to incorporate a form for about 2 weeks now and have actually gotten somewhere with this one which is terrific! Have adjusted my own form to use the script and it works. Only thing I'm stuck with, because I don't know php, is how to add a 'telephone' to it which is a field in my form (telephone number). Just fiddling about with it I've only managed to get it working in the 'headers' field so the telephone number appears next to the name in 'From:' on the email. This isn't quite satisfactory of course so I'd be grateful for any help. That's more important than the other issue which is setting rules in the script so the 'telephone' number only accepts numbers, spaces and +, though I may be able to look this up somewhere. Please help if you can.
  10. Premise: I want to do some pagerank sculpting and pdfs are involved... I have a load of pdfs that are manufacturer brochures, I'm therefore not able to optimise their content at base level. I know I can add tags and titles and also links. However, they also have duplicate content to my html pages so I would prefer to just use their content with links back to the site. I'm about to do it the following way from links to all of them on corresponding html pages: "~brochure.pdf noindex follow" which I think will work. However, it just occurred to me I also have the pdfs listed in my sitemap.xml. It would be a pain to keep removing them on all subsequent automatic sitemap generations, and I believe the above practice will not over-ride their inclusion in the sitemap.xml file. So what should I do. An easy way round would be to close the pdf folder temporarily in the robots.txt file before the auto sitemap.xml generation and then re-include it after. But before doing this it would be nice to know I'm going about things the right way or just wasting time and effort. To summarise, I would like to use the pdfs for their content and backlinks but not have them indexed anymore. Is there a good way to do this, will the above work or is there a better way? Thanks so much!
  11. sounds like a link style is affecting it. Have you not created a style for some other text and mistakenly created one for generic links instead eg. right-aligned?
  12. Firefox is best for this, SEOQuake etc. There's no tool for IE. And Safari you can add a CSS stylesheet, or make your own.
  13. It follows the link but it doesn't pass on the 'link juice'. Most blogs and forums like this one use 'nofollow'.
  14. If you find the forum on your 'uk' search engine and you reckon as a user you'd click on it, then it has value to be on it. It depends on whether you're looking for backlinks or user-directed promotion. If backlinks then it doesn't matter as you're just SE-feeding. What's your ethics? If you're helping out then sure, a backlink for your trouble is fine. And wave the Union Jack whilst you're there!
  15. cheers Jem, I didn't know that Ok then, so what do you think - if you're linking to a pdf about winter gloves from clothes/winter/gloves/index.html should you not put that pdf in the same gloves/ directory for SEO purposes?
  16. I presume the obvious answer for this is in a pdf folder, like images. However, why not in the same folder as the actual products that are in keyword-relevant subdirectories? Is it a matter of convenience? Or does it not matter with pdfs because they can't be indexed anyway? .....
  17. Yahoo Directory is different from Yahoo Web Search. Paying for the Directory may improve your indexing in the Search side. Hear this though, even if you pay you may not get in if your site's not up to scratch. Could be worth it for SE O as the Directory is used by other SEs for indexing including the big G - all these other links can improve your ranking, in theory. And a listing in the Yahoo directory could be seen as authoritative and good for PR. Maybe. Still - 300 smackers!!
  18. Well done, jon-d - you fixed the first part regarding the index.html. - works a treat!! Still can't get those redirects to work however - I tried with the 'redirect 301' on a one line test but no luck. This was the rewrite i did also: RewriteCond %{HTTP_HOST} ^clubcopying\.co\.uk$ [NC] RewriteRule (.*) http://www.clubcopying.co.uk/$1 [R=301] RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.html\ HTTP/ RewriteRule ^(.*)index\.html$ http://www.clubcopying.co.uk/$1 [R=301,L] DirectoryIndex index.html RewriteCond %{HTTP_HOST} ^www.clubcopying.co.uk$ RewriteRule ^1/products.asp?deptID=42$ "http\:\/\/www\.clubcopying\.co\.uk\/canon\-colour\-photocopiers\.html" [R=301] RewriteCond %{HTTP_HOST} ^www.clubcopying.co.uk$ RewriteRule ^1/products.asp?deptID=41$ "http\:\/\/www\.clubcopying\.co\.uk\/canon\-colour\-photocopiers\.html" [R=301] # the above lose their strings in the rewrite and go here: RewriteCond %{HTTP_HOST} ^www.clubcopying.co.uk$ RewriteRule ^1/products.asp$ "http\:\/\/www\.clubcopying\.co\.uk\/products\/" [R=301] # this one works, as you'd expect: RewriteCond %{HTTP_HOST} ^www.clubcopying.co.uk$ RewriteRule ^Templates/$ "http\:\/\/www\.clubcopying\.co\.uk\/errorpages\/403\.html" [R=301] # the first two lose their strings and go to the third redirect: (homepage) # the first looks like this in browser address bar: http : //www.clubcopying.co.uk/?zoneID=45&leveloneID=65 RewriteCond %{HTTP_HOST} ^www.clubcopying.co.uk$ RewriteRule ^1/default.asp?zoneID=45&leveloneID=65$ "http\:\/\/www\.clubcopying\.co\.uk\/about\-club/" [R=301] RewriteCond %{HTTP_HOST} ^www.clubcopying.co.uk$ RewriteRule ^1/default.asp?zoneID=45&leveloneID=62$ "http\:\/\/www\.clubcopying\.co\.uk\/about\-club\/" [R=301,L] RewriteCond %{HTTP_HOST} ^www.clubcopying.co.uk$ RewriteRule ^1/default.asp "http\:\/\/www\.clubcopying\.co\.uk\/" [R=301,L] # this one just 404's for example: RewriteCond %{HTTP_HOST} ^www.clubcopying.co.uk$ RewriteRule ^1/siteMap.asp?zoneID=58$ "http\:\/\/www\.clubcopying\.co\.uk\/sitemap\/" [R=301] Such fun! [edit:] Ok, I've learnt something. The last example works if I also include a redirect from 1/siteMap.asp? without the string. However if I do not include the full string as a separate redirect also, it won't work. The non-string redirect also takes precedence (and it also doesn't need to exist as an indexed page, which is why it wasn't included in the first place). So at least now there's no 404 errors which is always good. [/edit]
  19. Thanks jon-d - I'll give it a try though I forgot I have some that aren't called index.html - does this mess them up I don't know. Those permanent redirects don't work at all. I rewrote the whole thing trying something else but didn't work either. Just gets to my custom 404. Only 2 work lol but even then the query string is removed. So now considering just removing the lot from google index.
  20. Hi there. Well the new site's up and, just as I figured, I didn't get the htaccess file right! The new site can be found in my sig. If you check out the inlinks - site:www.clubcopying.co.uk you'll see all the links from the old site, all asp superstring urls. Well they can all be redirected and I drew up a 180-odd line htaccess file before the transfer. I ended up creating an endless loop which I've since 'fixed' by guessing a couple of lines to delete but I haven't figured out how to get the redirects from the old pages to work. This is a shame cos I built up an incredible pagerank of '2' from the crappy old framed website (which I never made btw). The 'change all pages to www. prefix' does work which is good (not that I know how) but I didn't manage to get 'index.html' to be dropped at the end of the url. I would like to do this also. Here'a snapshot of the htaccess file - I won't include all the redirects of course... Options +FollowSymlinks RewriteEngine On <Files ~ "^.(htaccess|htpasswd)$"> deny from all </Files> Options -Indexes ErrorDocument 400 /errorpages/400.html ErrorDocument 401 /errorpages/401.html ErrorDocument 402 /errorpages/402.html ErrorDocument 403 /errorpages/403.html ErrorDocument 404 http://www.clubcopying.co.uk/errorpages/404.html ErrorDocument 405 /errorpages/405.html ErrorDocument 406 /errorpages/406.html ErrorDocument 407 /errorpages/407.html # + more error page redirects RewriteCond %{HTTP_HOST} ^clubcopying\.co\.uk$ [NC] RewriteRule (.*) http://www.clubcopying.co.uk/$1 [R=301] DirectoryIndex index.html Redirect permanent /1/default.asp http://www.clubcopying.co.uk/ Redirect permanent /Templates/ http://www.clubcopying.co.uk/errorpages/403.html Redirect permanent 1/products.asp?deptID=28 http://www.clubcopying.co.uk/products/ Redirect permanent /1/products.asp?deptID=21 http://www.clubcopying.co.uk/products/ Redirect permanent /1/default.asp?zoneID=48 http://www.clubcopying.co.uk/products/ Redirect permanent /1/default.asp?zoneID=51 http://www.clubcopying.co.uk/about-club/ Redirect permanent /1/productDetails.asp?productID=73&deptID=4 http://www.clubcopying.co.uk/reconditioned-cheap-used-photocopiers.html Redirect permanent /1/productDetails.asp?productID=59&deptID=28 http://www.clubcopying.co.uk/canon-office/fax-machines/jx500/ Redirect permanent /1/productDetails.asp?productID=119&deptID=5 http://www.clubcopying.co.uk/toshiba-office/photocopiers/colour-copiers/3520c/ Redirect permanent /1/productDetails.asp?productID=51&deptID=12 http://www.clubcopying.co.uk/canon-office/desktop-printers-copiers/ir1018/ Redirect permanent /1/productDetails.asp?productID=32&deptID=48 http://www.clubcopying.co.uk/ # plus more redirects x 130ish order deny,allow Ok, so how do I fix those 'Redirect Permanent' redirects? You'll notice I've dropped a slash on one - that's just me trying stuff. I've looked about a lot to help myself but still at a loss. Just a recap - I would like to get the redirects to work for the old asp pages to the new html pages (the old site was cms and the new site is static html) plus I would like to get 'index.html' dropped from the end of the url in the browser address bar. Please help if you can Thanks
  21. Thanks, I had already created my Dreamweaver .dwt templates before considering any issues with lower/uppercase. When working within Dreamweaver I don't expect there to be any issues with regards to updating 'instances' of Dreamweaver templates if they have Capital letters in the filename eg. example.dwt but what I don't know is if anything is affected by this if the site goes onto a Linux server (or any kind of server for that matter). I know there will be no problems from Dreamweaver's perspective. And I expect a server not to care about the templates because it doesn't use them - it's just for the use of updating the site. From the server's perspective any reference to Templates in a page is just like a 'comment'. Plus, if in future I convert all the pages to .php nothing is affected, right? Does this sound correct?
  22. Yep, and don't just put all your 'reciprocal' links on one page. And don't call it a 'links' page anymore Try to include them relevantly to avoid them beingdismissed by the search engine. Also, a good webmaster will know you've linked to their site by checking their backlinks and might link back without you asking. That last bit is optimistic Also try to name your links well so when used there's no need forthem to renamed something you don't want
  23. How similar do pages need to be to necessitate a robots text? And which page if duplicate (or too similar, dependent on answer to above) should you choose to allow indexing? I'm figuring it would be the page closest to root or in root, or is there a more important factor than this such as links? Thanks Nearly finished!!!!! Well, you know what I mean N.B. After this gotta figure out how to create a .htaccess file to divert traffic from old asp pages. If anyone stumbles on this who knows how to divert from old server asp pages to new server static html pages eg. http: / / www.example.co.uk/1/productDetails.asp?productID=110&deptID=37 to divert to http:/ / www.example.co.uk/firstdirectory/second/productname/index.html I would be grateful, thanks
  24. Is there something for this in Adobe Bridge. Sorry, I haven't looked into it - but would that plus a canny saved command using Find & Replace work. Yes, a macro.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.