Page 7 of 7 FirstFirst ... 567
Results 91 to 102 of 102

Thread: Thumbnail for each indexu link

  1. #91
    Join Date
    Jan 2005
    Posts
    164

    Default

    So if anyone knows the necessary conditional statement I would greaty appreciate it if they posted.

    re: show image if it exists, show default.jpg if no image exists.

  2. #92
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    i dont think you can do it like that, when you call a template it has something like photo_<%linkid%>.jpg once that has been sent to the client you have no way of changing the image should it not exist. It is possible to have an image called photo_0.jpg which says "no image" and in the php file do something very clever to check if a file exists and then assigning the id=0 on the fly... this is very complicated and sluggish. In my opinion not worth trying.

    I really think your best bet is to have 200+ future IDS created with "no image found" text and replace them when you get new ones done. alternativly you could use an automatic script to create the blank file when people add the listing, thus an image is always available, its either the screenshot OR a "screenshot not available" image

    if somebody cleverer than me would like to contradict me please do go ahead...
    Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )

  3. #93
    Join Date
    Jan 2005
    Posts
    164

    Default

    Since I don't know how to creat an automatic script I think I'll go with creating 200+ future IDs. That is a great idea for someone with limited coding capabilities like myself. Thank you Inpireme

  4. #94
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    If you have have imagemagick or GD installed on your server automatic image creation is actually pretty simple (ask your host if you have them installed) I dont remember exactly all the ins-and-outs but the following code will create you a grey box with a black line outside it, I have also added some code that will make the box contain any words you like.

    Code:
    <?php
    
    $theimage = imagecreate(100,50);
    $white = imagecolorallocate($theimage,255,255,255);
    $black = imagecolorallocate($theimage,0,0,0);
    $grey_shade = imagecolorallocate($theimage,204,204,204);
    
    imagefill($theimage,0,0,$grey_shade);
    ImageRectangle($theimage,5,5,94,44,$black);
    ImageRectangle($theimage,0,0,99,49,$black);
    
    $text = Sorry No Screenshot;
    Imagestring($theimage,9,30,15,$theimage,$black); 
     imagejpeg($theimage);
    
    ?>
    thats the basic image made, you need to work out how to name it and save it automatically. the script would need to run when you approve the listing jsut after the listing is assigned a proper ID.

    I would have to spend a quite a bit of time edditing that and making it work correctly but you get the idea, its a lot of work when just always having a few premade images is an adaquate solution, just thought I would add that incase oyur feeling ambitious

    Lots of tutorials on creating images ot he fly if you need more info. good luck, would love to see the work when its done as its something I have been thinking about for ages. Your solutions using html2jpg looks great. (are you using the personal edition of the software?)

    ps. the above code was used on a site that had one of those boxes you need to type the numbers into to verify your human, so i never needed to save the image as it was created on each page view. i cant think it would need much changing though.
    Last edited by inspireme; 06-18-2005 at 04:54 PM.
    Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )

  5. #95
    Join Date
    Jan 2005
    Posts
    164

    Default

    Hey thanks Inspireme. If I get ambitious I'll give it a shot. I am using the enterprise version. I have about 2000 links and when I set the program to go it takes about a day for all the images to be created. Not a problem, it gives me a chance to get away from my computer for awhile :-)

    Now I just need to find some software that will duplicate an image and start it naming at a given # and then increase in a linear fashion. Anyone have any ideas?

    This solution is just so simple and possible for non-coders like myself.

  6. #96
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    I see you have ti working now - how easy was it, and have you got any tips for soembody else wanting to do the same thing!?
    Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )

  7. #97
    Join Date
    Jan 2005
    Posts
    164

    Default thumbs

    Quote Originally Posted by inspireme
    I see you have ti working now - how easy was it, and have you got any tips for soembody else wanting to do the same thing!?
    It is working really well. Remember I am not a coder and can just implement the basic stuff. There where a fiew adjustments I had to make in html2jpeg that I would be happy to share if someone gets the program and gets stuck.

    As I mentioned in another post on the 3.3 beta testing thread, I also am using a free program called irfanview that batch processes picuteres. I've been tempted to add a batch process frame or text on top of each thumbnail.

  8. #98
    Join Date
    Mar 2005
    Posts
    3

    Default

    Please detail about this code. What is file contained this it?

  9. #99
    Join Date
    Jan 2005
    Posts
    164

    Default don't understand

    Quote Originally Posted by div361
    Please detail about this code. What is file contained this it?
    I'm sorry I don't understand your question. Could you please clarify?

  10. #100
    Join Date
    Jun 2005
    Posts
    25

    Default

    hello all,

    what u r all talking abt, indexu have the feature to include image for a listing. This has to be done once the listing approved. Please look into the "technote" folder of your indexu files for more info. Anyhow make a new post or search for "image upload" in this forum, hope u get better answers.

    Thanks

    Venkat
    Last edited by exaltvenkat; 08-16-2005 at 06:34 AM.

  11. #101
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    Actually, you should read the whole thread. The thread is talking about making thumbnails/screenshots automatically. Most people here have directories setup where the website owner has not added the link, therefore people wanted an automated way of thumnailing EVERY LINK IN THE DIRECTORY.

    Even if the website owner does add the listing it is unlikely they will bother going back and adding a thumbnail (which withing a year is probably out of date anyway)

    So in short that is "what we are on about"
    Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )

  12. #102
    Join Date
    Feb 2005
    Location
    Antwerp, Belgium
    Posts
    118

    Default

    is there someone who did pull it of with the thumbs?

    i want : all automated ( i have 9500 links,)
    working with thumbshots now, but i want the images all on my own server. for the serps in google images )
    i want the images all with the name of the url or title in database. ( not image01, image02 )

    i want all images in my database and if possible a way to ad new thumbs of new links )

    i found a program that makes thumbs of the sites in your favorites map and can export it as a html file : http://www.netvisualize.com/download.html

    so i'm convinced it must be possible to integrate something like this in indexu

    is there a scripter who wants to help me with this? of course i want to pay for this.

    greetings
    Peter
    audiomastermind

Similar Threads

  1. A thumbnail with each link
    By Carlitus in forum v3.2
    Replies: 4
    Last Post: 10-28-2004, 03:57 PM
  2. Indexu 4 ???? or Indexu PPC?
    By nooralam in forum v5.x
    Replies: 15
    Last Post: 06-07-2004, 04:04 PM
  3. Indexu v4 part 2
    By TLC in forum v5.x
    Replies: 5
    Last Post: 05-14-2004, 08:22 AM
  4. INDEXU FEATURES
    By Hart_House in forum Pre-Sales Questions
    Replies: 13
    Last Post: 06-30-2003, 11:57 AM
  5. Replies: 0
    Last Post: 08-29-2001, 07:31 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
  •