Thread: Zenid issue

Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14
  1. #11
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Zenid issue

    Quote Originally Posted by DrByte View Post
    "correctly reading"? Can you explain what you mean?
    Sorry, they are correctly read and passed as "static" to zen_href_link. I was originally just looking at 'ezpages_bar_header.php' and noting it did not parse the "Internal URL" into $page and $parameters (and failed to see the $static=true).

    Conor's changes to the zen_href_link function will fix the handling.
    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

  2. #12
    Join Date
    Nov 2012
    Posts
    4
    Plugin Contributions
    0

    Default Re: Zenid issue

    Quote Originally Posted by conor View Post
    Hi,

    Suppose I may as well make things easy :)

    This code:

    PHP Code:
    if (!$static) {
          if (
    zen_not_null($parameters)) {
            
    $link .= 'index.php?main_page='$page "&" zen_output_string($parameters);
          } else {
            
    $link .= 'index.php?main_page=' $page;
          }
        } else {
          if (
    zen_not_null($parameters)) {
            
    $link .= $page "?" zen_output_string($parameters);
          } else {
            
    $link .= $page;
          }
        }

        
    $separator '&'
    should be changed to:

    PHP Code:
    $separator '&';
        
        if (!
    $static) {
          if (
    zen_not_null($parameters)) {
            
    $link .= 'index.php?main_page='$page "&" zen_output_string($parameters);
          } else {
            
    $link .= 'index.php?main_page=' $page;
          }
        } else {
          if (
    zen_not_null($parameters)) {
            
    $link .= $page "?" zen_output_string($parameters);
          } else {
            
    $link .= $page;
            
            
    $separator '?';
          }
        } 
    That'll prevent any errors occurring when the session ID is appended.

    All the best...

    Conor
    ceon

    Where I should change it -> which file?

  3. #13
    Join Date
    Nov 2012
    Posts
    4
    Plugin Contributions
    0

    Default Re: Zenid issue

    Ok, I have found this file - is ti html_output.php in includes/functions? is it enough to change just this 2 lines? or I have to change this thinks too?:
    PHP Code:
    if (strlen($parameters) > 0) {
                    
    // Must add the parameters to the link
                    
    $link .= '?';
                    
                    while (
    substr($parameters01) == '?' || substr($parameters01) == '&') {
                        
    $parameters substr($parameters1strlen($parameters) - 1);
                    }
                    
                    
    $link .= zen_output_string($parameters);
                    
                    
    $separator '&';
                } else {
                    
    $separator '?';
                } 

  4. #14
    Join Date
    Aug 2004
    Location
    Belfast, Northern Ireland
    Posts
    2,480
    Plugin Contributions
    14

    Default Re: Zenid issue

    Hi,

    Quote Originally Posted by ruby42 View Post
    Ok, I have found this file - is ti html_output.php in includes/functions? is it enough to change just this 2 lines? or I have to change this thinks too?:
    Just the zen_href_link function in html_output.php

    All the best..

    Conor
    ceon

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Zenid Redirect Issue
    By bumba000 in forum General Questions
    Replies: 7
    Last Post: 23 Jan 2015, 11:52 PM
  2. Replies: 5
    Last Post: 6 Apr 2008, 01:57 AM
  3. zenid
    By scottb in forum General Questions
    Replies: 8
    Last Post: 3 Jan 2007, 06:21 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