editing the look of {GALLERY} editing the look of {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 the look of {GALLERY}

Started by just_some_guy, August 14, 2007, 06:26:45 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

just_some_guy

Hello,

I am making my own theme and would like to customize the tables of the gallery (where the albums are) but when i look at theme.html it is defined as {gallery}, where can i find the look of this?

Thanks,

Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

Joachim Müller

Depends on what you mean by
Quote from: just_some_guy on August 14, 2007, 06:26:45 PMwould like to customize the tables

Customize as in "use another color" or customize as in "add content to them"? Post details for a detailed answer.

just_some_guy

Customize as in: changing the colors and adding collapsabile and expandle coding to the categorys.
Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

Joachim Müller


just_some_guy

And which file would i use to change the actual table itself? I need to change the "class=" attribute and add in some other codint to the table.
Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

Joachim Müller

Depends on what table/cell you actually want to see changed, as the table cells are being composed in different section of the theme and the core code. For details, post details (as suggested). For a start, post a link to your gallery and attach a screenshot to your posting that explains what you want to see changed (somehow highlight the table/cell that needs changing). There can be no generic advice to your question. Post what you actually want to accomplish as well.

just_some_guy

I have attached some plans, here is the URL and a test user account:

URL: http://www.mysimtractor.com
USER: test
PASSWORD: test123

the collapsable/expandable code is from here: http://www.webreference.com/programming/css_content/3.html

here is a page with 1 collapsable and expandable table. : http://www.mysimtractor.com/cpg1412/test.html
This is roughly the effect i want to achive.

thanks,
Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

just_some_guy

And another picture, the file sizes were too big for 1 post.
Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

Joachim Müller

Proprietary Microsoft crap, if you ask me. Not approved by the W3C. Doesn't work in other browsers than IE.
An expand/collapse script (using JavaScript) is already built into Coppermine - see script.js, function show_section.
I'm convinced that the number of visitors with JavaScript enabled is higher than the number of visitors with IE5+
However, the question remains the same: what tables or table cells of coppermine do you want to expand/collapse (using either the method you propose or the one I would prefer). If you want the entire {GALLERY}-block to be toggled, then just wrap the token into the containers by editing template.html and applying the style sheet changes in style.css. If you only want to toggle particular sections (let's say the random meta album on the index page), you'll have to dig much deeper into the code. That's why I told you to explain what you want to do and illustrate it with a screenshot. A proof of concept that an expand/collapse toggle is possible to accomplish is not what I was asking for.

just_some_guy

ok...

I will try and explain a bit better:

I would like each category: Skins,Pictures,Videos,Comps. To be collapsable. Judging by my google anyaltics there is high percentage of visitors with IE browsers. I dont be if this doesent work with other browsers as the collapsable tables will be open.
When you say there is a collapsable script built in, can you explain how i use this.

Thanks,
Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums