Jump to content


  • Content count

  • Joined

  • Last visited

Profile Information

  • Real Name
    Dean Hargreaves
  1. dforce

    Europe Cookie Laws

    Try this which is what i use on all my sites. http://www.civicuk.com/cookie-law/index you can have it so that it just informs them that your site uses non intrusive cookies and that the cookies you use are for site functionality only. It is on every page also. According to the rules if your site requires cookies for the basic functionality of the site then the simple inform rule can apply. OSC uses a cookie that is required for site functionality. If you use google analytics then you must have an opt in function which this also covers.. Anyways, best way is to have a look. Works perfectly.
  2. dforce

    [Contribution] Scrolling Customer Testimonials

    Very strange.. I have this installed before on an old site and i am in the process of building a new one on version 2.2rca. everything works fine apart from when i click on the read more within the scrolling box it just shows all testimonials rather than just the testimonial id that i have clicked on. This is the code on the customer_testimonials.php that looks like it is saying if testimonial ID = testimonial id. <?php if ($testimonial_id != '') { // display a specific id testimonial $testimonial_id = ct_sanitise($testimonial_id); $full_testimonial = tep_db_query("select * FROM " . TABLE_CUSTOMER_TESTIMONIALS . " WHERE testimonials_id = '".(int)$testimonial_id."' LIMIT 1"); } else { // display all testimonials /*** Begin Scrolling Customer Testimonials v1.1 ***/ if (TESTIMONIAL_LANG_PREF == "User Language Only") { // display only localized testimonials (to user) $full_testimonial = tep_db_query("select * FROM " . TABLE_CUSTOMER_TESTIMONIALS . " WHERE status = '1' AND language_id = $languages_id order by date_added desc"); } /*** End Scrolling Customer Testimonials v1.1 ***/ } while ($testimonials = tep_db_fetch_array($full_testimonial)) { $testimonial_array[] = array('id' => $testimonials['testimonials_id'], 'author' => $testimonials['testimonials_name'], 'location' => $testimonials['testimonials_location'], 'title' => $testimonials['testimonials_title'], 'testimonial' => $testimonials['testimonials_html_text'], 'word_count' => tep_word_count($testimonials['testimonials_html_text'], ' '), 'image' => $testimonials['testimonial_image'], 'date_added' => $testimonials['date_added'], 'email' => $testimonials['testimonials_email']); } require(DIR_WS_MODULES . 'customer_testimonials.php'); ?> any body any ideas please..
  3. dforce

    [Contribution] Scrolling Customer Testimonials

    I think i might have solved the mystery of the scrolling not working. If you take a look at the following code in the includes/boxes/customer_testimonials.php at around line 122. $info_box_contents[] = array('text' => '<div id="marquee" class="marquee_hide"><MARQUEE behavior= "scroll" align= "center" direction= "'.TESTIMONIAL_SCROLL_DIR.'" height="'.TESTIMONIAL_SCROLL_HEIGHT.'" scrollamount= "2" scrolldelay= "'.TESTIMONIAL_SCROLL_DELAY.'" onmouseover=\'this.stop()\' onmouseout=\'this.start()\'>'.$testimonials_list.'</MARQUEE></div>'.$testimonial_write_link); class is set to marquee_hide. <div id="marquee" class="marquee_hide"> change that to marquee_show. <div id="marquee" class="marquee_show"> and hey presto it works in ie8. another ie 8 problem i have come across is on the recapcha code within customer_testimonials_write.php on line 319 <!-- start modification for reCaptcha --> <tr> <td class="main"><?php echo ENTRY_SECURITY_CHECK; ?></td> </tr> <tr> <?php $languages_query = tep_db_query("select code from " . TABLE_LANGUAGES . " where directory = '" . $language . "'"); $language_id = tep_db_fetch_array($languages_query); ?> <script> var RecaptchaOptions = { theme : 'white', tabindex : 3, lang : '<?php if (in_array($language_id['code'] ,array('en', 'fr', 'de', 'pt', 'es'))) {echo $language_id['code']; } else {echo 'en'; } ?>', }; </script> <td><?php echo recaptcha_get_html(RECAPTCHA_PUBLIC_KEY, null, ($request_type == 'SSL')); ?></td> </tr> <!-- end modification for reCaptcha --> Ok the problem is a comma that throws up a error and actually stops the recapcha box from taking the theme colour from the code and uses the standard red one. As you can see the theme is set to white. theme : 'white', . The comma that needs removing is at the end of this line of code. lang : '<?php if (in_array($language_id['code'] ,array('en', 'fr', 'de', 'pt', 'es'))) {echo $language_id['code']; } else {echo 'en'; } ?>', remove the end comma and you will notice that the recaptcha box now takes on the correct theme. Hope this helps some out. David I will get the other code changes that i made sent to you so you can take a look and incorporate if you wish. Cheers
  4. dforce

    [Contribution] Scrolling Customer Testimonials

    Hello and thanks for getting back to me.. I am using ie 8. The static works perfect but scrolling just shows a blank box. no errors though. I will send you the code changes that i used and will also send code changes i used to get the upload working with option types also as this contrib also uses upload.php but with differant settings. Thank You Dean
  5. dforce

    [Contribution] Option Types v2

    First of all i would like to say that this contribution is brilliant and works like a charm. However i have a problem that i am hoping this support can help with.. Here is the scenario.. I have a t-shirt printing website and deal with 7 styles of t-shirts. eg baseball style, hoodie, v-neck, ladyfit Each style has differant colours. eg v-neck (23 clours) hoodie (6 colours) So what i need is this.. They select the style of t-shirt that they want. This selection determines the colours available. Is there any way that this can be done with this contribution and if so how... Any help would be very much appreciated.. Thank You Dean
  6. dforce

    [Contribution] Scrolling Customer Testimonials

    Ok i have found a solution to my problem on the image size. If i use the following code instead then it works. if($testimonial_array[$i]['image']){ $displayimage = tep_image(DIR_WS_IMAGES . 'testimonials/' . $testimonial_array[$i]['image'], $testimonial_array[$i]['title'], C_TESTI_W, C_TESTI_W); }else{ $displayimage = ''; } The problem is it now controls the height and width which makes the picture distorted if people dont upload a square picture. The solution to my problem is to add some code into the upload.php that changes the size of the image when it is uploaded. This way you can set the width and height and also set constrain so the image is always resized in proportion within your width and height settings. If you are interested in this then let me know and i will add it to the contribution as an addon. Still having problems with scrolling though which does not work at all and does not create any errors either. I just get a blank info box. Help on solving this problem would be much appreciated. Thank You Dean
  7. dforce

    [Contribution] Scrolling Customer Testimonials

    Hello,, First of all i think this contrib is brilliant, but i do have 2 issues. 1. the size of the image setting does not work. 2. the scrolling does not work either but i get no error messages at all. if($testimonial_array[$i]['image']){ $displayimage = tep_image(DIR_WS_IMAGES . 'testimonials/' . $testimonial_array[$i]['image'], $testimonial_array[$i]['title'], C_TESTI_W, ''); }else{ $displayimage = ''; } This is the code that does not seen to size the image. Can anyone please help... Thank You
  8. dforce

    [Contribution] Option Types v2

    I have just installed this brilliant contribution and have found that the value of a text field is not being passed to the checkout confirmation page. I have a text field called gearbox in the product option. I add the attribute to a product and everything works fine. I go through checkout and it shows the gearbox and value added in the shoppng cart but thats it. It does not show it in the checkout confirmation and it does not show it anywhere in admin.. It shows the product option but just not the value entered. Can you please help in this as i need to know what the customer has entered in this field in the admin and account order history and invoice and packingslip. I have spent hours going through the install and from what i can see it is coded this way to not show beyond shopping cart. PLEASE PLEASE PLEASE HELP... this is the last thing im adding and the store is due to go live monday morning.
  9. dforce

    osC reCaptcha

    Right i believe i have solved this problem. My code was doing the same and i was using the integrated look and the css would not change and colours at all, untill i replaced the following code. <!-- start modification for reCaptcha --> <tr> <td class="main"><?php echo ENTRY_SECURITY_CHECK1; ?></td> </tr> <tr> <?php $languages_query = tep_db_query("select code from " . TABLE_LANGUAGES . " where directory = '" . $language . "'"); $language_id = tep_db_fetch_array($languages_query); ?> <script> var RecaptchaOptions = { theme : 'white', tabindex : 3, lang : '<?php if (in_array($language_id['code'] ,array('en', 'nl', 'fr', 'de', 'pt', 'ru', 'es', 'tr'))) {echo $language_id['code']; } else {echo 'en'; } ?>', }; </script> <td><?php echo recaptcha_get_html(RECAPTCHA_PUBLIC_KEY); ?></td> </tr> <!-- end modification for reCaptcha --> With the code below. <!-- start modification for reCaptcha --> <tr> <td class="main"><b><?php echo ENTRY_SECURITY_CHECK1; ?></b></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" cellspacing="2" cellpadding="2"> <tr> <?php $languages_query = tep_db_query("select code from " . TABLE_LANGUAGES . " where directory = '" . $language . "'"); $language_id = tep_db_fetch_array($languages_query); ?> <script> var RecaptchaOptions = { theme : 'clean', tabindex : 3, lang : '<?php if (in_array($language_id['code'] ,array('en', 'nl', 'fr', 'de', 'pt', 'ru', 'es', 'tr'))) {echo $language_id['code']; } else {echo 'en'; } ?>' }; </script> <td><?php echo recaptcha_get_html(RECAPTCHA_PUBLIC_KEY); ?></td> </tr> </table></td> </tr> </table></td> </tr> <!-- end modification for reCaptcha --> It was the comma that was creating the problem and also stopping the css to work. (see ---Remove , ---) lang : '<?php if (in_array($language_id['code'] ,array('en', 'nl', 'fr', 'de', 'pt', 'ru', 'es', 'tr'))) {echo $language_id['code']; } else {echo 'en'; } ?>', --Remove , --- }; Hope this helps and it works on all pages this code is added to.. Thanks to the original coders of this contribution... NICE ONE>>> :blush: