enhance image handle possible?

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
cyrano
Posts: 1598
Joined: Sat 31. Jan 2004, 18:33
Location: Stuttgart
Contact:

enhance image handle possible?

Post by cyrano »

Hi Oliver,

might it be possible to give a wider range for image handling?

What i recognised:

I need one image 4 times in a row, but have to upload 4 images to be able to set them into one line - so it seems that these images (each are equal) must be uploaded 4 times to use them.

So it is not psooible to use one image more than i times, and the same visual image must be downloaded x-times when using the same image.

Any chance to give this another handling? or not possible because of the ID for the images in DB?

Thank you for a describtion.
Gruß/ regards cyrano
--------------------------------------------------------
templates -> http://www.128.weitzelmedia.de
planepix -> http://www.planepix.de
XING -> https://www.xing.com/profile/Thomas_Weitzel3
User avatar
Oliver Georgi
Site Admin
Posts: 9938
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Post by Oliver Georgi »

Hehe - old install did so ;-) - I will implement it again.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
cyrano
Posts: 1598
Joined: Sat 31. Jan 2004, 18:33
Location: Stuttgart
Contact:

Post by cyrano »

fine oliver - thank you.
Gruß/ regards cyrano
--------------------------------------------------------
templates -> http://www.128.weitzelmedia.de
planepix -> http://www.planepix.de
XING -> https://www.xing.com/profile/Thomas_Weitzel3
User avatar
Oliver Georgi
Site Admin
Posts: 9938
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Post by Oliver Georgi »

Hope you need it for image list only - makes no sense for ecard and image rollover (or...?).

But solved for image list.
http://www.phpwcms.de/support/cnt2.readform.inc.zip

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
cyrano
Posts: 1598
Joined: Sat 31. Jan 2004, 18:33
Location: Stuttgart
Contact:

Post by cyrano »

hi oliver thank you very much, will install it immediately :-)

no i don't want to use it with image content part, for ecard and rollover i haven't found a need - till now ;-)

works great :-)
Gruß/ regards cyrano
--------------------------------------------------------
templates -> http://www.128.weitzelmedia.de
planepix -> http://www.planepix.de
XING -> https://www.xing.com/profile/Thomas_Weitzel3
cyrano
Posts: 1598
Joined: Sat 31. Jan 2004, 18:33
Location: Stuttgart
Contact:

Post by cyrano »

Hi Oliver,

nedd your help again with the multiple images.

I cannot set the number of rows to another value than 1.
I select 4 but after saving the article it jumps back to 1.

Using your patched version above.
What's to do next to get this working?

EDIT: I have recognized that when using 2 different images it works; so i think it depends on using 4 equal images and their values..?

The script cannot decide that there are 4 equal images but need to use them as 4 different one...

Thank you for your advice.
Gruß/ regards cyrano
--------------------------------------------------------
templates -> http://www.128.weitzelmedia.de
planepix -> http://www.planepix.de
XING -> https://www.xing.com/profile/Thomas_Weitzel3
User avatar
Oliver Georgi
Site Admin
Posts: 9938
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Post by Oliver Georgi »

this is exactly what my script is doing - maybe wait until coming next snapshot. Maybe I have changed more than is working for you at the moment.

Image Image

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
frold
Posts: 2151
Joined: Tue 25. Nov 2003, 22:42

Post by frold »

I have never seen a pic of you without your lovely kitties :D
http://www.studmed.dk Portal for doctors and medical students in Denmark
cyrano
Posts: 1598
Joined: Sat 31. Jan 2004, 18:33
Location: Stuttgart
Contact:

Post by cyrano »

hi oliver,

sorry i mean columns... when i select 4 columns it fails...

as i see you have select 1 spalte(column)
Gruß/ regards cyrano
--------------------------------------------------------
templates -> http://www.128.weitzelmedia.de
planepix -> http://www.planepix.de
XING -> https://www.xing.com/profile/Thomas_Weitzel3
User avatar
Oliver Georgi
Site Admin
Posts: 9938
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Post by Oliver Georgi »

yepp, correct ;-)

in cnt2.readform.inc.php (the one posted here) line 64 enhance/change:

Code: Select all

//$temp_count_img = mysql_num_rows($img_result);
$temp_count_img = $imgx;
Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
cyrano
Posts: 1598
Joined: Sat 31. Jan 2004, 18:33
Location: Stuttgart
Contact:

Post by cyrano »

hi oliver,

thanx for hinting this. got it.
Gruß/ regards cyrano
--------------------------------------------------------
templates -> http://www.128.weitzelmedia.de
planepix -> http://www.planepix.de
XING -> https://www.xing.com/profile/Thomas_Weitzel3
Pixelchaos
Posts: 17
Joined: Wed 25. Aug 2004, 14:04
Contact:

Post by Pixelchaos »

Since this is closely related:
Are there any plans to be able to select border on/off for images in the cms?
User avatar
Oliver Georgi
Site Admin
Posts: 9938
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Post by Oliver Georgi »

use CSS!!! Then you can control borders much better - the normal border="" is not useful. Check source and you will see that you can set a class.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
Pixelchaos
Posts: 17
Joined: Wed 25. Aug 2004, 14:04
Contact:

Post by Pixelchaos »

Edit: Ignore me, it already works :)
User avatar
oeconom
Posts: 337
Joined: Fri 13. May 2005, 09:33
Location: Kassel Area
Contact:

Post by oeconom »

Is the function to re-use the same picture file multiple times already integrated into dev 1.2.3, or do I also have to use the above file?

Thanks,
FELIX
...alles wird gut!
still alive...
Experimenting with phpwcms and hoping to have time one day to get a site live... :wink:
One Site finished! :P
Post Reply