Results 1 to 14 of 14

Thread: insert a image in details....

  1. #1
    Join Date
    Jan 2006
    Posts
    33

    Default insert image in details....

    aloha I like to know how insert image in details....?????....
    Last edited by cabesoul; 01-31-2006 at 10:31 AM.

  2. #2
    Join Date
    Dec 2005
    Posts
    45

    Default

    Quote Originally Posted by cabesoul
    aloha I like to know how insert image in details....?????....
    Go to the Admin page > Database > Alter

    Add a text field (for example "image_picture") to hold your image path when you upload images (the images are automtically saved to the "upload_files" directory).

    Edit the detail_link.html or browse.html template files, and include $image_picture variable between <% and %> anywhere you want the image to be shown, for example: <img src="<%$image_picture%>" border="0">.

  3. #3
    Join Date
    Jan 2006
    Posts
    33

    Default

    but now how upload the picture and that picture appear for each link (different) search....
    Last edited by cabesoul; 02-01-2006 at 02:31 PM.

  4. #4
    Join Date
    Dec 2005
    Posts
    45

    Default

    Quote Originally Posted by cabesoul
    but now how upload the picture and that picture appear for each link (different) search....
    Hi, I have missed informing you about the field type. You should create a IMAGE type, not TEXT type. When you add a listing, you will see the image input box with browse button to upload your image. This is done automatically by INDEXU for IMAGE type fields. Sorry about that...
    Last edited by santocki; 02-02-2006 at 10:43 AM.

  5. #5
    Join Date
    Jan 2006
    Posts
    33

    Default

    goooooood broth.....thanks....

  6. #6
    Join Date
    Mar 2006
    Posts
    11

    Default

    Please not this does not work in detail.html.
    Last edited by AnnaBella; 03-25-2006 at 07:28 AM.

  7. #7
    Join Date
    Jan 2006
    Posts
    33

    Default

    hi.... try with detail_link.html......
    <tr class=tbl_normal>
    <td colspan="2"><div align="center"><img src="<%$image_picture%>" border="0"></div></td>
    </tr>
    ....

  8. #8
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

  9. #9
    Join Date
    Aug 2006
    Posts
    7

    Default

    Hm, what&#180;s wrong?
    I added a field (image) in the backend. In frontend i can browse my directory to select an image and save the Link.(Image is still uploaded in the upload_dir Directory. Everything seems to be OK.
    But when I take a look to my listing, I can&#180;t see my picture, only the path to it , like this: upload_files\contact_logo_3.gif (frontend.gif)


    When I go to the CP to edit this Listing, I can see the logo (backend.gif)



    hat&#180;s wrong?
    Thanx,
    Thomas
    Attached Images Attached Images

  10. #10
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    If your not using custom fields then do this :

    <img src=http://www.yourwebsite.com/<%$photo_field_name%>>
    Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )

  11. #11
    Join Date
    Aug 2006
    Posts
    7

    Default

    I just added this as a custom field in the CP. hm...
    But your Tip also works fine, thanx!

  12. #12
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    i meant, if you removed the tag in the detail_html page :

    <%$custom_field_form%> and put the tags in manually you woudl get this problem. The custom field tag does it automatically.
    Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )

  13. #13
    Join Date
    Mar 2007
    Posts
    2

    Default

    How to user Admin/Database/Alter in Version 5.3?

  14. #14
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    its jsut moved, its been renamed "custom fields"

Similar Threads

  1. insert tabel in mysql
    By landuyt in forum v3.2
    Replies: 7
    Last Post: 10-18-2005, 09:11 AM
  2. How do i edit add link insert
    By morgankd in forum v5.x
    Replies: 2
    Last Post: 02-17-2005, 03:31 PM
  3. Insert ads between links
    By esm in forum v3.2
    Replies: 31
    Last Post: 09-16-2003, 10:22 PM
  4. Details hit
    By Hart_House in forum Tutorials, Hints & Tips
    Replies: 6
    Last Post: 05-20-2002, 08:34 PM
  5. details.php and details.html
    By Hart_House in forum v5.x
    Replies: 0
    Last Post: 01-31-2002, 08:05 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
  •