This topic is locked

Differentiating the size of the image in ListPage & Printer-Frienl

10/13/2011 7:07:01 PM
PHPRunner General questions
M
mumtaz author

I have an image with a size of 550px. And I've set the thumbnail size 150px in ListPage. And I wanted the image size in the Printer-FrienlyPage be 350px.

The case is now the size of the image in ListPage same as in the Printer-FrienlyPage.
How to make a difference in image size of each page. For ListPage 150px, 350px for Printer-FrienlyPage
Thank you before,
regards

C
cgphp 10/13/2011

Set the image field as Custom and enter this code:

$page = substr($_SERVER["SCRIPT_NAME"],strrpos($_SERVER["SCRIPT_NAME"],"/")+1);
if(strpos($page,'print')>0)

$value = "<img src='path/to/your/images/".$value."' />";

else

$value = "<img src='path/to/your/images/th".$value."' />";
M
mumtaz author 10/13/2011

Ok, running well.

But the iBox function is not running. How to iBox function also run.



Set the image field as Custom and enter this code:

$page = substr($_SERVER["SCRIPT_NAME"],strrpos($_SERVER["SCRIPT_NAME"],"/")+1);
if(strpos($page,'print')>0)

$value = "<img src='path/to/your/images/".$value."' />";

else

$value = "<img src='path/to/your/images/th".$value."' />";


C
cgphp 10/14/2011

Check how ibox works when the field is set as image.