This topic is locked

Images and Thumbnails

12/26/2008 1:35:44 PM
PHPRunner General questions
author

Hi! I upload images for my view pages that are 350 px wide. I but I want the thumbnails to show on my list page.

The images were full size on both pages so from the visual editor section, on my view sheet for my photo, I changed the width to 350 px and UNCHECKED the thumbnail box. Then for my list page I put 0 in the photo width then checked the box for thumbnails.
When I tried to upload those pages it I get a message that says there are not any new files to upload. Why would this happen?
Thanks!!

J
Jane 12/29/2008

Hi,
where do you save your images: in the database or on the disc?

500449 1/3/2009

Hi,

where do you save your images: in the database or on the disc?


Hi Jane: I upload them using the "Add New" or "Edit" form. They are uploaded to my database server with my web host - the same place all my phprunner files are saved. This is what my directory looks like:
All my phprunner files are in a directory under my root directory.

The directory for my images are under my phprunner files directory at the same level as 'include', 'templates',' templates_c', etc.
Thanks!!!

J
Jane 1/5/2009

Hi,

The images were full size on both pages so from the visual editor section, on my view sheet for my photo, I changed the width to 350 px and UNCHECKED the thumbnail box. Then for my list page I put 0 in the photo width then checked the box for thumbnails.



Settings for view and list pages are the same. Please clarify what option you've unchecked.

501338 1/6/2009

Hi,

Settings for view and list pages are the same. Please clarify what option you've unchecked.


On the "List" page I CHECKED the "Thumbnails" box.

Then if I go to the "View" page, it will be CHECKED - even though I had previously UNCHECKED it.
It appears that the two pages are linked. When I UNCHECK the thumbnail box on the "view" page, the "List" box will also be changed.
For BOTH the "Add" and "Edit" pages:
Create thumbnails on the fly AND resize the image are BOTH checked.
Thanks!

J
Jane 1/7/2009

Yes, settings for list and view pages are the same.

If you want to set up different settings for these page edit SQL query on the Edit SQL query tab.

Here is a sample:

select field1,

field1 as field1_view

...

from TableName



Then check off field1_view on the view page only on the Choose fields tab and set up different formats for field1 and field1_view fields on the "View as" settings dialog on the Visual Editor tab.

501339 2/18/2009

Yes, settings for list and view pages are the same.

If you want to set up different settings for these page edit SQL query on the Edit SQL query tab.

Here is a sample:
Then check off field1_view on the view page only on the Choose fields tab and set up different formats for field1 and field1_view fields on the "View as" settings dialog on the Visual Editor tab.


I'm sorry I tried to figure out where to put this but I just am not that good with php. Would you please show me where to put it and the exact - total script? Thanks so much!

J
Jane 2/19/2009

Hi,
proceed to theEdit SQL query tab, switch the SQL mode and edit your SQL query.

501340 2/19/2009

Hi,

proceed to theEdit SQL query tab, switch the SQL mode and edit your SQL query.


Hi! When I look at the sql tab, it lists the fields in my database. None of the fields are duplicated in the list shown. What am I supposed to edit? I tried clicking on the "reset" button but that did not do anythings. Thanks!

501341 2/19/2009



Hi! When I look at the sql tab, it lists the fields in my database. None of the fields are duplicated in the list shown. What am I supposed to edit? I tried clicking on the "reset" button but that did not do anythings. Thanks!


Never mind. I figured it out. Thanks!

J
joesturg 4/2/2009

Jane,
I understand your code for changing the view.php page:
to change size of image on the view page only edit generated ..._view.php file.

Find this code:

------------------------

if($thumbname==$data["image"])

{

$value.=" width=600";

$value.=" height=600";

}

------------------------

and add following code just after:

------------------------

else

{$value.=" height=250";}


and I have read over this page .
I still do not understand how to make the List page as thumbnails and the View page as larger images.
On the Visual Editor settings I have the following settings:

VIEW AS

Image

Image Width: 400

Image Height: 400
Thumbnails

Display Thumbnails--->Checked

Use Ibox to display images--->Checked
EDIT AS

Create thumbnails on the fly--->Checked

Resize images after upload--->Checked and set to Images size 600
Do I need to create a new field for the larger images? Sorry, I just couldnt understand the prior posts completely.

J
Jane 4/3/2009

Hi,
to set up different settings on the list and view pages create alias on the Edit SQL query tab:

select field1,

field1 as field1_view,

...

from TableName



Then check off field1_view on the view page only on the Choose fields tab and set up field1_view as simple image without thumbnail on the "View as" settings dialog on the Visual Editor tab.