Jump to content

jwsfun

Members
  • Content count

    345
  • Joined

  • Last visited

  • Days Won

    1

jwsfun last won the day on September 12 2013

jwsfun had the most liked content!

2 Followers

Profile Information

  1. Ian, That did the trick...Thank you very much for all your help :).
  2. Ian, Thanks for the info... 1. My site is hosted by another company...I do not own my own server [yet]. So, the error or reason this shows up is still confusing. 2. I have never used Search Engine Safe URLS and always keep it set to false. 3. The extra 'shop' was a bit of a bizarre mystery: I couldn't find this in the gallery.php file anywhere but it may have occurred when I attempted to change the linking itself (the extra "/gallery" bit). I don't know how you're able to view the gallery and pics...I get a blank page ("The page cannot be found") when I click on one of the gallery category links. Any ideas? I'm rather new to php/css myself...
  3. Jesse, I checked it out: Why is system info showing when viewing the properties of this page? Do you mean my firewall?
  4. :blink: No one else uses this contribution?
  5. jwsfun

    Wishlist 2.0 Support Thread

    Tony, Check the thread for this contribution, specifically page 4 (you're on page 13)... It sounds like you're missing a </form> tag somewhere, but I can't say which one. You'll have to check your wishlist.php file.
  6. Has anyone else installed the Gallery Integrated contribution? I had no problems with the actual install itself, but I've run into an problem with the path to display images (I can't even get the included sample images to display). The script from the gallery.php is below: <?php $nmbr=25; //qty pics per page $file="gallery.php"; //main file $rep1="sm_$rpd"; //thumbnain prefix;) $rp="gallery/$rpd"; // path to gallery folders $rep="gallery/$rep1"; // another path to gallery folders // LISTING DE TOUTES LES IMAGES $i=0; $handle=@opendir("$rep"); //let us scan your dirs for pics function txt1($cle) { global $txt0; $txtt="gallery.ini"; $filetxt = file($txtt); $counttxt = count($filetxt); for ($b = 0; $b < $counttxt; $b++) { list($namejpg,$comment)=explode("::", $filetxt[$b]); if ($cle==$namejpg){ $txt0= "<b>$comment</b><br>"; return; } else { $txt0=""; } } } while ($fichier = @readdir($handle)) { $extension=substr($fichier,-3); if($fichier!="." && $fichier!=".." && (eregi("gif",$extension)||eregi("jpg",$extension))) { $listing[$fichier]=filemtime("$rp/$fichier"); $per[$i]=$fichier; } $i++; } @closedir($handle); //If found pics - show them, if nothing - show text_gallery_information if(!is_array($listing)) { echo TEXT_GALLERY_INFORMATION; } else { arsort($listing); //Sorting;) $i=1; $rw=1; $xyz=1; $kolvo=0; while (list($cle,$val) = each($listing)) { if($kolvo==0){ $xzy=date("d.m.y ",filemtime("$rp/$cle")); $xzyz=$cle; } if(!$namezzz) { $namezzz=$xzyz; } $im[$xyz].="<td align=\"center\" valign=\"top\" style=\"padding: 3\"><a href=\"$file?rpd=$rpd&rrr=$rrr&namezzz=$cle\"><IMG border=\"0\" SRC=\"$rep/$cle\" alt=\"Uploaded: " .date("d.m.y ",filemtime("$rp/$cle"))."\nToday: " .date("d.m.y ")."\"></a><br><font face=\"Arial Narrow\" size=\"2\">"; txt1($cle); if(date("d.m.y ")==date("d.m.y ",filemtime("$rp/$cle"))){ $im[$xyz].=$txt0."<font color=red>".date("d.m.y ",filemtime("$rp/$cle"))."</font><br>"; } else { $im[$xyz].=$txt0.date("d.m.y ",filemtime("$rp/$cle")); } $im[$xyz].="</font></b></td>\n"; if($i==$nmbr){if($xyz==$rrr){ $linew.="<b>[$xyz]</b>\n"; } else { $linew.="<a href=\"$file?rpd=$rpd&rrr=$xyz&namezzz=$namezzz\">[$xyz]</a> \n"; } $i=0;$xyz++;} if($rw==5){$rw=0;$im[$xyz].="</tr><tr>";} $i++; $rw++; $kolvo++; } if($i<$nmbr&&$i>0){if($xyz==$rrr){ $linew.="<b>[$xyz]</b>\n"; } else { $linew.="<a href=\"$file?rpd=$rpd&rrr=$xyz&namezzz=$namezzz\">[$xyz]</a> ";$i=0;$xyz++;} } if($xyz==25){$linew.="<br>";}; if($rr<5&&$rr>0){$rr=0;$im[$xyz].="</tr><tr>";} if(file_exists("$rep/$image")) { $size = getimagesize ("$rp/$cle/$namezzz"); $imgsize="width=\"250\" height=\"".$size[1]*250/$size[0]."\""; echo "<center><font face=\"Veranda\" size=\"2\">$linew</font><p>\n"; echo "<table border=\"1\" bordercolor=\"#D2E9FF\" style=\"border-collapse: collapse\" width=\"520\">"; echo "<TD vAlign=top align=middle rowspan=\"6\"><a href=\"javascript:openGalary('$rp/$cle/$namezzz')\"><img border=\"0\" src=\"$rp/$cle/$namezzz\" $imgsize alt=\"$namezzz\"></a></td>"; echo "$im[$rrr]"; echo "</tr></table>"; echo "<b><font face=\"Tahoma\" size=\"2\">Total pics: <font color=red>$kolvo</font><br>Most recent pic: <font color=red><a href=\"javascript:openGalary('$rp/$xzyz')\" alt=\"!!!Recent pic!!!\">$xzyz</a></font>, uploaded: <font color=red>$xzy</font></font></b>\n"; echo "<p><font face=\"Veranda\" size=\"2\">$linew</font><p>\n"; } } ?> I think the path problem lies in the first 8 lines (I could be wrong :lol: ): $nmbr=25; //qty pics per page $file="gallery.php"; //main file $rep1="sm_$rpd"; //thumbnain prefix;) $rp="gallery/$rpd"; // path to gallery folders $rep="gallery/$rep1"; // another path to gallery folders // LISTING DE TOUTES LES IMAGES $i=0; $handle=@opendir("$rep"); Can someone take a look at this to see if it's correct? Or, if you've got it installed and can help me get it running, please reply. Thank you.
  7. jwsfun

    Wishlist 2.0 Support Thread

    I agree with Vadertech 100%...For those of you unfamiliar with Amazon's wishlist "system", I strongly urge you to check it out. It's extensive in capability and well-put-together. Those of us using Wishlist 2.0 are quite happy, I'm sure, that we now have this contribution at our disposal. And, the "upgrade" to allow guests to view a friend's wishlist is exactly what I'm working on...If anyone with better php/css experience (mine's minimal at best) can help me out with this, I'd appreciate it. :) Just PM me and let me know. Thanks.
  8. jwsfun

    Wishlist 2.0 Support Thread

    Anyone have any idea what's missing here? I'm trying to get the Wishlist 2.0 contribution to add the customers_firstname, customers_lastname and customers_email_address to the customers_wishlist_table in the database. Here's what I have so far: In shop/includes/application_top.php around lines 408-427: //beginning of wishlist case 'cust_order' : if (tep_session_is_registered('customer_id') && isset($HTTP_GET_VARS['pid'])) { if (tep_has_product_attributes($HTTP_GET_VARS['pid'])) { tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['pid'])); } else { tep_db_query("delete from " . TABLE_WISHLIST . " where products_id = '" . $HTTP_GET_VARS['pid'] . "' and customers_id = '" . $customer_id . "'"); $cart->add_cart($HTTP_GET_VARS['pid'], $cart->get_quantity($HTTP_GET_VARS['pid'])+1); } } tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters))); // Add product to the wishlist case 'add_wishlist' : if (ereg('^[0-9]+$', $HTTP_POST_VARS['products_id'])) { if ($HTTP_POST_VARS['products_id']) { tep_db_query("delete from " . TABLE_WISHLIST . " where products_id = '" . $HTTP_GET_VARS['products_id'] . "' and customers_id = '" . $customer_id . "'"); tep_db_query("insert into " . TABLE_WISHLIST . " (customers_id, customers_firstname, customers_lastname, customers_email_address, products_id, products_model, products_name, products_price) values ('" . $customer_id . "', '" . $customers_firstname . "', '" . $customers_lastname . "', '" . $customers_email_address . "', '" . $products_id . "', '" . $products_model . "', '" . $products_name . "', '" . $products_price . "' )"); } } In shop/includes/modules/wishlist.php, line 11-13: // retreive the wishlist $wishlist_query_raw = "select * from " . TABLE_WISHLIST . " WHERE customers_id=$customer_id AND customers_firstname = ' customers_firstname' AND customers_lastname = ' customers_lastname' AND customers_email_address = ' customers_email_address' order by products_name"; $wishlist_query = tep_db_query($wishlist_query_raw); In shop/wishlist.php, lines 63-71: <?php $wishlist_query_raw = "select * from " . TABLE_WISHLIST . " WHERE customers_id=$customer_id AND customers_firstname = ' customers_firstname' AND customers_lastname = ' customers_lastname' AND customers_email_address = ' customers_email_address' order by products_name"; $wishlist_split = new splitPageResults($HTTP_GET_VARS['page'], MAX_DISPLAY_WISHLIST_PRODUCTS, $wishlist_query_raw, $wishlist_numrows); // $wishlist_split = new splitPageResults($wishlist_query_raw, MAX_DISPLAY_WISHLIST_PRODUCTS); $wishlist_query = tep_db_query($wishlist_query_raw); if ($wishlist_numrows > 0 && (PREV_NEXT_BAR_LOCATION == '1' || PREV_NEXT_BAR_LOCATION == '3')) { ?> This is functioning except for the fact that none of the additional information (first name, last name, email address) is being inserted into the database. But even worse than that, nothing can be added to a wishlist now, even though there are previous items still listed in a test wishlist, in the customers_wishlist table (4 items altogether that were there previous to trying to modify all of this). I'm not getting any errors but as I said, the mod isn't working properly. I'm not sure if I'm missing the addition of any clauses or anything else from other files here, but I'd like to get this wrapped-up so I can submit a "allow guest to view wishlist" modification to this great contribution. I'd appreciate someone with some PHP/MySQL background/knowledge lending me a guiding hand with this mess I've created. Thanks :).
  9. jwsfun

    Centered page?

    Blake, osC-Center Shop v2.1 for MS.2 is one particular contribution that all a lot of people have used. Personally, and like a lot of other people as well, I had way too much trouble getting Center Shop to function properly (or, completely I should say). I much rather preferred finding and using Dead Easy Center Thingy (yes, that's what it's called). It worked like a charm :).
  10. jwsfun

    [Contribution] UPS XML Tracking

    Tim, Those stylesheet addition are from the November 4th posting of this contribution...I don't know what update you're using, but Steve has been kind enough to help get this working, so just stick with it, you'll get it working soon enough. :)
  11. I've got both the state and counties ('suburb', but defined as 'county' where needed) dropdown boxes working perfectly but have now run into a tax problem <_< ...In my includes/functions/general.php, I have the following bit of code: // Returns the tax rate for a zone / class // TABLES: tax_rates, zones_to_geo_zones function tep_get_tax_rate($class_id, $country_id = -1, $zone_id = -1) { global $customer_zone_id, $customer_country_id, $customer_id; $customer_suburb_query = tep_db_query("select entry_suburb, entry_zone_id from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . $customer_id . "'"); $customer_suburb = tep_db_fetch_array($customer_suburb_query); $customer_suburb['entry_suburb'] = strtoupper($customer_suburb['entry_suburb']); if (($customer_suburb['entry_suburb'] == 'Philadelphia County') && ($customer_suburb['entry_zone_id'] == 51)) { return 7.0000; } elseif (($customer_suburb['entry_suburb'] == 'Allegheny County') && ($customer_suburb['entry_zone_id'] == 51)) { return 7.0000; } elseif (($customer_suburb['entry_suburb'] == '') && ($customer_suburb['entry_zone_id'] == 51)) { return 6.0000; } elseif ( ($country_id == -1) && ($zone_id == -1) ) { if (!tep_session_is_registered('customer_id')) { $country_id = STORE_COUNTRY; $zone_id = STORE_ZONE; } else { $country_id = $customer_country_id; $zone_id = $customer_zone_id; } } $tax_query = tep_db_query("select SUM(tax_rate) as tax_rate from " . TABLE_TAX_RATES . " tr left join " . TABLE_ZONES_TO_GEO_ZONES . " za ON tr.tax_zone_id = za.geo_zone_id left join " . TABLE_GEO_ZONES . " tz ON tz.geo_zone_id = tr.tax_zone_id WHERE (za.zone_country_id IS NULL OR za.zone_country_id = '0' OR za.zone_country_id = '" . $country_id . "') AND (za.zone_id IS NULL OR za.zone_id = '0' OR za.zone_id = '" . $zone_id . "') AND tr.tax_class_id = '" . $class_id . "' GROUP BY tr.tax_priority"); if (tep_db_num_rows($tax_query)) { $tax_multiplier = 0; while ($tax = tep_db_fetch_array($tax_query)) { $tax_multiplier += $tax['tax_rate']; } return $tax_multiplier; } else { return 0; } } //// // Return the tax description for a zone / class // TABLES: tax_rates; function tep_get_tax_description($class_id, $country_id, $zone_id) { global $customer_id; $customer_suburb_query = tep_db_query("select entry_suburb, entry_zone_id from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . $customer_id . "'"); $customer_suburb = tep_db_fetch_array($customer_suburb_query); $customer_suburb['entry_suburb'] = strtoupper($customer_suburb['entry_suburb']); $tax_query = tep_db_query("select tax_description from " . TABLE_TAX_RATES . " tr left join " . TABLE_ZONES_TO_GEO_ZONES . " za ON tr.tax_zone_id = za.geo_zone_id left join " . TABLE_GEO_ZONES . " tz ON tz.geo_zone_id = tr.tax_zone_id WHERE (za.zone_country_id IS NULL OR za.zone_country_id = '0' OR za.zone_country_id = '" . $country_id . "') AND (za.zone_id IS NULL OR za.zone_id = '0' OR za.zone_id = '" . $zone_id . "') AND tr.tax_class_id = '" . $class_id . "' order by tr.tax_priority"); if (($customer_suburb['entry_suburb'] == 'Philadelphia County') && ($customer_suburb['entry_zone_id'] == 51)) { return TEXT_CUSTOM_TAX_RATE; // Input your custom tax description here } elseif (($customer_suburb['entry_suburb'] == 'Allegheny County') && ($customer_suburb['entry_zone_id'] == 51)) { return TEXT_CUSTOM_TAX_RATE2; } elseif (($customer_suburb['entry_suburb'] == '') && ($customer_suburb['entry_zone_id'] == 51)) { return TEXT_CUSTOM_TAX_RATE3; } Collecting the right tax rate for Philadelphia and Allegheny Counties worked perfectly until the addition of the counties dropdown box, and now it does not work at all---it's only picking up the normal 6% sales tax (from admin). I can't figure out what I need to do to fix this. :huh: Anyone have some suggestions or advice on how to fix this? I need to fix this ASAP so I can update a contribution I've posted... :)
  12. jwsfun

    [Contribution] UPS XML Tracking

    Tim, Make sure you've added the following to your stylesheet: TABLE.trackingBox { background: #bbc3d3; } TABLE.trackingBoxContents { background: #f4f7fd; } TD.trackingBoxHeading { font-family: Verdana, Arial, sans-serif; font-size: 11px; color: #ffffff; line-height: 1.5; } TD.trackingBoxHeading2 { font-family: Verdana, Arial, sans-serif; font-size: 11px; background: #C0C0C0; color: #ffffff; line-height: 1.5; } TD.trackingBox { font family: Verdana, Arial, sans-serif; font size: 11px; color: #000000; line-height: 1.5; } TD.trackingBoxContents { font family: Verdana, Arial, sans-serif; font size: 11px; color: #000000; line-height: 1.5; } TD.trackingBoxContents-odd { font family: Verdana, Arial, sans-serif; font size: 11px; background: #f4f7fd; color: #000000; line-height: 1.5; } TD.trackingBoxContents-even { font family: Verdana, Arial, sans-serif; font size: 11px; background: #ffffff; color: #000000; line-height: 1.5; } TR.trackingBoxContents-odd { background: #f4f7fd; } TR.trackingBoxContents-even { background: #ffffff; }
  13. jwsfun

    [Contribution] UPS XML Tracking

    Tim, Take a look at your popup_tracker.php file...I think that this is where you might be having the problem. Or, there could be a conflict (with what you have text color set to) with "smallText" and "main" text in your stylesheet and what's in popup_tracker.php (below): In popup_tracker.php, you should have (about line 21): <link rel="stylesheet" type="text/css" href="stylesheet.css"> And around line 33: <td align="left" width="100%" class="main"> Try changing "main" to "smallText" (in popup_tracker.php) to see if this helps.
  14. jwsfun

    Wishlist 2.0 Support Thread

    Mark, This is what I have (the whole thing, lines 63-71)...Copy and paste it to see if it works for you: <?php $wishlist_query_raw = "select * from " . TABLE_WISHLIST . " WHERE customers_id=$customer_id order by products_name"; $wishlist_split = new splitPageResults($HTTP_GET_VARS['page'], MAX_DISPLAY_WISHLIST_PRODUCTS, $wishlist_query_raw, $wishlist_numrows); // $wishlist_split = new splitPageResults($wishlist_query_raw, MAX_DISPLAY_WISHLIST_PRODUCTS); $wishlist_query = tep_db_query($wishlist_query_raw); if ($wishlist_numrows > 0 && (PREV_NEXT_BAR_LOCATION == '1' || PREV_NEXT_BAR_LOCATION == '3')) { ?>
  15. A BIG oops, people, on displaying that image...Try this instead: I'm such a dork... :lol:
×