Creating Tableless theme Creating Tableless theme
 

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

Creating Tableless theme

Started by rbl, October 22, 2003, 05:17:42 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

rbl

It's not totally tableless (yet) and like I said, it is a 1.2RC installation heavily hacked.
I've modified almost every php file installed so the theme itself wouldn't be of any use, sorry =(

Unfortunately (from a css developer point of view), cpg depends very much of its table structure. There are <tr>s and <td>s everywhere.

Rodinou

Great !!! :)

You've shown CSS is more powerful :)

And you're right : a lot of <TR></TR> are everywhere :)

CSS is future : you have had a lot of time to change the code ...

And futhermore you show CROPPED thumbs : really more esthetic ... :)

A little DHTML and it's perfect :)

Congratulations.

Tarique Sani

Well I was hoping for atleast most portions being tableless in atleast one of the themes...
SANIsoft PHP applications for E Biz

Rodinou

I have read the code : it's really perfect : good you use the StyleSwitcher function, 'cause it's a way to take too :) (I use it on my dev http://www.sortons.net/sortons_dhtml/bars.htm)

The more interesting with the tableless theme is to navigate with only ONE Page a whole gallery : I do this, by inspirating this model

Question about Tarique : how to use displayimage.php, ecard.php without the WHOLE HEADER (logo, sentence, menu ...) when I put

// define('IN_COPPERMINE', true);

I have a "Not in Coppermine" ...

Is it possible to BE in Coppermine WITHOUT the complete layout ?

Tarique Sani

Rod - lets take this one step at a time

Can you make a nice table less layout which just replaces the tables in only two files template.html and theme.php

We will sort the problems as they arise....

Let work on this one
SANIsoft PHP applications for E Biz

Rodinou

I can, of course

The problem is all portions of code where there is <tr></tr>

Indeed, if we compare it with text, to jump line, you add <br><br>

In CSS, a lot things will desappear : the jump <tr></tr> isnt' necessary anonymore.

That's why it's quite long to do changes : but if you have seen the code, you can judge ALL IS CLEAR, and all BECOMES crazy.

I can however realize a template page and if you approve the project, we can see together how to convert it in theme.php.

Tarique Sani

Just start with template.html and theme.php - one step at a time - don't think ahead. when you hit the first problem we will sort it out togather...

BTW I will split this into a separate thread
SANIsoft PHP applications for E Biz

Rodinou

http://www.sortons.net/photos/tests/displayimage.htm

See the Code, enjoy ... 1 mn to realize it ...

All can be do (border, margin, padding ...)

I must go to a concert : I continue after it, promise.

DJMaze

I stripped all templates out of the default theme and put them in seperate files.
Maybe it's easier to edit them.

http://cvs.sourceforge.net/viewcvs.py/coppermine/phpnuke/modules/coppermine/themes/default/

But be aware it's a stripped CPG for phpNuke theme.
This one also supports global vars in the templates.

It would be nice themes can be used in any CPG
There are 2 kinds of users in this world: satisfied and complainers.
Why do we never hear something from the satisfied users?
http://coppermine-gallery.net/forum/index.php?topic=24315.0

Tarique Sani

Rod what I see is this...

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Ftariquesani.net%2Frod1.jpg&hash=d4103ce9aaf218e2db0f4dc8e46849e21a7f0784)

What I ask for is conversion of the file template.html into a tableless layout

I know what is possible with CSS.... The questions is can you OR are you willing to do it.

If yes I can spend time on correcting the problems which are due to PHP part
SANIsoft PHP applications for E Biz

rbl

Thanks Rodinou!

As for a tableless theme altering only template.html and theme.php, I'm afraid it's not possible. If memory serves me right, you'll end up with a "half baked" theme which will not validate.

The problems rise very early with the starttable function. If you change it to a div (for example), everything else all over the site will be broken because starttable is used almost everywhere to encapsulate table rows and table datas. If you keep it as it is, you'll end up with a lot of tables anyway.
It's a nasty situation...

Tarique Sani

Quote from: "rbl"As for a tableless theme altering only template.html and theme.php, I'm afraid it's not possible. If memory serves me right, you'll end up with a "half baked" theme which will not validate.

The problems rise very early with the starttable function.

I am well aware of the fact - I want to reach a "half baked" state before I can really turn the heat on ;)

Anyone willing to help?
SANIsoft PHP applications for E Biz

rbl

I can help if you want. I can take a fresh copy of cpg and see where I can go changing only the theme files.

Tarique Sani

Quote from: "rbl"I can help if you want. I can take a fresh copy of cpg and see where I can go changing only the theme files.
Most welcome and appreciated :)
SANIsoft PHP applications for E Biz

Rodinou

I came back from my concert ...

ok ... let's go

to R. > use with me MP, to use your CSS and some tests IN DHTML

(see the photos at http://www.sortons.net/sda and after Photos > I would like to develop this with you)

Thanx.

Rodinou

I have a big problem with ... IE :(

It's perfect this time under Mozilla (I have done all the gallery on it) but IE has several problems of layout ...

Anyway, idea is here.

http://www.sortons.net/photos/tests/test.htm

Rodinou

try again
http://www.sortons.net/photos/tests/displayimage.htm

and

http://www.sortons.net/photos/tests/displayimage2.htm


As you can see, Both IE and Mozilla (Win XP, IE 6 / Netscape 7 and Firebird 0.6) work :)

As you can see, we have a total control of the layout of the thumbs.

rbl

Rodinou, you are putting the cart before the horse
You can't control thumbnails geometry without altering some files in the include directory. We are trying to see what can be done altering only the theme files.

Rodinou

Humm ... I see ...

in first case, it would be a "normal CPG" without tables isn't it ?

rbl

Sorry for the late reply, been very busy with real life work =(
The answer is yes. A tableless "regular" cpg.

Made some progress but had to undo some changes because they lead me to a dead end.
This is definately not easy.