Page 35 of 43 FirstFirst ... 253334353637 ... LastLast
Results 341 to 350 of 427
  1. #341
    Join Date
    May 2014
    Location
    UK
    Posts
    317
    Plugin Contributions
    0

    Default Re: Creating an add-on "product type book" for ZC 1.5

    Quote Originally Posted by DigiBooks View Post
    In the bottom left-link of the screen it is showing correctly but linking me to www.facebook.com%2ajcarella so it looks like the the last forward slash is being interpreted as a space character (although I would have thought that to be %20) not sure what %2 is.
    The link works fine as long as it it just a basic domain link - the problem is when you enter forward slashes into the address.

  2. #342
    Join Date
    Aug 2014
    Location
    Lisbon
    Posts
    594
    Plugin Contributions
    0

    Default Re: Creating an add-on "product type book" for ZC 1.5

    Quote Originally Posted by DigiBooks View Post
    The link works fine as long as it it just a basic domain link - the problem is when you enter forward slashes into the address.
    I see the same issue....
    Something with the urlencode:

    $current_author['url'] = (!empty($authors->fields['author_url']) ? zen_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($authors->fields['author_url']), 'NONSSL', true, false) : '');

    Makes a %2

    $current_author['url'] = (!empty($authors->fields['author_url']) ? zen_href_link(FILENAME_REDIRECT, 'action=url&goto=' . ($authors->fields['author_url']), 'NONSSL', true, false) : '');

    Works fine....
    “Though the problems of the world are increasingly complex, the solutions remain embarrassingly simple.” ― Bill Mollison

  3. #343
    Join Date
    Aug 2014
    Location
    Lisbon
    Posts
    594
    Plugin Contributions
    0

    Default Re: Creating an add-on "product type book" for ZC 1.5

    Quote Originally Posted by mesnitu View Post
    I see the same issue....
    Makes a %2
    Actually, for me makes a %2F... so it should be ok... but it's not.
    “Though the problems of the world are increasingly complex, the solutions remain embarrassingly simple.” ― Bill Mollison

  4. #344
    Join Date
    May 2014
    Location
    UK
    Posts
    317
    Plugin Contributions
    0

    Default Re: Creating an add-on "product type book" for ZC 1.5

    Quote Originally Posted by mesnitu View Post
    I see the same issue....
    Something with the urlencode:

    $current_author['url'] = (!empty($authors->fields['author_url']) ? zen_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($authors->fields['author_url']), 'NONSSL', true, false) : '');

    Makes a %2

    $current_author['url'] = (!empty($authors->fields['author_url']) ? zen_href_link(FILENAME_REDIRECT, 'action=url&goto=' . ($authors->fields['author_url']), 'NONSSL', true, false) : '');

    Works fine....
    Thanks - that code has changed in Release 8 which was given to me yesterday to make it work with v1.5.4:

    $current_author['url'] = (!empty($authors->fields['author_url']) ? (strpos($authors->fields['author_url'], 'http') ? urlencode($authors->fields['author_url']) : 'http://' . urlencode($authors->fields['author_url'])) : '');

    Do I have to remove both instances of urlencode ???

  5. #345
    Join Date
    Aug 2014
    Location
    Lisbon
    Posts
    594
    Plugin Contributions
    0

    Default Re: Creating an add-on "product type book" for ZC 1.5

    Quote Originally Posted by DigiBooks View Post
    Do I have to remove both instances of urlencode ???
    I haven't tested the new code. Is it working now ?

    I was just mentioning what I've seen.
    It's better to wait for Philou update.

    Best Regards
    “Though the problems of the world are increasingly complex, the solutions remain embarrassingly simple.” ― Bill Mollison

  6. #346
    Join Date
    May 2014
    Location
    UK
    Posts
    317
    Plugin Contributions
    0

    Default Re: Creating an add-on "product type book" for ZC 1.5

    Quote Originally Posted by mesnitu View Post
    I haven't tested the new code. Is it working now ?

    I was just mentioning what I've seen.
    It's better to wait for Philou update.

    Best Regards
    No worries. The code was changed because something had happened since v1.5.1 and the redirect just returned zen-cart's index page. With the change in Release 8 it is working provided there are no forward slashes in the url.

  7. #347
    Join Date
    Jan 2006
    Posts
    165
    Plugin Contributions
    1

    Default Re: Creating an add-on "product type book" for ZC 1.5

    Hi guys,

    sorry, my bad. Indeed the urlencode makes no sense in that part of the code. I have uploaded another archive to sourceforge (still called "revision8") where these two files have been once more changed to remove the urlencode:

    ZEN-CART/includes/modules/pages/product_bookx_info/main_template_vars_product_type.php
    ZEN-CART/includes/classes/observers/class.bookx_observers.php

    Tested it here and it works also with forward slash.

    Regards,
    p.

  8. #348
    Join Date
    May 2014
    Location
    UK
    Posts
    317
    Plugin Contributions
    0

    Default Re: Creating an add-on "product type book" for ZC 1.5

    Quote Originally Posted by philou View Post
    Hi guys,

    sorry, my bad. Indeed the urlencode makes no sense in that part of the code. I have uploaded another archive to sourceforge (still called "revision8") where these two files have been once more changed to remove the urlencode:

    ZEN-CART/includes/modules/pages/product_bookx_info/main_template_vars_product_type.php
    ZEN-CART/includes/classes/observers/class.bookx_observers.php

    Tested it here and it works also with forward slash.

    Regards,
    p.
    Sweet!!! Thank you so much :)

    I will continue to play around with the system now so will let you know how it all goes

  9. #349
    Join Date
    Aug 2014
    Location
    Lisbon
    Posts
    594
    Plugin Contributions
    0

    Default Re: Creating an add-on "product type book" for ZC 1.5

    I have to download the revision8 , but , those files also take care of publishers url ?
    “Though the problems of the world are increasingly complex, the solutions remain embarrassingly simple.” ― Bill Mollison

  10. #350
    Join Date
    Jan 2006
    Posts
    165
    Plugin Contributions
    1

    Default Re: Creating an add-on "product type book" for ZC 1.5

    Yes, the author URLs and publisher URLs should both be fixed.

    regards,
    p.

 

 
Page 35 of 43 FirstFirst ... 253334353637 ... LastLast

Similar Threads

  1. Why "No, Normal Shipping Rules" option for a "Product - Free Shipping" type?
    By ilikemike in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 31 Dec 2011, 12:34 AM
  2. Replies: 5
    Last Post: 11 Sep 2009, 04:51 AM
  3. Different "Sold Out" images for each product type
    By Starlyn in forum Setting Up Categories, Products, Attributes
    Replies: 13
    Last Post: 20 Mar 2009, 10:37 PM
  4. Remove "Add: [ ]" and "Add selected products to cart" from product pages? possible?
    By edwardtilbury in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 1 Sep 2008, 03:13 AM
  5. "Array()" line on "Update Address Book" page
    By vera in forum Managing Customers and Orders
    Replies: 10
    Last Post: 22 Sep 2006, 03:06 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR