Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 27
  1. #11
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,251
    Plugin Contributions
    58

    Default Re: Pinterest urlencode

    But, while I have your attention, Melanie. What is your opinion of the issue with the canonical links that Zen produces? I mean, if I copy and paste the canonical link for a product_info page into a browser it shows me 'product not found' . That can't be great can it?
    That is source..... it is read correctly by platforms which read source. It is not meant to be copied and pasted to an address bar, it would first require decoding =)
    PRO-Webs, Inc. since 2003 :: Zen Cart Hosting :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are not conducive to a helpful community.

  2. #12
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Pinterest urlencode

    Clarification
    There is a difference between the HTML source (returned by the web server) and what you see on the rendered page (the browser renders the HTML source).

    HTML Source: "index.php?main_page=product_info&products_id=4345".
    Rendered: "index.php?main_page=product_info&products_id=4345".

    HTML Source: "index.php?main_page=product_info&products_id=4345"
    Rendered: "index.php?main_page=product_info&products_id=4345".
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

  3. #13
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Pinterest urlencode

    Quote Originally Posted by mprough View Post
    No, it is still striped by pinterest in the actual pin
    Interesting. I had similar results.

    Adding a "pin" button to a page (uses a get): Stripped without encoding the URL first. Passing an encoded URL would not allow the URL to be pinned due to a form validation failure. Used the code from the Pinterest "goodies" section.
    Adding manually via Pinterest (uses a post): Worked like a charm. I wonder if we could capture the POST contents and mimic the behavior? Or maybe it would cause additional issues as it needs to contain the "Board"?
    Last edited by lhungil; 11 Feb 2013 at 10:51 PM.
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

  4. #14
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Pinterest urlencode

    Yes, I understand the process of rendering. That is not the issue. But thanks for the clarification.

    I understand about html entities. That is not the point either.



    The point is about how pinterest parses the 'url' get parameter in their links. Not the URL the 'url' get parameter.

    That is the main point.

    But secondly, I am interested in how the search engines actually use the canonical link. If it gets rendered to the screen as in SERPs then obviously there is no issue. Because the encoding is dealt with by the browser. But is this really the only way the canonical link gets used? What the canonical link says is that all pages in that group can be reached through that particular URL. If I make a http request to that page ( by whatever means ) I do not get the html returned that I am expecting.

    So, if a search engine makes an http request to that URL then it doesn't get the response from the server that I want it to.





    @Melanie
    check http://shop~~bloved.com/index.php?ma...roducts_id=171 and see if that pins ok for you . Just remove the ~~, It works fine for me and has been tested by the client. Let me know.

  5. #15
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,251
    Plugin Contributions
    58

    Default Re: Pinterest urlencode

    Indeed, but I want to use a custom button =)... but none the less you lead me in the right direction... we actually need it encoded in the source to post.

    So I use NUMINIX's Pinterest script to drive the image grabbing and url grabbing....

    so this

    <?php echo urlencode($piniturl); ?>

    becomes this

    <?php echo urlencode(str_replace('&amp;','&',$piniturl)); ?>

    and now it works

    https://outdoorflagstore.com/index.p...roducts_id=685

    In my reading I think there is a way using rawurlencode as well... but working is working and it's Miller time here
    PRO-Webs, Inc. since 2003 :: Zen Cart Hosting :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are not conducive to a helpful community.

  6. #16
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Pinterest urlencode

    I think that may have been what I said in post#8

  7. #17
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Pinterest urlencode

    Yup, that appears to be working! Perhaps form validation was failing because I was using a dummy domain / image when testing ;)
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

  8. #18
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,251
    Plugin Contributions
    58

    Default Re: Pinterest urlencode

    Quote Originally Posted by niccol View Post
    I think that may have been what I said in post#8
    yep, but it does not work with $canonicalLink
    PRO-Webs, Inc. since 2003 :: Zen Cart Hosting :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are not conducive to a helpful community.

  9. #19
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Pinterest urlencode

    here's my secondary worry.

    Imagine I am a search engine. There are lots of pages I know are equivalent. They all have the same canonical tag. So after a while I decide to see what is in them. The obvious thing is to send a http request to the canonical url, right? Because that is the common URL for all these pages. That is the one I am being told I should index and not the others. I am not a browser, I am a search engine, so I just send the request. I don't render anything at any point.

    But if I do that then I get a response that is the 'product not found' page. So as a good search engine I index that page. Which has got none of the relevant information on it.

    Please, someone tell me that this logic is wrong ....

    (Try it with curl if you want to see what I mean.)

  10. #20
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Pinterest urlencode

    SO, did you try the link that I sent to the shopBloved site? That works fine for me. I'd be interested to know if it doesn't work for you.

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Pinterest Rich Pins
    By OLCS in forum All Other Contributions/Addons
    Replies: 8
    Last Post: 1 Jun 2015, 02:02 AM
  2. creinold Pinterest Button Addon
    By creinold in forum All Other Contributions/Addons
    Replies: 97
    Last Post: 2 Jan 2015, 10:02 PM
  3. v151 Help with pinning to Pinterest
    By AnnieG in forum Basic Configuration
    Replies: 2
    Last Post: 7 Mar 2014, 03:43 PM
  4. v150 Pinterest Verification Help
    By ReRetail in forum General Questions
    Replies: 1
    Last Post: 5 Jun 2013, 04:53 PM
  5. v150 Numinix Pinterest mod
    By pityocamptes in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 24 Apr 2012, 08:03 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg