Author Topic: i want the code that Responsible for add the pic name and the extention  (Read 5955 times)

0 Members and 1 Guest are viewing this topic.

hossam

  • Guest
i have Question

i want the code that make this link

#### LINK EDIT BY KW ####

if i add this

{thumb_url}/{cat_id}/

i will get

#### LINK EDIT BY KW ####

what is the part that make 21.jpg


thanx alot for this forum



######################### EDIT #########################

Dont post a link to a adult page with not working links to the 4images script.
have you htaccess for hotlinking, then edit it

KW
« Last Edit: October 15, 2007, 04:02:07 PM by hossam »

hossam

  • Guest
Re: i want the code that Responsible for add the pic name and the extention
« Reply #1 on: October 15, 2007, 04:40:56 PM »
i did not mean to post as adult site i was making an Example

i want the code that make this link

http://www.mysite.com/4images/data/thumbnails/2/4.jpg

if i add this

{thumb_url}/{cat_id}/

i will get

http://www.mysite.com/4images/data/thumbnails/2/

what is the part that make 4.jpg

for example

{thumb_url} will add http://www.mysite.com/4images/data/thumbnails

{cat_id} will add  2

what code will add 4.jpg ?


and i am sorry again about the other link

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: i want the code that Responsible for add the pic name and the extention
« Reply #2 on: October 15, 2007, 09:39:47 PM »
See show_image function in includes/functions.php file. ;)
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

hossam

  • Guest
Re: i want the code that Responsible for add the pic name and the extention
« Reply #3 on: October 15, 2007, 10:14:36 PM »
 i can not find it

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: i want the code that Responsible for add the pic name and the extention
« Reply #4 on: October 15, 2007, 11:31:05 PM »
Is no possible for no find (or your file is alter). If use fresh copy of 4images, find line 309 in file.
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

hossam

  • Guest
Re: i want the code that Responsible for add the pic name and the extention
« Reply #5 on: October 15, 2007, 11:54:30 PM »
i know it is there but i can not find what i need


i think it is this

i.image_thumb_file

but how can  i write it

{thumb_url}/{cat_id}/{i.image_thumb_file}

it does not work

can you help me ?

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: i want the code that Responsible for add the pic name and the extention
« Reply #6 on: October 16, 2007, 12:03:15 AM »
Oh ! ok so you want this ?

Code: [Select]
{thumb_url}/{cat_id}/{image_file_name}

?
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

hossam

  • Guest
Re: i want the code that Responsible for add the pic name and the extention
« Reply #7 on: October 16, 2007, 12:13:52 AM »
THANX ALOT

YOU ARE THE BEST