Results 1 to 10 of 3727

Hybrid View

  1. #1
    Join Date
    Feb 2004
    Location
    Georgia, USA
    Posts
    1,948
    Plugin Contributions
    0

    Default Re: Image Display Size Restriction

    Quote Originally Posted by DarkAngel View Post
    I know I had this same problem and it has to do with the model number---that is the garbage you see

    I am looking thru my files to find the fix which was somewhere in this forum..several months ago.

    forgot to mention that I think it has nothing to do with lightbox or IH either
    Thanks for your prompt response. If you find your solution please let me know. I will continue to dig through this thread to see if I find it. The fact that the problem goes away when I disable Zen Lightbox makes me to think it they are somewhat related but perhaps not.

  2. #2
    Join Date
    Oct 2007
    Location
    Emporia, Kansas
    Posts
    1,762
    Plugin Contributions
    0

    Default Re: Image Display Size Restriction

    still looking, I usually write down what I find as a "fix" to problems for later looking at but had a slight computer outage not long ago and can find it quickly right nw...

    but if I recall it was brought up here or in the IH3 thread and it was found that it was not them but a main file....but as I said that was a couple of months ago and I can't remember/

    will be back

  3. #3
    Join Date
    Oct 2007
    Location
    Emporia, Kansas
    Posts
    1,762
    Plugin Contributions
    0

    Default Re: Image Display Size Restriction

    I think this is it:

    mainly because if you notice it is ONLY in the reviews to read area:

    To fix this in the *includes/modules/pages/product_reviews/header_php.php* file




    FIND:
    ---------
    if (zen_not_null($review->fields['products_model'])) {
    $products_name = $review->fields['products_name'] . '<br /><span class="smallText">[' . $review->fields['products_model'] . ']</span>';
    } else {
    $products_name = $review->fields['products_name'];
    }
    ---------


    REPLACE WITH THIS:
    ---------

    if (zen_not_null($review->fields['products_model'])) {
    $products_name = $review->fields['products_name'] . '<br /><span class="smallText">[' . $review->fields']</span>';
    } else {
    $products_name = $review->fields['products_name'];
    }
    }
    ---------

    hope it works

  4. #4
    Join Date
    Feb 2004
    Location
    Georgia, USA
    Posts
    1,948
    Plugin Contributions
    0

    Default Re: Image Display Size Restriction

    Quote Originally Posted by DarkAngel View Post
    I think this is it:

    mainly because if you notice it is ONLY in the reviews to read area:

    To fix this in the *includes/modules/pages/product_reviews/header_php.php* file




    FIND:
    ---------
    if (zen_not_null($review->fields['products_model'])) {
    $products_name = $review->fields['products_name'] . '<br /><span class="smallText">[' . $review->fields['products_model'] . ']</span>';
    } else {
    $products_name = $review->fields['products_name'];
    }
    ---------


    REPLACE WITH THIS:
    ---------

    if (zen_not_null($review->fields['products_model'])) {
    $products_name = $review->fields['products_name'] . '<br /><span class="smallText">[' . $review->fields']</span>';
    } else {
    $products_name = $review->fields['products_name'];
    }
    }
    ---------

    hope it works
    Thanks for the post. That did not work. I got a blank page with the following error in the log:
    [16-Nov-2013 22:05:16 America/New_York] PHP Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /includes/modules/pages/product_reviews/header_php.php on line 43

  5. #5
    Join Date
    Oct 2007
    Location
    Emporia, Kansas
    Posts
    1,762
    Plugin Contributions
    0

    Default Re: Image Display Size Restriction

    try leaving out the very last }

    I may have added in an extra one...and make sure you do not remove anything other than what it needs removed

    <span class="smallText">[' . $review->fields['products_model'] . ']</span>'; < --- this is the culprit

    <span class="smallText">[' . $review->fields']</span>'; <---should look like this so remove the text in red

  6. #6
    Join Date
    Feb 2004
    Location
    Georgia, USA
    Posts
    1,948
    Plugin Contributions
    0

    Default Re: Image Display Size Restriction

    Quote Originally Posted by DarkAngel View Post
    try leaving out the very last }

    I may have added in an extra one...and make sure you do not remove anything other than what it needs removed

    <span class="smallText">[' . $review->fields['products_model'] . ']</span>'; < --- this is the culprit

    <span class="smallText">[' . $review->fields']</span>'; <---should look like this so remove the text in red
    Thanks! Since basically, we are removing the product_model I tried this which works:
    PHP Code:
    //  if (zen_not_null($review->fields['products_model'])) {
    //    $products_name = $review->fields['products_name'] . '<br /><span class="smallText">[' . $review->fields['products_model'] . ']</span>';
    //  } else {
        
    $products_name $review->fields['products_name'];
    //  } 
    The section of the code above is simply saying, if product_model exist use it and if not, use product name. Since the product_model on the review page is causing issue right now, I basically changed it to just show product name without the product model. It solves the problem I am currently experiencing but hope it didn't create something else but I am not seeing any error in the log at the moment.

    Thank you so much for your assistance. You're a GOODAngel

 

 

Similar Threads

  1. Free Shipping Rules addon [Support Thread]
    By numinix in forum Addon Shipping Modules
    Replies: 36
    Last Post: 2 Dec 2016, 01:56 PM
  2. v151 Reviews Reply addon [Support Thread]
    By mikestaps in forum All Other Contributions/Addons
    Replies: 9
    Last Post: 17 Oct 2014, 01:29 AM
  3. Jquery Lightbox [Support thread]
    By yellow1912 in forum All Other Contributions/Addons
    Replies: 257
    Last Post: 2 Aug 2012, 10:57 PM
  4. File Upload Required addon [Support Thread]
    By 1100101 in forum All Other Contributions/Addons
    Replies: 21
    Last Post: 10 Dec 2011, 03:00 AM
  5. [Support Thread] IE only JavaScripts and Stylesheets Addon
    By Meshach in forum All Other Contributions/Addons
    Replies: 16
    Last Post: 31 May 2011, 08:18 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