Author Topic: Functions.php codes, need realy easy help  (Read 2846 times)

0 Members and 1 Guest are viewing this topic.

Offline Marcovich

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
    • High Definition Wallpapers
Functions.php codes, need realy easy help
« on: July 24, 2009, 12:00:03 PM »
Here some example for thumbnail code:

    "thumbnail" => get_thumbnail_code($image_row['image_media_file'], $image_row['image_thumb_file'], $image_row['image_id'], $image_row['cat_id'], $image_row['image_name'], $mode, $show_link),

    "thumbnail_openwindow" => get_thumbnail_code($image_row['image_media_file'], $image_row['image_thumb_file'], $image_row['image_id'], $image_row['cat_id'], $image_row['image_name'], $mode, $show_link, 1),

i would like to get the url of the thumbnail and not to get the image.
Someone can help me?

By the way i dont want to change the current function, i want to add one more.
thansk.
for example {thumbnail_show_url}


Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Functions.php codes, need realy easy help
« Reply #1 on: July 24, 2009, 12:26:31 PM »
... try this ... after "thumbnail_openwindow" ...
Code: [Select]
"thumbnail_show_url" => $script_url."/data/thumbnails/".$image_row['cat_id']."/".$image_row['image_thumb_file'],

... and now you can use ...
Code: [Select]
{thumbnail_show_url}

... it shows only the url of the thumbnail and not as a link ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline Marcovich

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
    • High Definition Wallpapers
Re: Functions.php codes, need realy easy help
« Reply #2 on: July 24, 2009, 12:36:55 PM »
Great thanks! :)
Solved.