Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: very important request - if image not exist

  1. #1

    Default very important request - if image not exist

    Hello Yab i have a very very important request to you.
    This request is for show.php and view.php pages.
    Idea is:

    If for example site.com/show.php/1544_helloworld.jpg.html - page exist - all is like before - show image.

    But if the image was deleted - do not redirect website to a 404 page but show the same page - but instead of the image - write text like - Image was deleted -!!OR!! - idea is to replace deleted image by ads!!

    In this case we have more pages indexed by a searchengines and also increasing revenue

  2. #2

    Default

    hm, really there is a simplier idea - replace 404 page by a fake show.php page - all is good but in this case - the page will not be indexed as it will be redirected. - and this is bad

    can you help to make without redirect?
    Last edited by xavior; 12-18-2009 at 06:50 AM.

  3. #3

    Default

    50% is solved i have erased just
    Code:
    if($db->getNumRows()==0)
    {
        header('location:'.$baseWeb2);
        exit;
    }
    from show.php
    but now when it doesn't redirect it shows

    and i don't know where to change this "DownLoad"

  4. #4

    Default

    I cant find where to solve this, yab please help me

  5. #5

    Default

    my answer is in function.php file.
    So now if image not exist (was deleted) ads are showing insted of deleted image

  6. #6

    Default

    how to replace deleted thumb with an image that says deleted image ??

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

    Default

    Quote Originally Posted by cuveyx View Post
    how to replace deleted thumb with an image that says deleted image ??
    Please precise your request. I donot understand what you mean.

  8. #8

    Default

    if an image is reported or old, i delete it. but in the forum, what remains ? nothing, no thumb, because image was deleted,thumb was deleted.

    how to make that in forum remains an image that says: image not found (custom made, like hotlink image warn) ?

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

    Default

    Quote Originally Posted by cuveyx View Post
    if an image is reported or old, i delete it. but in the forum, what remains ? nothing, no thumb, because image was deleted,thumb was deleted.

    how to make that in forum remains an image that says: image not found (custom made, like hotlink image warn) ?
    Hmm, this is already a feature of AIHS. If the image is not found, a common image will show, for example you can custom the image skin/default/sys_icons/ImageNotFound.jpg.

  10. #10

    Default

    i have a custom theme. could you please tell me where can i find the code to look ?

    if i delete an image i get nothing...

Similar Threads

  1. CPU Exceeded Log, please look yap
    By kuaza in forum Troubleshooting And Problems
    Replies: 2
    Last Post: 04-26-2009, 01:40 AM
  2. Solution for "Error:Stamp image is not set"
    By yabsoft in forum Document & Tutorials!
    Replies: 0
    Last Post: 07-27-2008, 02:02 PM
  3. Urgent! site is not working correct after migration
    By innovatorr in forum MFHS v1.1
    Replies: 9
    Last Post: 11-21-2006, 03:42 PM
  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
  •