osCmax v2.5 User Manual
Results 1 to 4 of 4

possible adjustment for admin->reviews page

This is a discussion on possible adjustment for admin->reviews page within the osCmax v2 Installation issues forums, part of the osCmax v2.0 Forums category; If you are "not" seeing your product image when you log into the admin section of your site, under the ...

      
  1. #1
    Senior Member blackhawk's Avatar
    Join Date
    Aug 2009
    Location
    indiana
    Posts
    640
    Blog Entries
    1
    Rep Power
    27


    Exclamation possible adjustment for admin->reviews page

    If you are "not" seeing your product image when you log into the admin section of your site, under the reviews page (listed on the right-hand side of the reviews list), then try this as a solution...

    In your favorite editor open up admin/reviews.php and find this code at line 268...

    Code:
    $contents[] = array('text' => '<br>' . tep_info_image(DYNAMIC_MOPICS_THUMBS_DIR . $rInfo->products_image, $rInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT));
    The issue is with function (tep_info_image). Change that line too...

    Code:
    $contents[] = array('text' => '<br><img src="../' . DIR_WS_IMAGES . DYNAMIC_MOPICS_THUMBS_DIR. $image_subdirectory . $rInfo->products_image . '" width="' . SMALL_IMAGE_WIDTH . '" height="' . SMALL_IMAGE_HEIGHT . '" /><br>');
    I have no clue where else tep_info_image is being used and how it will effect things, so i just got rid of that function in this specific spot.

    If this worked for you, then chanced are you are also not seeing the image on your admin->categories.php list (on the right side) when viewing your listed products. Apply the same thing...

    In your favorite editor open up admin/categories.php and find this code at line 1482 and change the content[] image line to....

    Code:
    //  $contents[] = array('text' => 'Main Image (shown as a thumbnail):<br />' . DIR_WS_CATALOG . DIR_WS_IMAGES . DYNAMIC_MOPICS_THUMBS_DIR . $image_subdirectory . $pInfo->products_image . '<br /><img src="../'. DIR_WS_IMAGES . DYNAMIC_MOPICS_THUMBS_DIR . $image_subdirectory . $pInfo->products_image . '" width="' . SMALL_IMAGE_WIDTH . '" height="' . SMALL_IMAGE_HEIGHT . '" /><br>');

    hope this helps someone out If you got a better solution please post!
    Last edited by blackhawk; 05-23-2010 at 09:28 PM.

  2. #2
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    3,014
    Rep Power
    36


    Exclamation Re: possible adjustment for admin->reviews page

    Hosting plans with installation, configuration, contributions, support and maintenance.

  3. #3
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    3,014
    Rep Power
    36


    Post Re: possible adjustment for admin->reviews page

    See lines 1479-1485 and apply the same logic to the reviews file, if that bothered that your shop Administrator can't see the pic. Better still, get them to use a proper W3C standards compliant browser.

    Code:
    // BOF: MoPics in Admin with Fix for IE
            if (SMALL_IMAGE_WIDTH == '') {
             $contents[] = array('text' => 'Main Image (shown as a thumbnail):<br />' . DIR_WS_CATALOG . DIR_WS_IMAGES . DYNAMIC_MOPICS_THUMBS_DIR . $image_subdirectory . $pInfo->products_image . '<br /><img src="' . HTTP_SERVER . DIR_WS_CATALOG . DIR_WS_IMAGES . DYNAMIC_MOPICS_THUMBS_DIR . $image_subdirectory . $pInfo->products_image . '" height="' . SMALL_IMAGE_HEIGHT . '" /><br>');
            } else {
             $contents[] = array('text' => 'Main Image (shown as a thumbnail):<br />' . DIR_WS_CATALOG . DIR_WS_IMAGES . DYNAMIC_MOPICS_THUMBS_DIR . $image_subdirectory . $pInfo->products_image . '<br /><img src="' . HTTP_SERVER . DIR_WS_CATALOG . DIR_WS_IMAGES . DYNAMIC_MOPICS_THUMBS_DIR . $image_subdirectory . $pInfo->products_image . '" width="' . SMALL_IMAGE_WIDTH . '" /><br>');
               }
    // EOF: MoPics in Admin
    Last edited by ridexbuilder; 05-24-2010 at 01:57 AM.
    Hosting plans with installation, configuration, contributions, support and maintenance.

  4. #4
    Senior Member blackhawk's Avatar
    Join Date
    Aug 2009
    Location
    indiana
    Posts
    640
    Blog Entries
    1
    Rep Power
    27


    Default Re: possible adjustment for admin->reviews page

    actually this happened to me in firefox 3.6.3 under linux, the true seo browser
    Last edited by blackhawk; 05-24-2010 at 09:12 AM.

Similar Threads

  1. Reviews in Product Page
    By Mythos in forum osCmax v2 Customization/Mods
    Replies: 0
    Last Post: 03-21-2010, 09:40 PM
  2. [HELP] Need some help with small adjustment things.
    By Squirrel in forum osCommerce 2.2 Modification Help
    Replies: 3
    Last Post: 04-27-2005, 12:16 PM
  3. Blank admin page
    By posword in forum osCommerce 2.2 Installation Help
    Replies: 4
    Last Post: 07-06-2004, 05:01 PM
  4. where do i set the admin login page?
    By Anonymous in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 07-02-2004, 12:12 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
  •