Results 1 to 3 of 3

Thread: Customising image display urls!

  1. #1
    Join Date
    May 2005
    Location
    China & France
    Posts
    6,492

    Default Customising image display urls!

    By default, we are using show.php/id_filename and out.php/id_filename as the static-like url for images. In AIHS v2.2, we introduced a new feature for you to change them as you like.

    Customization 1:
    I want to rename show.php and out.php to other name I prefer. For this, you only need edit the below lines in includes/inc.php:
    PHP Code:
    $ImageViewScript = array(
    'out'  => 'out.php',
    'show' => 'show.php'
    ); 
    to change 'out.php' and 'show.php' to the filenames you like and then rename them actually on your server.

    Customization 2:
    I want to completely change the display url, for example, "myimages/id_filename" instead of "show.php/id_filename", "display/id_filename" instead of "out.php/id_filename". To do this, you need follow the below steps:
    a). Edit includes/inc.php, change the below codes
    PHP Code:
     $ImageViewScript = array(
    'out'  => 'out.php',
    'show' => 'show.php'
    ); 
    to
    $ImageViewScript = array(
    'out' => 'myimages',
    'show' => 'display'
    );
    b). Adding the following lines into .htaccess file in your root dir:
    RewriteRule ^display/(.*)$ show.php?img=$1 [L]
    RewriteRule ^myimages/([a-z]{1})(.*)$ out.php?$1=$2&%{QUERY_STRING} [L]
    c). Note that in this Customization, you don't need rename out.php and show.php on your server.
    d). Be carefull about the above string colored with blue, you need change them when you make your own customized display url.
    Last edited by yabsoft; 08-20-2008 at 12:33 PM.

  2. #2

    Default

    will this work for 2.1?

  3. #3
    Join Date
    May 2005
    Location
    China & France
    Posts
    6,492

    Default

    No, this is only for AIHS v2.2+.
    Last edited by yabsoft; 12-06-2009 at 10:03 PM. Reason: Update for AIHS v2.3+

Similar Threads

  1. AIHS V2.1 Image Caching problem
    By sales@xisto.com in forum Troubleshooting And Problems
    Replies: 13
    Last Post: 09-01-2009, 06:10 PM
  2. change the image Without change Linking Code
    By koreahosting in forum Modifications and Skin
    Replies: 0
    Last Post: 09-11-2007, 06:29 AM
  3. Image Search & Deletion from the Admin panel
    By sales@xisto.com in forum Bug Reports
    Replies: 3
    Last Post: 11-30-2006, 09:47 AM
  4. Replies: 1
    Last Post: 01-01-2006, 10:22 AM
  5. Uploading Group image or Multi image
    By Walim in forum Suggestions & Feature Request
    Replies: 2
    Last Post: 10-29-2005, 02:28 AM

Posting Permissions

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