Author Topic: [RESOLU] Page details  (Read 19809 times)

0 Members and 1 Guest are viewing this topic.

Offline Misteroiz

  • Newbie
  • *
  • Posts: 17
    • View Profile
[RESOLU] Page details
« on: January 01, 2008, 03:58:20 PM »
Bonjour la team, je cherche sur le forum mais je ne trouve pas.

Voila j'ai des grosses images qui font plus de 3000 Pixel et ca prend trop de place dans la page de details y a t'il un code pour modifier et rendre l'image en apercu simple et miniaturisé proportionnelement.

Cordialement Misteroiz
« Last Edit: January 01, 2008, 05:35:26 PM by Misteroiz »

Offline nobby

  • 4images Guru
  • *******
  • Posts: 2.873
    • View Profile
Re: Page details
« Reply #1 on: January 01, 2008, 04:13:01 PM »
   
Bonjour,

En ACP, vous pouvez personnaliser les images ou automatique à la police Resizer.
Ou bien utiliser cet outil  :arrow: http://www.4homepages.de/forum/index.php?topic=7700.0

Ou ici  :arrow: http://www.4homepages.de/forum/index.php?topic=8517.0

nobby

Offline Misteroiz

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: Page details
« Reply #2 on: January 01, 2008, 04:18:25 PM »
Je ne pense pas que ce soit cela , car je veu juste miniaturisé la photo dans la page de Details, remplacé la ligne {image} par un bout de code je pense que cela est possible.

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Page details
« Reply #3 on: January 01, 2008, 04:21:57 PM »
Quote
remplacé la ligne {image} par un bout de code je pense que cela est possible.

In includes/functions.php file,

find:

Code: [Select]
"image" => get_media_code($image_row['image_media_file'], $image_row['image_id'], $image_row['cat_id'], $image_row['image_name'], $mode, $show_link, $detailed_view),

;)
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 ?

Offline Misteroiz

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: Page details
« Reply #4 on: January 01, 2008, 04:25:06 PM »
Merci mais cela ne me dit pas comment dire en code php la hauteur et largeur maxi qu'il peu utilisé :(

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Page details
« Reply #5 on: January 01, 2008, 04:30:17 PM »
Hum ... if need for say width and height - is like this ...

use {width} and {height} in details.html 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 ?

Offline Misteroiz

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: Page details
« Reply #6 on: January 01, 2008, 04:33:48 PM »
Could you tell me the exact code because I do conais not PHP, unfortunately.
Thank you for your valuable assistance

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Page details
« Reply #7 on: January 01, 2008, 04:35:46 PM »
Exact code in PHP - includes/functions.php file is this:

Code: [Select]
$width_height = " ".$image_info[3];
$width = $image_info[0];
$height = $image_info[1];

;)
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 ?

Offline Misteroiz

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: Page details
« Reply #8 on: January 01, 2008, 04:39:57 PM »
I am totally lost

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Page details
« Reply #9 on: January 01, 2008, 04:41:22 PM »
Could you tell me the exact code because I do conais not PHP, unfortunately.
Thank you for your valuable assistance

I am totally lost

You ask for exact code ... I post ... but if need for say width and height of image ... you no need PHP for this ... you need say {width} and {height} in template. ;)
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 ?

Offline Misteroiz

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: Page details
« Reply #10 on: January 01, 2008, 04:46:04 PM »
i replace this code

$width_height = " ".$image_info[3];
$width = $image_info[0];
$height = $image_info[1];

to

$width_height = " ".$image_info[3];
$width = 500;
$height = 500;

??

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Page details
« Reply #11 on: January 01, 2008, 04:51:05 PM »
Ohh ! so you want set max width and height size for each image ? If so, solution is use auto-image resizer MOD from V@no. Nobby post is correct. With auto-resize, you set max width and height size for upload. ;)
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 ?

Offline Misteroiz

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: Page details
« Reply #12 on: January 01, 2008, 04:53:14 PM »
Yes, but for the download must be kept good height and width dimension of origin is or there is the problem.

The code of height and width is just for the front page details only.

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Page details
« Reply #13 on: January 01, 2008, 04:56:37 PM »
Quote
Yes, but for the download must be kept good height and width dimension of origin is or there is the problem.

The proportion is kept good for image structure. If download resize version, image is no alter. Integrity is good. ;)

Quote
The code of height and width is just for the front page details only.

This is right. If use {width} and {height} for frontpage, is show live reduce size of image from auto-resize image MOD. Is purfect solution. ;)

[edit] - I think upload size is edit in ACP - > setting page. ;)
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 ?

Offline † manurom

  • Full Member
  • ***
  • Posts: 227
    • View Profile
    • manurom's 4images templates
Re: Page details
« Reply #14 on: January 01, 2008, 05:10:07 PM »
Bonjour, Misteroiz;
j'ai eu ce cas et ai résolu mon problème en modifiant mon fichier templates/mon_template/media/jpg.html comme suit, ayant besoin d'images redimensionnées à 520 pixels de largeur, tout en utilisant le script java Lightbox.js:
Code: [Select]
<a href="{media_src}" target="_blank" rel="lightbox" title="{image_name}"><img src="{media_src}" border="1" alt="{image_name}" width="520" /></a><img src="{template_url}/images/spacer.gif" width="1" height="2" /><br />
N'hésitez pas à me solliciter en cas de besoin.
Bien à vous, et bonne année à tous.
« Last Edit: January 03, 2008, 04:57:23 AM by manurom »