[Solved]: Running into quite a few problems.. [Solved]: Running into quite a few problems..
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

[Solved]: Running into quite a few problems..

Started by XBleed, May 17, 2004, 07:36:12 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

XBleed

Okay.. I must come into this by saying Coppermine is extremly hard to customize..
Wonderful script, skinning is easy, but customizing is HARD.  I get errors constantly.  Anyways.. on to the problems..

I need to display the image information BELOW the image itself.  This means inside the "intermediate image display" template.
(I know that it already does show up BELOW the image, but the way I want this laid out, that doesn't work.)

I also want to be able to move my custom fields around in the templates.. but I really see no way of this being possible.
I've attached an image below explaining my layout.  I did this layout with 4images, but the 4images/vB3 integration is horrible!! so I'm trying out coppermine.

Okay, now..
question number 2.  How can I set the width for the uploaded photo to show before having to click on it for a bigger view?  Right now it's a bit too wide for my likings.

I'm hoping all this is possible.. but it looks doubtful right now. :(

Thanks,




[attachment deleted by admin]

hyperion

1. This will probably require some interplay between the theme.php file and displayimage.php, as well as some of the function files.

2. Again, I direct you to the documentation. Read about intermediate picture settings.

http://coppermine.sourceforge.net/manual.php#config_picture_thumbnail
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

XBleed

Thanks again,

And.. sorry.. I'll start overlooking this manual before I ask the questions I know are simple.. :)


BUT.. would anyone mind helping me with this layout?
I'm not that good at php/functions/whatever else..  :o ??? :D

XBleed

Quote from: XBleed on May 17, 2004, 08:04:18 AM
Thanks again,

And.. sorry.. I'll start overlooking this manual before I ask the questions I know are simple.. :)


BUT.. would anyone mind helping me with this layout?
I'm not that good at php/functions/whatever else..  :o ??? :D
Hmm..   I switched the intermediate pic to 200 px width but that didn't do anything.  I thought maybe cause it's already there, it won't automatically do that.. so I added it again and it's still at 535 width.. (the default was 400 so I don't see how this is happening)

Hopefully it's not me being a complete idiot again!  :-X

hyperion

Quote
I'm not that good at php/functions/whatever else

You'll need to learn if you want to make these types of changes.  I don't provide in-depth help with these types of customizations, but there are others on this board who sometimes lend a helping hand in these situations.  Perhaps if you were more explicit about what you are actually doing, they might be inclined to offer you some advice.  For example, is the above screenshot an image of what you have already achieved in Coppermine, or is it a screenshot of what you had in 4images? 

The intermediate pics are not automatically resized.  However, new pics should be changing.  Play with it for a while, and post a screenshot of your config settings if you can't get it going.
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

XBleed

Quote from: hyperion on May 17, 2004, 08:18:49 AM
For example, is the above screenshot an image of what you have already achieved in Coppermine, or is it a screenshot of what you had in 4images?
The above screen is what I would LOVE to achieve with Coppermine.  I had that layout with 4images and it fits perfectly... but the integration with 4images and vB is no where near as stable as Coppermine.

Quote
The intermediate pics are not automatically resized.  However, new pics should be changing.  Play with it for a while, and post a screenshot of your config settings if you can't get it going.
Will do, thanks for all the help.  It's good to finally get some support.  I purchased photopost (no idea why.. it wasn't smart of me) and so far they have been so horrible with support it makes me sick I gave them 129.99 for their script/services.  Very nice to see the support here for a script that is FREE!

So again, thanks.

Casper

To change the size of intermediate pics and/or thumbs you already have, you need to use the re-size tool.  If you are using hardwired theme(or one based on it) you will not see the link for this, so just browse directly to yoursite/coppermine/util.php.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

XBleed

I've got the intermediate pics working just fine now!  Yay!

Okay, I'm seriously stuck on the whole layout thing though, I've been messing with both theme.php and displayimage.php.
Moving the custom fields around isn't such a big deal.  I'd just REALLY like to have the "photo info" display underneath my photo (like in the layout in the attachment above)

Can anyone PLEASE help me with this?
You'll save my day/life/etc.  :)

I've been trying to get it so I can use "(PHOTO_INFO}" anywhere in my templates but I can't get it to work at all.  It's kicking my ass..  :-\\
Thanks,

Casper

I'm nort sure if I understand you correctly, because the custom fields do display under the picture.  And the are plenty of instructions on the boards on how to remove the items of pic info you don't want shown.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

XBleed

Quote from: Casper on May 17, 2004, 08:16:44 PM
I'm nort sure if I understand you correctly, because the custom fields do display under the picture.  And the are plenty of instructions on the boards on how to remove the items of pic info you don't want shown.

No no.. I figured out how to remove the ones I don't want there..   Well, I just commented them out in displayimage.php..
I need the photo info to appear below the image like it is in the attached picture in the first post.

Casper

I think we have a language problem here.

The custom fields DO appear UNDER the pic.
Do you want the info UNDER the pic, or to the LEFT.
attached is a pic that is normal layout.  As youcan see, my 2 custom fields (Bike, Engine) are under the pic.

[attachment deleted by admin]
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

XBleed

Okay, I'll try and explain this the best I can.. cause I know it's confusing.

I need the image itself, and the image info displayed to the RIGHT of the image description and the image title.  Just like the attachment in the first post.  So far with Coppermine I am only able to have the image to the right of the image title and the description.. I just don't know how to get the image info displayed underneat the image now.

It DOES however display beneath it all together, just like in the screen shot you posted.  But that's just not exactly what I'd like to acheive with it.

My question about the custom fields was if they were moveable.  Like if there was anyway I could put "{CUSTOM_FIELD1}" in the layout anywhere.  But that's not really a huge issue as it looks fine itself with them displayed in the image info.

I hope that clears everything up?
If not, I can post it how I'd like it with the code when I get home from work. :)
Thanks,

XBleed

#12
WOO!   ...  I think I'm getting the hang of this.

I have figured MOST of it out.  I have the "photo info" displaying SOMEWHAT under the image.  
I'm having problems with the layout though.
I can't seem to edit the "photo info" template to fit my style.  I can't have it use the "starttable" command in php, it simply won't work.

SO I tried hardcoding it..
      <table class=tborder width=100%><tr><td colspan=\"2\" class=\"tableh2_compact\"><b>{$lang_picinfo['title']}</b></td></tr>
      <tr><td class=\"tableb_compact\" valign=\"top\" nowrap>%s:</td><td class=\"tableb_compact\">%s</td></tr></table>
(NOTE:  I tried several attempts at this and nothing worked)
But I keep getting the broken tables all over my layout.
I assume it has something to do with this line of code:    foreach ($info as $key => $value) $html .= sprintf($template, $key, $value);but I'm not sure what to put there.  

Can someone help me with this?  (This is going to be the last thing, I think..)
Thanks,

EDIT!!!!
I have it working now!!!!!  This is so cool!  Thanks to everyone for helping me out..

Joachim Müller

Please post your modifications so others may benefit as well :)

GauGau