Jump to content

jwilkins

Members
  • Content count

    62
  • Joined

  • Last visited

Everything posted by jwilkins

  1. jwilkins

    ULTIMATE Seo Urls 5 - by FWR Media

    Rob, I am putting together a very simplistic contribution that I would like to integrate a "drop on top" file-set for USU5. The idea is based on those members who wish to expand their product_description based on further information they have to impart on their customer base, without the wish to have an "expanded" product_info page or "bamboozle" the customer. The code allows an if NOT NULL "Read more..." text link through to a stand-alone file whereby more information can be accessed via the specific product_id. I have (locally) just used the /includes/module/Ultimate_Seourls5/modules/Usu_Products.php as the file to produce my -prm- indicator. I was, however wanting (for modular purposes) to provide a simple addon /.../Usu_Read_More.php so as to reduce the need to edit your code. However, is the product_id dependancy available to use for modules outside the Usu_Products.php file? I have attempted to "clone" the Usu_Products.php logic, omitting references to product_reviews etc, but have found an error 404 when I do. I can a only assume that this is due to the product_id previously being declared? Would you be able to suggest a work-around? Or if the product_id is a dependant, is the only way to integrate a new module, to provide an amended Usu_Products.php file? Kind regards, James
  2. jwilkins

    [Contribution] U HTML Emails

    Andrew, Thank you so much for posting your findings! I've sunk so many hours into trying to get this to work wioth paypal_standard! I shall amend the code this evening (when I get home from my day job) and get back to you with whether it works. If it does, I'd probably recommend adding it to the contribution thread! Thanks once again for taking the time to post your code... it's good to see that there are helpful people out there! Have a good day James
  3. jwilkins

    [Contribution] Complete Review System

    Hi Spooks, There was no hastle at all.. I'm grateful for the contribution, so a hiccup isn't a problem! Thanks again for the code above, it now works well! Regards, James
  4. jwilkins

    osC reCaptcha

    Hi All, Just an FYI for those who want the integrated Recaptcha code to validate to XHTML Transitional 1.0 (and most probably other doctypes) a couple change need to be made (to all files) Example - contact_us.php Instead of original code: <!-- 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 --> Find </head> (in all catalog pages where oscRcaptcha has been applied) and do the following: <script language="javascript" type="text/javascript"><!-- 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> </head> I.e - remove the embeded javascript from the html content of the page to show as such (for contact_us.php - but should be replicated for all other files) <!-- 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); ?> <td><?php echo recaptcha_get_html(RECAPTCHA_PUBLIC_KEY); ?></td> </tr> <!-- end modification for reCaptcha --> Notice that only the 'javascript' element has been re-placed from the original code instructions and inserted within the <head> </head> section of the file. I hope this helps! Regards, James
  5. jwilkins

    [Contribution] Complete Review System

    Hi Sam, Thanks for the pointers re: the tep_draw_pull_down_date() issue - I have now located the problem and managed to fix as shown below. The fix will need to be applied to the install package. FIX Within the Complete Reviews System (Admin) V1.5.2 contribution, locate - Complete Reviews System (Admin) V1.5.2.txt Towards the bottom of the file find: //// // Creates a pull-down list for dates function tep_pull_down_date($name='date', $day='', $month='', $year='', $full=false, $mnth=false, $starty=''){ Replace with: //// // Creates a pull-down list for dates function tep_draw_pull_down_date($name='date', $day='', $month='', $year='', $full=false, $mnth=false, $starty=''){ OR if the contribution has already been applied to your store: Locate - admin/includes/functions/html_output.php and replace the code sequence above i.e include the tep_draw_pull_down_date However (and I'll have a look at this tomorrow), this deals with the displayed error - but has not actually produced a pull down list of dates.... something to have a look at later... I hope the above helps, Regards, James
  6. jwilkins

    [Contribution] Complete Review System

    To report back... I have done a full un-install and re-install of the contribution (i.e install the original package and then add the admin modifications as per latest release), but still come across the tep_draw_pull_down_date() error as stated above. This only occurs admin side - a test product review has been placed client side - this works (is visible client side once approved). The review is visible though admin control - catalog - reviews The tep_draw_pull_down_date() error comes in either when: editing a review and creating an admin 'pseudo' review. As indicated above, the codes drops at line 198 of admin/reviews - the function call tep_draw_pull_down_date() If there is any more information that would prove useful in looking at the problem, please let me know. Thanks in advance for any advice! Regards, James
  7. jwilkins

    [Contribution] Complete Review System

    Just in case anyone else has run into this problem as indicated below from another post thread (thought I'd pull it into this thread as a potential one-stop-shop) Spooks has fixed the above error as shown below (thanks Spooks) catalog/product_reviews_write.php Find: tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, ADMIN_EMAIL_SUBJECT, ADMIN_EMAIL_MESSAGE, ADMIN_EMAIL_FROM_NAME, STORE_OWNER_EMAIL_ADDRESS); tep_redirect(tep_href_link(FILENAME_REVIEW_NOTICE, tep_get_all_get_params(array('action')))); Replace with: $name = tep_db_input($customer['customers_firstname']) . ' ' . tep_db_input($customer['customers_lastname']); tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, 'New Review Submitted', 'A new review has been submitted for approval, please log in and check.', $name, $email); tep_redirect(tep_href_link(FILENAME_REVIEW_NOTICE, tep_get_all_get_params(array('action')))); Regards, James
  8. jwilkins

    [Contribution] Complete Review System

    Hi All, Thanks for posting your thoughts and sorry for the delay in responding, I've been tied up all today (not literally!) I've gone through all the code again, checked the the function has been included in admin/includes/functions/html_output.php and the other code steps, but still come across the tep_draw_pull_down_date() error ... I shall try a complete uninstall/re-install, see what happens and report back! Cheers James EDIT - FYI Sam, I was running an admin side review - I haven't yet tested client side
  9. jwilkins

    Only business name is passed to paypal.

    Hi JonathonH I have implemented THIS contribution to achieve the effect I think you're after. This passes the users shopping_cart session details to PayPal which in turn show's the customers cart item(s) in the PayPal order. It needs a bit of 'tweaking' on the design side, but works well off the shelf. Give it a go... Regards, James
  10. jwilkins

    ULTIMATE Seo Urls 5 - by FWR Media

    Rob, Thanks for your speedy response! I can confirm that once the code change above was applied, the W3C validation issue was resolved. Thank you for your time, Regards James
  11. jwilkins

    ULTIMATE Seo Urls 5 - by FWR Media

    Hi Rob, Before I start, I apologise if this is outside your scope for forum support or out of USU5 scope. If so, I may wish to engage you privately! Background: I have recently completed and published my web site and have re-visited my attempt at validating the site to XHTML 1.0 transitional (a task I had 'completed' before the addition and/or upgrade of a few contributions - USU5 included) standards. At this point I am attempting to address a W3C error as listed below, that prior to upgrading from USU2 to USU5 had not occurred, hence my post here. Problem: d_search_result.php?keywords=bruzzi&search_in_description=1">bruzzi</a></span An entity reference was found in the document, but there is no reference by that name defined. Often this is caused by misspelling the reference name, unencoded ampersands, or by leaving off the trailing semicolon (;). The most common cause of this error is unencoded ampersands in URLs as described by the WDG in "Ampersands in URLs". Entity references start with an ampersand (&) and end with a semicolon (;). If you want to use a literal ampersand in your document you must encode it as "&" (even inside URLs!). Be careful to end entity references with a semicolon or your entity reference may get interpreted in connection with the following text. Also keep in mind that named entity references are case-sensitive; &Aelig; and æ are different characters. If this error appears in some markup generated by PHP's session handling code, this article has explanations and solutions to your problem. Note that in most documents, errors related to entity references will trigger up to 5 separate messages from the Validator. Usually these will all disappear when the original problem is fixed. Source of error: The above generated link originates from my \includes\boxes\searchtagcloud.php as per this contribution and the code below: <?php /* $Id: catalog/includes/boxes/searchtagcloud.php */ ?> <tr> <td> <!-- tagcloud //--> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => sprintf(TABLE_HEADING_TAGCLOUD, strftime('%B'))); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $products_query_raw = "select search, freq from customers_searches where language_id = " .$languages_id." order by search DESC"; $products_query1 = tep_db_query($products_query_raw); class tagcloud { // tag-styles: from very tiny to very big // var $a_tag_styles = array('font-size:xx-small', 'font-size:x-small', 'font-size:small', 'font-size:medium', 'font-size:large', 'font-size:x-large', 'font-size:xx-large'); var $a_tag_styles = array('font-size:9px', 'font-size:6px', 'font-size:7px', 'font-size:8px', 'font-size:9px', 'font-size:10px','font-size:11px', 'font-size:12px','font-size:13px','font-size:17px', 'font-size:20px'); // how many tags do we want to display? var $max_shown_tags; // the tags var $a_tc_data; /** * Construct */ function tagcloud($max_shown_tags = SEARCH_TAG_CLOUD_MAX_SHOWN_TAGS) { $this->max_shown_tags = $max_shown_tags; } /** * Saves the date for the tagcloud * * @param array $a_tc_data An array with data. The keys are the actual tags, the values are how often they occure. * eg.: array('tag1' => 3, 'tag2' => 1, 'tag3' => 7); * @return bool Always returns true */ function set_tagcloud_data($a_tc_data) { $this->a_tc_data = $a_tc_data; arsort($this->a_tc_data); // since we only want a specified number of tags, we strip all the tags, that do not often occure. $a_tags = array(); reset($this->a_tc_data); $tag_count = count($this->a_tc_data); $i = 1; while ($i <= $tag_count && $i <= $this->max_shown_tags) { $a_tags[key($this->a_tc_data)] = current($this->a_tc_data); next($this->a_tc_data); $i++; } $this->a_tc_data = $a_tags; return true; } /** * Create the Tagcloud * * @return string Returns the HTML code for the tagcloud */ function get_tagcloud() { if (count($this->a_tc_data) <= 0) { // no tags return ''; } // calculate the range that lies between the the different tag sizes reset($this->a_tc_data); $count_high = current($this->a_tc_data); $count_low = end($this->a_tc_data); $range = ($count_high - $count_low) / (count($this->a_tag_styles) - 1); // sort the tags alphabetically //sort the array by keyword (not casesensitive) uksort($this->a_tc_data, "strnatcasecmp"); // generate the html for the cloud if ($range > 0) { $b_first = true; $prev_search = ''; foreach ($this->a_tc_data as $tag => $tagcount) { $tag1 = str_replace(" ","%20",$tag); if ($b_first) { $html_cloud = '<div style="width:'. SEARCH_TAG_CLOUD_BOX_WIDTH .'; overflow:hidden"> <span style="' . $this->a_tag_styles[round(($tagcount - $count_low) / $range, 0)] . '"><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, 'keywords=' . $tag1 . '&search_in_description=1') .'">' . $tag . '</a></span>'; $b_first = false; } else { $html_cloud .= ' <span style="' . $this->a_tag_styles[round(($tagcount - $count_low) / $range, 0)] . '"><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, 'keywords=' . $tag1 . '&search_in_description=1') .'">' . $tag . '</a></span>'; } } $html_cloud .= '</div>'; } else { // all tags are the same size $b_first = true; foreach ($this->a_tc_data as $tag => $tagcount) { if ($b_first) { $html_cloud = '<span class="tag' . $this->a_tag_styles[round((count($this->a_tag_styles)-1) / 2, 0)] . '"><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, 'keywords=' . $tag1 . '&search_in_description=1') .'">' . $tag . '</a></span>'; $b_first = false; } else { $html_cloud .= ' <span class="tag' . $this->a_tag_styles[round((count($this->a_tag_styles)-1) / 2, 0)] . '"><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, 'keywords=' . $tag1 . '&search_in_description=1') .'">' . $tag . '</a></span>'; } } } return $html_cloud; } } $tc_a_tags = array(); while ($tcproducts = tep_db_fetch_array($products_query1)) { $tc_word = preg_replace('/(<(?:[^"\']|"(?:[^"]|\\\")*?"|\'(?:[^\']|\\\')*?\')*?' . '>)/si', ' ',$tcproducts['search']); $tc_freq = $tcproducts['freq']; $tc_a_tags[$tc_word] = $tc_freq; } $tc_tch = new tagcloud(); // hand over the tags to the class $tc_tch->set_tagcloud_data($tc_a_tags); // request the tagcloud $tc_tagcloud = $tc_tch->get_tagcloud(); $info_box_contents[] = array('text' => $tc_tagcloud); // BOF All Producst SEO $info_box_contents[] = array('align' => 'center', 'text' => '<a class="allproductsBox" href="' . tep_href_link(FILENAME_ALLPRODS_SEO, '', 'NONSSL') . '" title="' . BOX_INFORMATION_ALLPRODS_SEO_SEARCHTAGCLOUD . '">' . BOX_INFORMATION_ALLPRODS_SEO_SEARCHTAGCLOUD . '</a>'); // EOF All Producst SEO new infoBox($info_box_contents); ?> <!-- new_products_eof //--> </td> </tr> Resolution attempt: I have tried several methods to resolve the W3C validtion error including: (as a test) hardcoding '&' with '&' which did bring down the error count (however not advisable I'm sure). I have also searched forum threads that lead me to the \includes\functions\html_ouput.php and using $link = str_replace('&&', '&', $link) which was present in USU2 (and I notice something similar in \inlcudes\modules\ultimate_seo_urls5\classes\Usu_Validator.php - forgive my lack of PHP knowledge) I have also tried using USU5 urls switched to off, W3C valid urls both on and off - with no joy. Would you therefore be able to advise a route in which I should take to attempt to resolve the XHTML output error? Once again, I apologise if this is not a USU5 issue, but infact another error elesewhere. Kind regards, James osCommerce 2.2RC2a PHP 5.2.9 MySQL 5.0.82
  12. jwilkins

    ULTIMATE Seo Urls 5 - by FWR Media

    Hi Rob and Claudia, Just reading the last two post above re: USU5 and Header Tags 3.1.5 - I have both the contributions working together with no loss of column_right structure/placement on the page whilst using both rewrite and standard USU5 methods. One note to mention is that I have spent (and will need to revisit the code with introducing more contributions) a lot of time trying to bring the Header Tags code to W3C XHTML 1.0 Transitional standards (along with a great number of other contributions). I found that on a vanilla install, Header Tags (and others) did have a tendancy to throw the column_right out of place. I therefore would suggest (although don't quote me on it!) that it's not an incompatibility issue with the two contributions - rather a need to 'sort' the HTML display out. If you try (and I haven't done it in a while) installing HTSEO first on a vanilla install and see what the output is, you should find that there will be a display error, thus it not being USU5. If necessary I'll switch my USU5 URI's to 'standard' for you guys to have a look.. just give me a shout. Regards, James
  13. jwilkins

    [Contribution] U HTML Emails

    lyonsperf, I'm not familiar with the MVS contribution as I don't use it myself - however, which files does it particularly affect? You mentioned that you have the UHTML contribution installed and working, therefore, which files do you require UHTML for it to work with the MVS contribution? As a starting point, locate the affected files and search (cntrl F) for tep_mail - this is the function that sends the mail once all the data has been gathered. Usually above the tep_mail function you will find $email or $email_ it's at this point you will need to include the UHTML email if - else statement. If you poost your code, I'll have a quick look for you. James
  14. jwilkins

    [Contribution] U HTML Emails

    Hi Addi, What other contributions do you have installed that may conflict with admin\orders.php? If you post your code for admin\orders.php - I'll have a quick look for you. You will also need to post your includes\modules\UHtml Emails\****\orders.php file too. Regards James
  15. Not a problem at all... thanks for the contribution!
  16. Claudia, Just a quick note.. I have FWR Ultimate SEO URLs 5 and the latest Header Tags Seo (v3.1.5) working on my store and no compatibility issues between the two contributions. You should be good to go on using both of them together! Regards James
  17. jwilkins

    [Contribution] U HTML Emails

    Just having a look at my PayPal set-up and noticed that I have set my PayPayl return file as \checkout_process.php - I'm wondering whether this has an effect on the UHTML email contribution?? Is it possible that I need to include the UHTML 'ifelse' statement inside the \includes\modules\payment\paypal_standard.php script but set my PayPal return address to checkout_success.php rather than checkout_process.php? It seems as is paypal_standard builds the order up itself and tep_href_link to checkout_success.php... These are just some thoughts.. so would be great to get some direction from anyone who has this module working! Cheers James
  18. jwilkins

    [Contribution] U HTML Emails

    Hi All. I have been trying to integrate this excellent module with my PayPal Standard payment module and am not having any joy at all! I'm running off osCommerce 2.2rc2a and was wondering whether anyone else has had problems getting PayPal Standard and UHTML Emails working together? I've got UHTML working fine with 'Moneyorder', so it's installed correctly in /chekout_process.php - however I'm not generating HTML emails through PayPal Standard. My search has lead me to the /includes/modules/payment/paypal_standard.php file which seems to run the chekout_process script itself. But on inserting the UHTML ifelse statement in there, it breaks the process... so I'm a little lost! If anyone has got it working and could give me some pointers, I'd be very greatful! Regards, James
  19. jwilkins

    Automatically send data feed to Froogle

    Hi All, Just a quick question: Has anyone looked at getting this great contribution to work with FWR Media's Ultimate Seo URL's v5? I now have that contribution installed but am wondering what to do with regards to the Google feeder that relied on the now non-existant seo.class.php Any help would be appreciated! Kind regards, James
  20. Hi All, This is a generic question to all community members who may be using Actual Attribute Price v1.6 and Add Weight To Product Attribute v.X and have managed to get them to work correctly together? Problem - My store (will) need to show the actual attribute price (for customer ease, I HATE the +/- price) but importantly for me, also calculate the price of the shopping_cart based on the attribute weight (I will be selling different weights of coffee and tea (indicated within the attribute - drop down - section)). I have spent the past 3 days trying to marry the two contributions together correctly, but seem not to be in luck, hence the post here! This may prove to be a very usefull, all-in-one contribution to develop as I can forsee a number of store owners wanting to use such a method. There may be a contribution out there already? Any help would be appreciated! Kind regards, James
  21. Hi Chris, Back from the 'day job' now and gave the new install a go. Your fix has addressed the duplicate class definition error as stated yesterday - which is great - thank you! I won't be using any international shipping methods in my store (as totally UK based), but thought I'd instate the option for international signed for to test. In doing so, there was an error returned within the admin control panel as stated below: Warning: Division by zero in C:\Program Files\EasyPHP 3.0\www\xxxx\includes\modules\shipping\rmintsig.php on line 159 line 159 being: if (($order->info['subtotal']/MODULE_SHIPPING_RMINTSIG_MAX_VALUE) > $insurance) { I won't be using any international shipping methods, so the above is just an FYI and to report back for testing purposes (this may however just be my set up - if so, apologies in advance!). Thanks again for the 'fix' to the initial problem and thanks for the contribution as a whole!! Kind regards, James
  22. Hi Chris, Thanks for all you hard work and effort on this release, it's greatly appreciated! I'm back at my 'day job' now so will download and install your updated version this evening and report back. Thank you for revisiting the problem last night, it's always good to know that you're not going mad! :-) Once again, I shall report back once installed. Kind regards, James
  23. Hi Chris, I have tried the updgrade/re-install again and found the same error, so ran a 'site wide' search for the class firstrec and can only find one instance of it in catalog/includes/modules/shipping/rmfistrec.php on line 32 - so I'm a little bit puzzled! I think I may tackle this again in the morning when my brain is less tired! I'll report back with any findings.. Thanks for your help thus far, James
  24. Hi Chris, I have just attempted to update your contribution to the new v2.1.0 release from v2.0.6+v2.06pl1+v2.06-v2.07 patches by rdropping the files within the v2.1.0 release on top of those I have on my store but I get an error returned as stated bleow when I access the shipping tool within the admin control panel: Fatal error: Cannot redeclare class rmfirstrec in C:\Program Files\EasyPHP 3.0\www\xxxxx\includes\modules\shipping\rmfirstrec.php on line 32 Line 32 reads: class rmfirstrec { Have I gone about upgrading in the wrong way? Or do you have nay ideas on a fix/work around? Thanks in advance for your help, James
×