Editing items inside {GALLERY} Editing items inside {GALLERY}
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Editing items inside {GALLERY}

Started by Fudgemaster, March 01, 2007, 12:16:51 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Fudgemaster

Hey all..

I'm fixing up a new theme for my coppermine install and was searching about editing
the things inside {GALLERY} but as I don't understand too much the code and didn't
find what I wanted, I'm now asking Your help.

I've attached a image of the current theme I have underwork (not online/in production)
and drew three arrows to point the items I'd want to resize/edit.

I would like those three items to be equel width to the image "window" itself and the
breadcrumb to contain the navigation as modified in
http://forum.coppermine-gallery.net/index.php?topic=30221.0
but without removing links and ">".

As that post included editing the core files I did not dare to do it.. yet.

Thank You in advance.

- Sami
--
It's an insane world.. But I'm proud to be a part of it.

Joachim Müller

Zip your custom theme and attach it to your posting (using "additional options" when composing your message)

Fudgemaster

Quote from: GauGau on March 01, 2007, 07:54:10 AM
Zip your custom theme and attach it to your posting (using "additional options" when composing your message)

Here ya go.
It's basically the plusxl_20 theme with edited template.html and something small in style.css.
Haven't touched theme.php at all as I have absolutely no understanding of it's contents.

There's probably an easy solution to this as I am the one asking :)

Thanks

- Sami
--
It's an insane world.. But I'm proud to be a part of it.

Galeo Designs

I am also looking to edit some items within the {GALLERY} tag.
For one, I have no idea where to look for the php or template file that this links to. ??? ???

Any help would be appreciative :D

Thank you

James

Joachim Müller

start your own thread instead of trying to hijack this one.

Fudgemaster

Got something done by now..

I used the theme.php by Sami (BMossavari) he provided in this post :
http://forum.coppermine-gallery.net/index.php?topic=30221.msg140055#msg140055

After that I've edited the theme.php a bit to add the Info button to the
breadcrumb ja to loose the thumbnails "filmstrip frames".

Here's the edits.

Open up that theme.php.

Adding the Info button.
Find (somewhere around row 600 or so):
<td align="center" valign="middle" class="navmenu" width="48px">
                        <a href="{PREV_TGT}" class="navmenu_pic" title="{PREV_TITLE}"><img src="{LOCATION}images/prev.gif"  border="0px" align="middle" alt="{PREV_TITLE}" /></a>
                </td>


Add after that:
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="javascript:;" class="navmenu_pic" onclick="blocking('picinfo','yes', 'block'); return false;" title="{PIC_INFO_TITLE}"><img src="{LOCATION}images/info.gif" border="0" align="middle" alt="{PIC_INFO_TITLE}" /></a>
                </td>


Removing the filmstrips from above and under the thumbails.
Find (somewhere around row 340 or so):
        <tr>
         <td valign="top" style="background-image: url({TILE1});"><img src="{TILE1}" alt="" border="0" /></td>
        </tr>

And delete that.

some 10 rows below is:
        <tr>
         <td valign="top" style="background-image: url({TILE2});"><img src="{TILE2}" alt="" border="0" /></td>
        </tr>


Delete that too.

and thats it's for the info button and teh filmstrip "frame".
Attached a pic of the current view (partial, so small screen and bad res).

- Sami
--
It's an insane world.. But I'm proud to be a part of it.

Fudgemaster

(can't seem to be able edit my post)
Few typos in the explanation but not in the code parts.

Everything else is now set, but the width of the breadcrumb itself I
haven't been able to fix to the width of the "image screen".

- Sami
--
It's an insane world.. But I'm proud to be a part of it.