Jump to content
Larry Ullman's Book Forums

abigail

Members
  • Posts

    184
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by abigail

  1. Probably your code is not finding the CSS files but I don't have time to look into it for you. Find out where the files are and where your code is looking for them.
  2. This is the way that affiliate site gave me the links. I have no choice about that. And I do need those links. The last thing I can think of is Malwarebytes, which I have submitted a ticket to them.
  3. One other thing I noticed with that site and it's 404 page, it appears they are forcing the entire site to https (before only the login pages and such were https). Apparently, when they change that script to https, that is when the page is not found. That they will probably fix once they become aware of this. But that link still does not show on my site.
  4. Thank you very much for pointing that out to me. However, when I go to my site, adviceofthequeen.com, the links do not even show. That is a separate problem, right? That I need to solve.
  5. I've had this code working for years. A few months ago the links (to affiliate site) stopped showing. I didn't do anything about it until a few weeks ago. I noticed that the links showed in Opera and not in Firefox. I added a line that advises people to use another browser other than Opera. I also posted at FF forum but no one there knows why this is happening to me. Today I went to Opera and the links do not show there either. These links are provided by the affiliate site and I have no control over them, but I don't notice anything unusual about them. Hopefully Larry or someone else will see the problem. Following is the code that is included. <?php if (!defined('ADVICE_ENV')) { die;} // this is for the new pages that I don't have a banner ?> <p class="noshowlink-box"><title="In case the link does not show.">In case the link does not show you should use a different browser such as Opera.</p> <div class="centered-banner"> <script type="text/javascript" src="http://www.the-tree-of-life.com/lib/jquery/jquery.js"></script> <script type="text/javascript" src="http://www.the-tree-of-life.com/js/core.js"></script> <script type="text/javascript"> //<![CDATA[ if (typeof(cart_banner) == "undefined") var cart_banner = new Array(); cart_banner[25] = { BoxWidth: '236', BoxHeight: '16', OutlineColor: '#296DC1', TitleTextColor: '#FDFDFD', TextColor: '#333333', TextBackgroundColor: '#F9F9FF', ShowURL: 'Y' /* Y - yes; N - no*/ } //]]> </script> <script id="id_script_banner_25" type="text/javascript" src="http://www.the-tree-of-life.com/index.php?dispatch=aff_banner.view&amp;bid=25&amp;type=js_content&amp;sl=EN&amp;product_ids=&amp;aff_id=55"></script> </div> <p class="na-box">This Banner Link is not yet available, meanwhile, click on banner above and search for this treatment.</p> And here is link to one place that file is included and the link should show. These links are all around my website. http://adviceofthequeen.com/unique/reactive-airways-disease-treatment#reactive-airways-disease-treatment This is running on Windows 7. I think I also tested at the library and the links did not show using FF. I just noticed the webhostinghub gives me the option to change my PHP version but I have no idea if I should do this. I can go up to 7.2 Current: PHP 5.4 System Default: PHP 7.0
  6. 'SHA1('mypass') You have an extra single quote at the start of this snippet.
  7. I thought your problem was an additional new line. Every HTML DIV and <P> will start a new line. So you will need a counter to print a <p> and </p>, every 3 items instead of every item. Otherwise post some code. The CSS won't matter.
  8. Just looking at the code, without trying to actually test it, it seems you already have a while loop. If your problem is an extra line between the image and the text, then that <p> would be the reason. Otherwise, try assigning the values to variables then printing it out on a separate line of code (after retrieving from the database). Maybe that will give you more information. It is the HTML that is giving lines, not the CSS.
  9. Your server provider should be able to help you with this, I would think.
  10. I found these typos: was to complicated was too complicated or even multiple business. or even multiple businesses. Your in a growing family You're in a growing family And the final part that make J5C And the final part that makes J5C it respects it users it respects its users as long as your an active member as long as you're an active member The site looks good as far as content and appearance. I did not take the time to register. It seems your site would compete with Craigslist which will be difficult to succeed at, I would think. Nice job, though.
  11. You do have a good point, Larry. What I will do is talk to them and see what they can say for themselves and maybe I will determine that they are alright. The thing that bothers me a little is there are no other good reviews out there. There doesn't seem to be any review for any of the eCheck companies which seems odd.
  12. I want to put eChecks on my website (beside Stripe). 1. Does anyone know if eCheckDirect is a good one? How do these eCheck companies implement PCI compliance? 2. Do you know any other eCheck company that is good? 3. Paystand looked really good but I found 2 really bad reviews online that said they did not transfer the money but kept it. I warn you.
  13. Never mind. I figured it out. The parameters are overwritten by the Select. Can you see what is wrong with this Select. I know the variables are set and I know there is no data, the $islocked and $addr are both blank. I only fetch address to see if I can get any data. I did this from phpmyadmin and it retrieved locked=1 function failed($dbc, $em, $ad, $TheTable) { $islock=0; $addr=""; $stmt = mysqli_prepare($dbc, 'SELECT locked, address FROM $TheTable WHERE (email=? OR address=?) LIMIT 1'); mysqli_stmt_bind_param($stmt, "ss", $em, $ad); mysqli_stmt_execute($stmt) or trigger_error("Query: $q\n<br />MySQL Error: " . mysqli_error($dbc)); mysqli_stmt_bind_result($stmt, $islocked, $addr); mysqli_stmt_fetch($stmt); if ($islocked > 0) { mysqli_stmt_close($stmt); return (true); } mysqli_stmt_close($stmt); return (false); } // End of function. And this is the table CREATE TABLE IF NOT EXISTS `B_Distributors` ( `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT COMMENT 'db increments', `email` varchar(80) COLLATE utf8_unicode_ci NOT NULL, `address` varchar(80) COLLATE utf8_unicode_ci DEFAULT NULL, `locked` tinyint(1) unsigned DEFAULT NULL COMMENT 'I forbid', `notes` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `orig_date` datetime DEFAULT NULL, `time_stamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ; -- -- Dumping data for table `B_Distributors` -- INSERT INTO `B_Distributors` (`id`, `email`, `address`, `locked`, `notes`, `orig_date`, `time_stamp`) VALUES (1, 'bca@rr.com', '71st Street', 1, '', '2015-07-11 11:43:41', '2015-07-11 15:43:41');
  14. I found out from Stripe tech support said: Checkout doesn't collect address data, so you will need to use a custom Stripe.js integration in order to collect that information. Which they really should do to help us defend against scammers. But anyway, when I first started asking you both about this question, I was not using Checkout and the information you provide below is exactly what was not working for me. I did not try to do it with a form in the token, however. But I want to stick with Checkout so I will leave the manual version unsolved.
  15. Maybe you can point out that error: // Get the values: var ccNum = $('.card-number').val(), cvcNum = $('.card-cvc').val(), expMonth = $('.card-expiry-month').val(), expYear = $('.card-expiry-year').val(); // added by arlene var name = $('.name').val(), address_line1 = $('.address_line1').val(), address_line2 = $('.address_line2').val(), address_city = $('.address_city').val(), address_state = $('.address_state').val(), address_zip = $('.address_zip').val(), address_country = $('.address_country').val(); and // name and address fields added by arlene // Get the Stripe token: Stripe.card.createToken({ number: ccNum, cvc: cvcNum, exp_month: expMonth, exp_year: expYear, name: name, address_line1: address_line1, address_line2: address_line2, address_city: address_city, address_state: address_state, address_zip: address_zip, address_country: address_country }, stripeResponseHandler); } I should also mention that Stripe tech support said my form needed to have class="address_line1", which I added but that still did not get the data through.
  16. Here is the thing. I really don't know javascript. Maybe I will have to learn it now. But why should there be a problem with the javascript to begin with? I didn't write any of that javascript. buy.js is from you and the rest of it is from Stripe.
  17. I already know the values are being set in the form. I think I am passing them to Stripe correctly but there is no data there, even at the dashboard. I already sent my code to Stripe but I have not heard anything back yet.
  18. When I ran it again, the charge goes through successfully but no name/address information goes through. One of the Stripe support people asked me to send him my code.
  19. In a previous post I mentioned this but I start new topic now. The issue is I cannot get the name and address information to Stripe. By email Stripe support thought my form was correct and asked how my javascript is passing in the data. (I am using your code.) So I looked at buy.js and it appears this is where I should include those fields, so I tried that but now my charge does not go though correctly. And if there is any error reported from this buy.js script, it flashes on the screen and then scrolls off (more accurately is covered up). I have seen these errors flash on the screen before and I would like to know how I can keep those errors showing. This time I don't see anything flash but the charge does not come through because my form shows again and my debugging line does not print the charge information. Here is my code where I get the values: var name = $('.name').val(), address_line1 = $('.address_line1').val(), address_line2 = $('.address_line2').val(), address_city = $('.address_city').val(),address_state = $('.address_state').val(), address_zip = $('.address_zip').val(), address_country = $('.address_country').val(); And here is the code where I create the token: Stripe.card.createToken({ number: ccNum, cvc: cvcNum, exp_month: expMonth, exp_year: expYear, name: name, address_line1: address_line1, address_line2: address_line2, address_city: address_city, address_state: address_state, address_zip: address_zip, address_country: address_country }, stripeResponseHandler); And also, if this where I pass through this information, should I also do a validate check on them.
  20. Thanks again for helping out. I have been reading the docs but there is just so much information and trying to pull it all together is where I am at. I added those address fields to the charge form and received no errors. However, when the charge is returned, that information is blank. So I'm thinking there is something formatting problem and maybe you know what it is. By the way, does Stripe have a forum or should I ask these questions of their tech support? This is what my form looks like: <form action="" method="POST" id="payment-form"> <?php // Show PHP errors, if they exist: if (isset($errors) && !empty($errors) && is_array($errors)) { echo '<div class="alert alert-error"><h4>Error!</h4>The following error(s) occurred:<ul>'; foreach ($errors as $e) { echo "<li>$e</li>"; } echo '</ul></div>'; }?> <div id="payment-errors"></div> <span class="help-block">You can pay using: Mastercard, Visa, American Express, JCB, Discover, and Diners Club.</span> <div class="alert alert-info"><h4>JavaScript Required!</h4>For security purposes, JavaScript is required in order to complete an order.</div> <label>name</label> <input type="text" readonly="readonly" disabled="disabled" value="<?php echo $fn . ' ' . $ln; ?>" /> <label>address_line1</label> <input type="text" readonly="readonly" disabled="disabled" value="<?php echo $ad; ?>" /> <label>address_city</label> <input type="text" readonly="readonly" disabled="disabled" value="<?php echo $ct; ?>" /> <label>address_state</label> <input type="text" size="2" readonly="readonly" disabled="disabled" value="<?php echo $st; ?>" /> <label>address_zip</label> <input type="text" size="5" readonly="readonly" disabled="disabled" value="<?php echo $zip; ?>" /> <label>address_country</label> <input type="text" size="2" readonly="readonly" disabled="disabled" value="US" /><br><br> <label>Card Number</label> <input type="text" size="20" autocomplete="off" class="card-number input-medium"> <span class="help-block">Enter the number without spaces or hyphens.</span> <label>CVC</label> <input type="text" size="4" autocomplete="off" class="card-cvc input-mini"> <label>Expiration (MM/YYYY)</label> <input type="text" size="2" class="card-expiry-month input-mini"> <span> / </span> <input type="text" size="4" class="card-expiry-year input-mini"> <button type="submit" class="btn" id="submitBtn">Submit Payment</button> </form>
  21. Thanks for pointing me in the right direction, Larry. I didn't notice that $e variable so now I could echo it. Turns out the metadata was correct. My descriptor was too long so I will have to check that size. The only thing is, the following parameters still show the following error: The error is exception 'Stripe_InvalidRequestError' with message 'Received unknown parameters: address_line1, address_city, address_state, address_zip, address_country, receipt_number, name' I thought this information is something I can provide to Stripe and they will do an address check and such. The $charge returns those values, but they are empty, of course. Maybe you know how I can pass this information in. Although, I don't need it returned, it is only useful if Stripe uses it.
  22. I will keep thinking about this inventory issue. I doubt it will be a big problem just because it won't happen very often. The problem isn't one of the tables out of synch. The customer has successfully paid and I must ship the order, but my table was not updated. I send myself email when the database can't be updated so I can look into it. And also, the worst that can happen is someone orders and it should be available but it is not so I have to backorder. The only thing is, all these are manual work instead of auto but if it doesn't happen very often...
  23. I'm receiving the Stripe programming error: catch (Stripe_InvalidRequestError $e) I know it is because I added data to the Charge array. It works without the new data but not with it. Here's the code and I don't see the error: $charge = Stripe_Charge::create(array( "amount" => $amount, // amount in cents, again "currency" => "usd", "source" => $token, "address_line1" => $ad, "address_city" => $ct, "address_state" => $st, "address_zip" => $zip, "address_country" => "US", "receipt_email" => $em, "receipt_number" => $uid, "name" => $fn . $ln, "shipping" => 0, "statement_descriptor" => "BCA Creative.com " . $prod_name, "metadata[uid]"=>$uid, "metadata[pid]"=>$pid, "description" => $prod_name ) );
  24. Hey Matt, I think you should check if your id is correct. It is just too easy for them to change a Get or Post parameter. For my one item at a time website I am using a Session for my id's, so I don't have to access the database a second or even third time. I have one slight problem with mine. When charge is successful, I decrement the inventory for that product but if I should have an error, for some odd reason such as server is down or whatever, then the order is placed but the inventory is off. I don't consider this fatal so everything works if I take that slight risk. Abigail
×
×
  • Create New...