Advanced search  

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

Pages: [1] 2   Go Down

Author Topic: Creating Tableless theme  (Read 23043 times)

0 Members and 1 Guest are viewing this topic.

rbl

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Posts: 60
    • http://lomoblog.com/
Creating Tableless theme
« on: October 22, 2003, 05:17:42 pm »

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.
Logged

Rodinou

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 346
  • Tournicoti, Tournicota
    • http://www.sortons.net
Creating Tableless theme
« Reply #1 on: October 22, 2003, 05:46:39 pm »

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

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
Creating Tableless theme
« Reply #2 on: October 22, 2003, 05:53:49 pm »

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

Rodinou

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 346
  • Tournicoti, Tournicota
    • http://www.sortons.net
Creating Tableless theme
« Reply #3 on: October 22, 2003, 06:16:06 pm »

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

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
Creating Tableless theme
« Reply #4 on: October 22, 2003, 06:30:19 pm »

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
Logged
SANIsoft PHP applications for E Biz

Rodinou

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 346
  • Tournicoti, Tournicota
    • http://www.sortons.net
Creating Tableless theme
« Reply #5 on: October 22, 2003, 06:33:52 pm »

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

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
Creating Tableless theme
« Reply #6 on: October 22, 2003, 06:36:53 pm »

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
Logged
SANIsoft PHP applications for E Biz

Rodinou

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 346
  • Tournicoti, Tournicota
    • http://www.sortons.net
Creating Tableless theme
« Reply #7 on: October 22, 2003, 06:59:57 pm »

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

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 831
    • Dragonfly CMS
Creating Tableless theme
« Reply #8 on: October 22, 2003, 07:21:39 pm »

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
Logged
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

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
Creating Tableless theme
« Reply #9 on: October 22, 2003, 07:24:54 pm »

Rod what I see is this...

(http://tariquesani.net/rod1.jpg)

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
Logged
SANIsoft PHP applications for E Biz

rbl

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Posts: 60
    • http://lomoblog.com/
Creating Tableless theme
« Reply #10 on: October 22, 2003, 07:31:36 pm »

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...
Logged

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
Creating Tableless theme
« Reply #11 on: October 22, 2003, 07:34:14 pm »

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?
Logged
SANIsoft PHP applications for E Biz

rbl

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Posts: 60
    • http://lomoblog.com/
Creating Tableless theme
« Reply #12 on: October 22, 2003, 07:40:28 pm »

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.
Logged

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
Creating Tableless theme
« Reply #13 on: October 22, 2003, 07:41:34 pm »

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 :)
Logged
SANIsoft PHP applications for E Biz

Rodinou

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 346
  • Tournicoti, Tournicota
    • http://www.sortons.net
Creating Tableless theme
« Reply #14 on: October 23, 2003, 02:19:47 am »

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

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 346
  • Tournicoti, Tournicota
    • http://www.sortons.net
Creating Tableless theme
« Reply #15 on: October 23, 2003, 04:34:14 am »

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

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 346
  • Tournicoti, Tournicota
    • http://www.sortons.net
Creating Tableless theme
« Reply #16 on: October 23, 2003, 01:08:56 pm »

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

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Posts: 60
    • http://lomoblog.com/
Creating Tableless theme
« Reply #17 on: October 23, 2003, 06:16:11 pm »

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.
Logged

Rodinou

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 346
  • Tournicoti, Tournicota
    • http://www.sortons.net
Creating Tableless theme
« Reply #18 on: October 23, 2003, 09:49:21 pm »

Humm ... I see ...

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

rbl

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Posts: 60
    • http://lomoblog.com/
Creating Tableless theme
« Reply #19 on: October 24, 2003, 10:20:36 pm »

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.
Logged
Pages: [1] 2   Go Up
 

Page created in 0.028 seconds with 20 queries.